/*

	NOTE: This file is currently not used by any section of the website but is still included.

/*	
	=====================================================================================
	=	Returns the relvant background colour and image of the main section				=
	=====================================================================================
*/
	function getHoverColour(hoverSection)
		{
		switch (hoverSection)
			{
			case 'ms': return 'none';
			case 'as': return 'none';
			case 'rs': return 'none';				
			}
		}
		
/*	
	=====================================================================================
	=	Returns the relvant text colour of the main section								=
	=====================================================================================
*/
	function getHoverTextColour(hoverSection)
		{
		switch (hoverSection)
			{
			case 'ms': return '#FFF';
			case 'as': return '#FFF';
			case 'rs': return '#FFF';				
			}
		}		
		
/*	
	=====================================================================================
	=	Returns the relevant section ID													=
	=====================================================================================
*/
	function getHoverSectionID(hoverSection)
		{
		switch (hoverSection)
			{
			case 'ms': return '1';
			case 'as': return '2';
			case 'rs': return '3';				
			}
		}	
	
/*	
	=====================================================================================
	=	keeps the relevant main section active when its sub levels are moused over		=
	=====================================================================================
*/
	function hoverColourOn(hoverSection)
		{
		var bgcol = getHoverColour(hoverSection)
		var textcol = getHoverTextColour(hoverSection)
		document.getElementById(hoverSection).style.background = bgcol;
		document.getElementById(hoverSection).style.color = textcol;
		}
	
/*	
	=====================================================================================
	=	Sets the main section back to its original state on mouse out					=
	=====================================================================================
*/
	function hoverColourOff(hoverSection)
		{
		//document.getElementById(hoverSection).style.background = '#FFFFFF';
		var bgcol = getHoverColour(hoverSection);
		var textcol = getHoverTextColour(hoverSection)
		
		// Javascript variable iSectionID is set in every page via the file 'topnavigation_inc.asp'
		// from the asp variable of the same name 
		var activeSection = iSectionID; 
		
		var hoverSectionID = getHoverSectionID(hoverSection);

			if (activeSection == hoverSectionID)
			{
			// If the section is active, return it to that state
			document.getElementById(hoverSection).style.background = bgcol;
			document.getElementById(hoverSection).style.color = textcol;
			}
			else
			{
			document.getElementById(hoverSection).style.color = '#FFFFFF';
			}
		}						