// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.border = ''
}

ads = new Array()
for(var i=1; i<=6; i++) { ads[i] = new create() }

// You can switch the images and their image sizes here. Right now there are 6 images rotating. If you need to add another image or subtract an image, find all of the 6's in the javascript code and change it to the number you want. If you want to add another image you need to add another block of code like the ones below and change it's "ads" number. If you want to subtract an image, change all the 6's and then get rid of the block of code below of the image you don't want to show.

ads[1].width = "278"
ads[1].height = "143"
ads[1].src = "/bainweb/images/home_image_1.gif"
ads[1].border = "0"

ads[2].width = "278"
ads[2].height = "143"
ads[2].src = "/bainweb/images/home_image_2.gif"
ads[2].border = "0"

ads[3].width = "278"
ads[3].height = "143"
ads[3].src = "/bainweb/images/home_image_3.gif"
ads[3].border = "0"

ads[4].width = "278"
ads[4].height = "143"
ads[4].src = "/bainweb/images/home_image_4.gif"
ads[4].border = "0"

ads[5].width = "278"
ads[5].height = "143"
ads[5].src = "/bainweb/images/home_image_5.gif"
ads[5].border = "0"

ads[6].width = "278"
ads[6].height = "143"
ads[6].src = "/bainweb/images/home_image_6.gif"
ads[6].border = "0"

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 += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border