
function modulesMenu()	{

	/* check the browser is capable of recognising the DOM objects
	   we need to implement the script - otherwise return false and allow the normal link to be executed */
	   
	if(!document.getElementsByTagName) return false;
	if(!document.getElementById) return false;
	if(!document.getElementById("moduleList")) return false;
	

	var dropDowns = document.getElementById("moduleList").getElementsByTagName("li"); 

			

	if (dropDowns.length > 0) {
		
			for(i = 0; i < dropDowns.length; i++) {

					
						
						
						
						if (dropDowns[i].className == "viewRange") {
												

												dropDowns[i].onmouseover = function() {
										
												
														showMenu(this)
											
													}
													
														dropDowns[i].onmouseout = function() {
								
															hideMenu(this)
											
														}													
													
												
																		
						}
																															
			}
			
	}	   
	
}


function showMenu(subMenu)	{
	
	
		if(subMenu.className == "viewRange") {

			document.getElementById("modulesIndicator").src = "images/modules_on.jpg"
			document.getElementById("modulesHeaderFooter").src = "images/modules_header_footerBlue.jpg"
		}
		

	if (subMenu.hasChildNodes){
		


		children = subMenu.childNodes
				
			for(j=0 ; j < children.length; j++) {
							
									
				if(children[j].nodeName == "UL") {
						//alert(children[j].nodeName)

					node = children[j]

					node.style.display = "block"

				}	
								
			
		}
	
	}
	
return true

}






function hideMenu(subMenu)	{
	
				document.getElementById("modulesIndicator").src = "images/modules_off.jpg"
				//document.getElementById("modulesHeaderFooter").src = "images/modules_header_footerWhite.jpg"
				//node.style.display = "none"
								
								
return true
}



