jQuery(function($){
$("#wrapper .content:first-child").css({
"height":"490px",
"overflow":"hidden"
});
$("#slider").css("position","relative");
$("#slider img").css({"position":"absolute","z-index":"3","top":"490px"});
$("#slider img:eq(0)").css({"top":"0px"}).addClass("current");


    function anima(){ 
  var cc= $("#slider img.current")
  if( cc.css("top") =="0px"){
  cc.removeClass("current").next("img").addClass("current").animate({top:"0px"},{queue:false,duration:3000}).prev().fadeOut(4000,function(){
  $(this).css({"top":"490px", "z-index":cc.css("z-index")});
  $(this).fadeIn();
  })
  
  
  if(cc.next().attr("id")== "cite"){
  cc.removeClass("current");
  $("#slider img:eq(0)").addClass("current").animate({top:"0px"},3000);
  cc.fadeOut(4000,function(){
  $(this).css({"top":"490px", "z-index":"7"});
  $(this).fadeIn();
  })
 }
 }
    
}


setInterval(anima,7000)
})
