var numCategories = 9;//number of subcategories
var activebg = "url(images/subcatactivebg.png) #C67131";//path to background while active (mouse is over)
var inactivebg = "url(images/inactivetabBg.gif) #3B538B";//path to background image while inactive

function showhide(divtoshow)//divtoshow is the currently selected game submenu category links/content
{
	for(var x=0; x<numCategories; x++)
	{
		//hide all sub category links content
		document.getElementById("gamescontent"+(x+1)).style.display="none";
		//show selected subcategory links content
		document.getElementById("gamescontent"+divtoshow).style.display="block";
		//set all tab background colors to inactive bg image
		document.getElementById("gamestab"+(x+1)).style.background=inactivebg;
		//set selected tab bg to active bg image
		document.getElementById("gamestab"+divtoshow).style.background=activebg;
	}
}

