if (document.getElementById) { window.onload = swap };

function swap() {
	var numimages=4;

	rndimg = new Array("/images/home/homepage4.jpg", "/images/home/homepage3.jpg", "/images/home/homepage2.jpg", "/images/home/homepage1.jpg");
	x=(Math.floor(Math.random()*numimages));
	randomimage=(rndimg[x]);
	document.getElementById("intro").style.background = "url("+ randomimage +") no-repeat";
}

