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

ads[0].width = "193"
ads[0].height = "182"
ads[0].src = "images/banner-4.gif"
ads[0].href = "https://www.offshorerx.com/free_shipping.php"
ads[0].border = "0"
ads[0].mouseover = "FREE Airmail Shipping!"

ads[1].width = "193"
ads[1].height = "182"
ads[1].src = "images/banner-5.jpg"
ads[1].href = "https://www.offshorerx.com/magnet_home.php"
ads[1].border = "0"
ads[1].mouseover = "$20 Refer 2 Friends Offer"

ads[2].width = "193"
ads[2].height = "182"
ads[2].src = "images/banner-1.gif"
ads[2].href = "https://www.offshorerx.com/offers.php"
ads[2].border = "0"
ads[2].mouseover = "Customer Offers"

ads[3].width = "193"
ads[3].height = "182"
ads[3].src = "images/banner-7.gif"
ads[3].href = "https://www.offshorerx.com/fax_prescription_offer.php"
ads[3].border = "0"
ads[3].mouseover = "$10 Fax A Prescription Offer"


ads[4].width = "193"
ads[4].height = "182"
ads[4].src = "images/banner-5.gif"
ads[4].href = "https://www.offshorerx.com/extra_free_prescriptions.php"
ads[4].border = "0"
ads[4].mouseover = "OffshoreRx Buyer Program"

/*
ads[5].width = "468"
ads[5].height = "60"
ads[5].src = "http://simplythebest.net/banners/plmrest.gif"
ads[5].href = "http://planmagic.com/business_plan/restaurant_business_plan.html"
ads[5].border = "0"
ads[5].mouseover = "Enter the world of professional restaurant planning"
ads[5].sponsor = "PlanMagic Restaurant" */

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

var image = ads[n]
if (image != '')
{
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>'
}

