//function to handle randomize of the 4 images

function randomImage(range, pictureName)
{
	var rand = (Math.round(Math.random()*(range-1))+1);
	return "images/" + pictureName + rand + ".jpg";

}//end of randomImage function

function rotateImage(range, current, pictureName)
{
	if(current == range) current = 1;
	else current = current + 1;
	$("#rotate").attr("src","images/"+pictureName+current+".jpg");
	setTimeout("rotateImage("+range+","+current+",'"+pictureName+"')", 4000);
}