/* To fix the issue with the static template width and fun designs, this
script checks screen resolution and applies the appropriate image 
treatment for the screen size */

var randomnumber;

if ((screen.width>=1024) && (screen.height>=768))
{
	randomnumber=5;
}
else{
	var randomnumber=Math.floor(Math.random()*5)
}

var pic= new Array(3) 
	pic[0]="<img border='0' style='margin-left:15px' src='http://www.kent.edu/fpa/images/theatrefall2007.jpg' width='290' alt='The School of Theatre and Dance performed a work of modern dance for a university celebration.' height='260'>";
	pic[1]="<img border='0' style='margin-left:15px' src='http://www.kent.edu/fpa/images/musicfall2007.jpg' width='290' alt='The Kent State University Marching Band performs at halftime.' height='260'>"; 
	pic[2]="<img border='0' style='margin-left:15px' src='http://www.kent.edu/fpa/images/museumfall2007.jpg' width='290' alt='The Kent State Museum features exhibitions of clothing, costumes and textiles from various eras and styles.' height='260'>";
	pic[3]="<img border='0' style='margin-left:15px' src='http://www.kent.edu/fpa/images/fashionfall2007.jpg' width='290' alt='A fashion student works on a colorful garment in a sewing room.' height='260'>";
	pic[4]="<img border='0' style='margin-left:15px' src='http://www.kent.edu/fpa/images/artfall2007.jpg' width='290' alt='School of Art students work on sketches during class.' height='260'>";
	pic[5]="<div style='margin-left:15px'><object class='CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000' id='movie' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' height='275' width='500'><embed name='movie' src='http://www.kent.edu/fpa/images/fall2007_2.swf' width='500' height='275' type='application/x-shockwave-flash' quality='high' plug='plug' inspage='http://www.macromedia.com/go/getflashplayer' wmode='opaque' /></object></div>";  
document.write(pic[randomnumber]);