var ads=new Array(19)
for (i=0; i <19; i++)
ads[i]=new Array(3)
ads[0][0]="/static/flash/ads/hrzone-small-leader-400.gif";
ads[0][1]="http://www.hrzone.co.uk";
ads[1][0]="/static/flash/ads/learndirect.gif";
ads[1][1]="http://www.learndirect-business.co.uk";
ads[2][0]="/static/flash/ads/sundial.gif";
ads[2][1]="http://www.sundialgroup.com/teambuilding";
ads[3][0]="/static/flash/ads/trzone-small-leader-400.gif";
ads[3][1]="http://www.trainingzone.co.uk";
ads[4][0]="/static/flash/ads/thales.gif";
ads[4][1]="http://www.thales-trainingconsultancy.com";
ads[5][0]="/static/flash/ads/TowardsMaturity.swf";
ads[5][1]="400";
ads[5][2]="50";
ads[6][0]="/static/flash/ads/hrzone-small-leader-400.gif";
ads[6][1]="http://www.hrzone.co.uk";
ads[7][0]="/static/flash/ads/trzone-small-leader-400.gif";
ads[7][1]="http://www.trainingzone.co.uk";
ads[8][0]="/static/flash/ads/line.swf";
ads[8][1]="400";
ads[8][2]="50";
ads[9][0]="/static/flash/ads/adobe.swf";
ads[9][1]="400";
ads[9][2]="50";
ads[10][0]="/static/flash/ads/intran_banner.gif";
ads[10][1]="http://www.informationtransfer.com";
ads[11][0]="/static/flash/ads/trainer1.swf";
ads[11][1]="468";
ads[11][2]="60";
ads[12][0]="/static/flash/ads/saffron.gif";
ads[12][1]="http://www.saffroninteractive.com";
ads[13][0]="/static/flash/ads/brightwave.swf";
ads[13][1]="400";
ads[13][2]="50";
ads[14][0]="/static/flash/ads/e2train.gif";
ads[14][1]="http://www.e2train.com";
ads[15][0]="/static/flash/ads/cornerstone.swf";
ads[15][1]="400";
ads[15][2]="50";
ads[16][0]="/static/flash/ads/cornerstone.swf";
ads[16][1]="400";
ads[16][2]="50";
ads[17][0]="/static/flash/ads/CiscoWebEx.gif";
ads[17][1]="http://www.webex.co.uk";
ads[18][0]="/static/flash/ads/cambridge.jpg";
ads[18][1]="http://www.bulats.org ";

theAd = Math.floor(Math.random()*(ads.length));
type = ads[theAd][0].split('.');
	
showAd = function(){
	if(type[1].toLowerCase() == "gif" || type[1].toLowerCase() == "jpg" || type[1].toLowerCase() == "png"){
		document.getElementById('adSpace').innerHTML='<a href="' + ads[theAd][1] + '" target="_blank"><img src="' + ads[theAd][0] + '" /></a>';
	}
	else{
		swfobject.embedSWF(ads[theAd][0], "adSpace", ads[theAd][1], ads[theAd][2], "8.0.0", "/static/flash/ads-home.swf", "false", {});
	}
}