// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
    this.width = ''
    this.height = ''
    this.src = ''
    this.href = ''
    this.border = ''
    this.mouseover = ''

}
ads = new Array()
for (var i = 1; i <= 5; i++) { ads[i] = new create() }


ads[1].width = "468"
ads[1].height = "64"
ads[1].src = "http://www.birminghambusinessalliance.com/bba/ads/IN_birmingham.jpg"
ads[1].href = "http://www.inbirmingham.com"
ads[1].border = "0"
ads[1].mouseover = "in birmingham campaign"





ads[2].width = "468"
ads[2].height = "64"
ads[2].src = "http://www.birminghambusinessalliance.com/bba/ads/BhamBusiness_1011Season.jpg"
ads[2].href = "http://alysstephens.uab.edu/"
ads[2].border = "0"
ads[2].mouseover = "alys stephens center"

ads[3].width = "468"
ads[3].height = "64"
ads[3].src = "http://www.birminghambusinessalliance.com/bba/ads/468-x-64-Verizon,-AL-Web-Ad.jpg"
ads[3].href = " http://www.livenation.com/vipnation/request-information?market=4"
ads[3].border = "0"
ads[3].mouseover = "Verizon Wireless"

ads[4].width = "468"
ads[4].height = "64"
ads[4].src = "http://www.birminghambusinessalliance.com/bba/ads/att-yellow-1.gif"
ads[4].href = "http://www.yellowpages.com/?from=Branding_brndatt_at%26t%20yellow%20pages&gclid=CJuOpc_i1qACFQqF7QodGF-9xQ"
ads[4].border = "0"
ads[4].mouseover = "at&t real yellow pages"

ads[5].width = "468"
ads[5].height = "64"
ads[5].src = "http://www.birminghambusinessalliance.com/bba/ads/bba-green.gif"
ads[5].href = "business/green.aspx"
ads[5].border = "0"
ads[5].mouseover = "BBA green initiative"


var n = Math.random() + ''
n = parseInt(n.charAt(5))
if (n > 5) {
    n = n - 5
}
else if (n == 0) {
    n = n + 5
}
n += ""

var image = ads[n]
var ad = ""
ad += '<a href="' + image.href + '" \n'
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'"> \n'
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border