// Variable declaration for _menu
if (document.images)
{
	/* _menu */
	/* ******** */
	homeOff = new Image();
	homeOff.src = '/_img/_menu2/home-off.gif';
	homeOn = new Image();
	homeOn.src = '/_img/_menu2/home-on.gif';
	
	aboutusOff = new Image();
	aboutusOff.src = '/_img/_menu2/aboutus-off.gif';
	aboutusOn = new Image();
	aboutusOn.src = '/_img/_menu2/aboutus-on.gif';
	
	isuzuOff = new Image();
	isuzuOff.src = '/_img/_menu2/isuzu-off.gif';
	isuzuOn = new Image();
	isuzuOn.src = '/_img/_menu2/isuzu-on.gif';
	
	chevroletOff = new Image();
	chevroletOff.src = '/_img/_menu2/chevrolet-off.gif';
	chevroletOn = new Image();
	chevroletOn.src = '/_img/_menu2/chevrolet-on.gif';
	
	othervehiclesOff = new Image();
	othervehiclesOff.src = '/_img/_menu2/othervehicles-off.gif';
	othervehiclesOn = new Image();
	othervehiclesOn.src = '/_img/_menu2/othervehicles-on.gif';
	
	serviceOff = new Image();
	serviceOff.src = '/_img/_menu2/service-off.gif';
	serviceOn = new Image();
	serviceOn.src = '/_img/_menu2/service-on.gif';
	
	accessoriesOff = new Image();
	accessoriesOff.src = '/_img/_menu2/accessories-off.gif';
	accessoriesOn = new Image();
	accessoriesOn.src = '/_img/_menu2/accessories-on.gif';
	
	tradeenquiriesOff = new Image();
	tradeenquiriesOff.src = '/_img/_menu2/tradeenquiries-off.gif';
	tradeenquiriesOn = new Image();
	tradeenquiriesOn.src = '/_img/_menu2/tradeenquiries-on.gif';
	
	contactusOff = new Image();
	contactusOff.src = '/_img/_menu2/contactus-off.gif';
	contactusOn = new Image();
	contactusOn.src = '/_img/_menu2/contactus-on.gif';
}

// Variable to store the last viewed submenu
previousSubMenuId = null;

function menuOn(swapObj,submenu)
{
	swapObj.src = eval(swapObj.id + "On.src");
	// Before we hide the previous submenu make sure
	// there is something to hide in the first place
	// and that it is not the submenu of the highlighted
	// menu item.
	if ((previousSubMenuId != null)
		&& (previousSubMenuId != swapObj.id + "SubMenu"))
	{
		hideSubMenu(previousSubMenuId);
		previousSubMenuId = null;
	}
	// Before we show a menu items submenu make sure
	// that this menu item has a submenu first of all
	// and that it is not already being shown
	if ((submenu)
		&& (previousSubMenuId != swapObj.id + "SubMenu"))
	{
		previousSubMenuId = swapObj.id + "SubMenu";
		showSubMenu(previousSubMenuId);
	}
}

function menuOff(swapObj)
{
	swapObj.src = eval(swapObj.id + "Off.src");
}

function showSubMenu(id)
{
	document.getElementById("blankSubMenu").style.display = 'none';
	document.getElementById(id).style.display = 'block';
	document.getElementById(id).style.visibility = 'visible';
}

function hideSubMenu(id)
{
	document.getElementById("blankSubMenu").style.display = 'block';
	document.getElementById(id).style.display = 'none';
	document.getElementById(id).style.visibility = 'hidden';
}

function powerchipsWindow()
{
	window.open('powerchips.php','Powerchips','height=342,width=671,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,toolbar=0');
}