var n = 0;
timedelay = 5;  // Seconds between image change
timedelay *= 1000;

windowprops = ""; // customize the popup window here

var imgs = new Array();
imgs[0] = "/images/logos/logo.EEDA.gs.175.gif";
imgs[1] = "/images/logos/logo.Abingworth.175.gif";
imgs[2] = "/images/logos/logo.Chesterford.175.gif";
imgs[3] = "/images/logos/logo.EBD.gif";
imgs[4] = "/images/logos/logo.Merck.175.gif";
imgs[5] = "/images/logos/logo.CollegeHill.mp.175.gif";
imgs[6] = "/images/logos/logo.UKTI.175.gif";
imgs[7] = "/images/logos/logo.MintzLevin.175.gif";

var page = new Array();
page[0] = "http://www.eeda.org.uk/";
page[1] = "http://www.abingworth.com/";
page[2] = "http://www.chesterfordresearchpark.co.uk/";
page[3] = "http://www.ebdgroup.com/";
page[4] = "http://www.merck.com/licensing/";
page[5] = "http://www.collegehill.com/lifesciences/";
page[6] = "https://www.uktradeinvest.gov.uk/";
page[7] = "http://www.mintz.com";

var alt = new Array();
alt[0] = "East of England Development Agency";
alt[1] = "Abingworth";
alt[2] = "Chesterford Research Park";
alt[3] = "EBD Group";
alt[4] = "Merck & Co., Inc.";
alt[5] = "College Hill Life Sciences";
alt[6] = "UK Trade & Investment";
alt[6] = "Mintz Levin";

n = Math.floor(Math.random() * imgs.length);
function rotate() {
	//document.picform.slideshow.src = imgs[n];
	MM_changeProp('SponsorLogo','','src',imgs[n],'IMG');
	MM_changeProp('SponsorLogo','','alt',alt[n],'IMG');
	MM_changeProp('SponsorLink','','href',page[n],'A');
	(n == (imgs.length - 1)) ? n = 0 : n++;
	window.setTimeout("rotate()", timedelay);
}
