function initPage()
{
	var ul = document.getElementById("pop-up");
	if (ul)
	{
			var nodes = ul.getElementsByTagName("a");
			for (var i = 0; i < nodes.length; i++)
			{
				if (nodes[i].parentNode.tagName == "LI")
				{
					nodes[i].onclick = function() {
						if (this.parentNode.className.indexOf("hover") == -1)
						{
							this.parentNode.className += " hover";
						}
						return false;
					};
				}
				if (nodes[i].className.indexOf("close") != -1)
				{
					nodes[i].onclick = function() {
						this.parentNode.parentNode.className = this.parentNode.parentNode.className.replace("hover", "");
						return false;
					};
				}
				nodes[i].onmouseover = function () 
				{
					if (this.className.indexOf("hover" == -1))
					this.className += " hover";
				}
				nodes[i].onmouseout = function ()
				{
					this.className = this.className.replace("hover", "");
				}
			}
		}
}

if (window.addEventListener) {
	window.addEventListener("load", initPage, false);
}
else if (window.attachEvent)  {
	window.attachEvent("onload", initPage);
}