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.Merck.175.gif";
imgs[1] = "/images/logos/logo.Abingworth.175.gif";
imgs[2] = "/images/logos/logo.LTN.175.gif";
imgs[3] = "/images/logos/logo.UKTI.175.gif";
imgs[4] = "/images/logos/logo.Reddie.175.gif";
imgs[5] = "/images/logos/logo.Chesterford.175.gif";
imgs[6] = "/images/logos/logo.EEI.175.gif";
//imgs[3] = "/images/logos/logo.BTG.175.gif";
//imgs[7] = "/images/logos/logo.Hewitsons2.175.gif";
//imgs[8] = "/images/logos/logo.RSA.175.gif";

var page = new Array();
page[0] = "http://www.msd-uk.co.uk/";
page[1] = "http://www.abingworth.com/";
page[2] = "http://www.ltnetwork.org/";
page[3] = "https://www.uktradeinvest.gov.uk/";
page[4] = "http://www.reddie.co.uk/";
page[5] = "http://www.chesterfordresearchpark.co.uk/";
page[6] = "http://www.eei-online.com/";
//page[3] = "http://www.btgplc.com/";
//page[7] = "http://www.hewitsons.com/";
//page[8] = "http://www.thersagroup.com/";

var alt = new Array();
alt[0] = "Merck Sharp & Dohme";
alt[1] = "Abingworth";
alt[2] = "London Technology Network";
alt[3] = "UK Trade & Investment";
alt[4] = "Reddie & Grose";
alt[5] = "Chesterford Research Park";
alt[6] = "East of England International";
//alt[3] = "BTG";
//alt[7] = "Hewitsons";
//alt[8] = "RSA";

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);
}
