var pop = null;
function popdown() 
{
	if (pop && !pop.closed) pop.close();
}

function popup(url,width,height) 
{
	var xwidth = (screen.width - width)/2; 
	var xheight = (screen.height - height)/2 - 60;   
	var args = 'width=' + width + ',height=' + height + ', top=' + xheight + ', left=' + xwidth + ', resizable=no, menubar=no, status=no, toolbar=no, location=no, dependent=yes, scrollbars=yes';
	popdown();
	pop = window.open(url,'',args);
	return (pop) ? false : true;
}

window.onunload = popdown;
window.onfocus = popdown;

function toggle_subinfo(id)
{
	if (document.getElementById("subinfo_"+id).style.display == "block")
	{
		document.getElementById("subinfo_"+id).style.display = "none";
	}
	else
	{
		document.getElementById("subinfo_"+id).style.display = "block";
	}
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;
