var boxTimer = new Array();
function show(id)	{
	if (typeof boxTimer[id] == "undefined") boxTimer[id] = false;
	if (window.showingId && window.showingId != id) document.getElementById(window.showingId).style.display='none';
	document.getElementById(id).style.display='block';
	document.getElementById(id).onmouseout = function(e) {
		if (!e) e = window.event;
		if(e.toElement && (p = e.toElement)) if (p.className != "infoBox" && p.parentElement.className != "infoBox") document.getElementById(id).style.display='none';
		if (e.target != e.explicitOriginalTarget) document.getElementById(id).style.display='none';
	}
	window.showingId = id;
}

function stopHide(id)	{
	clearTimeout(boxTimer[id]);
	boxTimer[id]=false;
}

function startHide(id)	{
	boxTimer[id]=setTimeout("document.getElementById('" + id + "').style.display='none';boxTimer['" + id + "']=false;", 1000);
}

function menuHover(obj, mode)	{
	if ((!obj.className || (obj.className == "")) && mode == "in") obj.className = "hover";
	if (obj.className && (obj.className == "hover") && mode == "out") obj.className = "";
}

function pageLoad(href)	{
	document.location.href = href;
}
