loadMenu = function(menu) {
	if (document.all && document.getElementById(menu).currentStyle) {  // IE users only need apply
        var navroot = document.getElementById(menu);
        
        // Get all the list items within the menu and apply onhover effects
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
            if(lis[i].lastChild.tagName=="UL"){
             	lis[i].onmouseover=function() {	
					this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}

/* swap visibility of divs */
function showHide(id) {

	if (document.getElementById(id).style.display=='block'){
		document.getElementById(id).style.display='none';
	} else {
		document.getElementById(id).style.display='block';
	}
}

/* swap visibility of divs */
function xshowHide(id) {

	if (document.getElementById(id).style.visibility=='visible'){
		document.getElementById(id).style.visibility='hidden';
	} else {
		document.getElementById(id).style.visibility='visible';
	}
}