// Copyright 1996, Infohiway, Inc. (http://www.infohiway.com)
// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)
function adArray() {
 for (i=0; i*2<adArray.arguments.length; i++) {
  this[i] = new Object();
  this[i].src = adArray.arguments[i*2];
  this[i].href = adArray.arguments[i*2+1];
 }
 this.length = i;
}
function getAdNum() {
 dat = new Date();
 dat = (dat.getTime()+"").charAt(8);
 if (dat.length == 1)
  ad_num = dat%ads.length;
 else
  ad_num = 0;
 return ad_num;
}
var ads = new adArray(
"caslideshow/TN_antigua_church_of_the_compania.jpg","http://www.ecoadventures.com/CABrochure/guatemala.html#Antigua",
"saslideshow/TN_RioDeJanieroView.jpg","http://www.ecoadventures.com/SABrochure/elviajero.html",
"saslideshow/TN_iguazufallsboatraft.jpg","http://www.ecoadventures.com/SABrochure/elviajero.html",
"caslideshow/TN_arenalvolcano.jpg","http://www.ecoadventures.com/CABrochure/costaricahighlands.html",
"saslideshow/TN_puerto_montt.jpg","http://www.ecoadventures.com/SABrochure/chileanlakesexcursions.html",
"caslideshow/TN_antigua_colorful_buildings.jpg","http://www.ecoadventures.com/CABrochure/guatemala.html#Antigua",
"saslideshow/TN_penguins.jpg","http://www.ecoadventures.com/SABrochure/argentinaecoadventures.html",
"caslideshow/TN_chichi_market.jpg","http://www.ecoadventures.com/CABrochure/guatemala.html#ChichiAtitlan",
"saslideshow/TN_rio_amazonas.jpg","http://www.ecoadventures.com/SABrochure/peruamazoncruise.html",
"caslideshow/TN_lakeatitlan.jpg","http://www.ecoadventures.com/CABrochure/guatemala.html#GuatemalaHighlands",
"saslideshow/TN_saltochico.jpg","http://www.ecoadventures.com/SABrochure/explorainpatagonia.html",
"caslideshow/TN_reventazon_river_rafting.jpg","http://www.ecoadventures.com/CABrochure/costaricalowlands.html",
"saslideshow/TN_vinadelmarsailboats.jpg","http://www.ecoadventures.com/SABrochure/chilemore.html",
"saslideshow/TN_nazcalines.jpg","http://www.ecoadventures.com/SABrochure/nazcasipan.html",
"caslideshow/TN_cartago_church.jpg","http://www.ecoadventures.com/CABrochure/costaricawelcome.html#SanJose",
"saslideshow/TN_coraloffshore.jpg","http://www.ecoadventures.com/SABrochure/galapagos.html",
"caslideshow/TN_antigua_clock_arch_street.jpg","http://www.ecoadventures.com/CABrochure/guatemala.html#Antigua",
"saslideshow/TN_atacama_desert.jpg","http://www.ecoadventures.com/SABrochure/explorainatacama.html");
var ad_num = getAdNum(); 
document.write('<LEFT><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TD><A HREF="'+ads[ad_num].href+'" target="mainFrame"><IMG SRC="'+ads[ad_num].src+'" '
+'WIDTH="128" HEIGHT="96" BORDER=0 name=js_ad></A></TD></TR></TABLE></CENTER>');
link_num = document.links.length-1;
function rotateSponsor() {
 if (document.images) {
  ad_num = (ad_num+1)%ads.length;
  document.js_ad.src = ads[ad_num].src;
  document.links[link_num].href = ads[ad_num].href;
  setTimeout("rotateSponsor()",30000);
 }
}
setTimeout("rotateSponsor()",30000);