skyleader.addOnloadMethod("shiftBackground");
skyleader.addOnloadMethod("flash");
if(browser.isIE&&browser.getIEversion()<=6.0)skyleader.addOnloadMethod("initNav");

window.onresize=function() {
	shiftBackground();
}

function shiftBackground(){
	document.body.style.backgroundPosition=(Math.floor((getViewportWidth()-960)/2)%3)-2+"px 0px";
}


var initNav=function(){
	var uls=getEl("nav").getElementsByTagName("ul");
	for(var i=1;i<uls.length;i++){
		uls[i].parentNode.onmouseover=function(){
			if(!this.contains(event.fromElement)){
				setVV(this.lastChild);
				this.firstChild.className="act";
			}
			event.cancelBubble=true;
		}
		uls[i].parentNode.onmouseout=function(){
			if(!this.contains(event.toElement)){
				setVH(this.lastChild);
			 	this.firstChild.className="";
			}
			event.cancelBubble=true;
		}
	}
}
