  var doScroll=true;


$(document).ready(function(){
  
  $('#banner div a').each(function(){
    if($(this).attr('href')=='')
      $(this).children().unwrap();
  })
  



  setTimeout(nextbanner,3000)
  $('#banner').hover(
    function(){
      doScroll=false
    }
  ,
    function(){
      doScroll=true
      setTimeout(nextbanner,3000)
    }
  )
  
})


function nextbanner()
{
  if(doScroll && $('#banner div').length>1)
  {
    $('#banner div:last').fadeOut(700,function(){
      $('#banner').prepend($(this).show())
      setTimeout(nextbanner,3000)
    })
    
  }
}
