// ==============================================// Copyright 2003 by jsCode.com// Source: jsCode.com// Author: etLux// Free for all; but please leave in the header.// ==============================================// Set up the image files to be used.var theImages = new Array();
// Images can be added to this list, just add a new line and increment the index numbertheImages[0] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_raspberry_ANGEL.jpg';
theImages[1] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_legends_SALAD.jpg';
theImages[2] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_creamery_CONE.jpg';
theImages[3] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_cheesecake_MOA.jpg';
theImages[4] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_legends_PIZZA.jpg';
theImages[5] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_Waffle_CONE.jpg';
theImages[6] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_skyroom_LEMONADE.jpg';
theImages[7] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_legends_HBURGER.jpg';
theImages[8] = 'http://dining.byu.edu/ads/main_feature_imgs/Main_Feature_catering_TULIP.jpg';




// The URLs below correspond to the index of the image above.  There Should be a URL for every Image.
// You can add a URL just like an image, just add a new line and increment the index number
var theURLs = new Array();
theURLs[0] = 'http://dining.byu.edu/catering/';
theURLs[1] = 'http://dining.byu.edu/legendsgrille/';
theURLs[2] = 'http://dining.byu.edu/creamery/';
theURLs[3] = 'http://dining.byu.edu/moacafe/';
theURLs[4] = 'http://dining.byu.edu/legendsgrille/';
theURLs[5] = 'http://dining.byu.edu/creamery/';theURLs[6] = 'http://dining.byu.edu/skyroom/';
theURLs[7] = 'http://dining.byu.edu/legendsgrille/';
theURLs[8] = 'http://dining.byu.edu/catering/';

// ======================================// do not change anything below this line// ======================================var p = theImages.length;
var preBuffer = new Array();for (i = 0; i < p; i++)
{   preBuffer[i] = new Image()   preBuffer[i].src = theImages[i]}
var whichImage = Math.round(Math.random()*(p-1));
		function showImage()
{	
	// --- Write the picture to index.html	document.write('<a href="'+theURLs[whichImage]+'" ><img width="815px" height="330px" border="0" src="'+theImages[whichImage]+'"></a>');}

