

// SHOWS/HIDES SUB MENUS WHEN MOUSE ROLLS OVER AND OFF MAIN MENU OPTIONS
// num PARAMETER IS NUMBER OF MAIN MENU OPTION MOUSE HAS ROLLED OVER
function switchMenu(num)
{
	for (count=0; count < 8 ; count++)	//CYCLE THROUGH ALL MENUS
	{
		var whichMenu = "menu" + count;	//BUILD MENU ID
		var whichHeading = "hdg" + count;

		if (count == num)					//IF MOUSE OVER THIS OPTION, MAKE ITS SUB MENU VISIBLE AND SET OPTION COLOUR TO colour specified
		{
			document.getElementById(whichMenu).style.visibility="visible";
			document.getElementById(whichHeading).style.color="#000000";
		}
		else								//OTHERWISE HIDE SUB MENU AND SET OPTION COLOUR TO the colour specified, usually GREY
		{
			document.getElementById(whichMenu).style.visibility="hidden";
			document.getElementById(whichHeading).style.color="#999999";
		}
	}
}
function showServices()
{
	// SERVICES IS SPECIAL CASE, SHOW PANEL ON LOADING PAGE Colour setting affects inital load screen colour only, other colours are applied after rollover
	document.getElementById('hdg0').style.color="#000000";
	document.getElementById('menu0').style.visibility="visible";
}


// POP-UP info box function

function rollover(num)
{
	for (count=1; count<100; count++)
	{
		if (count == num)
		{
			document.getElementById(count).style.visibility="visible";
		}
		else
		{
			document.getElementById(count).style.visibility="hidden";
		}
	}
}
function hideAll()
{
	if (document.getElementById)
	{
		for (count=1; count<100; count++)
		{
			document.getElementById(count).style.visibility="hidden";
		}
	}
}




 

