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

ads[1].width = "400"
ads[1].height = "161"
ads[1].src = "/music-posters-front/rock-guitar-posters.jpg"
ads[1].href = "http://www.castaliapub.com/shop/index.php?shop=1&cat=1&itemid=6"
ads[1].border = "0"
ads[1].mouseover = "music posters"

ads[2].width = "400"
ads[2].height = "161"
ads[2].src = "/music-posters-front/guitar-posters.jpg"
ads[2].href = "http://www.castaliapub.com/shop/index.php?shop=1&cat=1&itemid=2"
ads[2].border = "0"
ads[2].mouseover = "Guitar"

ads[3].width = "400"
ads[3].height = "161"
ads[3].src = "/music-posters-front/keyboard-posters.jpg"
ads[3].href = "http://www.castaliapub.com/shop/index.php?shop=1&cat=1&itemid=3"
ads[3].border = "0"
ads[3].mouseover = "Guitar"

ads[4].width = "400"
ads[4].height = "161"
ads[4].src = "/music-posters-front/bass-guitar-posters.jpg"
ads[4].href = "http://www.castaliapub.com/shop/index.php?shop=1&cat=1&itemid=5"
ads[4].border = "0"
ads[4].mouseover = "Guitar"

ads[5].width = "400"
ads[5].height = "161"
ads[5].src = "/music-posters-front/guitar-posters.jpg"
ads[5].href = "http://www.castaliapub.com/shop/index.php?shop=1&cat=1&itemid=2"
ads[5].border = "0"
ads[5].mouseover = "Guitar"

ads[6].width = "400"
ads[6].height = "161"
ads[6].src = "/music-posters-front/billiards-posters.jpg"
ads[6].href = "http://www.castaliapub.com/shop/index.php?shop=1&cat=3"
ads[6].border = "0"
ads[6].mouseover = "Music Posters"


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 += '<a href="' + image.href + '" \n'
ad += 'target="' + image.target + '" \n'
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
ad += '\n><br>' + image.sponsor + '</a>'