;(function($){$.fn.extend({ifadeslide:function(options){var iset={field:$('div#slide img'),icocon:$('div.ico'),hovercls:'high',curindex:0,outtime:200,intime:300,interval:3000};options=options||{};$.extend(iset,options);var ulcon="
";iset.field.each(function(i){ulcon=ulcon+'- '+(i+1)+'
'});ulcon+='
';iset.icocon.append(ulcon);var ico=iset.icocon.find('li');var size=iset.field.size();var index=0;var clearfun=null;var fadefun=function(obj){index=ico.index(obj);iset.field.filter(':visible').fadeout(iset.outtime,function(){iset.field.eq(index).fadein(iset.intime)});$(obj).addclass(iset.hovercls).siblings().removeclass(iset.hovercls)};var changefun=function(){index++;if(index==size){index=0};ico.eq(index).trigger('mouseleave')};var scrollfun=function(){clearfun=setinterval(function(){changefun()},iset.interval)};var stopfun=function(){clearinterval(clearfun)};scrollfun();ico.hover(function(){stopfun();fadefun(this)},function(){fadefun(this)}).eq(iset.curindex).mouseleave();iset.field.hover(function(){stopfun()},function(){scrollfun()})}})})(jquery);