IE = ((document.all)||(window.opera))
NN = (navigator.appName == "Netscape")
N5 = ((NN)&&(parseInt(navigator.appVersion) >= 5));
N4 = ((NN)&&(parseInt(navigator.appVersion) < 5));
NS = (document.layers)


       function preload_img()
       { 
          var img_list = preload_img.arguments;
          if (document.preloadlist == null) 
              document.preloadlist = new Array();
          var top = document.preloadlist.length;
          for (var i=0; i < img_list.length; i++) {
              document.preloadlist[top+i] = new Image;
              document.preloadlist[top+i].src = img_list[i+1];
          } 
       }

       function load_all()
       {
         //initSlide();
         preload_img(false,'images/top_1_1.gif','images/top_1_2.gif','images/top_1_3.gif','images/top_1_4.gif','images/top_2_1.gif','images/top_2_2.gif','images/top_2_2_h.gif','images/top_2_3.gif','images/top_2_4.gif','images/top_2_4_h.gif','images/top_2_5.gif','images/top_2_6.gif','images/top_2_6_h.gif','images/top_2_7.gif','images/top_2_8.gif','images/top_2_8_h.gif','images/top_2_9.gif','images/top_2_10.gif','images/top_2_10_h.gif','images/top_2_11.gif');
       }

       function change_img(name, nsdoc, rpath, preload)
       { 
         var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
         if (name == '') 
            return;
         if (img) {
            img.altsrc = img.src;
            img.src    = rpath;
         } 
       }

       function restore_img(name, nsdoc)
       {
         var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
         if (name == '') 
            return;
         if (img && img.altsrc) {
            img.src    = img.altsrc;
            img.altsrc = null;
         } 
       }


// menu
function moveOut() 
{
        var oDiv = document.getElementById('ssm2');

        if (window.cancel) { clearTimeout(cancel); }
        if (window.moving2) { clearTimeout(moving2); }
        if (oDiv.style.pixelLeft < 0) 
        {
                oDiv.style.pixelLeft += 10;
                moving1 = setTimeout('moveOut()', slideSpeed);
        }
        else { clearTimeout(moving1); }
}
        
function moveBack() 
{
        cancel = setTimeout('moveBack1()', waitTime)
}

function moveBack1() 
{
        if (window.moving1) { clearTimeout(moving1) }
        
        var oDiv = document.getElementById('ssm2');

        if (oDiv.style.pixelLeft > (-menuWidth) ) 
        {
                oDiv.style.pixelLeft -= 10;
                moving2 = setTimeout('moveBack1()', slideSpeed);
        }
        else { clearTimeout(moving2); } 
}

function makeStatic() 
{
        var oDiv = document.getElementById('ssm2');
        winY = document.body.scrollTop; 
        var NM=oDiv.style;

        if ( winY != lastY ) 
        {
                        smooth = .1 * (winY - lastY);
                        if (smooth > 0) smooth = Math.ceil(smooth);
                        else smooth = Math.floor(smooth);
                        NM.pixelTop += smooth; 
                        lastY = lastY+smooth;
        }
        setTimeout('makeStatic()', 1);
}

function initSlide() 
{
        oDiv = document.getElementById('ssm2');

        oDiv.style.pixelLeft = -menuWidth;
        oDiv.style.visibility = "visible";
}

function startMenu() 
{
    document.write('<DIV ID="ssm2" style="visibility: hidden; Position: Absolute; Left:0px; Top:0px; Z-Index:10; height:400px; width:100px; overflow-y:hidden; overflow-x:hidden;" onmouseover="moveOut();" onmouseout="moveBack();">');

    document.write('<table border="0" cellpadding="0" cellspacing="0" height="100%" width="'+menuWidth+'" bgcolor="#000000">');
        document.write('<TR><TD BGCOLOR=#000000 ALIGN="center" WIDTH="'+(menuWidth)+'"><ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="audi.html" border=0><img src="Audi/logo.jpg" border=0 alt="Audi"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="bmw.html" border=0><img src="BMW/logo.gif" border=0 alt="BMW"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="citroen.html" border=0><img src="Citroen/logo.gif" border=0 alt="Citroen"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="ford.html" border=0><img src="Ford/logo.gif" border=0 alt="Ford"></a></LAYER></ILAYER><br>');    
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Honda.html" border=0><img src="Honda/logo.gif" border=0 alt="Honda"></a></LAYER></ILAYER><br>');       
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Hyundai.html" border=0><img src="Hyundai/logo.gif" border=0 alt="Hyundai"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="LandRover.html" border=0><img src="LandRover/logo.gif" border=0 alt="LandRover"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Lexus.html" border=0><img src="Lexus/logo.gif" border=0 alt="Lexus"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Mazda.html" border=0><img src="Mazda/logo.gif" border=0 alt="Mazda"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Mercedes.html" border=0><img src="Mercedes/logo.gif" border=0 alt="Mercedes"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Mitsubishi.html" border=0><img src="Mitsubishi/logo.gif" border=0 alt="Mitsubishi"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Nissan.html" border=0><img src="Nissan/logo.gif" border=0 alt="Nissan"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Opel.html" border=0><img src="Opel/logo.gif" border=0 alt="Opel"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Peugeot.html" border=0><img src="Peugeot/logo.gif" border=0 alt="Peugeot"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Renault.html" border=0><img src="Renault/logo.gif" border=0 alt="Renault"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Saab.html" border=0><img src="Saab/logo.gif" border=0 alt="Saab"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Skoda.html" border=0><img src="Skoda/logo.gif" border=0 alt="Skoda"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Suzuki.html" border=0><img src="Suzuki/logo.gif" border=0 alt="Suzuki"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Toyota.html" border=0><img src="Toyota/logo.gif" border=0 alt="Toyota"></a></LAYER></ILAYER><br>');
        document.write('<ILAYER><LAYER WIDTH="100%" ALIGN="center"><a href="Wv.html" border=0><img src="Wv/logo.gif" border=0 alt="Wolksvagen"></a></LAYER></ILAYER></TD></TR>');
        
        document.write('<tr><td bgcolor="#000000"><font size="0" face="Arial">&nbsp;</font></td></TR></table>');

        if (IE) { document.write('</DIV>') }
        if (NS) { document.write('</LAYER>') }
        if (IE || NS) { makeStatic(); }
}


lastY = 0;
slideSpeed=60; 
waitTime=25; 
menuWidth=90; 
//startMenu();



