//<!--Kopf -->
//<!-- Menuauswahl setzen start----------------------------------------------------------------------------------------------------------------------------------------------->
endstring = location.search.length;
if (endstring == 0){
  menupos = 1;
}
else{
  if (location.search.indexOf( "&" )>0){
    startstring = location.search.indexOf( "&" ) + 1;
    endstring = location.search.length;
    menupos = location.search.substring(startstring, endstring);
  }
  else{
    endstring = location.search.length;
    menupos = location.search.substring(1, endstring);
  }
}
//<!-- Menuauswahl setzen end ----------------------------------------------------------------------------------------------------------------------------------------------->

//<!-- Kopf -------------------------------------------------------------------------------------------------------------------------------------------->
document.write("<div id='toplogo'>");
document.write("<HTML><HEAD><TITLE>NAV</TITLE>");
document.write("<BODY topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'>");
document.write("<table border='0' cellspacing='0' cellpadding='0'>");
document.write("<tr>");
document.write("<td><img border='0' src='./img/kopf2.jpg' width='750' height='130'></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
//<!-- Kopf end ----------------------------------------------------------------------------------------------------------------------------------------------->


//<!-- Taskbar oben Text einfügen start ----------------------------------------------------------------------------------------------------------------------------------------------->
document.write("<div id='taskbar'>");
document.write("<table border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td align='left' valign='top'><a href='default.asp?1'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button1-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Home</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='firma.htm?2'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button2-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Firma</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='news.asp?3'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button3-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>News/Aktionen</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='produkte.htm?4'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button4-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Produkte</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='dienstleistungen.htm?5'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button5-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Dienstleistungen</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='partner.htm?6'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button6-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Partner</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='sponsoring.htm?7'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button7-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Sponsoring</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='kontakt.htm?8'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button8-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Kontakt</a></td>");
document.write("<td align='left' valign='top'>&nbsp;|&nbsp;</td>");
document.write("<td align='left' valign='top'><a href='standorte.htm?9'ONMOUSEOVER=changeImages('Button1','./imgtaskbar/Button9-over.jpg');return true ONMOUSEOUT=ImagesOut();return true>Standorte</a></td>");
document.write("</tr>");
document.write("<tr>");

//----------------------------------------------------------------------------------------------------------------------
if (menupos == 1){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='1' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 2){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 3){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2 align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 4){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 5){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 6){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 7){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 8){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

if (menupos == 9){
  document.write("<td height='2' align='left' valign='top' bgcolor='#0099FF'><img border='0' src='h/icons/tp.gif' width='1' height='1'></td>");
}
else{
  document.write("<td height='2' align='left' valign='top' bgcolor='#EEEEEE'><img border='0' src='h/icons/tp.gif' width='1' height='1'></td>");
}
document.write("<td height='2' align='left' valign='top'><img border='0' src='/hicons/tp.gif' width='1' height='1'></td>");
//----------------------------

document.write("</tr>");
document.write("</table>");
document.write("</div>");
//<!-- Taskbar einfügen end ----------------------------------------------------------------------------------------------------------------------------------------------->


//<!-- Bild links IMG einfügen start ----------------------------------------------------------------------------------------------------------------------------------------------->
document.write("<div id='imgleft'>");
document.write("<table border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td align='left' valign='top'><img border='0' name='Button1' src='imgtaskbar/button1.jpg'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td align='left' valign='top'><img border='0' src='img/farbverlauf.jpg'></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
//<!-- Bild links IMG einfügen end ----------------------------------------------------------------------------------------------------------------------------------------------->

//<!-- Rollover start ----------------------------------------------------------------------------------------------------------------------------------------------->
function newImage(arg) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
}

function changeImages() {
	if ((preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
		//    if (menupos2 != changeImages.arguments[i]) {
		     	document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		  //  }
		}
	}
}


var preloadFlag = false;
function preloadImages() {
		Button1_over = newImage("./imgtaskbar/Button1-over.jpg");
		Button2_over = newImage("./imgtaskbar/Button2-over.jpg");
		Button3_over = newImage("./imgtaskbar/Button3-over.jpg");
		Button4_over = newImage("./imgtaskbar/Button4-over.jpg");
		Button5_over = newImage("./imgtaskbar/Button5-over.jpg");
		Button6_over = newImage("./imgtaskbar/Button6-over.jpg");
		Button7_over = newImage("./imgtaskbar/Button7-over.jpg");
		Button8_over = newImage("./imgtaskbar/Button8-over.jpg");
		Button9_over = newImage("./imgtaskbar/Button9-over.jpg");
		preloadFlag = true;
}

function ImagesOut(){
switch (menupos) {
case "1":
  document.Button1.src="./imgtaskbar/Button1.jpg";
  menupos2 = "Button1";
  break;
case "2":
  document.Button1.src="./imgtaskbar/Button2.jpg";
  menupos2 = "Button2";
  break;
case "3":
  document.Button1.src="./imgtaskbar/Button3.jpg";
  menupos2 = "Button3";
  break;
case "4":
  document.Button1.src="./imgtaskbar/Button4.jpg";
  menupos2 = "Button4";
  break;
case "5":
  document.Button1.src="./imgtaskbar/Button5.jpg";
  menupos2 = "Button5";
  break;
case "6":
  document.Button1.src="./imgtaskbar/Button6.jpg";
  menupos2 = "Button6";
  break;
case "7":
  document.Button1.src="./imgtaskbar/Button7.jpg";
  menupos2 = "Button7";
  break;
case "8":
  document.Button1.src="./imgtaskbar/Button8.jpg";
  menupos2 = "Button8";
  break;
case "9":
  document.Button1.src="./imgtaskbar/Button9.jpg";
  menupos2 = "Button9";
  break;
default:
  document.Button1.src="./imgtaskbar/Button1.jpg";
  menupos2 = "Button1";
}
}
//<!-- Rollover end ----------------------------------------------------------------------------------------------------------------------------------------------->

//<!-- Hintergrund IMG einfügen start ----------------------------------------------------------------------------------------------------------------------------------------------->
document.write("<div id='hintergr'>");
document.write("<table border='0' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td align='left' valign='top'><img border='0' src='img/2Rennrad.jpg'></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
//<!-- Hintergrund IMG einfügen end ----------------------------------------------------------------------------------------------------------------------------------------------->

//<!-- Seiteninhalt zentrieren start----------------------------------------------------------------------------------------------------------------------------------------------->
//<!-- hide from old browsers
function positionieren(){
  widthX = 0;
  widthdivx = 0;
  leftpos = 0;
  widthdivhinterx = 0;
  leftpos2 = 0;
  NS = (document.layers) ? 1 : 0;
  IE = (document.all) ? 1: 0;
  if(IE) {
    widthX = document.body.offsetWidth;				//Breite vom Anzeigebereich ermitteln

    if(document.all.hintergr){
      document.all.hintergr.style.pixelTop = 210;		//Fehlerhafter Import von CSS bei IE5.5 korrigieren
      document.all.hintergr.style.pixelWidth = 234;		//Fehlerhafter Import von CSS bei IE5.5 korrigieren
    }
 
    if(document.all.vordergr){
      document.all.vordergr.style.pixelWidth = 500;		//Fehlerhafter Import von CSS bei IE5.5 korrigieren 
    }

    if(document.all.newsstart){
      document.all.newsstart.style.pixelWidth = 135;		//Fehlerhafter Import von CSS bei IE5.5 korrigieren 
      document.all.newsstart.style.pixelheight = 480; 
   }

    if(document.all.startseite2){
      document.all.startseite2.style.pixelWidth = 582;		//Fehlerhafter Import von CSS bei IE5.5 korrigieren 
    }

   if(document.all.hintergr){
     widthdivhinterx = document.all.hintergr.style.pixelWidth;	//Breite vom div-tag ermitteln
     leftpos2 = (widthX - widthdivhinterx) / 2 + 30		//Leftposition berechnen
     document.all.hintergr.style.pixelLeft = leftpos2;		//Leftposition setzen
     //document.all.hintergr.style.pixelLeft = 100;		//Leftposition setzen
   }

   if(document.all.vordergr){
     widthdivvorderx = document.all.vordergr.style.pixelWidth;	//Breite vom div-tag ermitteln
     leftpos2 = (widthX - widthdivvorderx) / 2 - 50		//Leftposition berechnen
     document.all.vordergr.style.pixelLeft = leftpos2;		//Leftposition setzen
     //document.all.vordergr.style.pixelLeft = 75;			//Leftposition setzen
   }

    if(document.all.newsstart){
     widthdivvorderx = document.all.newsstart.style.pixelWidth; 	//Breite vom div-tag ermitteln
     leftpos2 = (widthX - widthdivvorderx) / 2 + 325		//Leftposition berechnen
     document.all.newsstart.style.pixelLeft = leftpos2;		//Leftposition setzen
    }

   if(document.all.startseite2){
     widthdivx = document.all.startseite2.style.pixelWidth;	
     leftpos = (widthX - widthdivx) / 2 - 30			
     document.all.startseite2.style.pixelLeft = leftpos;		
   }

  } else{
    widthX = window.innerWidth;

    if(document.hintergr){    
      document.hintergr.width = 234;
      widthdivhinterx = document.hintergr.width;
      leftpos2 = widthX - widthdivhinterx - 14
      document.hintergr.left = leftpos2;
      //document.hintergr.left = 0;
    }

    if(document.vordergr){
      document.vordergr.width = 681;				//Breite zuerst setzen weil auslesen sonst nicht funzt
      widthdivx = document.vordergr.width;
      leftpos = (widthX - widthdivx) / 2 + 70
      document.vordergr.left = leftpos;
    }

    if(document.newsstart){
      document.newsstart.width = 135;				//Breite zuerst setzen weil auslesen sonst nicht funzt
      widthdivx = document.newsstart.width;
      leftpos = (widthX - widthdivx) / 2 + 325
      document.newsstart.left = leftpos;
    }
  
    if(document.startseite2){
      document.startseite2.width = 581;				//Breite zuerst setzen weil auslesen sonst nicht funzt
      widthdivx = document.startseite2.width;
      leftpos = (widthX - widthdivx) / 2 - 30
      document.startseite2.left = leftpos;
    }
  }
}
// end hiding from old browsers -->

//<!-- Seiteninhalt zentrieren end----------------------------------------------------------------------------------------------------------------------------------------------->


