function swapBackgrounds() {
	var numImages = 5;
    var x=document.getElementById("imageRotator");
	randomnumber=Math.floor(Math.random()* numImages)+1;
	x.setAttribute ("class", "bg"+randomnumber);
        x.setAttribute ("className", "bg"+randomnumber);
}


