
 	var timeout; 
	var timeout_1;
	var delay = 100;

 	
     $(document).ready(function(){
	 	
		function hideMainMenu(){
			
			$("#aboutsus").hide();
			$("#products").hide();		
			$("#unique3s").hide();		
			
			
		}
	 
	 function highlight(){
			 var maskHeight = $(document).height();        
			 var maskWidth = $(window).width();             
			 $('#mask').css({'width':maskWidth,'height':maskHeight,'left':0,'top':0});                   
			  
			//$('#mask').fadeIn(500);            
			$('#mask').fadeTo("fast",0.4);  
			
		
	 }
	 
	 	 function deHighlight(){
			$('#mask, .window').hide(); 
		
	 }
	 

	   $("#1").mouseover(function(event){
								  
			
			hideMainMenu();
			
		
			highlight();
			
			
	   		var screenRes=0;
			var screenLeft=0;
			//alert(window.document.body.scrollWidth);
			
	   		$("#1").attr("src", "http://www.etoyotaindia.com/dealerV9/images/about-btn2.jpg"); 
		//	screenRes=top.outerWidth - 954; //Document width - Table Width
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
		//alert((window.document.body.offsetWidth-33));
	//alert(top.outerWidth + " - " + window.document.body.offsetWidth);
			if((window.document.body.offsetWidth -33)<= 924){
				//alert("here");
				screenLeft= 20;  
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (screenRes/2)+3;  
				}else{
				screenLeft= (screenRes/2)-7;	
				}
		}
			
			$("#aboutus").css({"left": screenLeft + "px"});
			$("#aboutus").show("slow");
			
			
		
       });

		 $("#1").mouseout(function(event){
		 	 
			 timeout = setTimeout(function() {           
		 		$("#aboutus").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 
			 $("#1").attr("src", "http://www.etoyotaindia.com/dealerV9/images/about-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#aboutus").mouseover(function(event){
     		if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 
				highlight();
				
				 $("#1").attr("src", "http://www.etoyotaindia.com/dealerV9/images/about-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#aboutus").mouseout(function(event){
		 
     		 timeout = setTimeout(function() {           
		 		$("#aboutus").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 
			 $("#1").attr("src", "http://www.etoyotaindia.com/dealerV9/images/about-btn1.jpg"); 
			
		});
		
		
		
		//----------------------------------
		
		  $("#2").mouseover(function(event){
			
			hideMainMenu();
			highlight();		 
	   		var screenRes=0;
			var screenLeft=0;
			//alert(window.document.body.scrollWidth);
			
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
		//	screenRes=top.outerWidth - 954; //Document width - Table Width
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
		//alert((window.document.body.offsetWidth-33));
	//alert(top.outerWidth + " - " + window.document.body.offsetWidth);
			if((window.document.body.offsetWidth -33)<= 924){
				//alert("here");
				screenLeft= 0;  
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (screenRes/2)-17;  
				}else{
				screenLeft= (screenRes/2)-27;	
				}
		}
			
			$("#products").css({"left": screenLeft + "px"});
			$("#products").show("slow");
		
       });

		 $("#2").mouseout(function(event){
		 	 
			 timeout = setTimeout(function() {           
		 		$("#products").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products").mouseover(function(event){
     		if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
			 } 
			 	highlight();
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products").mouseout(function(event){
		 
     		 timeout = setTimeout(function() {           
		 		$("#products").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
       	
		//------------------------------------------------
		
		
		 $("#2-1").mouseover(function(event){
					  
			productsHide();	
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +68 )-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 68)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 68)-111;	
				}
		}
			
			$("#products-2-1").css({"left": screenLeft + "px"});
			$("#products-2-1").show();
			
       });

		 $("#2-1").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-1").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-1").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-1").hide();
				
				 timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
       	
		//-----------------------------------------------------------------
		
		
		 $("#2-2").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +204)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 204)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 204)-111;	
				}
		}
			
			$("#products-2-2").css({"left": screenLeft + "px"});
			$("#products-2-2").show();
			
       });

		 $("#2-2").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-2").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-2").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-2").hide();
				
				 timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		//----------------------------------------------------------------------
		
		
		 $("#2-3").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +340)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 340)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 340)-111;	
				}
		}
			
			$("#products-2-3").css({"left": screenLeft + "px"});
			$("#products-2-3").show();
			
       });

		 $("#2-3").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-3").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-3").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-3").hide();
				
				 timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		
		//-----------------------------------------------------------------------
		 $("#2-4").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +476)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 476)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 476)-111;	
				}
		}
			
			$("#products-2-4").css({"left": screenLeft + "px"});
			$("#products-2-4").show();
			
       });

		 $("#2-4").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-4").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-4").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-4").hide();
				timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		//-----------------------------------------------------------------------
		
		 $("#2-5").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +612)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 612)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 612)-111;	
				}
		}
			
			$("#products-2-5").css({"left": screenLeft + "px"});
			$("#products-2-5").show();
			
       });

		 $("#2-5").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-5").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-5").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-5").hide();
				 timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		//------------------------------------------------------------------------
		
		 $("#2-6").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +748)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 748)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 748)-111;	
				}
		}
			
			$("#products-2-6").css({"left": screenLeft + "px"});
			$("#products-2-6").show();
			
       });

		 $("#2-6").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-6").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-6").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-6").hide();
				timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		 //--------------------------------------------------------------------
		 	 $("#2-7").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +884)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 884)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 884)-111;	
				}
		}
			
			$("#products-2-7").css({"left": screenLeft + "px"});
			$("#products-2-7").show();
			
       });

		 $("#2-7").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-7").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-7").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-7").hide();
				
				 timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		 
		 //------------------------------------------------------------------------
		  	 $("#2-8").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +68)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 68)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 68)-111;	
				}
		}
			
			$("#products-2-8").css({"left": screenLeft + "px"});
			$("#products-2-8").show();
			
       });

		 $("#2-8").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-8").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-8").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-8").hide();
				
				 timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		 //---------------------------------------------------------------------
		   	 $("#2-9").mouseover(function(event){
			productsHide();				  
	   		var screenRes=0;
			var screenLeft=0;
				
	   		$("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
			if((window.document.body.offsetWidth -33)<= 924){
			
				
					screenLeft= (0 +204)-111;
				
				
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (((screenRes/2)-17) + 204)-111;  
				
				}else{
				screenLeft= (((screenRes/2)-27) + 204)-111;	
				}
		}
			
			$("#products-2-9").css({"left": screenLeft + "px"});
			$("#products-2-9").show();
			
       });

		 $("#2-9").mouseout(function(event){
		 	 
		 
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#products-2-9").mouseover(function(event){
			 if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 								   
											   
			 if (timeout_1) {             
				 clearTimeout(timeout_1);             
				 timeout_1 = null;
				 } 
				 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#products-2-9").mouseout(function(event){
			timeout = setTimeout(function() {     
									   
		 		$("#products").hide();
				deHighlight();
				 timeout = null;       
			 }, delay)				  
					
     		 timeout_1 = setTimeout(function() {     
									   
		 		$("#products-2-9").hide();
				
				 timeout_1 = null;       
			 }, delay)
			 $("#2").attr("src", "http://www.etoyotaindia.com/dealerV9/images/product-btn1.jpg"); 
			
		});
		 
		//-----------------------------------------------------------------------
		function productsHide(){
			for (i=1;i<=9;i++){
				$("#products-2-" + i).hide();	
			}
				
		}
		
		
		
		
		//-----------------------------------------------------
		
		/*
		  $("#3").mouseover(function(event){
								  
			
			hideMainMenu();
			
		
			highlight();
			
			
	   		var screenRes=0;
			var screenLeft=0;
			//alert(window.document.body.scrollWidth);
			
	   		$("#3").attr("src", "http://www.etoyotaindia.com/dealerV9/images/unique-btn2.jpg"); 
		//	screenRes=top.outerWidth - 954; //Document width - Table Width
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
		//alert((window.document.body.offsetWidth-33));
	//alert(top.outerWidth + " - " + window.document.body.offsetWidth);
			if((window.document.body.offsetWidth -33)<= 924){
				//alert("here");
				screenLeft= 20;  
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (screenRes/2)+3+226;  
				}else{
				screenLeft= (screenRes/2)-7+226;	
				}
		}
			
			$("#unique3s").css({"left": screenLeft + "px"});
			$("#unique3s").show("slow");
			
			
		
       });

		 $("#3").mouseout(function(event){
		 	 
			 timeout = setTimeout(function() {           
		 		$("#unique3s").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 
			 $("#3").attr("src", "http://www.etoyotaindia.com/dealerV9/images/unique-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#unique3s").mouseover(function(event){
     		if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 
				highlight();
				
				 $("#3").attr("src", "http://www.etoyotaindia.com/dealerV9/images/unique-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#unique3s").mouseout(function(event){
		 
     		 timeout = setTimeout(function() {           
		 		$("#unique3s").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 
			 $("#3").attr("src", "http://www.etoyotaindia.com/dealerV9/images/unique-btn1.jpg"); 
			
		});
		 
		 */
		 //--------------------------------------------------------------------------
		
		
		 $("#4").mouseover(function(event){
								  
			
			hideMainMenu();
			
		
			highlight();
			
			
	   		var screenRes=0;
			var screenLeft=0;
			//alert(window.document.body.scrollWidth);
			
	   		$("#4").attr("src", "http://www.etoyotaindia.com/dealerV9/images/accesso-btn2.jpg"); 
		//	screenRes=top.outerWidth - 954; //Document width - Table Width
			screenRes=(window.document.body.offsetWidth +33) - 954; //Document width - Table Width
		//alert((window.document.body.offsetWidth-33));
	//alert(top.outerWidth + " - " + window.document.body.offsetWidth);
			if((window.document.body.offsetWidth -33)<= 924){
				//alert("here");
				screenLeft= 20;  
			}else{
				if(navigator.appName=="Netscape"){
					screenLeft= (screenRes/2)+3+339;  
				}else{
				screenLeft= (screenRes/2)-7+339;	
				}
		}
			
			$("#accessories").css({"left": screenLeft + "px"});
			$("#accessories").show("slow");
			
			
		
       });

		 $("#4").mouseout(function(event){
		 	 
			 timeout = setTimeout(function() {           
		 		$("#accessories").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 
			 $("#4").attr("src", "http://www.etoyotaindia.com/dealerV9/images/accesso-btn1.jpg"); 
			 
			  
		 });
	
		
		 $("#accessories").mouseover(function(event){
     		if (timeout) {             
				 clearTimeout(timeout);             
				 timeout = null;
				 } 
				highlight();
				
				 $("#4").attr("src", "http://www.etoyotaindia.com/dealerV9/images/accesso-btn2.jpg"); 
				 return false;
		});
		
		
		 $("#accessories").mouseout(function(event){
		 
     		 timeout = setTimeout(function() {           
		 		$("#accessories").hide("fast");
				deHighlight();
				 timeout = null;       
			 }, delay)
			 
			 $("#4").attr("src", "http://www.etoyotaindia.com/dealerV9/images/accesso-btn1.jpg"); 
			
		});

		$("#testdriveclose").click(function(event){
		 	 
			 $("#test-drive").slideToggle("fast");
			  $('#mask-test, .window').hide(); 
			  
		 });

		$("#testdriveclose-1").click(function(event){
		 	 
			 $("#test-drive").slideToggle("fast");
			  $('#mask-test, .window').hide(); 
			  
		 });


		 $("#quick").click(function(event){
		 	 $("#quick-tab").slideToggle('slow');
			 
			 if($("#quick").attr("src").indexOf("plus.jpg")>=0){
			  $("#quick").attr("src", "http://www.etoyotaindia.com/dealerV9/images/minus.jpg"); 
			 }
			 else
			 {
			 $("#quick").attr("src", "http://www.etoyotaindia.com/dealerV9/images/plus.jpg"); 
			 }
			
		});
		
		 
		

     });
  

  
