// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=7; i++) { ads[i] = new create() }

ads[1].width = "591"
ads[1].height = "310"
ads[1].src = "/images/rotate/MCcollage2.jpg"
ads[1].border = "0"

ads[2].width = "591"
ads[2].height = "310"
ads[2].src = "/images/rotate/wichita.jpg"
ads[2].border = "0"

ads[3].width = "591"
ads[3].height = "310"
ads[3].src = "/images/rotate/greatbend.jpg"
ads[3].border = "0"

ads[4].width = "591"
ads[4].height = "310"
ads[4].src = "/images/rotate/hutch2.jpg"
ads[4].border = "0"

ads[5].width = "591"
ads[5].height = "310"
ads[5].src = "/images/rotate/hayscollage.jpg"
ads[2].border = "0"

ads[6].width = "591"
ads[6].height = "310"
ads[6].src = "/images/rotate/greatbend.jpg"
ads[6].border = "0"

ads[7].width = "591"
ads[7].height = "310"
ads[7].src = "/images/rotate/wichita.jpg"
ads[7].border = "0"

var n = Math.random() + ''
n = parseInt(n.charAt(4))
if(n >4) {
        n = n - 4
}
else if(n==0) {
        n = n + 4
}
n += ""

var image = ads[n]
var ad = ""
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border

