
<!--
function banner(imgSource,url,alt,chance,imgSourceb,urlb,altb,chanceb) {
this.imgSource = imgSource;
this.url = url;
this.alt = alt;
this.chance = chance;
this.imgSourceb = imgSourceb;
this.urlb = urlb;
this.altb = altb;
this.chanceb = chanceb;
}
function dispBanner() {
with (this) document.write("<A HREF=" + url + "target=_blank rel=nofollow><IMG SRC='" + imgSource + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + alt + "'></A><A HREF=" + urlb + "target=_blank rel=nofollow><IMG SRC='" + imgSourceb + "' WIDTH=181 HEIGHT=60 BORDER=0 ALT='" + altb + "'></A>");
}
 
banner.prototype.dispBanner = dispBanner;
banners = new Array();
 
banners[0] = new banner("images2/cpraiafullb.gif","http://www.hotelcamburi.com.br/home.asp","Hotel Camburi Praia",10,"images2/cpraiafullbp.gif","http://www.hotelcamburi.com.br/home.asp","Hotel Camburi Praia",10);
 
banners[1] = new banner("images2/cpraiafullb.gif","http://www.hotelcamburi.com.br/home.asp","Hotel Camburi Praia",10,"images2/cpraiafullbp.gif","http://www.hotelcamburi.com.br/home.asp","Hotel Camburi Praia",10);
 
sum_of_all_chances = 0;
for (i = 0; i < banners.length; i++) {
sum_of_all_chances += banners[i].chance;
}
 
 
 
function randomBanner() {
chance_limit = 0;
randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
for (i = 0; i < banners.length; i++) {
chance_limit += banners[i].chance;
if (randomly_selected_chance <= chance_limit) {
document.write("<A HREF=" + banners[i].url + " target=_blank rel=nofollow><IMG SRC='" + banners[i].imgSource + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + banners[i].alt + "'></A><A HREF=" + banners[i].urlb + " target=_blank rel=nofollow>&nbsp;<IMG SRC='" + banners[i].imgSourceb + "' WIDTH=181 HEIGHT=60 BORDER=0 ALT='" + banners[i].altb + "'></A>");
return banners[i];
break;
}
}
}
 
 
 
// End -->