var rot=0;

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();    
  rot=setInterval("rotate()",5000);
});

function mouseOver(id){
clearInterval(rot);
$("#cont .topbox").each(function(index) {
$('.topbox').hide();
});
$('.topbox').eq(id).show();
}

function mouseOut(){
rot=setInterval("rotate()",5000);
}

