if (document.images) {

// main photos
		photoList = new Array();
		var i = 0;
		
		photoList[i++] = "<img src='_images/img-home-collaboration.jpg' alt='It&#39;s all about collaboration.' width='565' height='333'>";
		photoList[i++] = "<img src='_images/img-home-smartcows.jpg' alt='Even the cows here are smart.' width='565' height='333'>";
		photoList[i++] = "<img src='_images/img-home-kec.jpg' alt='A home for innovation.' width='565' height='333'>";
				photoList[i++] = "<img src='_images/img-home-corvallis.jpg' alt='A passion for engineering. A place to nurture it.' width='565' height='333'>";


// ALL NEW STUFF BELOW HERE, NOTHING CHANGED ABOVE

// get the cookie value

		var value=0; // default value to start with is zero
		
		var allCookies=document.cookie; // get the whole cookie for the site
		
		var cookieName="randomizer="; // the name of the cookie we're interested in
		
		var position=allCookies.indexOf(cookieName); // is our cookie in the site's cookie
		
		if (position!=-1) { // if so, let's find out where it is in the site's cookie
			
			var start=position+cookieName.length; // here's where it starts
			
			if (photoList.length>9) { // here's where it ends
				var end=start+2;
			} else {
				var end=start+1;
			}
			
			value=allCookies.substring(start,end); // pull out the value we want to display
		}
		
		if (value==photoList.length-1) { // have we reached the end of the photoList?
			var setValue=0; // if so, set it back to zero
		} else {
			var setValue=parseInt(value)+1; // if not, add one to it
		}

		document.cookie=cookieName+setValue; // now set the cookie for next time
	
// the value to display		
		
		var rand=value; // and this is the value to display
		
}