function create() {
        this.width = ''
        this.height = ''
        this.src = ''
		this.href = ''
        this.border = ''
}
ad2s = new Array()
for(var i=1; i<=5; i++) { ad2s[i] = new create() }

ad2s[1].width = "193"
ad2s[1].height = "93"
ad2s[1].src = "images/banners/freeLogo.jpg"
ad2s[1].href = "http://www.play.sg/play_news.php#freeMovie"
ad2s[1].src = "images/banners/small_banner_04.jpg"
ad2s[1].href = "play_how_register.php"
ad2s[1].border = "0"

ad2s[2].width = "193"
ad2s[2].height = "93"
ad2s[2].src = "images/banners/small_banner_03.jpg"
ad2s[2].href = "play_how_x.php"
ad2s[2].border = "0"

ad2s[3].width = "193"
ad2s[3].height = "93"
ad2s[3].src = "images/banners/small_banner_04.jpg"
ad2s[3].href = "play_how_register.php"
ad2s[3].border = "0"

ad2s[4].width = "193"
ad2s[4].height = "93"
ad2s[4].src = "images/banners/small_banner_05.jpg"
ad2s[4].href = "play_how_x.php"
ad2s[4].border = "0"

ad2s[5].width = "193"
ad2s[5].height = "93"
ad2s[5].src = "images/banners/small_banner_05.jpg"
ad2s[5].href = "play_how_x.php"
ad2s[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 = 1 // we only want the 1st one
n += ""

var image = ad2s[n]
var ad2 = ""
ad2 += '<a href="' + image.href + '">'
ad2 += '<img src="' + image.src + '" width="' + image.width + '" height="' + image.height + '" border="' + image.border + '"></a>'
