var pos = 0;
var speed=0;
function moveBg(){
	pos+=speed;
	document.body.style.backgroundPosition = pos +"px 0";
	setTimeout(moveBg,100);
}
function initBg(){
	$$('a').each(function(el) {
		el.onmouseover=function(){ startAnim() };
		el.onmouseout=function(){ stopAnim() };
	});
}
function startAnim(){
	speed = -10; 
	$("headerimg").className="anim";
}
function stopAnim(){
	speed = 0; 
	$("headerimg").className="";
}
//document.addEvent("domready",moveBg);
document.addEvent("domready",initBg);

