function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.target = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=6; i++) { ads[i] = new create() }

ads[1].width = "400"
ads[1].height = "161"
ads[1].src = "/season/gardening-blog.jpg"
ads[1].href = "http://mission-hills-nursery.blogspot.com/"
ads[1].target = "_blank"
ads[1].border = "0"
ads[1].mouseover = "Garden Blog"

ads[2].width = "400"
ads[2].height = "161"
ads[2].src = "/season/rose-plants2.jpg"
ads[2].href = "http://www.missionhillsnursery.com/Merchant2/merchant.mvc?Screen=CTGY&Store_Code=MHN&Category_Code=R"
ads[2].border = "0"
ads[2].mouseover = "Rose Plants"

ads[3].width = "400"
ads[3].height = "161"
ads[3].src = "/season/mhn-shirt.jpg"
ads[3].href = "http://www.missionhillsnursery.com/Merchant2/merchant.mvc?Screen=PROD&Product_Code=GG-012&Category_Code=GG"
ads[3].border = "0"
ads[3].mouseover = "Rose Plants"

ads[4].width = "400"
ads[4].height = "161"
ads[4].src = "/season/flowers-plants.jpg"
ads[4].href = "http://www.growerflowers.com/info.asp?productcode=1005&id=40300"
ads[4].target = "_blank"
ads[4].border = "0"
ads[4].mouseover = "Rose Plants"

ads[5].width = "400"
ads[5].height = "161"
ads[5].src = "/season/garden-seeds.jpg"
ads[5].href = "http://www.missionhillsnursery.com/Merchant2/merchant.mvc?Screen=CTGY&Store_Code=MHN&Category_Code=S"
ads[5].border = "0"
ads[5].mouseover = "Compost"

ads[6].width = "400"
ads[6].height = "161"
ads[6].src = "/season/gardening-blog.jpg"
ads[6].href = "http://mission-hills-nursery.blogspot.com/"
ads[6].target = "_blank"
ads[6].border = "0"
ads[6].mouseover = "Garden Blog"


var n = Math.random() + ''
n = parseInt(n.charAt(6))
if(n >6) {
        n = n - 6
}
else if(n==0) {
        n = n + 6
}
n += ""

var image = ads[n]
var ad = ""
ad += '<a href="' + image.href + '" \n'
ad += 'target="' + image.target + '" \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
ad += '\n><br>' + image.sponsor + '</a>'
