
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;
}
 
// ****** YOU NEED NOT MODIFY ANYTHING THAT IS NOT IN BETWEEN THESE TWO COMMENTS ****

var ads = new adArray(
"images/thumbs/citrnnegrilseaccess.jpg","property-negrilround.html",
"images/thumbs/harmony9.jpg","property-harmony.html",
"images/thumbs/viewfromgarden.jpg","property-20060627.html",
"images/thumbs/Large-patio-over-grounds.jpg","property-20070119.htm",
"images/thumbs/garden---pool-view.jpg","property-20060627.html",
"images/thumbs/House-n-pool-2.jpg","property-20070607_1.html",
"images/thumbs/DSCN5073[2].jpg","property-20080128_2.html"
);

var ad_num = getAdNum(); // don't change this line

document.write('<A HREF="'+ads[ad_num].href+'"><IMG SRC="'+ads[ad_num].src+'" '
+'HEIGHT=99 WIDTH=95 BORDER=0 name=js_ad></A>');

// ****** YOU NEED NOT MODIFY ANYTHING THAT IS NOT IN BETWEEN THESE TWO COMMENTS ****

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()",4000);
 }
}
setTimeout("rotateSponsor()",4000);