// JavaScript Document
// Function that return a number between 0 and "nums - 1"
function getRandom(nums)
{
	var ranNum= Math.round(Math.random()*nums);
	//alert(ranNum);
	return ranNum - 1;
}
	 
// Tells us how many images we have available.
var numberOfImages    = 5;
var randomNumber        = getRandom(numberOfImages);
// Create an array to hold the names of all images.
var image = new Array(numberOfImages);
image[0]="person01.gif";
image[1]="person02.gif";
image[2]="person03.gif";
image[3]="person04.gif";
image[4]="person05.gif";
	 
// Write the img tag with a random image name.
$(document).ready(function(){
	$("#content_area").css('background-image','url(images/' + image[randomNumber] + ')');
});