// JavaScript Document - this removes the navigation indicator image in the CSS on levels above the current active one

function altermenu_level3(){
	if (document.getElementsByTagName){								// Check that browser supports DOM method
		var lists = document.getElementsByTagName('ul');			// Get lists in document
		var numlists = lists.length;
			for (var a = 0; a < numlists; ++a){						// Loop through elements returned
			var a_minus_1 = a-1;									// get the array value 1 level above
			if (lists[a].className == 'menu_level_4_active'){
				//var odd = a_minus_1%2;								// modulus the array index
				//if(odd != 0){										// if the modulus is odd you want to affect the third level nav
					lists[1].className = 'remove_image';			// alter the class of the level above (make non active)
					//alert(a_minus_1);								// view the class returned
				//}
			}
		}
	}
}

// this gets the 5th level nav element and alters its parent which is 1 level up - hence the i_minus_1
function altermenu_level4(){
	if (document.getElementsByTagName){								// Check that browser supports DOM method
		var lists = document.getElementsByTagName('ul');			// Get lists in document
		var numlists = lists.length;
			for (var i = 0; i < numlists; ++i){						// Loop through elements returned
			var i_minus_1 = i-1;									// get the array value 1 level above
			if (lists[i].className == 'menu_level_5_active'){
				lists[i_minus_1].className = 'menu_level_4';
				//alert(lists[i_minus_1].className);				// view the class returned
			}
		}
	}
}