var images=new Array(	'quad_puppy.jpg',	'flags.jpg',	'DSC_3803.jpg',	'takingapicture.jpg',	'gates_sunset.jpg',	'plantsale.jpg',	'graduates.jpg',	'DSC_4138.jpg',	'smilingplaid.jpg',	'vanwickle1.jpg',	'vanwickle2.jpg',	'DSC_4120.jpg',	'courtyard.jpg',	'curved.jpg',	'rowing.jpg',	'DSC_4187.jpg',	'bikes_reflection.jpg',	'quad_bike.jpg',	'snowybikes.jpg',	'DSC_4194.jpg',	'leaves_window.jpg',	'snowybear.jpg',	'quad_shadow.jpg',	'blonde.jpg',	'throughthegates.jpg',	'carrietower.jpg');var captions=new Array(	'Brown’s Main Green. Pets allowed&mdash;but use a leash please.',	'Lincoln Field, part of Brown’s campus.',	'University Hall, home to the offices of the President, registrar, and Deans.',	'Opening Convocation 2004 at Brown.',	'Sunset on the Brown campus.',	'A plant sale on Brown’s campus.',	'A scene from Commencement 2004.',	'Students relaxing and studying on the Main Green.',	'Students at Opening Convocation 2004.',	'At Brown, you’ll only walk through these gates twice.',	'Brown’s legendary Van Wickle Gates at sunset.',	'Students on Lincoln Field.',	'Outside the main entrance to Perkins Hall, a freshman dorm.',	'The Pizzitola Sports Center, home to basketball, volleyball, wrestling, and gymnastics.',	'Brown’s crew teams hard at work.',	'The Cincinnati Gate in Wayland Arch.',	'A student reflected in the BioMed Center.',	'A student and her bike, deep in thought on the Green.',	'We have all four seasons in Providence.',	'A statue of Marcus Aurelius overlooks Brown’s Lincoln Field.',	'A window in Brown’s Wilson Hall, framed by summer leaves.',	'Brown’s mascot, the Brown Bear, last winter.',	'Wayland Hall casts its shadow across Wriston Quad.',	'A student on Brown’s Lincoln Field.',	'Students march in Brown’s 2004 opening convocation.',	'Carrie Tower is a campus landmark.');var currentImage = 0, visibleHost;ondocumentready = function() {	currentImage=Math.floor(Math.random()*images.length)	showImage('next');}function showImage(direction) {	if(direction=='previous') (currentImage==0 ? currentImage=images.length-1 : currentImage--);	else (currentImage==images.length-1 ? currentImage=0 : currentImage++);	// set new Image	document.getElementById('featurephoto').style.backgroundImage='url(images/feature/' + images[currentImage] + ')';	document.getElementById('caption').innerHTML=captions[currentImage];	// preload images	document.getElementById('previouspreload').src='images/feature/' + images[(currentImage==0 ? images.length-1 : currentImage-1)];	document.getElementById('nextpreload').src='images/feature/' + images[(currentImage==images.length-1 ? 0 : currentImage+1)];}function showHost(host) { // checks if there is room to display the host, or if it needs to be moved over	leftEdge = document.getElementById('nav_'+host).offsetLeft; 	rightEdge = document.getElementById('featurephoto').offsetWidth;	hostDiv = document.getElementById('host_'+host); 	if(rightEdge-leftEdge<360) { if(hostDiv.style.right!='0px') hostDiv.style.right='0px'; }	else if(hostDiv.style.right=='0px') hostDiv.style.right='auto';	hostDiv.style.opacity='1.0';	hostDiv.style.display='block';	visibleHost = host;}function hideHost() { if(visibleHost) document.getElementById('host_'+visibleHost).style.display='none'; }function toggleCredits() {	if(document.getElementById('credits').style.display=='block') document.getElementById('credits').style.display='none';	else document.getElementById('credits').style.display='block';	}new function() { // Cross-browser"documentready" Event -- Dean Edwards, et al  var b, i, f = function() {if (!b) {    (ondocumentready||new Function)({type:"documentready"});    // wire up to fire all documentready event handlers ...  }b = true;};  /*@cc_on @if (@_win32)  document.write("<scr"+"ipt id=__ie_onload defer src=javascript:void(0)></scr"+"ipt>");  document.getElementById("__ie_onload").onreadystatechange = function() {    if (this.readyState =="complete") f();  }; window.attachEvent("onload", f); @elif */  if (document.addEventListener) {    document.addEventListener("DOMContentLoaded", f, false);    window.addEventListener("load", f, false);  }  if (/WebKit/i.test(navigator.userAgent)) {    i = setInterval(function() {      if (/loaded|complete/.test(document.readyState)) {        clearInterval(i);        f();      }    }, 10);  }  /*@end @*/}