// generic CHASTE javascript functions

function insertPicture() {
	
	var maxImageId = 9;			// images are called <id>.gif. this is the maximum ID number
	var chanceImage = 0.75;		// 1 = all of the time 0 = none of the time
	var imgPath = "/images/right_area/";

	
	var random = Math.random();
	
	var id = Math.floor(random * maxImageId) + 1;
	
	if (random < chanceImage) {
		document.write("<div class='rightRandomImage'><img src='" + imgPath + id + ".gif' width='207'></div>");
	}
	
}
