
function rotate(){

  last=$("#cont .topbox").index($('.topbox:last')[0]);
  ind=$("#cont .topbox").index($('.topbox:visible')[0]);
  $('.topbox').eq(ind).hide();

  if(ind==last){
    ind="0";
  }
  else
  {
    ind++;
  }

  $('.topbox').eq(ind).show();

}

$().ready(function(){
  $('#cont .topbox:first').show();    
  setInterval("rotate()",5000);
});


