// JavaScript Document

/*if (document.getElementById) { window.onload = swap(); };*/
function swap() {
var numimages=3;
rndimg = new Array("/images/header_bg1.jpg", "/images/header_bg2.jpg", "/images/header_bg3.jpg", "/images/header_bg4.jpg"); 
x=(Math.floor(Math.random()*numimages));
randomimage=(rndimg[x]);
/*alert('a');*/
/*alert(document.getElementById('random'));*/
document.getElementById('random').style.backgroundImage = "url("+ randomimage +")"; 
}