var $current = $t = $size = 2;
//ÂÖ»»Ð§¹û
function Scrool()
{
    $('.flash_index li').hover(function(){
        $size = $('.flash_index li').size();
        $current = $size - $(this).nextAll("li").size() - 1;
        
        if ($(this).hasClass('f_tab')) return;
        
        $(".flash_index li.f_tab").children().animate({top:22},300).end().removeClass("f_tab");
        $(this).children().animate({top:0},150).end().addClass("f_tab");
		
        var arry = $(this).attr("id").split("|");
        var Ustr = arry[0];
        var Istr = arry[1];

        $("#fcn a").children().addClass("gray").end()
			.fadeTo(500,0.1,function(){
			    $(this).attr("href",Ustr);
				$(this).children().attr("src",Istr).removeClass("gray");	  //¸ü¸ÄÍ¼Æ¬
				$(this).fadeTo(500,1);
		})
    });
    
    $t = setInterval("showAuto()", 7000);
    $('.flash_index li').hover(function(){clearInterval($t)}, function(){$t = setInterval("showAuto()", 7000)});
}
function showAuto()
{ 
    $current++;
    $current = $current > ($size-1) ? 0 : $current;
    $('.flash_index li').eq($current).trigger('hover');
}
