var w=1
var wx=1
var npx=1
var np=1 


function wplus(w){
  document.getElementById('waffleplus').style.visibility='visible';
  document.getElementById('w'+w).style.visibility='visible';
  navplusx();
  wx=w;}

function wplusx(){
  document.getElementById('w'+wx).style.visibility='hidden';
  document.getElementById('waffleplus').style.visibility='hidden';
  wwplusx()
  }
  
function navcol(w){
  document.getElementById('n'+w).style.backgroundColor= '#11FF00';
  gloff();
  }
  
function navcolx(){
  document.getElementById('n'+wx).style.backgroundColor= 'transparent';
  }

function glon(){
  document.getElementById("gl").style.backgroundColor= '#11FF00';
  }
  
function gloff(){
  document.getElementById('gl').style.backgroundColor= 'transparent';
  }

  
function navplus(){
  document.getElementById('navplus').style.visibility='visible';
  }
  
function navplusx(){
document.getElementById('navplus').style.visibility='hidden';
  }
  
 
  
function wwplus(np){  
  document.getElementById('np'+np).style.visibility='visible';
  npx=np;
  document.getElementById('npp'+np).style.backgroundColor= '#11FF00';
  }

function wwplusx(){  
  document.getElementById('np'+npx).style.visibility='hidden';
  document.getElementById('npp'+npx).style.backgroundColor= 'transparent';
  }

function buy(){
  if(w=9){
  document.getElementById('manu').style.visibility='visible';
  document.getElementById('auto').style.visibility='visible';}
  else;{
  document.getElementById('manu').style.visibility='hidden';
  document.getElementById('auto').style.visibility='hidden';
  }
  return;
  }





var q = 1;
var newpos=70;
var sp=0
var quID = null
var rst=0
  
function quicker(){q++;
  if(newpos>900){
  document.getElementById('gocar').style.backgroundImage='Url(images/noplates.gif)';rst=1;
  return};  
  newpos=newpos+(q/4);var zip=(100/q);rst=0;
  document.getElementById('gocar').style.left=newpos+'px';quID = setTimeout("pause()",zip);  
}

function pause(){clearTimeout(quID);quicker();}

function reset(){
  if(rst>0){
  newpos=70;q=1;
  document.getElementById('gocar').style.backgroundImage='Url(images/mota.gif)';
  return;}
  else;{return;}
  }

function newcar1(){
  document.getElementById('g2').style.backgroundImage='Url(images/carbox.gif)';
  setTimeout("newcar2()",100);
}

function newcar2(){
  document.getElementById('g2').style.backgroundImage='Url(images/motax.gif)';
}

function contact1(){
 document.getElementById('g1').style.backgroundImage='Url(images/free.gif)';
  setTimeout("contact2()",3000); 
}

function contact2(){
 document.getElementById('g1').style.backgroundImage='Url(images/or1.gif)';
  setTimeout("contact3()",1400); 
}

function contact3(){
 document.getElementById('g1').style.backgroundImage='Url(images/mail.gif)';
  setTimeout("contact4()",3000);
}

function contact4(){
 document.getElementById('g1').style.backgroundImage='Url(images/or2.gif)';
  setTimeout("contact5()",1400);
}

function contact5(){
 document.getElementById('g1').style.backgroundImage='Url(images/text.gif)';
  setTimeout("contact6()",3000);
}

function contact6(){
 document.getElementById('g1').style.backgroundImage='Url(images/fade.gif)';
  setTimeout("contact1()",1400);
}
