// JavaScript Document
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = ''
        this.mouseover = ''
        this.sponsor = ''
}
ad_num = 5
ads = new Array()
for(var i=1; i<=ad_num; i++) { ads[i] = new create() }

ads[1].width = "156"
ads[1].height = "136"
ads[1].src = "http://www.avanquestusa.com/images/sq_feat_constantcontact.gif"
ads[1].href = "http://www.avanquestusa.com/promotions/ConstantContact.asp?AQ_US_BN_0906_LEFTNAV"
ads[1].border = "0"
ads[1].mouseover = ""
ads[1].sponsor = ""

ads[2].width = "156"
ads[2].height = "136"
ads[2].src = "http://www.avanquestusa.com/images/sq_feat_mied.gif"
ads[2].href = "http://www.shop.avanquest.com/usa/prod.php?pid=22&tr1=AQ_US_BN_MIE_LEFTNAV"
ads[2].border = "0"
ads[2].mouseover = ""
ads[2].sponsor = ""

ads[3].width = "156"
ads[3].height = "136"
ads[3].src = "http://www.avanquestusa.com/images/sq_feat_fi7.gif"
ads[3].href = "http://www.shop.avanquest.com/usa/prod.php?pid=2063&tr1=AQ_US_BN_FI7_LEFTNAV"
ads[3].border = "0"
ads[3].mouseover = ""
ads[3].sponsor = ""

ads[4].width = "156"
ads[4].height = "136"
ads[4].src = "http://www.avanquestusa.com/images/sq_feat_myattorney_hb.gif"
ads[4].href = "http://www.shop.avanquest.com/usa/prod.php?pid=2070&tr1=AQ_US_BN_MAHB_LEFTNAV"
ads[4].border = "0"
ads[4].mouseover = ""
ads[4].sponsor = ""

ads[5].width = "120"
ads[5].height = "90"
ads[5].src = "http://www.tqlkg.com/dj77uuymsqBECDDGKLBDCGEIKGG"
ads[5].href = "http://www.anrdoezrs.net/kq75ar-xrzEHFGGJNOEGFJHLNJJ"
ads[5].border = "0"
ads[5].mouseover = ""
ads[5].sponsor = ""

var n = Math.random() + ''
n = parseInt(n.charAt(ad_num))
if(n >ad_num) {
        n = n - ad_num
}
else if(n==0) {
        n = n + ad_num
}
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>' + '</a>'
//ad += '\n><br>Please visit our sponsor: ' + image.sponsor + '</a>'
