function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=10; i++) { ads[i] = new create() }

ads[1].width = "220"
ads[1].height = "238"
ads[1].src = "images/home_img_01.jpg"
ads[1].border = "0"

ads[2].width = "220"
ads[2].height = "238"
ads[2].src = "images/home_img_02.jpg"
ads[2].border = "0"

ads[3].width = "220"
ads[3].height = "188"
ads[3].src = "images/home_img_03.jpg"
ads[3].border = "0"

ads[4].width = "220"
ads[4].height = "157"
ads[4].src = "images/home_img_04.jpg"
ads[4].border = "0"

ads[5].width = "220"
ads[5].height = "238"
ads[5].src = "images/home_img_05.jpg"
ads[5].border = "0"

ads[6].width = "220"
ads[6].height = "186"
ads[6].src = "images/home_img_06.jpg"
ads[6].border = "0"


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 += '<'
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
