//----------------------------by konrad pfeiffer 26.10.2000
var g_strname=navigator.appName;
var g_intver=parseInt(navigator.appVersion);
var g_strNS4=(g_strname=="Netscape" && g_intver==4);

var userAgent = navigator.userAgent.toLowerCase()

var g_strIE4 = (document.all && userAgent.indexOf("mac")<0);
var g_strw3c = document.documentElement;

var objekt = new Array();
var n;
var nummer=1;
function init()
{
n=nummer;
if (g_strNS4) 
   {
     for(i=0;i<nummer;i++)
       objekt[i]=eval("document."+"ebene"+i);
    }
if (g_strIE4) 
   {
     for(i=0;i<nummer;i++)
       objekt[i]=eval("document.all."+"ebene"+i+".style");
    }
if(g_strw3c)
  if (g_strIE4)  
    {
     for(i=0;i<nummer;i++)
       { 
        objekt[i]=eval("document.all."+"ebene"+i+".style");
       }
    }
   else
    {
     for(i=0;i<nummer;i++)
       { 
        objekt[i]=eval('document.getElementById('+'"'+'ebene'+i+'"'+').style');
       }
    }
  tuck();
}
function div_verstecken(layer)
{
  for(i=0;i<n;i++)
     {
       if(layer==i)
         {
          objekt[i].visibility="hidden";
         }
     }
}
function div_anzeigen(layer)
{
  for(i=0;i<n;i++)
     {
       if(layer==i)
         {
          objekt[i].visibility="visible";
         }
       else if(layer != i)
         {
           objekt[i].visibility="hidden";
         }
     }
}
var poso=0;
var posu=0;

var texto=" Neue Fahrzeuge sind seit Juni 2003 nicht mehr lieferbar **  "
var textu=" Weiterhin f"+"\xfc"+"hren wir nur noch Mahindra - Ersatzteile. Gebraucht- und Neufahrzeuge haben wir nicht mehr im Programm. ** "
//copyright konrad pfeiffer 9.6.2001
function tuck()
{

   textlo=texto.substring(poso,texto.length-2) + texto.substring(0,poso);
   textlu=textu.substring(posu,textu.length-2) + textu.substring(0,posu);
 
   if (poso > texto.length-2)
     poso=0;
     
   poso++;
   if (posu > textu.length-2)
     posu=0;
 
   posu++;

  if(document.all){
    document.all.laufo.innerHTML = '<span><nobr><b>'+ textlo.substring(0,60) + '</b></nobr></span>';
    document.all.laufu.innerHTML = '<span><nobr><b>'+ textlu.substring(0,60) + '</b></nobr></span>';
  }
  else if(document.layers)
   {
     document.laufo.document.open();
     timenow = '<span class="nb"><nobr><b>'+ textlo.substring(0,60) +'</b></nobr></span>';
     document.laufo.document.write(timenow);
     document.laufo.document.close();
     document.laufu.document.open();
     timenow = '<span class="nb"><nobr><b>'+ textlu.substring(0,60) +'</b></nobr></span>';
     document.laufu.document.write(timenow);
     document.laufu.document.close();
   }
  else if(document.getElementById)
    { 
      document.getElementById("laufo").innerHTML='<span><nobr><b>'+ textlo.substring(0,60) + '</b></nobr></span>';
      document.getElementById("laufu").innerHTML='<span><nobr><b>'+ textlu.substring(0,60) + '</b></nobr></span>';
    }
  window.setTimeout("tuck()",600);

}
window.onload=init;
