<!--
// by Tobby B. Hagler //
//////// Initial Code Area ////////

function displayProducts()

{

	//////// Claim Some Space for Variables ////////
	var nProd; //local variable to hold a randomly generated value
	var iProd; //local dumb variable for loops
	var ProductInserts; //initializes a new local array to hold the file names for the include files

	//////// Use Up System Memory ////////
	ProductInserts = new Array(); //allocates memory to the new includes string array 

	//////// Working Code Area ////////

	//////// Start Doing the Math ////////
	nProd = (Math.round(Math.random() * 9)); //assigns a random number to the 'nProd' variable

	ProductInserts[0] = "<img src='images/rotate/cole_exam.jpg' />";

	ProductInserts[1] = "<img src='images/rotate/patient_computer.jpg' />";

	ProductInserts[2] = "<img src='images/rotate/patient_contacts.jpg' />";

	ProductInserts[3] = "<img src='images/rotate/patient_exam.jpg' />";
	
	ProductInserts[4] = "<img src='images/rotate/patient_exam3.jpg' />";
	
	ProductInserts[5] = "<img src='images/rotate/patient_fitting.jpg' />";
	
	ProductInserts[6] = "<img src='images/rotate/patient_fittingframes.jpg' />";
	
	ProductInserts[7] = "<img src='images/rotate/office_staff.jpg' />";
	
	ProductInserts[8] = "<img src='images/rotate/doctors.jpg' />";

                ProductInserts[9] = "<img src='images/rotate/patient_checkout.jpg' />";
	document.write(ProductInserts[nProd]);

}
//-->
