
var banDelay1 = 2000; // display for 2.000 seconds each
var banDelay2 = 5000; // display for 4.500 seconds each
var t;
var banners = {
thespeakers : [
'<img src="images\/speakers\/fmoss.jpg" width="60" height="75"\/> <br\/> Mr. Frank Moss'
,'<img src="images\/speakers\/aellis.jpg" width="60" height="75"\/> <br\/> Mr. Andy Ellis' 
,'<img src="images\/speakers\/jross.jpg" width="60" height="75"\/> <br\/> Dr. Jeanne Ross'
,'<img src="images\/speakers\/brynjolfsson.jpg" width="60" height="75"\/> <br\/> Prof. Erik Brynjolfsson'
,'<img src="images\/speakers\/cperretta.jpg" width="60" height="75"\/> <br\/> Mr. Chris Perretta'
,'<img src="images\/speakers\/hkoeppel.jpg" width="60" height="75"\/> <br\/> Mr. Harvey Koeppel'
,'<img src="images\/speakers\/jboughn.jpg" width="60" height="75"\/> <br\/> Ms. Julie Boughn'
,'<img src="images\/speakers\/jpontin.jpg" width="60" height="75"\/> <br\/> Mr. Jason Pontin'
,'<img src="images\/speakers\/msmith.jpg" width="60" height="75"\/> <br\/> Ms. Marilyn Smith'
,'<img src="images\/speakers\/selefant.jpg" width="60" height="75"\/> <br\/> Mr. Steven Elefant'
,'<img src="images\/speakers\/sschade.jpg" width="60" height="75"\/> <br\/> Ms. Susan Schade'
,'<img src="images\/speakers\/grahamr.jpg" width="60" height="75"\/> <br\/> Dr. Graham Rong'
,'<img src="images\/speakers\/chrisr.jpg" width="60" height="75"\/> <br\/> Mr. Christopher Reichert'
,'<img src="images\/speakers\/tpyke.jpg" width="60" height="75"\/> <br\/> Mr. Tom Pyke'
,'<img src="images\/speakers\/bbrennan.jpg" width="60" height="75"\/> <br\/> Mr. Bob Brennan'
,'<img src="images\/speakers\/ccapossela.jpg" width="60" height="75"\/> <br\/> Mr. Chris Capossela'
,'<img src="images\/speakers\/achristie.jpg" width="60" height="75"\/> <br\/> Mr. Anthony D. Christie'
,'<img src="images\/speakers\/bhasan.jpg" width="60" height="75"\/> <br\/> Mr. Ben-Saba Hasan'
,'<img src="images\/speakers\/sherrod.jpg" width="60" height="75"\/> <br\/> Dr. Stephen Herrod'
,'<img src="images\/speakers\/dli.jpg" width="60" height="75"\/> <br\/> Dr. Daxi Li'
,'<img src="images\/speakers\/amacnulty.jpg" width="60" height="75"\/> <br\/> Ms. Amy MacNulty'
,'<img src="images\/speakers\/amohamad.jpg" width="60" height="75"\/> <br\/> Mr. Mohamad Ali'
,'<img src="images\/speakers\/mreeves.jpg" width="60" height="75"\/> <br\/> Mr. Martin Reeves'
,'<img src="images\/speakers\/schmittlein.jpg" width="60" height="75"\/> <br\/> Dr. David Schmittlein'
,'<img src="images\/speakers\/morellana.jpg" width="60" height="75"\/> <br\/> Mr. Marco Orellana'
,'<img src="images\/speakers\/coconnor.jpg" width="60" height="75"\/> <br\/> Dr. Chris OConnor'
,'<img src="images\/speakers\/akrishnan.jpg" width="60" height="75"\/> <br\/> Mr. Ananth Krishnan'
,'<img src="images\/speakers\/bbrown.jpg" width="60" height="75"\/> <br\/> Mr. Bill Brown'
,'<img src="images\/speakers\/sleaver.jpg" width="60" height="75"\/> <br\/> Ms. Sharyn Leaver'
,'<img src="images\/speakers\/jmacglennon.jpg" width="60" height="75"\/> <br\/> Mr. James McGlennon'
,'<img src="images\/speakers\/amargulies.jpg" width="60" height="75"\/> <br\/> Ms. Anne Margulies'
,'<img src="images\/speakers\/sbanerji.jpg" width="60" height="75"\/> <br\/> Mr. Shawn Banerji'
,'<img src="images\/speakers\/bwatson.jpg" width="60" height="75"\/> <br\/> Mr. Brian Watson'
,'<img src="images\/speakers\/smirchandani.jpg" width="60" height="75"\/> <br\/> Mr. Sanjay Mirchandani'
,'<img src="images\/speakers\/mforman.jpg" width="60" height="75"\/> <br\/> Mr. Mark Forman'
,'<img src="images\/speakers\/mchui.jpg" width="60" height="75"\/> <br\/> Dr. Michael Chui'
,'<img src="images\/speakers\/jboughn.jpg" width="60" height="75"\/> <br\/> Ms. Julie Boughn'
,'<img src="images\/speakers\/sschade.jpg" width="60" height="75"\/> <br\/> Ms. Sue Schade'
,'<img src="images\/speakers\/dplummer.jpg" width="60" height="75"\/> <br\/> Mr. Daryl Plummer'
,'<img src="images\/speakers\/rrosin.jpg" width="60" height="75"\/> <br\/> Mr. Ray Rosin'
,'<img src="images\/speakers\/ghansen.jpg" width="60" height="75"\/> <br\/> Mr. Greg Hansen'
,'<img src="images\/speakers\/grodgers.jpg" width="60" height="75"\/> <br\/> Mr. Gene Rodgers'
,'<img src="images\/speakers\/mreeves.jpg" width="60" height="75"\/> <br\/> Mr. Martin Reeves'
]
, sponsors : [
'<img src="images\/2011sponsorssmaller\/thankyou-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/atrion-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/hp-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/isoftstone-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/naviSite-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/pega-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/rr-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/sas-small.jpg"\/>'
,'<img src="images\/2011sponsorssmaller\/vmware-small.jpg"\/>'

//'<img src="images\/2010sponsorssmaller\/1.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/2.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/3.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/4.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/5.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/6.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/7.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/8.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/9.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/10.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/11.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/12.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/13.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/14.jpg"\/>'
//,'<img src="images\/2010sponsorssmaller\/15.jpg"\/>'
]
};

