
function initPage()
{
	var navRoot = document.getElementById("navigation");
	var lis = navRoot.getElementsByTagName("li");
	for (var i=0; i<lis.length; i++)
	{
		if (lis[i].parentNode.id == "navigation")
		{
			lis[i].onmouseover = function()
			{
				this.className = "hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = "";
			}
		}
	}
}

if (window.attachEvent && !window.opera)
	window.attachEvent("onload", initPage);
	
function externalLinks() 
{
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) 
	{
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
		anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
	}
}

window.onload = externalLinks;


