// funtions for image roator

function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.border = ''
}
imageRot = new Array()
for(var i=1; i<=7; i++) { imageRot[i] = new create() }


imageRot[1].width = "627"
imageRot[1].height = "236"
imageRot[1].src = "images/wholeskymonitor9.jpg"
imageRot[1].border = "0"

imageRot[2].width = "627"
imageRot[2].height = "236"
imageRot[2].src = "images/wholeskymonitor2.jpg"
imageRot[2].border = "0"

imageRot[3].width = "627"
imageRot[3].height = "236"
imageRot[3].src = "images/wholeskymonitor7.jpg"
imageRot[3].border = "0"

imageRot[4].width = "627"
imageRot[4].height = "236"
imageRot[4].src = "images/wholeskymonitor9.jpg"
imageRot[4].border = "0"

imageRot[5].width = "627"
imageRot[5].height = "236"
imageRot[5].src = "images/wholeskymonitor2.jpg"
imageRot[5].border = "0"

imageRot[6].width = "627"
imageRot[6].height = "236"
imageRot[6].src = "images/wholeskymonitor7.jpg"
imageRot[6].border = "0"

imageRot[7].width = "627"
imageRot[7].height = "236"
imageRot[7].src = "images/wholeskymonitor2.jpg"
imageRot[7].border = "0"


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 = imageRot[n]
var ad = ""


ad += '<img src="' + image.src + '" width="' + image.width
ad += '" height="' + image.height + '" alt="Whole Sky Monitor" border="' + image.border
ad += '">'





