cur = 0;
bspeed = 'normal';

$(document).ready( function() {
  
  setInterval("animate_properties()", 10000);
  
});

function animate_properties() {

  if( cur == $('#tot_cnt').val() ) cur = 0;
  
  i = $('#featured_property_image');
  d = $('#featured_property_descr');
  
  ic = $('#img-' + cur);
  dc = $('#desc-' + cur);
  
  // image
  i.hide('drop', {direction:'right'}, bspeed, function() {
    i.html(ic.html());
    i.show('drop', {direction:'right'}, bspeed);
  });

  // description
  d.hide('drop', {direction:'down'}, bspeed, function() {
    d.html(dc.html());
    d.show('drop', {direction:'down'}, bspeed);
  });
  
  cur++;

}


