var indx = 1;
var looper = 3500;
var mytimer;
$(document).ready(function(){
if($('#thscrll') && $('#thscrll img').length > 0) {
$('#thscrll').css({"padding-bottom":"0px"}); }
if($("#fcimg li").length >1){
$("#fcimg").after( $('
'));
for(i=1;i<=$("#fcimg li").length;i++){
if(i==1) $("#fcnum").append($(" "));
else $("#fcnum").append($(" "));
}
mytimer = setinterval('showfimg("#fcimg li","#fcnum li","crn")', looper);
$("#fcnum li").click(function(){
indx = $("#fcnum li").index(this);
showfimg("#fcimg li","#fcnum li","crn");
try{
clearinterval(mytimer);
mytimer = setinterval('showfimg("#fcimg li","#fcnum li","crn")', looper);
}catch(e){}
return false;
});
$("#fcimg").hover(function(){
if(mytimer){ clearinterval(mytimer); }
},function(){
mytimer = setinterval('showfimg("#fcimg li","#fcnum li","crn")', looper);
});
}
});
function showfimg(il,nl,cs){
if($(il).length >1){
crobj = $(il).eq(indx);
$(il).not(crobj).hide();
$(nl).removeclass(cs)
$(nl).eq(indx).addclass(cs);
crobj.stop(true,true).fadein('slow');
indx = (++indx) % ($(il).length);
}
}
//һ���ز���www.16sucai.com