function initPage()
{
	var menu = document.getElementById("slide");
	
	if (menu)
	{
		var nodes = menu.getElementsByTagName("li");
		
		nodes[0].className = "";
	
		for (var i = 0; i < nodes.length; i++)
		{
			if (nodes[i].getElementsByTagName("div").length)
			{
				var a = nodes[i].getElementsByTagName("a").item(0);
				if (a && a.className.indexOf("forgot") == -1)
				{
					a.onclick = function ()
					{
						var p = this.parentNode;
						if (p.className.indexOf("select") != -1)
							p.className = p.className.replace("select", "");
						else
							p.className += " select";
						return false;
					}
				}
			}
		}
	}
}

if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);
	
function doPopUp(page) {
  window.open( page, "popwindow", "status = 1, height = 350, width = 500, resizable = 1" )
}

function doPopUp2(page) {
  window.open( page, "popwindow", "status = 1, height = 170, width = 280, resizable = 0" )
}
