
	/*
	   Dynamically switches image on page load. 
	   An image like image 3.jpg is loaded from the folder IMAGE_FOLDER
	   Make sure HIGHEST_IMAGE_NUMBER images exist. 
	   Only works with image SUFFIX as defined below.
	   If HIGHEST_IMAGE_NUMBER is equal to 3, and SUFFIX is equal to ".jpg" the following files must exist: image1.jpg, image2.jpg, image3.jpg
	   in the IMAGE_FOLDER


 */	  
var imageNo;
function bjoernImgChange()
{

	var IMAGE_FOLDER = "images/";
	var SUFFIX = ".jpg";
	var HIGHEST_IMAGE_NUMBER = 14;

	if (imageNo == undefined)
	{
		 imageNo = Math.round(Math.random()*(HIGHEST_IMAGE_NUMBER-1)+1);
	}



	var img = document.getElementById("bjoernImg");
	img.src = IMAGE_FOLDER + "image" + imageNo + SUFFIX;
	imageNo = (imageNo+1) % (HIGHEST_IMAGE_NUMBER+1);
	if (imageNo ==0) 
	{
		imageNo = 1;
	}
}
