/* To implement this only on specific PNGs, add the following to each PNG image you wish to transform:
<img src="xyz.png" alt="foo" width="10" height="20" onload="fixPNG(this)">
NB: You must have height and width attributes specified.*/

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage)
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters))
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ?
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width
                  + "px; height:" + myImage.height
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML
    }
}


/*scrollbar-simulation
benötigt einen Iframe namens "Fenster" zum rauf- und runterbewegen ungefähr so:
<iframe src="B_Leistungsprofil.htm" name="Fenster" allowtransparency="true" style="width:330px; height:480px;margin-left:15px;" frameborder="0" scrolling="no"></iframe>*/
var aktivRauf= "";
var aktivRunter= "";
function Rauf () {

    Fenster.window.scrollBy(0, -10);
    aktivRauf = setTimeout("Rauf()", 50);

}
function StopRauf () {
  window.clearTimeout(aktivRauf);
  /*alert("stopRauf");*/

}
function Runter () {

    Fenster.window.scrollBy(0, +10);
    aktivRunter = setTimeout("Runter()", 50);

}
function StopRunter () {
  window.clearTimeout(aktivRunter);
  /* alert("stopRunter");*/

}

function SchnellRauf () {
    Fenster.window.scrollBy(0, -1000);
    aktivRauf = setTimeout("Rauf()",50);

}
function SchnellRunter () {

    Fenster.window.scrollBy(0, +1000);
    aktivRunter = setTimeout("Runter()", 50);

}

function ImpressumLaden()
{
	var istimpressum = top.impressum_geladen;
  if(!istimpressum) top.location.href = "Impressum.htm";
}
function HostingLaden()
{
	var isthosting = top.hosting_geladen;
  if(!isthosting) top.location.href = "Hosting.htm";
}
/*Email-Adresse einbauen*/
function   LinksAendern(theClass) {

//Create an array
var allPageTags = new Array();
  //Populate the array with all the page tags
  var allPageTags=document.getElementsByTagName("*");
  //Cycle through the tags using a for loop
  for (i=0; i<allPageTags.length; i++) {
    //Pick out the tags with our class name
    if (allPageTags[i].className.indexOf(theClass) != -1) {/* Wenn der Klassenname vorkommt (es können dadurch mehrere Klassen
    in einem Tag definiert werden. Bei der ur
    sprünglichen Version der Funktion hat es nur funktioniert, wenn genau 1 Klasse definiert war*/

      //Manipulate this in whatever way you want
     /* if (allPageTags[i].href.indexOf('Reparatur')!= -1){
      	allPageTags[i].href='mailto:post@stollguitars.de?subject=Reparatur';
      }
      else*/
      allPageTags[i].href='mailto:dbreckner@DodoDesign.de';
  }
  }
}

/*Ende Email-Adresse einbauen*/
