function banner_fade(this_banner, the_all){
i=0;

$(this_banner).find(".first").animate({opacity: 'show'}, 800);
$(this_banner).find("a").not(".first").animate({opacity: 'show'}, 1600);
	
curr_delay=0;
	
$(this_banner).find("a").each(function(i) {

delay= parseInt($(this).attr("name"));

curr_delay=curr_delay+delay*1000+800;


if(i==the_all-1){
$(this).pause(curr_delay).animate({opacity: 'hide'}, 800, function(){
																   

banner_fade(this_banner, the_all);

});
} else {
$(this).pause(curr_delay).animate({opacity: 'hide'}, 800);
}
	

});


}
