// JavaScript Document

img = new Array();

img[0] = 'images/home/top_img1.jpg';
img[1] = 'images/home/top_img2.jpg';
img[2] = 'images/home/top_img3.jpg';
img[3] = 'images/home/top_img4.jpg';

n = Math.floor(Math.random()*img.length);
document.getElementById("top-img").style.backgroundImage = 'url(' + img[n] + ')';

