function ChangeTopMenuColor(idwhat, whichway)
{
	if (whichway == "IN")
	{
		document.all.item(idwhat).style.backgroundColor = "rgb(0,36,66)";// "rgb(41,182,198)";
		document.all.item(idwhat).style.borderLeft = "rgb(0,36,66) 2px solid";//"rgb(41,182,198) 2px solid";
		document.all.item(idwhat).style.borderRight = "rgb(10,20,52) 2px solid"; // to seperate this cell from the next.
		document.all.item(idwhat).style.color = "rgb(182,254,255)"//"rgb(04,37,62)"
		switch (idwhat)	//show the respective drop down menu
		{
			case 'tdDiv':
				document.all['imgline'].style.visibility = 'hidden';
				document.all['Divisions'].style.visibility = 'visible';
				break
			case 'tdPro':
				document.all['Products'].style.visibility = 'visible';
				break
			case 'tdSer':
				document.all['Services'].style.visibility = 'visible';
				break
			case 'tdInd':
				document.all['Industries'].style.visibility = 'visible';
				break
		}
	}
	else
	{
		document.all.item(idwhat).style.backgroundColor = "rgb(0,52,99)";
		document.all.item(idwhat).style.borderLeft = "rgb(41,97,148) 2px solid";
		document.all.item(idwhat).style.borderRight = "rgb(10,20,52) 2px solid";
		document.all.item(idwhat).style.color = "rgb(255,255,255)"
		document.all['imgline'].style.visibility = 'visible';
		hideMenu()
	}
}

function initialize()
{
	hideMenu()
	//startTicker()
	document.all.item("imgBannerExt").src = "../images/SWater/supwattopban14.jpg"
}

function hideMenu()
{
	document.all['Divisions'].style.visibility = 'hidden';
	document.all['Products'].style.visibility = 'hidden';
	document.all['Services'].style.visibility = 'hidden';
	document.all['Industries'].style.visibility = 'hidden';
	document.all['Rentals'].style.visibility = 'hidden';
	document.all['Sell/Trade Your Equipment'].style.visibility = 'hidden';
	//document.all['Logistics'].style.visibility = 'hidden';
	document.all['Media'].style.visibility = 'hidden';
}

function subMenuEffects(idwhat, whichway)
{
	if (whichway == "IN")
	{
		document.all.item(idwhat).style.backgroundImage = "url(../images/SWater/supwathl.gif)"
		document.all.item(idwhat).style.color = "rgb(255,255,255)"
	}
	else
	{
		document.all.item(idwhat).style.backgroundImage = "none" //"url(../images/Home/searchgradient.gif)"
		document.all.item(idwhat).style.backgroundColor = "rgb(255,255,255)"
		document.all.item(idwhat).style.color = "rgb(77,77,77)"
	}
	
}

function ChangeMenuBkgd(idwhat, whichway)
{
	var bVisibleHidden
	if (whichway == "IN")
	{
		//document.all.item(idwhat).style.backgroundColor = "rgb(255,102,0)"
		document.all.item(idwhat).style.backgroundImage = "url(../images/SWater/supwathl.gif)"
		document.all.item(idwhat).style.color = "rgb(255,255,255)"
		document.all.item('img'+ idwhat).src = "../images/SWater/supwatarrowhlmenu.gif"
		hideMenu()
		bVisibleHidden = 'visible'
		
	}
	else
	{
		document.all.item(idwhat).style.backgroundImage = "none"
		document.all.item(idwhat).style.backgroundColor = "rgb(255,255,255)"
		document.all.item('img'+ idwhat).src = "../images/WRS/wrsmenuarrow.gif"
		document.all.item(idwhat).style.color = "rgb(77,77,77)"
		bVisibleHidden = 'hidden'
	}
	switch(idwhat)
		{
			case 'tdM1':
				document.all.item('Rentals').style.visibility = bVisibleHidden;
				break
			case 'tdM2':
				document.all.item('Sell/Trade Your Equipment').style.visibility = bVisibleHidden;
				break
			case 'tdM4':
				//document.all['Logistics'].style.visibility = bVisibleHidden;
				break
			case 'tdM5':
				document.all['Media'].style.visibility = bVisibleHidden;
				break
		}
	
}

function ChangeCatStyle(idwhat,whichway)
{
	if (whichway == "IN")
	{
		document.all.item(idwhat).src = "../images/SWater/supwatarrowhlcateg.gif"
		idwhat = idwhat.replace('img','td')
		document.all.item(idwhat).style.color = "rgb(41,97,148)"
	}
	else
	{
		document.all.item(idwhat).src = "../images/wwm/wwmmenuarrow.gif"
		idwhat = idwhat.replace('img','td')
		document.all.item(idwhat).style.color = "rgb(77,77,77)"
	}
}