// Banner Rotator
// copyright 12th October 2009 by Stephen Chapman
// http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that all of the code below in this script (including these
// comments) is used without any alteration
var banimg = []; 

for (x in banners) 
{
	for (var i=banners[x].length-1; i >= 0; i--) {
		var b = banners[x][i].match(/<img.+?src=['"](.*?)['"]/);
		if (b) banimg.push(b[1]);
	}
} 

for (var i = banimg.length - 1; i >= 0; i--) {
	var h = new Image(); 
	h.src = banimg[i];
}

function randOrd() {
	return (Math.round(Math.random())-0.5); 
}

var banlist = [];
function Ban(b)  {
	this.loc = document.getElementById(b);
	this.ary = banners[b];
	this.ary.sort(randOrd);
	this.cnt = -1;
	banlist.push(this);
}

function rotateBan1() {
		var max = banlist[0].ary.length;
		banlist[0].cnt++;
		if (banlist[0].cnt >= max) 
			banlist[0].cnt = 0;
		banlist[0].loc.innerHTML = banlist[0].ary[banlist[0].cnt];
setTimeout(rotateBan1,banDelay1);
} 

function rotateBan2() {
		var max = banlist[1].ary.length;
		banlist[1].cnt++;
		if (banlist[1].cnt >= max) 
			banlist[1].cnt = 0;
		banlist[1].loc.innerHTML = banlist[1].ary[banlist[1].cnt];
setTimeout(rotateBan2,banDelay2);
} 

function startBanner() {
	for (x in banners) {
		if (document.getElementById(x)) new Ban(x);
	} 
	rotateBan1();
	rotateBan2();
} 

window.onload = startBanner;


