function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}

AdCount=12

ads = new Array()
for(var i=1; i<=AdCount; i++) { ads[i] = new create() }

ads[1].width = "468"
ads[1].height = "60"
ads[1].src = "/banners/banner1.gif"
ads[1].href = "http://asbe.org/associations/10754/files/promotion%2Epdf" 
ads[1].border = "0"
ads[1].mouseover = "http://asbe.org/associations/10754/files/promotion%2Epdf"
ads[1].sponsor = ""

ads[2].width = "468"
ads[2].height = "60"
ads[2].src = "/banners/empower.gif"
ads[2].href = "http://www.asbe.org/"
ads[2].border = "0"
ads[2].mouseover = "http://asbe.org/displaycommon.cfm?an=3"
ads[2].sponsor = ""

ads[3].width = "468"
ads[3].height = "60"
ads[3].src = "/banners/oakes.gif"
ads[3].href = "http://www.oakes.com"
ads[3].border = "0"
ads[3].mouseover = "http://www.oakes.com"
ads[3].sponsor = ""

ads[4].width = "468"
ads[4].height = "60"
ads[4].src = "/banners/banner4.jpg"
ads[4].href = "http://www.holmandassociates.com "
ads[4].border = "0"
ads[4].mouseover = "http://www.holmandassociates.com"
ads[4].sponsor = ""

ads[5].width = "468"
ads[5].height = "60"
ads[5].src = "/banners/burford.gif"
ads[5].href = "http://www.burford.com/"
ads[5].border = "0"
ads[5].mouseover = "http://www.burford.com/"
ads[5].sponsor = ""


ads[6].width = "468"
ads[6].height = "60"
ads[6].src = "/banners/edc-banner.gif"
ads[6].href = "http://www.enzymedevelopment.com"
ads[6].border = "0"
ads[6].mouseover = "http://www.enzymedevelopment.com"
ads[6].sponsor = ""

ads[7].width = "468"
ads[7].height = "60"
ads[7].src = "/banners/finalenvstruc.gif"
ads[7].href = "http://www.esidesignbuild.com"
ads[7].border = "0"
ads[7].mouseover = "http://www.esidesignbuild.com"
ads[7].sponsor = ""

ads[8].width = "468"
ads[8].height = "60"
ads[8].src = "/banners/allconbanner.gif"
ads[8].href = "http://www.all-con.com"
ads[8].border = "0"
ads[8].mouseover = "http://www.all-con.com"
ads[8].sponsor = ""

ads[9].width = "468"
ads[9].height = "60"
ads[9].src = "/banners/carmiflavors.swf"
ads[9].href = ""
ads[9].border = "0"
ads[9].mouseover = ""
ads[9].sponsor = ""

ads[10].width = "468"
ads[10].height = "60"
ads[10].src = "/banners/web-adv3.gif"
ads[10].href = "http://www.frickcold.com"
ads[10].border = "0"
ads[10].mouseover = "http://www.frickcold.com"
ads[10].sponsor = ""

ads[11].width = "468"
ads[11].height = "60"
ads[11].src = "/banners/romanmealbanner.gif"
ads[11].href = "http://www.romanmeal.com"
ads[11].border = "0"
ads[11].mouseover = "http://www.romanmeal.com"
ads[11].sponsor = ""

ads[12].width = "468"
ads[12].height = "60"
ads[12].src = "/banners/peerless.swf"
ads[12].href = ""
ads[12].border = "0"
ads[12].mouseover = ""
ads[12].sponsor = ""

var n = Math.random() + ''
n = parseInt(n.charAt(5))

if(n > AdCount) {
        n = n - AdCount
}

else if(n==0) {
        n = n + AdCount
}
n += ""

var image = ads[n]
var ad = ""

sTest= new String(image.src)
if (sTest.indexOf(".swf")!=-1)
{
	ad += '<center><object border="0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + image.width + '" height="' + image.height + '">\n'
    ad += '<param name="movie" value="' + image.src + '">\n'
    ad += '<param name="quality" value="high">\n'
    ad += '<embed src="' + image.src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + image.width + '" height="' + image.height + '"></embed></object></center>\n'
}
else
{
	ad += '<center><a href="' + image.href + '" \n'
	ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
	ad += 'onMouseOut="self.status=\'\'" target="_blank"> \n'
	ad += '<img src="' + image.src + '" width=' + image.width
	ad += '\n height=' + image.height + ' border=' + image.border
	ad += '\n> ' + image.sponsor + '</a></center>'
}
