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

ads[1].width = "684"
ads[1].height = "263"
ads[1].src = "images/random/rp_home1.jpg"
ads[1].href = "#"
ads[1].border = "0"

ads[2].width = "684"
ads[2].height = "263"
ads[2].src = "images/random/rp_home2.jpg"
ads[2].href = "#"
ads[2].border = "0"

ads[3].width = "684"
ads[3].height = "263"
ads[3].src = "images/random/rp_home3.jpg"
ads[3].href = "#"
ads[3].border = "0"

ads[4].width = "684"
ads[4].height = "263"
ads[4].src = "images/random/rp_home4.jpg"
ads[4].href = "#"
ads[4].border = "0"

ads[5].width = "684"
ads[5].height = "263"
ads[5].src = "images/random/rp_home5.jpg"
ads[5].href = "#"
ads[5].border = "0"

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

var image = ads[n]
var ad = ""
ad += '<img src="' + image.src + '" width="' + image.width + '" height="' + image.height + '" border="' + image.border + '"></a>'
