function PubHome() {
    	var $active = $('#pub-home li.active');
    	 
    		if ( $active.length == 0 ) { 
    				$active = $('#pub-home li:last');
    						};
    		var $next =  $active.next().length ? $active.next()
        : $('#pub-home li:first');
    			$active.removeClass('active').addClass('last-active').hide();
    			$next.css({opacity: 0.0})
        			.addClass('active').show()
        			.animate({opacity: 1.0}, 1000, function() {
           		 $active.removeClass('last-active').css({opacity: 0.0});
        });
  }

$(document).ready(function() {
 $('#pub-home li').hide();
    $('#pub-home li:first').show().addClass('active');  
    
   		var timer = setInterval( "PubHome()", 3000 );
			$("#pub-home li a").click(
 				function (event) { 
    				event.preventDefault(); 
				return false;
  								}
						);  	
});





