// JavaScript Document
function showImage()
{
		var possImages = new Array();
		
		/*
		----------| NOTE |----------
		When wanting to add an image add the following below:
		
		possImages[#] = "images/(path to image in the images folder)";
		
		The # represents the next number in sequence.
		The image path should be the path from the page displaying the image, NOT THE PATH FROM THIS FILE.
		*/

		possImages[0] = "images/collage/news_page_collage_1.jpg";
		possImages[1] = "images/collage/news_page_collage_2.jpg";
		possImages[2] = "images/collage/news_page_collage_3.jpg";
		possImages[3] = "images/collage/news_page_collage_4.jpg";

		var p = possImages.length;
		var preBuffer = new Array()
		for (i = 0; i < p; i++){
  			preBuffer[i] = new Image()
			preBuffer[i].src = possImages[i]
		}
		var whichImage = Math.round(Math.random()*(p-1));
		
		document.write('<img src="'+possImages[whichImage]+'" alt="Cal Poly Scenes" width="770" height="150">');
}
