// Copyright 2001 by www.CodeBelly.com
// Please do *not* remove this notice.

var backImage = new Array(); // don't change this

// Enter the image filenames you wish to use.
// Follow the pattern to use more images.  The
// number in the brackets [] is the number you
// will use in the function call to pick each
// image.

// Note how backImage[3] = "" -- which would
// set the page to *no* background image.

backImage[0] = "url(images/background/bg001.jpg) no-repeat top left";
backImage[1] = "url(images/background/bg002.jpg) no-repeat top left";
backImage[2] = "url(images/background/bg003.jpg) no-repeat top left";
backImage[3] = "url(images/background/bg004.jpg) no-repeat top left";
backImage[4] = "url(images/background/bg005.jpg) no-repeat top left";
backImage[5] = "url(images/background/bg006.jpg) no-repeat top left";
backImage[6] = "url(images/background/bg007.jpg) no-repeat top left";
backImage[7] = "url(images/background/bg008.jpg) no-repeat top left";
backImage[8] = "url(images/background/bg009.jpg) no-repeat top left";
backImage[9] = "url(images/background/bg010.jpg) no-repeat top left";
backImage[10] = "url(images/background/bg011.jpg) no-repeat top left";
backImage[11] = "url(images/background/bg012.jpg) no-repeat top left";
backImage[12] = "url(images/background/bg013.jpg) no-repeat top left";
backImage[13] = "url(images/background/bg014.jpg) no-repeat top left";
backImage[14] = "url(images/background/bg015.jpg) no-repeat top left";
backImage[15] = "url(images/background/bg016.jpg) no-repeat top left";
backImage[16] = "url(images/background/bg017.jpg) no-repeat top left";
backImage[17] = "url(images/background/bg018.jpg) no-repeat top left";
backImage[18] = "url(images/background/bg019.jpg) no-repeat top left";
backImage[19] = "url(images/background/bg020.jpg) no-repeat top left";
backImage[20] = "url(images/background/bg021.jpg) no-repeat top left";
backImage[21] = "url(images/background/bg022.jpg) no-repeat top left";


// Do not edit below this line.
//-----------------------------

function changeBGImage(){
index = Math.floor(Math.random() * backImage.length);
document.getElementsByTagName("body")[0].style.background =backImage[index];

}

window.onload = changeBGImage;