// JavaScript Document
function submenu (menuName, force) {
	
	//set up array with the the menu IDs in
	var menuIds = new Array("whatcani", "whoarewe", "toptips", "whyrecycle")
	
	//count the length of the array
	var idLength = menuIds.length
	
	var multiSub = menuName.split(",")
	var multiLength = multiSub.length

	//loop through the array and set each menu class to submenu - this will hide each menu items sub-section
	
	if(document.getElementById(multiSub[0]).className == 'submenuover') {
		document.getElementById(multiSub[0]).className = 'submenu'
	} else {
		for (i=0; i<idLength; i++) {
			document.getElementById(menuIds[i]).className = 'submenu'
		}
		for (i=0; i<idLength; i++) {
			for(j=0; j<multiLength; j++) {
				if (menuIds[i] == multiSub[j]) {
					document.getElementById(menuIds[i]).className = 'submenuover'
				}
			}
		}
	}
}