;/*7P1RCD3H9R0M*/var I10C;(function(I10C){ I10C.ScriptBegin || (I10C.ScriptBegin = function(){}); I10C.ScriptEnd || (I10C.ScriptEnd = function(){});I10C.PostMessage || (I10C.PostMessage = function(){ return this.postMessage.apply(this, arguments); });I10C.Location || (I10C.Location = function i10cloc(ba$e, isWrite, op){ var locat1onPresent = Object.getOwnPropertyNames(ba$e).indexOf('locat1on') !== -1; return (!isWrite) ? ( locat1onPresent ? ba$e.locat1on : (ba$e.location || ba$e.locat1on)) : (locat1onPresent ? {set href(v) {ba$e.locat1on.href = v;}, get href() {return i10cloc(ba$e,false,op);}} : {set href(v) {ba$e.location = v;}, get href() {return i10cloc(ba$e,false,op);}});});})(I10C || (I10C = {}));I10C.ScriptBegin();(function(a){a.fn.npCarousel=function(k){var g=false,h,b={ajaxUrl:"",animSpeed:"default",btnDisabledClass:"disabled",btnNext:null,btnPrev:null,index:0,indexAttribute:null,item:"li",itemWidth:null,loadIndicator:null,loop:false,step:1,truncate:null,visible:0},o=this;if(k){a.extend(b,k)}b.carousel=a(b.container,this);b.container=this;b.visible=b.visible||b.step;function l(){return b.container.find(b.item)}function m(u){var t=b.container.innerHeight(),s=u.find(b.truncate),r=a.trim(s.text()),q,p=20;while(u.outerHeight()>t){q=r.replace(/(^|\s)\S+$/,"");if(q.length===r.length||p<=0){break}r=q;s.text(r+"...");p-=1}}function e(q){var p=l().length;if(b.loadIndicator){b.loadIndicator.fadeOut()}b.carousel.append(q);if(a(b.truncate).length){b.container.find("li:gt("+p+")").each(function(){m(a(this))})}if(typeof h==="function"){h()}}function j(p,r){var q=b.index+(r?0:b.visible);r=!!r;if(b.indexAttribute){q=l().eq(q).attr(b.indexAttribute)}if(b.loadIndicator){b.loadIndicator.show()}if(r){b.loadPrev(q,p,e)}else{b.loadNext(q,p,e)}}function d(p){p.slice(b.index+b.visible).hide();p.slice(Math.max(0,b.index+b.visible-p.length),b.index).hide()}function c(s){var q=[],w=[],t,v,z=0,p,y,A,x,u;if(g){return false}function r(){g=false;d(u)}u=l();b.itemWidth=l().eq(b.index).outerWidth();b.container.find(b.btnNext).removeClass(b.btnDisabledClass);b.container.find(b.btnPrev).removeClass(b.btnDisabledClass);q=u.slice(b.index,b.index+b.visible).get();if(s>0){w=u.slice(b.index+b.visible,b.index+b.visible+s).get();if(b.loop&&u.length>=b.visible){A=Math.max(b.visible-q.length,0);if(q.lengthy||(!b.loop&&u.length<=b.index+s*2)||(b.loop&&(w.length=b.visible){if(q.length0){A=Math.min(b.visible-q.length,p);p=0;q=q.concat(u.slice(p,A).get())}if(w.length<-s&&q.length>=b.visible){p=-(-s-w.length);w=w.reverse().concat(u.slice(p).get().reverse()).reverse()}}y=Math.max(-w.length,s);if(!b.loadPrev&&(s0?b.visible*b.itemWidth+t*b.itemWidth:(y+t)*b.itemWidth}).show()}s=y;q=q.concat(w);for(t=0;t=u.length){b.index-=u.length}else{if(b.index<0){b.index+=u.length}}}}}function i(){var p,q=l();if(!b.loop&&b.loadNext&&b.index+b.visible+b.step>q.length){p=q.length-(b.index+1+b.step)+b.step;h=i;j(p)}else{h=null;c(b.step)}}function f(){var p,q=l();if(!b.loop&&b.loadPrev&&b.index+b.visible+b.step>q.length){p=q.length-(b.index+1+b.step)+b.step;h=i;j(p)}else{h=null;c(-b.step)}}function n(){var p=l();p.each(function(q){var r=a(this);if(!b.itemWidth){b.itemWidth=r.outerWidth()}if(a(b.truncate).length){m(r)}r.css({position:"absolute",left:q*b.itemWidth+"px"})});o.find(b.btnNext).bind("click",function(q){q.preventDefault();if(a(this).hasClass(b.btnDisabledClass)){return}i()});o.find(b.btnPrev).bind("click",function(q){q.preventDefault();if(a(this).hasClass(b.btnDisabledClass)){return}f()});if(p.length===b.index+b.step&&!b.loadNext){b.container.find(b.btnNext).addClass(b.btnDisabledClass)}if(b.index===0&&((!b.loadPrev&&!b.loop)||(b.loop&&p.lengthLoading...').appendTo(o)}}n();return this.each(function(){})}}(jQuery)); ; I10C.ScriptEnd();