	function setMargin()
	{
		var screenwidth = (WindowHeight() - 617 )/3;
		if (screenwidth >= 0) {
			document.body.style.marginTop = screenwidth + "px";		
		} else {
			document.body.style.marginTop = "0px";
		}
		//document.body.style.marginBottom = screenwidth;
		// document.write('style="margin-top:'+screenwidth+'; margin-bottom:'.screenwidth.'"');				
    }
	
	window.onresize = setMargin;
	
	function WindowHeight() {
	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	  }
	  //window.alert( 'Width = ' + myWidth );
	  // window.alert( 'Height = ' + myHeight );
	  return myHeight;
	}
	
	navHover = function() {
		var lis = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<lis.length; i++) {
			lis[i].onmouseover=function() {
				this.className+=" iehover";
			}
			lis[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" iehover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", navHover);

Event.observe(window, "load", function() {
	setMargin(); 
	hideLoadingbar();
});

	