window.onload = function()
{
	if(document.all && document.getElementById)
	{
		var navRoot = document.getElementById("nav");

		for (var i=0; i<navRoot.childNodes.length; i++)
		{
			var node = navRoot.childNodes[i];

			if (node.nodeName == "LI")
			{
				node.onmouseover = function()
				{
					this.className += " over";
				}

				node.onmouseout = function()
				{
					this.className = this.className.replace(" over", "");
				}

				for(var j=0; j<node.childNodes.length; j++)
				{

					var node2 = node.childNodes[j];

					if(node2.nodeName == "UL")
					{
						for(var k = 0; k<node2.childNodes.length; k++)
						{
							var node3 = node2.childNodes[k];

							if (node3.nodeName == "LI")
							{
								node3.onmouseover = function()
								{
									this.className += " over";
								}
		
								node3.onmouseout = function()
								{
									this.className = this.className.replace(" over", "");
								}
							}
						}
					}
				}
			}
		}
	}
}

window.onresize = function()
{
	var n = document.getElementById("homelink");
	n.className += " over";
	n.className = n.className.replace(" over", "");
}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=632,height=500,left=10,top=20');");
}

function popUp2(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=670,height=580,left=10,top=20');");
}
