;(function($){console.log(" ");$.fn.lubo=function(BannerID,B_Time){return this.each(function(){var _lubo=$('#c_'+BannerID+' .lubo');var _box=$('#c_'+BannerID+' .lubo_box');var _this=jQuery(this);var luboHei=_box.height();var Over='mouseover';var Out='mouseout';var Click='click';var Li="li";var _cirBox='#c_'+BannerID+' .cir_box';var cirOn='cir_on';var _cirOn='#c_'+BannerID+' .cir_on';var cirlen=_box.children(Li).length;var luboTime=B_Time;var switchTime=400;cir();Btn();function cir(){_lubo.append('
');var cir_box=$('#c_'+BannerID+' .cir_box');for(var i=0;i')}var cir_dss=cir_box.width();cir_box.css({left:'50%',marginLeft:-cir_dss/2,bottom:'10px'});cir_box.children(Li).eq(0).addClass(cirOn)}function Btn(){_lubo.append('
');var _btn=$('#c_'+BannerID+' .lubo_btn');_btn.append('
<
>
');var leftBtn=$('#c_'+BannerID+' .left_btn');var rightBtn=$('#c_'+BannerID+' .right_btn');leftBtn.bind(Click,function(){var cir_box=jQuery(_cirBox);var onLen=jQuery(_cirOn).val();_box.children(Li).eq(onLen).stop(false,false).animate({opacity:0,zIndex:0},switchTime);if(onLen==0){onLen=cirlen}_box.children(Li).eq(onLen-1).stop(false,false).animate({opacity:1,zIndex:1},switchTime);cir_box.children(Li).eq(onLen-1).addClass(cirOn).siblings().removeClass(cirOn)});rightBtn.bind(Click,function(){var cir_box=jQuery(_cirBox);var onLen=jQuery(_cirOn).val();_box.children(Li).eq(onLen).stop(false,false).animate({opacity:0,zIndex:0},switchTime);if(onLen==cirlen-1){onLen=-1}_box.children(Li).eq(onLen+1).stop(false,false).animate({opacity:1,zIndex:1},switchTime);cir_box.children(Li).eq(onLen+1).addClass(cirOn).siblings().removeClass(cirOn)})}int=setInterval(clock,luboTime);function clock(){var cir_box=jQuery(_cirBox);var onLen=jQuery(_cirOn).val();_box.children(Li).eq(onLen).stop(false,false).animate({opacity:0,zIndex:0},switchTime);if(onLen==cirlen-1){onLen=-1}_box.children(Li).eq(onLen+1).stop(false,false).animate({opacity:1,zIndex:1},switchTime);cir_box.children(Li).eq(onLen+1).addClass(cirOn).siblings().removeClass(cirOn)}_lubo.bind(Over,function(){clearTimeout(int)});_lubo.bind(Out,function(){int=setInterval(clock,luboTime)});jQuery(_cirBox).children(Li).bind(Over,function(){var inde=jQuery(this).index();jQuery(this).addClass(cirOn).siblings().removeClass(cirOn);_box.children(Li).stop(false,false).animate({opacity:0,zIndex:0},switchTime);_box.children(Li).eq(inde).stop(false,false).animate({opacity:1,zIndex:1},switchTime)})})}})(jQuery);