function backgroundRotation() {

images = new Array(
"/bca/generic/images/global/featureImages/Main_Entertainment.jpg",
"/bca/generic/images/global/featureImages/Main_Golf.jpg",
"/bca/generic/images/global/featureImages/Main_Restaurant.jpg",
"/bca/generic/images/global/featureImages/Main_Shopping.jpg",
"/bca/generic/images/global/featureImages/Main_CarCare.jpg"
);

rand = Math.floor(Math.random()*images.length); // chose a random number, between 0 and the length of the array -1
currentImage = images[rand]; // set img to the random image's src

document.getElementById("nmHome1").style.backgroundImage = "url('"+currentImage+"')"; //for div background

}