// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.href = ''
        this.border = '1'
        this.mouseover = ''
        this.sponsor = ''
}
ads = new Array()
for(var i=1; i<=9; i++) { ads[i] = new create() }

ads[1].width = "300"
ads[1].height = "250"
ads[1].src = "/bh/images/ads.gif"
ads[1].border = "0"
ads[1].href = "javascript:popup('http://www.jobsignature.com','600','600')"

ads[2].width = "300"
ads[2].height = "250"
ads[2].src = "/bh/images/ads/ad_vakansitil2.jpg"
ads[2].border = "1"
ads[2].href = "javascript:popup('http://www.vakansitil.com/','600','600')"

ads[3].width = "300"
ads[3].height = "250"
ads[3].src = "/bh/images/ads.gif"
ads[3].border = "0"
ads[3].href = "javascript:popup('http://www.jobsignature.com','600','600')"

ads[4].width = "300"
ads[4].height = "250"
ads[4].src = "/bh/images/bh_ad.gif"
ads[4].border = "0"
ads[4].href = "http://www.buildhaiti.com/bh/advertisement.asp"

ads[5].width = "300"
ads[5].height = "250"
ads[5].src = "/bh/images/ads/ad_vakansitil2.jpg"
ads[5].border = "0"
ads[5].href = "javascript:popup('http://www.vakansitil.com/','600','600')"

ads[6].width = "300"
ads[6].height = "250"
ads[6].src = "/bh/images/ads.gif"
ads[6].border = "0"
ads[6].href = "javascript:popup('http://www.jobsignature.com','600','600')"

ads[7].width = "300"
ads[7].height = "250"
ads[7].src = "/bh/images/ads/ad_vakansitil2.jpg"
ads[7].border = "1"
ads[7].href = "javascript:popup('http://www.vakansitil.com/','600','600')"

ads[8].width = "300"
ads[8].height = "250"
ads[8].src = "/bh/images/bh_ad.gif"
ads[8].border = "0"
ads[8].href = "http://www.buildhaiti.com/bh/advertisement.asp"

ads[9].width = "300"
ads[9].height = "250"
ads[9].src = "/bh/images/ads.gif"
ads[9].border = "0"
ads[9].href = "javascript:popup('http://www.jobsignature.com','600','600')"


var n = Math.random() + ''
n = parseInt(n.charAt(9))
if(n >9) {
        n = n - 9
}
else if(n==0) {
        n = n + 9
}
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

function popup(strUrl,width,height) {

       window.open(strUrl,'','width=' + width + ',height=' + height + ',toolbar=yes,scrollbars=yes,resizable=yes');

}

