
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        
}
ads = new Array()
for(var i=1; i<=5; i++) { ads[i] = new create() }

ads[1].width = "533"
ads[1].height = "143"
ads[1].src = "http://www.almged.com/banners/banner1.jpg"


ads[2].width = "533"
ads[2].height = "143"
ads[2].src = "http://www.almged.com/banners/banner2.jpg"



ads[3].width = "533"
ads[3].height = "143"
ads[3].src = "http://www.almged.com/banners/banner3.jpg"



ads[4].width = "533"
ads[4].height = "143"
ads[4].src = "http://www.almged.com/banners/banner4.jpg"



ads[5].width = "533"
ads[5].height = "143"
ads[5].src = "http://www.almged.com/banners/banner5.jpg"



var n = Math.random() + ''
n = parseInt(n.charAt(5))
if(n >5) {
        n = n - 5
}
else if(n==0) {
        n = n + 5
}
n += ""

var image = ads[n]
var ad = ""

ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height 


