
window.onerror = null;
var topMargin = 120;
var slideTime = 1200;
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
function layerObject(id,left) {
if (ns6) {
this.obj = document.getElementById(id).style;
this.obj.left = left;
return this.obj;
}
else if(ie4) {
this.obj = document.all[id].style;
this.obj.left = left;
return this.obj;
}
else if(ns4) {
this.obj = document.layers[id];
this.obj.left = left;
return this.obj;
   }
}
function layerSetup() {
floatLyr = new layerObject('theIMG', pageWidth / 2 + 100);
window.setInterval("main()", 10)
}
function floatObject() {
if (ns4 || ns6) {
findHt = window.innerHeight;
} else if(ie4) {
findHt = document.body.clientHeight;
   }
} 
function main() {
if (ns4) {
this.currentY = document.layers["theIMG"].top;
this.scrollTop = window.pageYOffset;
mainTrigger();
}
else if(ns6) {
this.currentY = parseInt(document.getElementById('theIMG').style.top);
this.scrollTop = scrollY;
mainTrigger();
} else if(ie4) {
this.currentY = theIMG.style.pixelTop;
this.scrollTop = document.body.scrollTop;
mainTrigger();
   }
}
function mainTrigger() {
var newTargetY = this.scrollTop + this.topMargin;
if ( this.currentY != newTargetY ) {
if ( newTargetY != this.targetY ) {
this.targetY = newTargetY;
floatStart();
}
animator();
   }
}
function floatStart() {
var now = new Date();
this.A = this.targetY - this.currentY;
this.B = Math.PI / ( 2 * this.slideTime );
this.C = now.getTime();
if (Math.abs(this.A) > this.findHt) {
this.D = this.A > 0 ? this.targetY - this.findHt : this.targetY + this.findHt;
this.A = this.A > 0 ? this.findHt : -this.findHt;
}
else {
this.D = this.currentY;
   }
}
function animator() {
var now = new Date();
var newY = this.A * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D;
newY = Math.round(newY);
if (( this.A > 0 && newY > this.currentY ) || ( this.A < 0 && newY < this.currentY )) {
if ( ie4 )document.all.theIMG.style.pixelTop = newY;
if ( ns4 )document.layers["theIMG"].top = newY;
if ( ns6 )document.getElementById('theIMG').style.top = newY + "px";
   }
}
function start() {
if(ns6||ns4) {
pageWidth = innerWidth;
pageHeight = innerHeight;
layerSetup();
floatObject();
}
else if(ie4) {
pageWidth = document.body.clientWidth;
pageHeight = document.body.clientHeight;
layerSetup();
floatObject();
   }
}



//#############################



var isNav = (navigator.appName.indexOf("Netscape") !=-1);
var isIE = (navigator.appName.indexOf("Microsoft") !=-1);


