/**
 * Confluence.js
 * Contains common functions for the confluence site
 *
 * @author : Sunder Srinivasan
 */

// function adds mouseover class to the li elements of the nav
// only for IE ... as it is a sucky browser.		
function activateMenu() {
	// if IE process
	if (navigator.appName == "Microsoft Internet Explorer") {
		// get the nav ul
		var liArr = document.getElementById("tn").getElementsByTagName("li");				
		// cycle through the li els and add the mouseover action				
		for (i=0; i<liArr.length; i++) {
			liArr[i].onmouseover=function() {this.className+=" over";}
			liArr[i].onmouseout=function() {this.className=this.className.replace(" over", "");}
		}
	}
}
// add onload for navMenu
window.onload=function() {activateMenu()};
