// JavaScript Document

function Initialise () {
	
	//call the load random image function..
	LoadRandomImage();
}

function LoadRandomImage () {
	
	
	//this makes a raondom number between 1 to 5
	var vRandomNumber= Math.floor(Math.random()*10);
	
	//creates background image properti value
	var vImagePath="url(images/random/r_"+vRandomNumber+".jpg)";
	
	//tellthe browser which div
	var vImageDiv= document.getElementById("randomImage");
	
	// change the background image style of the randomimage div to the value in image vimagePath
	vImageDiv.style.backgroundImage = vImagePath;
	
	//alert(vImegeDiv);
	
}