// JavaScript Document


<!-- Activate cloaking device
var randnum = Math.random();
var inum = 5;
// Change this number to the number of images you are using.
var rand1 = Math.round(randnum * (inum-1)) + 1;
images = new Array
images[1] = "../SiteFiles/stronach2009comau/images/HPbg1.jpg"
images[2] = "../SiteFiles/stronach2009comau/images/HPbg2.jpg"
images[3] = "../SiteFiles/stronach2009comau/images/HPbg3.jpg"
images[4] = "../SiteFiles/stronach2009comau/images/HPbg4.jpg"
images[5] = "../SiteFiles/stronach2009comau/images/HPbg5.jpg"
// Ensure you have an array item for every image you are using.
var bgimage = images[rand1]
// Deactivate cloaking device -->

function randBGImage() {
   document.getElementById('randompicbg').style.background="url(" + bgimage + ")";
//   document.getElementById('randompicbg').style.backgroundPosition="bottom";
   	}