function showSPX(idx){

idx = idx.replace(/\057/,"");

parts = idx.split(" ");

if (parts.length > 1){

xxx = parts[1].slice(parts[1].length -1);

if ((xxx != "0")&&(xxx != "1")&&(xxx != "2")&&(xxx != "3")&&(xxx != "4")&&(xxx != "5")&&(xxx != "6")&&(xxx != "7")&&(xxx != "8")&&(xxx != "9")){
        parts[0] = parts[1].slice(parts[1].length -1);
        parts[1] = parts[1].slice(0,parts[1].length -1);
}
}


switch(parts[0])
{
 case "M":
 pShow ="M: bis <B>130km/h</B>";
 break;
 case "N":
 pShow ="N: bis <B>140km/h</B>";
 break;
 case "P":
 pShow ="P: bis <B>150km/h</B>";
 break;
 case "Q":
 pShow ="Q: bis <B>160km/h</B>";
 break;
 case "R":
 pShow ="R: bis <B>170km/h</B>";
 break;
 case "S":
 pShow ="S: bis <B>180km/h</B>";
 break;
 case "T":
 pShow ="T: bis <B>190km/h</B>";
 break;
 case "H":
 pShow ="H: bis <B>210km/h</B>";
 break;
 case "V":
 pShow ="V: bis <B>240km/h</B>";
 break;
 case "W":
 pShow ="W: bis <B>270km/h</B>";
 break;
 case "Y":
 pShow ="Y: bis <B>300km/h</B>";
 break;
 case "Z":
 pShow ="Z: über <B>240km/h</B>";
 break;


 default:
 pShow ="bitte Speedindex erfragen";
 break;
} 
  
if (parts.length > 1){

switch(parts[1])
{
 case "70":
 wShow ="70: bis <B>335kg</B><P><LI>Achslast max. <B>670kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "71":
 wShow ="71: bis <B>345kg</B><P><LI>Achslast max. <B>690kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "72":
 wShow ="72: bis <B>355kg</B><P><LI>Achslast max. <B>710kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "73":
 wShow ="73: bis <B>365kg</B><P><LI>Achslast max. <B>730kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "74":
 wShow ="74: bis <B>375kg</B><P><LI>Achslast max. <B>750kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "75":
 wShow ="75: bis <B>387kg</B><P><LI>Achslast max. <B>774kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "76":
 wShow ="76: bis <B>400kg</B><P><LI>Achslast max. <B>800kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "77":
 wShow ="77: bis <B>412kg</B><P><LI>Achslast max. <B>824kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "78":
 wShow ="78: bis <B>425kg</B><P><LI>Achslast max. <B>850kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "79":
 wShow ="79: bis <B>437kg</B><P><LI>Achslast max. <B>874kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "80":
 wShow ="80: bis <B>450kg</B><P><LI>Achslast max. <B>900kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "81":
 wShow ="81: bis <B>462kg</B><P><LI>Achslast max. <B>924kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
  break;  
 case "82":
 wShow ="82: bis <B>475kg</B><P><LI>Achslast max. <B>950kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "83":
 wShow ="83: bis <B>487kg</B><P><LI>Achslast max. <B>974kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "84":
 wShow ="84: bis <B>500kg</B><P><LI>Achslast max. <B>1000kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "85":
 wShow ="85: bis <B>515kg</B><P><LI>Achslast max. <B>1030kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "86":
 wShow ="86: bis <B>530kg</B><P><LI>Achslast max. <B>1060kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "87":
 wShow ="87: bis <B>545kg</B><P><LI>Achslast max. <B>1090kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "88":
 wShow ="88: bis <B>560kg</B><P><LI>Achslast max. <B>1120kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "89":
 wShow ="89: bis <B>580kg</B><P><LI>Achslast max. <B>1160kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
 case "90":
 wShow ="90: bis <B>600kg</B><P><LI>Achslast max. <B>1200kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "91":
 wShow ="91: bis <B>615kg</B><P><LI>Achslast max. <B>1230kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "92":
 wShow ="92: bis <B>630kg</B><P><LI>Achslast max. <B>1260kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "93":
 wShow ="93: bis <B>650kg</B><P><LI>Achslast max. <B>1300kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "94":
 wShow ="94: bis <B>670kg</B><P><LI>Achslast max. <B>1340kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "95":
 wShow ="95: bis <B>690kg</B><P><LI>Achslast max. <B>1380kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "96":
 wShow ="96: bis <B>710kg</B><P><LI>Achslast max. <B>1420kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "97":
 wShow ="97: bis <B>730kg</B><P><LI>Achslast max. <B>1460kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "98":
 wShow ="98: bis <B>750kg</B><P><LI>Achslast max. <B>1500kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "99":
 wShow ="99: bis <B>775kg</B><P><LI>Achslast max. <B>1550kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "100":
 wShow ="100: bis <B>800kg</B><P><LI>Achslast max. <B>1600kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "101":
 wShow ="101: bis <B>825kg</B><P><LI>Achslast max. <B>1650kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "102":
 wShow ="102: bis <B>850kg</B><P><LI>Achslast max. <B>1700kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "103":
 wShow ="103: bis <B>875kg</B><P><LI>Achslast max. <B>1750kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "104":
 wShow ="104: bis <B>900kg</B><P><LI>Achslast max. <B>1800kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "105":
 wShow ="105: bis <B>925kg</B><P><LI>Achslast max. <B>1850kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "106":
 wShow ="106: bis <B>950kg</B><P><LI>Achslast max. <B>1900kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "107":
 wShow ="107: bis <B>975kg</B><P><LI>Achslast max. <B>1950kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "108":
 wShow ="108: bis <B>1000kg</B><P><LI>Achslast max. <B>2000kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;
case "109":
 wShow ="109: bis <B>1030kg</B><P><LI>Achslast max. <B>2060kg</B><LI>siehe Fahrzeugschein Ziffer 16.";
 break;



 default:
 wShow ="nicht angegeben.";
 break;
} 
}else{
 wShow ="nicht angegeben.";

}
 

Show="<TABLE CELLPADDING=0 CELLSPACING=0><TR><TD BGCOLOR=8080AA COLSPAN=3 HEIGHT=1><IMG WIDTH=1 HEIGHT=1 SRC=\"../img/space.gif\"></TD></TR><TR><TD BGCOLOR=8080AA><IMG WIDTH=1 HEIGHT=1 SRC=\"../img/space.gif\"></TD><TD><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=0><TR><TD BGCOLOR=E8ECF4><B>" + idx + "</B></TD></TR><TR><TD BGCOLOR=FFFFFF>Speedindex " + pShow + "<BR>Loadindex " + wShow + "</TD></TR></TABLE></TD><TD BGCOLOR=8080AA><IMG WIDTH=1 HEIGHT=1 SRC=\"../img/space.gif\"></TD></TR><TR><TD BGCOLOR=8080AA COLSPAN=3 HEIGHT=1><IMG WIDTH=1 HEIGHT=1 SRC=\"../img/space.gif\"></TD></TR></TABLE>";



      if(isNav) {
                document.theIMG.document.write(Show)
                document.theIMG.document.close()
        }

        if(isIE) {
                theIMG.innerHTML=Show

        }
 
}

function showIMG(rfh,pic){

pic= pic.toLowerCase();   

rfh=rfh.toLowerCase();
Show="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD xBGCOLOR=FFEE00><IMG WIDTH=200 HEIGHT=165 SRC=\"../supplier/" + rfh + "/img/reifen/" + pic + "_small.jpg\" ALT=\"../supplier/" + rfh + "/img/reifen/" + pic + "_small.jpg\"></TD></TR></TABLE>";



      if(isNav) {
                document.theIMG.document.write(Show)
                document.theIMG.document.close()
        }

        if(isIE) {
                theIMG.innerHTML=Show

        }
 
}

function hideIMG(){


Show="";



      if(isNav) {
                document.theIMG.document.write(Show)
                document.theIMG.document.close()
        }

        if(isIE) {
                theIMG.innerHTML=Show

        }
 
}
 

//#############################################################

function showinfo(num){
 
if (num=="1"){
  text='hier gehts weiter';
}
if (num=="2"){   
  text='hier nicht...';
}

 

if(ns4up){ 
  document.theIMG.document.write(text);
  document.theIMG.document.close();
  document.theIMG.left=500;    

}
 
if(ie4up){
  theIMG.innerHTML=text;
  theIMG.style.pixelLeft=400;
//  theIMG.style.pixelTop=140;

} 
} 
 
function hideinfo(){

if(ns4up){
  document.theIMG.left=-1500;
}

if(ie4up){
  theIMG.style.pixelLeft=-1500; 
}
}

