function rotatePhoto() {
	var rand = Math.floor(Math.random()*6)
	document.getElementById('header').style.backgroundImage = "url(stylesheets/images/home-rotator"+rand+".jpg)";
}

addLoadEvent(rotatePhoto);