//THIS FILE IS USED BY ATREC
var sponsorImage = new Array
("bannerad.gif");
//"sponsors/racenetLarge420.gif","ad/468_60_sectional.gif","ad/bris_melb_syd_just.jpg","ad/arbAd.gif",
//Images - Stayers - ,"ad/stayers.gif"
//Images - Trainers - "ad/austTrainers.gif"
//Images - Just Racing - "ad/420_justracing.gif"
var sponsorLink = new Array
("http://www.bloodstock.com.au")
//"http://www.racenet.com.au","http://www.justracing.com.au","http://www.justracing.com.au","http://www.australian-racing.net.au",
//Link - Stayers - ,"http://www.australian-racing.net.au/stayersChallenge/stayersChallenge.html"
//"mailto:racingassist@australian-racing.net.au?subject=ATREC Internet Banner Advertising&body=Dear Jake,");
//Link - Trainers - "http://www.racehorsetrainer.com.au/"
//Link - Just Racing - "http://www.justracing.com.au/?hitid=1"
var sponsorShown = (Math.floor(Math.random() * sponsorImage.length));
//alert(sponsorImage.length)
document.write('<a id="sponsorLink" href="'+sponsorLink[sponsorShown]+'"><img id="sponsor" src="http://www.australian-racing.net.au/uploadimg/'+sponsorImage[sponsorShown]+'" width="468" height="60" align="right" border="0"></a>')

//remove below function and setTimeout if you do not wish sponsors to rotate on page. Don't forget to set above image id to 'sponsor'
function rotateBanner(){
	var sponsorShown = (Math.floor(Math.random() * sponsorImage.length));
	document.getElementById('sponsor').src="http://www.australian-racing.net.au/uploadimg/"+sponsorImage[sponsorShown]
	document.getElementById('sponsorLink').href=sponsorLink[sponsorShown]
	setTimeout("rotateBanner()", 20000)
}
setTimeout("rotateBanner()", 20000);
//

