// JavaScript Document
	/***********************************/
function getQueryVariable(variable) 
{ 
  var query = window.location.search.substring(1); 
  var vars = query.split("&"); 
  for (var i=0;i<vars.length;i++) 
  { 
    var pair = vars[i].split("="); 
    if (pair[0] == variable) 
	{ 
      return pair[1]; 
    } 
  }
} 

function itemclickAboutUs(item) {
    if (item == "aboutUs") {
        document.getElementById("img" + item).src = "images/" + item + "Red.gif";
        document.getElementById("imgaboutUsNA").src = "images/aboutUsNALgray.gif";
    
        //added by yugal
    }
    else if (item == "aboutUsNA") {
        document.getElementById("img" + item).src = "images/" + item + "Red.gif";
        document.getElementById("imgaboutUs").src = "images/aboutUsLgray.gif";

    }

}

	
function itemclick(item)
{
	if(item=="overview")
	{
		document.getElementById("img"+item).src="images/"+item+"Red.gif";
		document.getElementById("imgvid").src="images/vidLgray.gif";
		var imgpassengerCar = document.getElementById("imgpassengerCar");
		if( imgpassengerCar != null)
		{
		 document.getElementById("imgpassengerCar").src="images/passengerCarLgray.gif";
		}
		var imgtechSpecific = document.getElementById("imgtechSpecific");
		if(imgtechSpecific != null)
		{
		  document.getElementById("imgtechSpecific").src="images/techSpecificLgray.gif";
        }

        //added by yugal
        if (document.getElementById('VideoPlaceHolder') != null) {
            document.getElementById('VideoPlaceHolder').style.display = 'none';            
            document.getElementById('VideoPlaceHolder').innerHTML = '';            
        }
        if (document.getElementById('imgMain') != null) {
            document.getElementById('imgMain').style.display = '';
            document.getElementById('imgMain').src = "images/1_AI.jpg";
        }
        if (document.getElementById('imgMainVH') != null) {
            document.getElementById('imgMainVH').style.display = '';
            document.getElementById('imgMainVH').src = "images/1_AI.jpg";
        }
        if (document.getElementById('imgChange') != null) {
            document.getElementById('imgPlaceHolder').style.display = ''; 
            document.getElementById('imgChange').style.display = '';
            document.getElementById('imgChange').src = "images/1_I.jpg";            
        }    
        //added by yugal
	}
	else if(item=="vid")
	{
		document.getElementById("img"+item).src="images/"+item+"Red.gif";
		document.getElementById("imgoverview").src="images/overviewLgray.gif";
		var imgpassengerCar = document.getElementById("imgpassengerCar");
		if( imgpassengerCar != null)
		{
		  document.getElementById("imgpassengerCar").src="images/passengerCarLgray.gif";
		}
		var imgtechSpecific = document.getElementById("imgtechSpecific");
		if(imgtechSpecific != null)
		{
		 document.getElementById("imgtechSpecific").src="images/techSpecificLgray.gif";
		}
	
	}
	else if(item=="passengerCar")
	{
		document.getElementById("img"+item).src="images/"+item+"Red.gif";
		document.getElementById("imgoverview").src="images/overviewLgray.gif";
		document.getElementById("imgvid").src="images/vidLgray.gif";
		document.getElementById("imgtechSpecific").src="images/techSpecificLgray.gif";
	
	}
	else if(item=="techSpecific")
	{
		document.getElementById("img"+item).src="images/"+item+"Red.gif";
		document.getElementById("imgoverview").src="images/overviewLgray.gif";
		document.getElementById("imgvid").src="images/vidLgray.gif";
		document.getElementById("imgpassengerCar").src="images/passengerCarLgray.gif";
	
	}
}
	
function itemmouseover(item)
{
	var sourceimg=document.getElementById("img"+item).src;
	var sourceimg=sourceimg.substr(sourceimg.lastIndexOf("/")+1,sourceimg.length);			
	if (navigator.appName == "Netscape") 
    { 
      var sourceimg3 = item+"Red.gif";   
      
      if(sourceimg.lastIndexOf("%")> -1)
      {
        var sourceimg2 =sourceimg.substr(sourceimg.lastIndexOf("5C")+2,sourceimg.length);
     
        if(sourceimg2.toLowerCase()!= sourceimg3.toLowerCase())
	    {
	         document.getElementById("img"+item).src="images/"+item+"Dgray.gif"; 	    
	    }	  
      
      }
      else
      {
          if(sourceimg.toLowerCase()!= sourceimg3.toLowerCase())
	      {	  
	         document.getElementById("img"+item).src="images/"+item+"Dgray.gif"; 	    
	      }
	  }		   
    }
    else 
	{	  
	    if(sourceimg!=item+"Red.gif")
	    {
	        document.getElementById("img"+item).src="images/"+item+"Dgray.gif";
	    }	    
	 }
}

function itemmouseout(item)
{
	var sourceimg=document.getElementById("img"+item).src;
	var sourceimg=sourceimg.substr(sourceimg.lastIndexOf("/")+1,sourceimg.length);
	if (navigator.appName == "Netscape") 
    {  
      var sourceimg3 = item+"Red.gif";
      if(sourceimg.lastIndexOf("%")> -1)
      { 
        var sourceimg2 =sourceimg.substr(sourceimg.lastIndexOf("5C")+2,sourceimg.length);     
        if(sourceimg2.toLowerCase()!= sourceimg3.toLowerCase())
	    {
	         document.getElementById("img"+item).src="images/"+item+"Lgray.gif"; 	    
	    }	  
      
      }
      else
      { 
          if(sourceimg.toLowerCase()!= sourceimg3.toLowerCase())
	      {	  
	         document.getElementById("img"+item).src="images/"+item+"Lgray.gif"; 	    
	      }
	  }		  
    }
    else
    {
      if(sourceimg!=item+"Red.gif")
	    {
	     document.getElementById("img"+item).src="images/"+item+"Lgray.gif";
	    }
    }
	
}











	/******************************************/
	
	
	
