function initPage()
{
	var nav = document.getElementById("main-list");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{		
				nodes[i].onmouseover = function () 
				{
					this.className += " hover";
				}
				nodes[i].onmouseout = function ()
				{
					this.className = this.className.replace(" hover", "");
				}
		}
	}
}
if (window.attachEvent)
	window.attachEvent("onload", initPage);
function fixLayout()
{
	var cont = document.getElementById("holder");
	var contHeight = cont.offsetHeight;
	wHeight = window.innerHeight;	

	if (document.all && !window.opera) {
		wHeight = document.documentElement.clientHeight;
	}
		var temp = wHeight - contHeight;
		if (temp > 0)
	{
		cont.style.marginTop = (wHeight - contHeight) / 2 + "px";
	}
	else {
		cont.style.marginTop = "0px";
	}
}
if (window.addEventListener){
	window.addEventListener("resize", fixLayout, false);
	window.addEventListener("load", fixLayout, false);
}
else if (window.attachEvent){
	window.attachEvent("onresize", fixLayout);
	window.attachEvent("onload", fixLayout);
}
function initBrowser(){
	if (navigator.appVersion.indexOf("Safari") != -1){
		if (!window.getComputedStyle) document.body.className += " safari";
		else document.body.className += " safari3";
	}
}

if (window.addEventListener){
	window.addEventListener("load", initBrowser, false);
}
