// JavaScript Document

var randImg = new Array("http://208.86.165.143/Images/homeHeroImg-1.jpg", "http://208.86.165.143/Images/homeHeroImg-2.jpg", "http://208.86.165.143/Images/homeHeroImg-3.jpg")
 
function setBackground() {
var bgimage = randImg[(Math.round(Math.random()*(randImg.length - 1)))]
document.getElementById("HeroImg").style.backgroundImage = "url('" +bgimage+ "')";

}