// 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] = "./images/texture1.png";
//backImage[1] = "./images/texture2.jpg";

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

function changeBGImage(whichImage){
	 if (document.body){
	 		//document.body.background = backImage[whichImage];
			//alert(backImage[whichImage]);
			document.getElementById('page').style.backgroundImage = "url(" + backImage[whichImage] + ")";
	 }
}

function changeRandomBGImage() {
	 var ran_number= Math.floor(Math.random()*backImage.length);
	 changeBGImage(ran_number);
}

//<a href="#" onMouseOver="javascript:changeBGImage(2)">Change</a>
//<a href="javascript:changeBGImage(1)">Change</a>


