function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.border = ''
}

ads = new Array()
for(var i=1; i<=17; i++) { ads[i] = new create() }

ads[1].width = "176"
ads[1].height = "232"
ads[1].src = "/images/coffee_talk/coffee_talk.gif"
ads[1].border = "0"

ads[2].width = "170"
ads[2].height = "245"
ads[2].src = "/images/coffee_talk/coffee_talk2.gif"
ads[2].border = "0"

ads[3].width = "181"
ads[3].height = "245"
ads[3].src = "/images/coffee_talk/coffee_talk3.gif"
ads[3].border = "0"

ads[4].width = "181"
ads[4].height = "245"
ads[4].src = "/images/coffee_talk/coffee_talk4.gif"
ads[4].border = "0"

ads[5].width = "181"
ads[5].height = "245"
ads[5].src = "/images/coffee_talk/coffee_talk5.gif"
ads[5].border = "0"

ads[6].width = "181"
ads[6].height = "245"
ads[6].src = "/images/coffee_talk/tc_10.gif"
ads[6].border = "0"

ads[7].width = "181"
ads[7].height = "245"
ads[7].src = "/images/coffee_talk/tc_11.gif"
ads[7].border = "0"

ads[8].width = "181"
ads[8].height = "245"
ads[8].src = "/images/coffee_talk/tc_12.gif"
ads[8].border = "0"

ads[9].width = "181"
ads[9].height = "245"
ads[9].src = "/images/coffee_talk/tc_2.gif"
ads[9].border = "0"

ads[10].width = "181"
ads[10].height = "245"
ads[10].src = "/images/coffee_talk/tc_3.gif"
ads[10].border = "0"

ads[11].width = "181"
ads[11].height = "245"
ads[11].src = "/images/coffee_talk/tc_4.gif"
ads[11].border = "0"

ads[12].width = "181"
ads[12].height = "245"
ads[12].src = "/images/coffee_talk/tc_5.gif"
ads[12].border = "0"

ads[13].width = "181"
ads[13].height = "245"
ads[13].src = "/images/coffee_talk/tc_6.gif"
ads[13].border = "0"

ads[14].width = "181"
ads[14].height = "245"
ads[14].src = "/images/coffee_talk/tc_7.gif"
ads[14].border = "0"

ads[15].width = "181"
ads[15].height = "245"
ads[15].src = "/images/coffee_talk/tc_8.gif"
ads[15].border = "0"

ads[16].width = "181"
ads[16].height = "245"
ads[16].src = "/images/coffee_talk/tc_9.gif"
ads[16].border = "0"

ads[17].width = "181"
ads[17].height = "245"
ads[17].src = "/images/coffee_talk/tc-1.gif"
ads[17].border = "0"


var n = Math.random() + ''
n = parseInt(n.charAt(7))
if(n >17) {
        n = n - 17
}
else if(n==0) {
        n = n +17
}
n += ""

var image = ads[n]
var ad = ""
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border

