function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=6; i++) { ads[i] = new create() }

ads[1].width = "500"
ads[1].height = "150"
ads[1].src = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/bannerrot/08.jpg"
ads[1].href = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/index.html"
ads[1].border = "0"
ads[1].mouseover = ""
ads[1].sponsor = ""

ads[2].width = "500"
ads[2].height = "150"
ads[2].src = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/bannerrot/09.jpg"
ads[2].href = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/index.html"
ads[2].border = "0"
ads[2].mouseover = ""
ads[2].sponsor = ""

ads[3].width = "500"
ads[3].height = "150"
ads[3].src = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/bannerrot/10.jpg"
ads[3].href = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/index.html"
ads[3].border = "0"
ads[3].mouseover = ""
ads[3].sponsor = ""

ads[4].width = "500"
ads[4].height = "150"
ads[4].src = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/bannerrot/08.jpg"
ads[4].href = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/index.html"
ads[4].border = "0"
ads[4].mouseover = ""
ads[4].sponsor = ""

ads[5].width = "500"
ads[5].height = "150"
ads[5].src = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/bannerrot/09.jpg"
ads[5].href = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/index.html"
ads[5].border = "0"
ads[5].mouseover = ""
ads[5].sponsor = ""

ads[6].width = "500"
ads[6].height = "150"
ads[6].src = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/bannerrot/10.jpg"
ads[6].href = "http://travel.willer.co.jp/x/bus/dynamic/3/ja/html/pc/business/index.html"
ads[6].border = "0"
ads[6].mouseover = ""
ads[6].sponsor = ""

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 += '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>' + image.sponsor + '</a>'
