function createbanner() {
        this.src = ''
        this.href = ''
        this.caption = ''
}

banners = new Array();

NumberSponsors = 3;

for(var i=1; i<=NumberSponsors; i++)
{ banners[i] = new createbanner() }

banners[1].src = "evn_bann/holetown.gif"
banners[1].href = "holetown.htm"
banners[1].caption = "Holetown Festival"

banners[2].src = "evn_bann/nifcafest.gif"
banners[2].href = "indepen.htm"
banners[2].caption = "NIFCA"

banners[3].src = "evn_bann/cropoverfest.gif"
banners[3].href = "cropover.htm"
banners[3].caption = "Crop Over Festival"




function rnd(){
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
n = parseInt(y/100*NumberSponsors,10) + 1
}

rnd();  //generate a random number


var image;

if ((n > 0) && (n <= NumberSponsors))
	image = banners[n];
else
	image = banners[1];

var ad = "";
ad += '<a href="' + image.href + '" > \n'
//ad += '+ image.caption + \n"
ad += '<img src="'+ image.src + '"  hspace=10 vspace=0 border=1 align=center + alt="' + image.caption + '">'
ad += '</a>'
