/* ###################################################################################### */
/* MicroSoft oder NetScape */

/* --------------------------------------------------------------------------------------
   Allgemeine Parameter setzen für Kopf ---------------------------------------------- */
   MitLaufschrift = 0;
   var timer_menu;



Browser_bekannt = 0;
browser = (navigator.appName.indexOf('Microsoft') != -1) ? "ie5" : "ns";
if (browser == 'ie5') { Browser_bekannt = 1; }

/* Version des Browsers bei NetScape */
if (browser =='ns') 
   { var VERSION = parseInt(navigator.appVersion);
     if (VERSION < 4)  { browser = browser + "3"; Browser_bekannt = 1; } 
     if (VERSION == 4) { browser = browser + "4"; Browser_bekannt = 1; }  
     if (VERSION > 4)  { browser = browser + "6"; Browser_bekannt = 1; }  
   }

   /* Ergebnisse: 
      ie5: Internet-Explorer
      ns3:  netscape Version 3
      ns4:  netscape Version 4
      ns6:  netscape Version 6  
      document.write ("<BR><BR>Browser: " + browser + " --> " ) ;  */

/* ###################################################################################### */
/* Show/Hide Schicht anzeigen --> für Texte über Link */
/* Funktion Schicht anzeigen */
function show_TextLink(name) 
 { if (browser == 'ie5') {document.all['' + name].style.visibility = "visible";}
   if (browser == 'ns3') {document.layers['' + name].visibility = "show";}
   if (browser == 'ns4') {document.layers['' + name].visibility = "show";}
   if (browser == 'ns6') {document.getElementById('' + name).style.visibility = "visible";}
 }
					
function hide_TextLink(name)
 { if (browser == 'ie5') {document.all['' + name].style.visibility = "hidden";}
   if (browser == 'ns3') {document.layers['' + name].visibility = "hide";}
   if (browser == 'ns4') {document.layers['' + name].visibility = "hide";}
   if (browser == 'ns6') {document.getElementById('' + name).style.visibility = "hidden";}
 }

  

/* ###################################################################################### */

function checkit()
{
   if (document.CheckForm.Thislinks.value == "1")  { location.href="gelenkarm.htm";}
   if (document.CheckForm.Thislinks.value == "2")  { location.href="plus.htm";}
   if (document.CheckForm.Thislinks.value == "3")  { location.href="carina.htm";}
   if (document.CheckForm.Thislinks.value == "4")  { location.href="compact.htm";}
   if (document.CheckForm.Thislinks.value == "5")  { location.href="concept.htm";}
   if (document.CheckForm.Thislinks.value == "6")  { location.href="sonnensegel.htm";}
   if (document.CheckForm.Thislinks.value == "7")  { location.href="wandklappschirm.htm";}
   if (document.CheckForm.Thislinks.value == "8")  { location.href="balkonbespannung.htm";}
   if (document.CheckForm.Thislinks.value == "9")  { location.href="wismatic.htm";}
   if (document.CheckForm.Thislinks.value == "10") { location.href="volantplus.htm";}
   if (document.CheckForm.Thislinks.value == "11") { location.href="schutzdach.htm";}
   if (document.CheckForm.Thislinks.value == "12") { location.href="elektromotor.htm";}
   if (document.CheckForm.Thislinks.value == "13") { location.href="dachsparrenhalter.htm";}
   if (document.CheckForm.Thislinks.value == "14") { location.href="winterschutzhuelle.htm";}
}




function hideAll()
{
  hide_TextLink('Lay_Men1') ;
  hide_TextLink('Lay_Men16') ;
  hide_TextLink('Lay_Men2') ;
  hide_TextLink('Lay_Men3') ;
  hide_TextLink('Lay_Men4') ;

}



function StartTimeOut()
{
  timer_menu = setTimeout('hideAll()', 2000) ;
}


function Steuerung_Layer(LayerName)
{
  clearTimeout(timer_menu);

  if (LayerName == 'Lay_Men1'  || 
      LayerName == 'Lay_Men11' ||
      LayerName == 'Lay_Men12' ||
      LayerName == 'Lay_Men13' ||
      LayerName == 'Lay_Men14' ||
      LayerName == 'Lay_Men15' ||
      LayerName == 'Lay_Men16')
  {
     show_TextLink('Lay_Men1') ;
     if (LayerName == 'Lay_Men16')
     {  show_TextLink('Lay_Men16')   }
     else
     {  hide_TextLink('Lay_Men16')   }

     hide_TextLink('Lay_Men2') ;
     hide_TextLink('Lay_Men3') ;
     hide_TextLink('Lay_Men4') ;
  }

  if (LayerName == 'Lay_Men2')
  {
     show_TextLink('Lay_Men2') 
     hide_TextLink('Lay_Men1') ;
     hide_TextLink('Lay_Men16') ;
     hide_TextLink('Lay_Men3') ;
     hide_TextLink('Lay_Men4') ;
  }

  if (LayerName == 'Lay_Men3')
  {
     show_TextLink('Lay_Men3') 
     hide_TextLink('Lay_Men1') ;
     hide_TextLink('Lay_Men16') ;
     hide_TextLink('Lay_Men2') ;
     hide_TextLink('Lay_Men4') ;
  }

  if (LayerName == 'Lay_Men4')
  {
     show_TextLink('Lay_Men4') 
     hide_TextLink('Lay_Men1') ;
     hide_TextLink('Lay_Men16') ;
     hide_TextLink('Lay_Men2') ;
     hide_TextLink('Lay_Men3') ;
  }


}


function ClearTimeOut_Layer()
{
  clearTimeout(timer_menu);
}		
