// for global navigation script - Copyrihgt rentame (http://www.rentame.jp/)
// Last updated: 20080619

function globalFn() {
	var globalList = document.getElementsByTagName("li");
	for(var i = 0; i < globalList.length; i++) {
		if (globalList[i].className != "") {
			globalList[i].onmouseover = function() {
				this.className = this.className.replace(/ off/, " on");
			}
			globalList[i].onmouseout = function() {
				this.className = this.className.replace(/ on/, " off");
			}
		}
	}
}

/*
function showmenu() {
	var elemId = this.id.substr(3); // search, browser
	var elem = document.getElementById(elemId);
	elem.style.visibility = "visible";
}

function hidemenu() {
	var elemId = this.id.substr(3); // search, browser
	var elem = document.getElementById(elemId);
	elem.style.visibility = "hidden";
}
*/


/*
function globalFn() {
	var elements = document.getElementsByClassName("summary");
	for (cnt = 1 ; cnt <= elements.length ; cnt++) {
		var list = document.getElementById("prof" + cnt);
		var detail = list.getElementsByTagName("dl").item(0).getElementsByTagName("dd").item(6);
		detail.onmouseover = function() {
			this.parentNode.parentNode.className = this.parentNode.parentNode.className.replace(/off/, "on");
		}
		detail.onmouseout = function() {
			this.parentNode.parentNode.className = this.parentNode.parentNode.className.replace(/on/, "off");
		}
	}
}
*/


try{
	window.addEventListener("load",globalFn,false);
}catch(e){
	window.attachEvent("onload",globalFn);
}

