// JavaScript Document


function randomImageTable() {

//NUMBER OF IMAGES
imagenum = 5;

//NUMBER OF QUOTES
numberofquotes = 4;
	
quotes = new Array(numberofquotes+1);
quotes[1] = "I would rather entertain and hope that people learned something than educate people and hope they were entertained.";
quotes[2] = "It's clearly a budget. It's got a lot of numbers in it.";
quotes[3] = "I have friends in overalls whose friendship I would not swap for the favor of the kings of the world.";
quotes[4] = "	What the mass media offers is not popular art, but entertainment which is intended to be consumed like food, forgotten, and replaced by a new dish.";

author = new Array(numberofquotes+1);
author[1] = "Walt Disney";
author[2] = "George W. Bush";
author[3] = "Thomas A. Edison";
author[4] = "W. H. Auden";

document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0">');
ran_number=Math.floor(Math.random()*numberofquotes)+1;
document.write('<tr><td bgcolor="#fcf0cf" valign="top" width="67"><img src="images/quotesleft.gif" width="67" height="72" /></td><td bgcolor="#fcf0cf" class="quotecell"><span class="quotetext">');
document.write(quotes[ran_number] + '<BR><i>-- ' + author[ran_number] + '</i>');
document.write('</span></td><td bgcolor="#fcf0cf" valign="top" width="67"><img src="images/quotesright.gif" width="67" height="72" /></td></tr><tr>');

var ran_number=Math.floor(Math.random()*imagenum)+1;
document.write('<tr><td width="220" height="310" colspan="3" background="images/newsite/homephotos/' + ran_number + '.jpg">&nbsp;</td></tr><tr>');

document.write('</table>');

}
