function createads() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}

ads = new Array()
for(var i=1; i<=8; i++) { ads[i] = new createads() }

ads[1].width = "402"
ads[1].height = "150"
ads[1].src = "/portal/images/hot/news10.jpg"
ads[1].href = "http://www.kenora.ca/IceCandle/WebForms/IceCandleSale.aspx"
ads[1].border = "0"
ads[1].alt = "Purchase Ice Candles for your loved ones online. Click to find out more details."

ads[2].width = "402"
ads[2].height = "150"
ads[2].src = "/portal/images/hot/news3.jpg"
ads[2].href = "http://www.kenora.ca/portal/living/family/pets.aspx?id=740&TierSlicer1_TSMenuTargetID=280&TierSlicer1_TSMenuTargetType=4&TierSlicer1_TSMenuID=54"
ads[2].border = "0"
ads[2].alt = "An animal can become part of the family, but make sure you are aware of the responsibility involved with having a pet."

ads[3].width = "402"
ads[3].height = "150"
ads[3].src = "/portal/images/hot/news6.jpg"
ads[3].href = "/PTicket/TicketSelector.aspx"
ads[3].border = "0"
ads[3].alt = "Pay your parking tickets, traffic tickets and other Provincial Offences Tickets online."

ads[4].width = "402"
ads[4].height = "150"
ads[4].src = "/portal/images/hot/news4.jpg"
ads[4].href = "/portal/business/economicdev/whosinv/whosinv.aspx?id=646"
ads[4].border = "0"
ads[4].alt = "Find out Who's Investing in Kenora"

ads[5].width = "402"
ads[5].height = "150"
ads[5].src = "/portal/images/hot/news7.jpg"
ads[5].href = "/portal/common.aspx?id=2263"
ads[5].border = "0"
ads[5].alt = ""

ads[6].width = "402"
ads[6].height = "150"
ads[6].src = "/portal/images/hot/news8.jpg"
ads[6].href = "/portal/common.aspx?id=2263"
ads[6].border = "0"
ads[6].alt = ""

ads[7].width = "402"
ads[7].height = "150"
ads[7].src = "/portal/images/hot/news1.jpg"
ads[7].href = "http://www.officeatthelake.ca/"
ads[7].border = "0"
ads[7].alt = "Click to learn about setting up your office at the lake!"

var n = Math.random() + ''
n = parseInt(n.charAt(7))
if(n > 7) {
        n = n - 7
}
else if(n==0) {
        n = n + 7
}
n += ""

var image = ads[n]
var adhot = ""
adhot += '<a href="' + image.href + '" >'
adhot += '<img src="' + image.src + '" width=' + image.width
adhot += '\n height=' + image.height + ' border=' + image.border + ' alt="' + image.alt + '"></a>'

