/* jquery.mousewheel 
 * 3.1.12
 */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});


/* jquery.cookie
 * 1.0
 * http://www.cnblogs.com/yjzhu/p/4359420.html
 ---------------------------------------------
 $.cookie('the_cookie', 'the_value');
 $.cookie('the_cookie', 'the_value', {expires: 7});
 $.cookie('the_cookie');
 $.cookie('the_cookie', null);
 */
jQuery.cookie=function(key,value,options){if(arguments.length>1&&(value===null||typeof value!=="object")){options=jQuery.extend({},options);if(value===null){options.expires=-1}if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days)}return(document.cookie=[encodeURIComponent(key),'=',options.raw?String(value):encodeURIComponent(String(value)),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))}options=value||{};var result,decode=options.raw?function(s){return s}:decodeURIComponent;return(result=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie))?decode(result[1]):null};


/* jquery.easing
 * 1.3
 * http://gsgd.co.uk/sandbox/jquery/easing
 --------------------------------------------
 $(element).animate({top: 500, opacity: 1}, 1000, 'easeOutBounce');
 --------------------------------------------
 jswing.def.easeInQuad.easeOutQuad.easeInOutQuad.easeInCubic.easeOutCubic.easeInOutCubic.
 easeInQuart.easeInOutQuart.easeOutQuart.easeInQuint.easeInOutQuint.easeOutQuint.easeInOutSine.
 easeInSine.easeInExpo.easeOutSine.easeOutExpo.easeOutCirc.easeInCirc.easeInOutExpo.easeInElastic.
 easeOutElastic.easeInOutCirc.easeInOutElastic.easeInOutBack.easeOutBounce.easeOutBack.easeInOutBounce.easeInBack.easeInBounce
 */
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});


/* jquery.lazyload
 * 1.9.1
 * http://www.w3cways.com/1765.html
 -----------------------------------
 $("img.lazy").lazyload();
 -----------------------------------
 data-original
 -----------------------------------
 */
(function($,window,document,undefined){var $window=$(window);$.fn.lazyload=function(options){var elements=this;var $container;var settings={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:window,data_attribute:"original",skip_invisible:true,appear:null,load:null,placeholder:""};function update(){var counter=0,H=$(window).height();elements.each(function(){var $this=$(this),tp=$(this).offset().top;if(tp<H+settings.threshold){$this.attr({"src":$this.attr("data-"+settings.data_attribute)})}else{$this.attr({"src":settings.placeholder})}if(settings.skip_invisible&&!$this.is(":visible")){return}if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$this.trigger("appear");counter=0}else{if(++counter>settings.failure_limit){return false}}})}if(options){if(undefined!==options.failurelimit){options.failure_limit=options.failurelimit;delete options.failurelimit}if(undefined!==options.effectspeed){options.effect_speed=options.effectspeed;delete options.effectspeed}$.extend(settings,options)}$container=(settings.container===undefined||settings.container===window)?$window:$(settings.container);if(0===settings.event.indexOf("scroll")){$container.bind(settings.event,function(){return update()})}this.each(function(){var self=this;var $self=$(self);self.loaded=false;if($self.attr("src")===undefined||$self.attr("src")===false){if($self.is("img")){$self.attr("src",settings.placeholder)}}$self.one("appear",function(){if(!this.loaded){if(settings.appear){var elements_left=elements.length;settings.appear.call(self,elements_left,settings)}$("<img />").bind("load",function(){var original=$self.attr("data-"+settings.data_attribute);$self.hide();if($self.is("img")){$self.attr("src",original)}else{$self.css("background-image","url('"+original+"')")}$self[settings.effect](settings.effect_speed);self.loaded=true;var temp=$.grep(elements,function(element){return!element.loaded});elements=$(temp);if(settings.load){var elements_left=elements.length;settings.load.call(self,elements_left,settings)}}).attr("src",$self.attr("data-"+settings.data_attribute))}});if(0!==settings.event.indexOf("scroll")){$self.bind(settings.event,function(){if(!self.loaded){$self.trigger("appear")}})}});$window.bind("resize",function(){update()});if((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appVersion)){$window.bind("pageshow",function(event){if(event.originalEvent&&event.originalEvent.persisted){elements.each(function(){$(this).trigger("appear")})}})}$(document).ready(function(){update()});return this};$.belowthefold=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=(window.innerHeight?window.innerHeight:$window.height())+$window.scrollTop()}else{fold=$(settings.container).offset().top+$(settings.container).height()}return fold<=$(element).offset().top-settings.threshold};$.rightoffold=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$window.width()+$window.scrollLeft()}else{fold=$(settings.container).offset().left+$(settings.container).width()}return fold<=$(element).offset().left-settings.threshold};$.abovethetop=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$window.scrollTop()}else{fold=$(settings.container).offset().top}return fold>=$(element).offset().top+settings.threshold+$(element).height()};$.leftofbegin=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$window.scrollLeft()}else{fold=$(settings.container).offset().left}return fold>=$(element).offset().left+settings.threshold+$(element).width()};$.inviewport=function(element,settings){return!$.rightoffold(element,settings)&&!$.leftofbegin(element,settings)&&!$.belowthefold(element,settings)&&!$.abovethetop(element,settings)};$.extend($.expr[":"],{"below-the-fold":function(a){return $.belowthefold(a,{threshold:0})},"above-the-top":function(a){return!$.belowthefold(a,{threshold:0})},"right-of-screen":function(a){return $.rightoffold(a,{threshold:0})},"left-of-screen":function(a){return!$.rightoffold(a,{threshold:0})},"in-viewport":function(a){return $.inviewport(a,{threshold:0})},"above-the-fold":function(a){return!$.belowthefold(a,{threshold:0})},"right-of-fold":function(a){return $.rightoffold(a,{threshold:0})},"left-of-fold":function(a){return!$.rightoffold(a,{threshold:0})}})})(jQuery,window,document);


/* jquery.fullPage
 * 2.8.6
 * https://github.com/alvarotrigo/fullPage.js
 --------------------------------------------
 $(id).fullpage()
 --------------------------------------------
 */
!function(e,n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,e,e.document,e.Math)}):"object"==typeof exports&&exports?module.exports=n(require("jquery"),e,e.document,e.Math):n(jQuery,e,e.document,e.Math)}("undefined"!=typeof window?window:this,function(e,n,t,o,i){"use strict";var a="fullpage-wrapper",r="."+a,s="fp-scrollable",l="."+s,c="fp-responsive",d="fp-notransition",f="fp-destroyed",u="fp-enabled",h="fp-viewing",p="active",v="."+p,m="fp-completely",g="."+m,S=".section",w="fp-section",y="."+w,b=y+v,x=y+":first",C=y+":last",T="fp-tableCell",k="."+T,I="fp-auto-height",L="fp-normal-scroll",E="fp-nav",A="#"+E,M="fp-tooltip",H="."+M,O="fp-show-active",z=".slide",B="fp-slide",R="."+B,D=R+v,P="fp-slides",F="."+P,V="fp-slidesContainer",q="."+V,Y="fp-table",N="fp-slidesNav",U="."+N,X=U+" a",W="fp-controlArrow",j="."+W,K="fp-prev",Q="."+K,_=W+" "+K,G=j+Q,J="fp-next",Z="."+J,$=W+" "+J,ee=j+Z,ne=e(n),te=e(t),oe={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0};e.fn.fullpage=function(s){function l(n,t){at("autoScrolling",n,t);var o=e(b);s.autoScrolling&&!s.scrollBar?(lt.css({overflow:"hidden",height:"100%"}),W(Mt.recordHistory,"internal"),gt.css({"-ms-touch-action":"none","touch-action":"none"}),o.length&&et(o.position().top)):(lt.css({overflow:"visible",height:"initial"}),W(!1,"internal"),gt.css({"-ms-touch-action":"","touch-action":""}),et(0),o.length&&lt.scrollTop(o.position().top))}function W(e,n){at("recordHistory",e,n)}function Q(e,n){"internal"!==n&&s.fadingEffect&&dt.fadingEffect&&dt.fadingEffect.update(e),at("scrollingSpeed",e,n)}function J(e,n){at("fitToSection",e,n)}function Z(e){s.lockAnchors=e}function ae(e){e?(jn(),Kn()):(Wn(),Qn())}function re(n,t){"undefined"!=typeof t?(t=t.replace(/ /g,"").split(","),e.each(t,function(e,t){tt(n,t,"m")})):n?(ae(!0),_n()):(ae(!1),Gn())}function se(n,t){"undefined"!=typeof t?(t=t.replace(/ /g,"").split(","),e.each(t,function(e,t){tt(n,t,"k")})):s.keyboardScrolling=n}function le(){var n=e(b).prev(y);n.length||!s.loopTop&&!s.continuousVertical||(n=e(y).last()),n.length&&Ke(n,null,!0)}function ce(){var n=e(b).next(y);n.length||!s.loopBottom&&!s.continuousVertical||(n=e(y).first()),n.length&&Ke(n,null,!1)}function de(e,n){Q(0,"internal"),fe(e,n),Q(Mt.scrollingSpeed,"internal")}function fe(e,n){var t=Rn(e);"undefined"!=typeof n?Pn(e,n):t.length>0&&Ke(t)}function ue(e){Xe("right",e)}function he(e){Xe("left",e)}function pe(n){if(!gt.hasClass(f)){wt=!0,St=ne.height(),e(y).each(function(){var n=e(this).find(F),t=e(this).find(R);s.verticalCentered&&e(this).find(k).css("height",zn(e(this))+"px"),e(this).css("height",St+"px"),s.scrollOverflow&&(t.length?t.each(function(){Hn(e(this))}):Hn(e(this))),t.length>1&&Sn(n,n.find(D))});var t=e(b),o=t.index(y);o&&de(o+1),wt=!1,e.isFunction(s.afterResize)&&n&&s.afterResize.call(gt),e.isFunction(s.afterReBuild)&&!n&&s.afterReBuild.call(gt)}}function ve(n){var t=ct.hasClass(c);n?t||(l(!1,"internal"),J(!1,"internal"),e(A).hide(),ct.addClass(c),e.isFunction(s.afterResponsive)&&s.afterResponsive.call(gt,n),s.responsiveSlides&&dt.responsiveSlides&&dt.responsiveSlides.toSections()):t&&(l(Mt.autoScrolling,"internal"),J(Mt.autoScrolling,"internal"),e(A).show(),ct.removeClass(c),e.isFunction(s.afterResponsive)&&s.afterResponsive.call(gt,n),s.responsiveSlides&&dt.responsiveSlides&&dt.responsiveSlides.toSlides())}function me(){return{options:s,internals:{getXmovement:Mn,removeAnimation:kn,getTransforms:nt,lazyLoad:$e,addAnimation:Tn,performHorizontalMove:yn,silentLandscapeScroll:$n,keepSlidesPosition:We,silentScroll:et,styleSlides:xe}}}function ge(){s.css3&&(s.css3=Xn()),s.scrollBar=s.scrollBar||s.hybrid,ye(),be(),re(!0),l(s.autoScrolling,"internal");var n=e(b).find(D);n.length&&(0!==e(b).index(y)||0===e(b).index(y)&&0!==n.index())&&$n(n),Cn(),Un(),"complete"===t.readyState&&an(),ne.on("load",an)}function Se(){ne.on("scroll",Be).on("hashchange",rn).blur(hn).resize(xn),te.keydown(sn).keyup(cn).on("click touchstart",A+" a",pn).on("click touchstart",X,vn).on("click",H,ln),e(y).on("click touchstart",j,un),s.normalScrollElements&&(te.on("mouseenter",s.normalScrollElements,function(){ae(!1)}),te.on("mouseleave",s.normalScrollElements,function(){ae(!0)}))}function we(e){var t="fp_"+e+"Extension";dt[e]="undefined"!=typeof n[t]?new n[t]:null}function ye(){var n=gt.find(s.sectionSelector);s.anchors.length||(s.anchors=n.filter("[data-anchor]").map(function(){return e(this).data("anchor").toString()}).get()),s.navigationTooltips.length||(s.navigationTooltips=n.filter("[data-tooltip]").map(function(){return e(this).data("tooltip").toString()}).get())}function be(){gt.css({height:"100%",position:"relative"}),gt.addClass(a),e("html").addClass(u),St=ne.height(),gt.removeClass(f),ke(),e(y).each(function(n){var t=e(this),o=t.find(R),i=o.length;Ce(t,n),Te(t,n),i>0?xe(t,o,i):s.verticalCentered&&On(t)}),s.fixedElements&&s.css3&&e(s.fixedElements).appendTo(ct),s.navigation&&Le(),Ae(),Me(),s.fadingEffect&&dt.fadingEffect&&dt.fadingEffect.apply(),s.scrollOverflow?("complete"===t.readyState&&Ee(),ne.on("load",Ee)):ze()}function xe(n,t,o){var i=100*o,a=100/o;t.wrapAll('<div class="'+V+'" />'),t.parent().wrap('<div class="'+P+'" />'),n.find(q).css("width",i+"%"),o>1&&(s.controlArrows&&Ie(n),s.slidesNavigation&&Vn(n,o)),t.each(function(n){e(this).css("width",a+"%"),s.verticalCentered&&On(e(this))});var r=n.find(D);r.length&&(0!==e(b).index(y)||0===e(b).index(y)&&0!==r.index())?$n(r):t.eq(0).addClass(p)}function Ce(n,t){t||0!==e(b).length||n.addClass(p),n.css("height",St+"px"),s.paddingTop&&n.css("padding-top",s.paddingTop),s.paddingBottom&&n.css("padding-bottom",s.paddingBottom),"undefined"!=typeof s.sectionsColor[t]&&n.css("background-color",s.sectionsColor[t]),"undefined"!=typeof s.anchors[t]&&n.attr("data-anchor",s.anchors[t])}function Te(n,t){"undefined"!=typeof s.anchors[t]&&n.hasClass(p)&&En(s.anchors[t],t),s.menu&&s.css3&&e(s.menu).closest(r).length&&e(s.menu).appendTo(ct)}function ke(){gt.find(s.sectionSelector).addClass(w),gt.find(s.slideSelector).addClass(B)}function Ie(e){e.find(F).after('<div class="'+_+'"></div><div class="'+$+'"></div>'),"#fff"!=s.controlArrowColor&&(e.find(ee).css("border-color","transparent transparent transparent "+s.controlArrowColor),e.find(G).css("border-color","transparent "+s.controlArrowColor+" transparent transparent")),s.loopHorizontal||e.find(G).hide()}function Le(){ct.append('<div id="'+E+'"><ul></ul></div>');var n=e(A);n.addClass(function(){return s.showActiveTooltip?O+" "+s.navigationPosition:s.navigationPosition});for(var t=0;t<e(y).length;t++){var o="";s.anchors.length&&(o=s.anchors[t]);var i='<li><a href="#'+o+'"><span></span></a>',a=s.navigationTooltips[t];"undefined"!=typeof a&&""!==a&&(i+='<div class="'+M+" "+s.navigationPosition+'">'+a+"</div>"),i+="</li>",n.find("ul").append(i)}e(A).css("margin-top","-"+e(A).height()/2+"px"),e(A).find("li").eq(e(b).index(y)).find("a").addClass(p)}function Ee(){e(y).each(function(){var n=e(this).find(R);n.length?n.each(function(){Hn(e(this))}):Hn(e(this))}),ze()}function Ae(){gt.find('iframe[src*="youtube.com/embed/"]').each(function(){He(e(this),"enablejsapi=1")})}function Me(){gt.find('iframe[src*="player.vimeo.com/"]').each(function(){He(e(this),"api=1")})}function He(e,n){var t=e.attr("src");e.attr("src",t+Oe(t)+n)}function Oe(e){return/\?/.test(e)?"&":"?"}function ze(){var n=e(b);n.addClass(m),s.scrollOverflowHandler.afterRender&&s.scrollOverflowHandler.afterRender(n),$e(n),en(n),e.isFunction(s.afterLoad)&&s.afterLoad.call(n,n.data("anchor"),n.index(y)+1),e.isFunction(s.afterRender)&&s.afterRender.call(gt)}function Be(){var n;if(!s.autoScrolling||s.scrollBar){var o=ne.scrollTop(),i=De(o),a=0,r=o+ne.height()/2,l=ct.height()-ne.height()===o,c=t.querySelectorAll(y);if(l)a=c.length-1;else for(var d=0;d<c.length;++d){var f=c[d];f.offsetTop<=r&&(a=d)}if(Re(i)&&(e(b).hasClass(m)||e(b).addClass(m).siblings().removeClass(m)),n=e(c).eq(a),!n.hasClass(p)){Ht=!0;var u=e(b),h=u.index(y)+1,v=An(n),g=n.data("anchor"),S=n.index(y)+1,w=n.find(D);if(w.length)var x=w.data("anchor"),C=w.index();bt&&(n.addClass(p).siblings().removeClass(p),e.isFunction(s.onLeave)&&s.onLeave.call(u,h,S,v),e.isFunction(s.afterLoad)&&s.afterLoad.call(n,g,S),tn(u),$e(n),en(n),En(g,S-1),s.anchors.length&&(ft=g),qn(C,x,g,S)),clearTimeout(Lt),Lt=setTimeout(function(){Ht=!1},100)}s.fitToSection&&(clearTimeout(Et),Et=setTimeout(function(){bt&&s.fitToSection&&(e(b).is(n)&&(wt=!0),Ke(e(b)),wt=!1)},s.fitToSectionDelay))}}function Re(n){var t=e(b).position().top,o=t+ne.height();return"up"==n?o>=ne.scrollTop()+ne.height():t<=ne.scrollTop()}function De(e){var n=e>Ot?"down":"up";return Ot=e,Ft=e,n}function Pe(e,n){if(Ct.m[e]){var t="down"===e?"bottom":"top",o="down"===e?ce:le;if(dt.scrollHorizontally&&(o=dt.scrollHorizontally.getScrollSection(e,o)),n.length>0){if(!s.scrollOverflowHandler.isScrolled(t,n))return!0;o()}else o()}}function Fe(n){var t=n.originalEvent,i=e(t.target).closest(y);if(!Ve(n.target)&&qe(t)){s.autoScrolling&&n.preventDefault();var a=s.scrollOverflowHandler.scrollable(i);if(bt&&!pt){var r=Zn(t);Rt=r.y,Dt=r.x,i.find(F).length&&o.abs(Bt-Dt)>o.abs(zt-Rt)?o.abs(Bt-Dt)>ne.outerWidth()/100*s.touchSensitivity&&(Bt>Dt?Ct.m.right&&ue(i):Ct.m.left&&he(i)):s.autoScrolling&&o.abs(zt-Rt)>ne.height()/100*s.touchSensitivity&&(zt>Rt?Pe("down",a):Rt>zt&&Pe("up",a))}}}function Ve(n,t){t=t||0;var o=e(n).parent();return t<s.normalScrollElementTouchThreshold&&o.is(s.normalScrollElements)?!0:t==s.normalScrollElementTouchThreshold?!1:Ve(o,++t)}function qe(e){return"undefined"==typeof e.pointerType||"mouse"!=e.pointerType}function Ye(e){var n=e.originalEvent;if(s.fitToSection&&lt.stop(),qe(n)){var t=Zn(n);zt=t.y,Bt=t.x}}function Ne(e,n){for(var t=0,i=e.slice(o.max(e.length-n,1)),a=0;a<i.length;a++)t+=i[a];return o.ceil(t/n)}function Ue(t){var i=(new Date).getTime(),a=e(g).hasClass(L);if(s.autoScrolling&&!ht&&!a){t=t||n.event;var r=t.wheelDelta||-t.deltaY||-t.detail,l=o.max(-1,o.min(1,r)),c="undefined"!=typeof t.wheelDeltaX||"undefined"!=typeof t.deltaX,d=o.abs(t.wheelDeltaX)<o.abs(t.wheelDelta)||o.abs(t.deltaX)<o.abs(t.deltaY)||!c;xt.length>149&&xt.shift(),xt.push(o.abs(r)),s.scrollBar&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var f=e(b),u=s.scrollOverflowHandler.scrollable(f),h=i-Pt;if(Pt=i,h>200&&(xt=[]),bt){var p=Ne(xt,10),v=Ne(xt,70),m=p>=v;m&&d&&(0>l?Pe("down",u):Pe("up",u))}return!1}s.fitToSection&&lt.stop()}function Xe(n,t){var o="undefined"==typeof t?e(b):t,i=o.find(F),a=i.find(R).length;if(!(!i.length||pt||2>a)){var r=i.find(D),l=null;if(l="left"===n?r.prev(R):r.next(R),!l.length){if(!s.loopHorizontal)return;l="left"===n?r.siblings(":last"):r.siblings(":first")}pt=!0,Sn(i,l,n)}}function We(){e(D).each(function(){$n(e(this),"internal")})}function je(e){var n=e.position(),t=n.top,o=n.top>Ft,i=t-St+e.outerHeight(),a=s.bigSectionsDestination;return e.outerHeight()>St?(!o&&!a||"bottom"===a)&&(t=i):(o||wt&&e.is(":last-child"))&&(t=i),Ft=t,t}function Ke(n,t,o){if("undefined"!=typeof n){var i=je(n),a={element:n,callback:t,isMovementUp:o,dtop:i,yMovement:An(n),anchorLink:n.data("anchor"),sectionIndex:n.index(y),activeSlide:n.find(D),activeSection:e(b),leavingSection:e(b).index(y)+1,localIsResizing:wt};if(!(a.activeSection.is(n)&&!wt||s.scrollBar&&ne.scrollTop()===a.dtop&&!n.hasClass(I))){if(a.activeSlide.length)var r=a.activeSlide.data("anchor"),l=a.activeSlide.index();s.autoScrolling&&s.continuousVertical&&"undefined"!=typeof a.isMovementUp&&(!a.isMovementUp&&"up"==a.yMovement||a.isMovementUp&&"down"==a.yMovement)&&(a=Ge(a)),(!e.isFunction(s.onLeave)||a.localIsResizing||s.onLeave.call(a.activeSection,a.leavingSection,a.sectionIndex+1,a.yMovement)!==!1)&&(tn(a.activeSection),n.addClass(p).siblings().removeClass(p),$e(n),s.scrollOverflowHandler.onLeave(),bt=!1,qn(l,r,a.anchorLink,a.sectionIndex),Qe(a),ft=a.anchorLink,En(a.anchorLink,a.sectionIndex))}}}function Qe(n){if(s.css3&&s.autoScrolling&&!s.scrollBar){var t="translate3d(0px, -"+n.dtop+"px, 0px)";Bn(t,!0),s.scrollingSpeed?kt=setTimeout(function(){Ze(n)},s.scrollingSpeed):Ze(n)}else{var o=_e(n);e(o.element).animate(o.options,s.scrollingSpeed,s.easing).promise().done(function(){s.scrollBar?setTimeout(function(){Ze(n)},30):Ze(n)})}}function _e(e){var n={};return s.autoScrolling&&!s.scrollBar?(n.options={top:-e.dtop},n.element=r):(n.options={scrollTop:e.dtop},n.element="html, body"),n}function Ge(n){return n.isMovementUp?e(b).before(n.activeSection.nextAll(y)):e(b).after(n.activeSection.prevAll(y).get().reverse()),et(e(b).position().top),We(),n.wrapAroundElements=n.activeSection,n.dtop=n.element.position().top,n.yMovement=An(n.element),n}function Je(n){n.wrapAroundElements&&n.wrapAroundElements.length&&(n.isMovementUp?e(x).before(n.wrapAroundElements):e(C).after(n.wrapAroundElements),et(e(b).position().top),We())}function Ze(n){Je(n),e.isFunction(s.afterLoad)&&!n.localIsResizing&&s.afterLoad.call(n.element,n.anchorLink,n.sectionIndex+1),s.scrollOverflowHandler.afterLoad(),s.resetSliders&&dt.resetSliders&&dt.resetSliders.apply(n),en(n.element),n.element.addClass(m).siblings().removeClass(m),bt=!0,e.isFunction(n.callback)&&n.callback.call(this)}function $e(n){var n=on(n);n.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){e(this).attr("src",e(this).data("src")),e(this).removeAttr("data-src"),e(this).is("source")&&e(this).closest("video").get(0).load()})}function en(n){var n=on(n);n.find("video, audio").each(function(){var n=e(this).get(0);n.hasAttribute("data-autoplay")&&"function"==typeof n.play&&n.play()}),n.find('iframe[src*="youtube.com/embed/"]').each(function(){var n=e(this).get(0);n.hasAttribute("data-autoplay")&&nn(n),n.onload=function(){n.hasAttribute("data-autoplay")&&nn(n)}})}function nn(e){e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function tn(n){var n=on(n);n.find("video, audio").each(function(){var n=e(this).get(0);n.hasAttribute("data-keepplaying")||"function"!=typeof n.pause||n.pause()}),n.find('iframe[src*="youtube.com/embed/"]').each(function(){var n=e(this).get(0);/youtube\.com\/embed\//.test(e(this).attr("src"))&&!n.hasAttribute("data-keepplaying")&&e(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function on(n){var t=n.find(D);return t.length&&(n=e(t)),n}function an(){var e=n.location.hash.replace("#","").split("/"),t=decodeURIComponent(e[0]),o=decodeURIComponent(e[1]);t&&(s.animateAnchor?Pn(t,o):de(t,o))}function rn(){if(!Ht&&!s.lockAnchors){var e=n.location.hash.replace("#","").split("/"),t=decodeURIComponent(e[0]),o=decodeURIComponent(e[1]),i="undefined"==typeof ft,a="undefined"==typeof ft&&"undefined"==typeof o&&!pt;t.length&&(t&&t!==ft&&!i||a||!pt&&ut!=o)&&Pn(t,o)}}function sn(n){clearTimeout(At);var t=e(":focus");if(!t.is("textarea")&&!t.is("input")&&!t.is("select")&&"true"!==t.attr("contentEditable")&&""!==t.attr("contentEditable")&&s.keyboardScrolling&&s.autoScrolling){var o=n.which,i=[40,38,32,33,34];e.inArray(o,i)>-1&&n.preventDefault(),ht=n.ctrlKey,At=setTimeout(function(){mn(n)},150)}}function ln(){e(this).prev().trigger("click")}function cn(e){yt&&(ht=e.ctrlKey)}function dn(e){2==e.which&&(Vt=e.pageY,gt.on("mousemove",gn))}function fn(e){2==e.which&&gt.off("mousemove")}function un(){var n=e(this).closest(y);e(this).hasClass(K)?Ct.m.left&&he(n):Ct.m.right&&ue(n)}function hn(){yt=!1,ht=!1}function pn(n){n.preventDefault();var t=e(this).parent().index();Ke(e(y).eq(t))}function vn(n){n.preventDefault();var t=e(this).closest(y).find(F),o=t.find(R).eq(e(this).closest("li").index());Sn(t,o)}function mn(n){var t=n.shiftKey;switch(n.which){case 38:case 33:Ct.k.up&&le();break;case 32:if(t&&Ct.k.up){le();break}case 40:case 34:Ct.k.down&&ce();break;case 36:Ct.k.up&&fe(1);break;case 35:Ct.k.down&&fe(e(y).length);break;case 37:Ct.k.left&&he();break;case 39:Ct.k.right&&ue();break;default:return}}function gn(e){bt&&(e.pageY<Vt&&Ct.m.up?le():e.pageY>Vt&&Ct.m.down&&ce()),Vt=e.pageY}function Sn(n,t,o){var i=n.closest(y),a={slides:n,destiny:t,direction:o,destinyPos:t.position(),slideIndex:t.index(),section:i,sectionIndex:i.index(y),anchorLink:i.data("anchor"),slidesNav:i.find(U),slideAnchor:Nn(t),prevSlide:i.find(D),prevSlideIndex:i.find(D).index(),localIsResizing:wt};return a.xMovement=Mn(a.prevSlideIndex,a.slideIndex),a.localIsResizing||(bt=!1),s.onSlideLeave&&!a.localIsResizing&&"none"!==a.xMovement&&e.isFunction(s.onSlideLeave)&&s.onSlideLeave.call(a.prevSlide,a.anchorLink,a.sectionIndex+1,a.prevSlideIndex,a.xMovement,a.slideIndex)===!1?void(pt=!1):(tn(a.prevSlide),t.addClass(p).siblings().removeClass(p),a.localIsResizing||$e(t),!s.loopHorizontal&&s.controlArrows&&(i.find(G).toggle(0!==a.slideIndex),i.find(ee).toggle(!t.is(":last-child"))),i.hasClass(p)&&qn(a.slideIndex,a.slideAnchor,a.anchorLink,a.sectionIndex),dt.continuousHorizontal&&dt.continuousHorizontal.apply(a),yn(n,a,!0),void(s.interlockedSlides&&dt.interlockedSlides&&dt.interlockedSlides.apply(a)))}function wn(n){dt.continuousHorizontal&&dt.continuousHorizontal.afterSlideLoads(n),bn(n.slidesNav,n.slideIndex),n.localIsResizing||(e.isFunction(s.afterSlideLoad)&&s.afterSlideLoad.call(n.destiny,n.anchorLink,n.sectionIndex+1,n.slideAnchor,n.slideIndex),bt=!0),en(n.destiny),pt=!1,dt.interlockedSlides&&dt.interlockedSlides.apply(n)}function yn(e,n,t){var i=n.destinyPos;if(s.css3){var a="translate3d(-"+o.round(i.left)+"px, 0px, 0px)";Tn(e.find(q)).css(nt(a)),It=setTimeout(function(){t&&wn(n)},s.scrollingSpeed,s.easing)}else e.animate({scrollLeft:o.round(i.left)},s.scrollingSpeed,s.easing,function(){t&&wn(n)})}function bn(e,n){e.find(v).removeClass(p),e.find("li").eq(n).find("a").addClass(p)}function xn(){if(Cn(),vt){var n=e(t.activeElement);if(!n.is("textarea")&&!n.is("input")&&!n.is("select")){var i=ne.height();o.abs(i-qt)>20*o.max(qt,i)/100&&(pe(!0),qt=i)}}else clearTimeout(Tt),Tt=setTimeout(function(){pe(!0)},350)}function Cn(){var e=s.responsive||s.responsiveWidth,n=s.responsiveHeight,t=e&&ne.outerWidth()<e,o=n&&ne.height()<n;e&&n?ve(t||o):e?ve(t):n&&ve(o)}function Tn(e){var n="all "+s.scrollingSpeed+"ms "+s.easingcss3;return e.removeClass(d),e.css({"-webkit-transition":n,transition:n})}function kn(e){return e.addClass(d)}function In(n,t){s.navigation&&(e(A).find(v).removeClass(p),n?e(A).find('a[href="#'+n+'"]').addClass(p):e(A).find("li").eq(t).find("a").addClass(p))}function Ln(n){s.menu&&(e(s.menu).find(v).removeClass(p),e(s.menu).find('[data-menuanchor="'+n+'"]').addClass(p))}function En(e,n){Ln(e),In(e,n)}function An(n){var t=e(b).index(y),o=n.index(y);return t==o?"none":t>o?"up":"down"}function Mn(e,n){return e==n?"none":e>n?"left":"right"}function Hn(e){if(!e.hasClass("fp-noscroll")){e.css("overflow","hidden");var n,t=s.scrollOverflowHandler,o=t.wrapContent(),i=e.closest(y),a=t.scrollable(e);a.length?n=t.scrollHeight(e):(n=e.get(0).scrollHeight,s.verticalCentered&&(n=e.find(k).get(0).scrollHeight));var r=St-parseInt(i.css("padding-bottom"))-parseInt(i.css("padding-top"));n>r?a.length?t.update(e,r):(s.verticalCentered?e.find(k).wrapInner(o):e.wrapInner(o),t.create(e,r)):t.remove(e),e.css("overflow","")}}function On(e){e.hasClass(Y)||e.addClass(Y).wrapInner('<div class="'+T+'" style="height:'+zn(e)+'px;" />')}function zn(e){var n=St;if(s.paddingTop||s.paddingBottom){var t=e;t.hasClass(w)||(t=e.closest(y));var o=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom"));n=St-o}return n}function Bn(e,n){n?Tn(gt):kn(gt),gt.css(nt(e)),setTimeout(function(){gt.removeClass(d)},10)}function Rn(n){var t=gt.find(y+'[data-anchor="'+n+'"]');return t.length||(t=e(y).eq(n-1)),t}function Dn(e,n){var t=n.find(F),o=t.find(R+'[data-anchor="'+e+'"]');return o.length||(o=t.find(R).eq(e)),o}function Pn(e,n){var t=Rn(e);"undefined"==typeof n&&(n=0),e===ft||t.hasClass(p)?Fn(t,n):Ke(t,function(){Fn(t,n)})}function Fn(e,n){if("undefined"!=typeof n){var t=e.find(F),o=Dn(n,e);o.length&&Sn(t,o)}}function Vn(e,n){e.append('<div class="'+N+'"><ul></ul></div>');var t=e.find(U);t.addClass(s.slidesNavPosition);for(var o=0;n>o;o++)t.find("ul").append('<li><a href="#"><span></span></a></li>');t.css("margin-left","-"+t.width()/2+"px"),t.find("li").first().find("a").addClass(p)}function qn(e,n,t,o){var i="";s.anchors.length&&!s.lockAnchors&&(e?("undefined"!=typeof t&&(i=t),"undefined"==typeof n&&(n=e),ut=n,Yn(i+"/"+n)):"undefined"!=typeof e?(ut=n,Yn(t)):Yn(t)),Un()}function Yn(e){if(s.recordHistory)location.hash=e;else if(vt||mt)n.history.replaceState(i,i,"#"+e);else{var t=n.location.href.split("#")[0];n.location.replace(t+"#"+e)}}function Nn(e){var n=e.data("anchor"),t=e.index();return"undefined"==typeof n&&(n=t),n}function Un(){var n=e(b),t=n.find(D),o=Nn(n),i=Nn(t),a=String(o);t.length&&(a=a+"-"+i),a=a.replace("/","-").replace("#","");var r=new RegExp("\\b\\s?"+h+"-[^\\s]+\\b","g");ct[0].className=ct[0].className.replace(r,""),ct.addClass(h+"-"+a)}function Xn(){var e,o=t.createElement("p"),a={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};t.body.insertBefore(o,null);for(var r in a)o.style[r]!==i&&(o.style[r]="translate3d(1px,1px,1px)",e=n.getComputedStyle(o).getPropertyValue(a[r]));return t.body.removeChild(o),e!==i&&e.length>0&&"none"!==e}function Wn(){t.addEventListener?(t.removeEventListener("mousewheel",Ue,!1),t.removeEventListener("wheel",Ue,!1),t.removeEventListener("MozMousePixelScroll",Ue,!1)):t.detachEvent("onmousewheel",Ue)}function jn(){var e,o="";n.addEventListener?e="addEventListener":(e="attachEvent",o="on");var a="onwheel"in t.createElement("div")?"wheel":t.onmousewheel!==i?"mousewheel":"DOMMouseScroll";"DOMMouseScroll"==a?t[e](o+"MozMousePixelScroll",Ue,!1):t[e](o+a,Ue,!1)}function Kn(){gt.on("mousedown",dn).on("mouseup",fn)}function Qn(){gt.off("mousedown",dn).off("mouseup",fn)}function _n(){if(vt||mt){var n=Jn();e(r).off("touchstart "+n.down).on("touchstart "+n.down,Ye).off("touchmove "+n.move).on("touchmove "+n.move,Fe)}}function Gn(){if(vt||mt){var n=Jn();e(r).off("touchstart "+n.down).off("touchmove "+n.move)}}function Jn(){var e;return e=n.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function Zn(e){var n=[];return n.y="undefined"!=typeof e.pageY&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,n.x="undefined"!=typeof e.pageX&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,mt&&qe(e)&&s.scrollBar&&(n.y=e.touches[0].pageY,n.x=e.touches[0].pageX),n}function $n(e,n){Q(0,"internal"),"undefined"!=typeof n&&(wt=!0),Sn(e.closest(F),e),"undefined"!=typeof n&&(wt=!1),Q(Mt.scrollingSpeed,"internal")}function et(e){if(s.scrollBar)gt.scrollTop(e);else if(s.css3){var n="translate3d(0px, -"+e+"px, 0px)";Bn(n,!1)}else gt.css("top",-e)}function nt(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function tt(e,n,t){switch(n){case"up":Ct[t].up=e;break;case"down":Ct[t].down=e;break;case"left":Ct[t].left=e;break;case"right":Ct[t].right=e;break;case"all":"m"==t?re(e):se(e)}}function ot(n){l(!1,"internal"),re(!1),se(!1),gt.addClass(f),clearTimeout(It),clearTimeout(kt),clearTimeout(Tt),clearTimeout(Lt),clearTimeout(Et),ne.off("scroll",Be).off("hashchange",rn).off("resize",xn),te.off("click",A+" a").off("mouseenter",A+" li").off("mouseleave",A+" li").off("click",X).off("mouseover",s.normalScrollElements).off("mouseout",s.normalScrollElements),e(y).off("click",j),clearTimeout(It),clearTimeout(kt),n&&it()}function it(){et(0),gt.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){e(this).attr("src",e(this).data("src")),e(this).removeAttr("data-src")}),e(A+", "+U+", "+j).remove(),e(y).css({height:"","background-color":"",padding:""}),e(R).css({width:""}),gt.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),lt.css({overflow:"",height:""}),e("html").removeClass(u),ct.removeClass(c),e.each(ct.get(0).className.split(/\s+/),function(e,n){0===n.indexOf(h)&&ct.removeClass(n)}),e(y+", "+R).each(function(){s.scrollOverflowHandler.remove(e(this)),e(this).removeClass(Y+" "+p)}),kn(gt),gt.find(k+", "+q+", "+F).each(function(){e(this).replaceWith(this.childNodes)}),lt.scrollTop(0);var n=[w,B,V];e.each(n,function(n,t){e("."+t).removeClass(t)})}function at(e,n,t){s[e]=n,"internal"!==t&&(Mt[e]=n)}function rt(){return e("html").hasClass(u)?void st("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(s.continuousVertical&&(s.loopTop||s.loopBottom)&&(s.continuousVertical=!1,st("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),s.scrollBar&&s.scrollOverflow&&st("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),s.continuousVertical&&s.scrollBar&&(s.continuousVertical=!1,st("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),void e.each(s.anchors,function(n,t){var o=te.find("[name]").filter(function(){return e(this).attr("name")&&e(this).attr("name").toLowerCase()==t.toLowerCase()}),i=te.find("[id]").filter(function(){return e(this).attr("id")&&e(this).attr("id").toLowerCase()==t.toLowerCase()});(i.length||o.length)&&(st("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),i.length&&st("error",'"'+t+'" is is being used by another element `id` property'),o.length&&st("error",'"'+t+'" is is being used by another element `name` property'))}))}function st(e,n){console&&console[e]&&console[e]("fullPage: "+n)}if(e("html").hasClass(u))return void rt();var lt=e("html, body"),ct=e("body"),dt=e.fn.fullpage;s=e.extend({menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!0,scrollHorizontally:!0,interlockedSlides:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowHandler:ie,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,sectionSelector:S,slideSelector:z,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null},s);var ft,ut,ht,pt=!1,vt=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),mt="ontouchstart"in n||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,gt=e(this),St=ne.height(),wt=!1,yt=!0,bt=!0,xt=[],Ct={};Ct.m={up:!0,down:!0,left:!0,right:!0},Ct.k=e.extend(!0,{},Ct.m);var Tt,kt,It,Lt,Et,At,Mt=e.extend(!0,{},s);rt(),oe.click=mt,oe=e.extend(oe,s.scrollOverflowOptions),e.extend(e.easing,{easeInOutCubic:function(e,n,t,o,i){return(n/=i/2)<1?o/2*n*n*n+t:o/2*((n-=2)*n*n+2)+t}}),e(this).length&&(dt.setAutoScrolling=l,dt.setRecordHistory=W,dt.setScrollingSpeed=Q,dt.setFitToSection=J,dt.setLockAnchors=Z,dt.setMouseWheelScrolling=ae,dt.setAllowScrolling=re,dt.setKeyboardScrolling=se,dt.moveSectionUp=le,dt.moveSectionDown=ce,dt.silentMoveTo=de,dt.moveTo=fe,dt.moveSlideRight=ue,dt.moveSlideLeft=he,dt.reBuild=pe,dt.setResponsive=ve,dt.getFullpageData=me,dt.destroy=ot,we("continuousHorizontal"),we("scrollHorizontally"),we("resetSliders"),we("interlockedSlides"),we("responsiveSlides"),we("fadingEffect"),ge(),Se());var Ht=!1,Ot=0,zt=0,Bt=0,Rt=0,Dt=0,Pt=(new Date).getTime(),Ft=0,Vt=0,qt=St},"undefined"!=typeof IScroll&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)});var ie={refreshId:null,iScrollInstances:[],onLeave:function(){var n=e(b).find(l).data("iscrollInstance");"undefined"!=typeof n&&n&&n.wheelOff()},afterLoad:function(){var n=e(b).find(l).data("iscrollInstance");"undefined"!=typeof n&&n&&n.wheelOn()},create:function(n,t){var o=n.find(l);o.height(t),o.each(function(){var n=jQuery(this),t=n.data("iscrollInstance");t&&e.each(ie.iScrollInstances,function(){e(this).destroy()}),t=new IScroll(n.get(0),oe),ie.iScrollInstances.push(t),n.data("iscrollInstance",t)})},isScrolled:function(e,n){var t=n.data("iscrollInstance");return t?"top"===e?t.y>=0&&!n.scrollTop():"bottom"===e?0-t.y+n.scrollTop()+1+n.innerHeight()>=n[0].scrollHeight:void 0:!0},scrollable:function(e){return e.find(F).length?e.find(D).find(l):e.find(l)},scrollHeight:function(e){return e.find(l).children().first().get(0).scrollHeight},remove:function(e){var n=e.find(l);if(n.length){var t=n.data("iscrollInstance");t.destroy(),n.data("iscrollInstance",null)}e.find(l).children().first().children().first().unwrap().unwrap()},update:function(n,t){clearTimeout(ie.refreshId),ie.refreshId=setTimeout(function(){e.each(ie.iScrollInstances,function(){e(this).get(0).refresh()})},150),n.find(l).css("height",t+"px").parent().css("height",t+"px")},wrapContent:function(){return'<div class="'+s+'"><div class="fp-scroller"></div></div>'}}});


/* jquery.banner
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).banner();
 --------------------------------------------
 interval   -- 轮播时间
 speed     -- 轮播速度
 --------------------------------------------
 */
(function(){
	$.fn.banner = function(obj){
        var defaults = {
			interval: 8000,
            speed: 1000
		}
		
		var opts = $.extend(defaults, obj);
        
        var $id = this,
            $list = $id.children('.list'),
            $tip = $id.children('.tip'),
            $prev = $id.children('.prev'),
            $next = $id.children('.next'),
            
            t,
            
            _index = 0,
            _size = $list.children('*').length;
		
        if($tip.length){
            var _html = '';
            for(var i=0; i<_size; i++){
                if(i==0){
                    _html += '<li class="active"></li>';
                }else{
                    _html += '<li></li>';
                }
            }
            $tip.html(_html);
        }

        $list.children('*').eq(0).addClass('active');

        function _prev(){
            _index --;
            
            if(_index < 0){
                _index = _size - 1;
            }
            $list.children('*').eq(_index).addClass('active').stop(true, true).fadeIn(opts.speed).siblings('*').removeClass('active').stop(false, false).fadeOut(opts.speed);
            $tip.children('*').eq(_index).addClass('active').siblings().removeClass('active');
        }

        function _next(){
            _index ++;
            
            if(_index >= _size){
                _index = 0;
            }
            $list.children('*').eq(_index).addClass('active').stop(true, true).fadeIn(opts.speed).siblings('*').removeClass('active').stop(false, false).fadeOut(opts.speed);
            $tip.children('*').eq(_index).addClass('active').siblings().removeClass('active');
        }

        $tip.children('*').click(function(){
            _index = $(this).index() - 1;
            _next();
        })

        $prev.bind('click', function(){
            _prev();
        })

        $next.bind('click', function(){
            _next();
        })
		
        $id.hover(
            function(){
                clearInterval(t);
                
                $prev.fadeIn();
                $next.fadeIn();
            },
            function(){
                t = setInterval(function(){
                    _next();
                }, opts.interval);
                
                $prev.fadeOut();
                $next.fadeOut();
            }
        )

        t = setInterval(function(){            
            _next();
        }, opts.interval);
	}
})(jQuery);


/* jquery.phone
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).phone();
 --------------------------------------------
 format   -- 格式
 --------------------------------------------
 */
(function(){
	$.fn.phone = function(obj){
		var defaults = {
			format: null
		}
		
		var opts = $.extend(defaults, obj);
		
		this.each(function(index, element){
        	var tel = $.trim($(this).text()),
				telLength = tel.length;
				
			if(opts.format == null){	
				if(telLength == 11){
					var firstNum = tel.substr(0,1);
					if(firstNum == 0){
						var tel1 = tel.substr(0, 4);
						var tel2 = tel.substr(4, 7);
						tel = tel1+ "-" + tel2;
					}else{
						var tel1 = tel.substr(0, 3);
						var tel2 = tel.substr(3, 4);
						var tel3 = tel.substr(7, 4);
						tel = tel1+ "-" + tel2 + "-" + tel3;
					}
				}else if(telLength == 12){
					var tel1 = tel.substr(0, 4);
					var tel2 = tel.substr(4, 8);
					tel = tel1+ "-" + tel2;
				}else if(telLength == 10){
					var tel1 = tel.substr(0, 3);
					var tel2 = tel.substr(3, 4);
					var tel3 = tel.substr(7, 3);
					tel = tel1+ "-" + tel2 + "-" + tel3;
				}
			}else{
				var arr = opts.format.split('-'),
					_tel = '',
					_ix = 0;
				
				for(i in arr){
					if(i == 0){
						_tel += tel.substr(_ix, arr[i].length);
					}else{
						_tel += '-' + tel.substr(_ix, arr[i].length);
					}
					_ix += arr[i].length;
				}
				
				tel = _tel;
			}
			
            $(this).html(tel);
        })
	}
})(jQuery);


/* jquery.addFavorite
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).addFavorite();
 --------------------------------------------
 */
(function(){
	$.fn.addFavorite = function(obj){
        var defaults = {
            tip: '抱歉，您所使用的浏览器无法完成此操作。'
        }
        
        var opts = $.extend(defaults, obj);
        
        function addFavorite(title, url){
            try{
                window.external.addFavorite(url, title);
            }
            catch(e){
                try{
                    window.sidebar.addPanel(title, url, '');
                }
                catch(e){
                    alert(opts.tip);
               }
            }
        }
        
        this.bind('click', function(){
            addFavorite($('title').html(), location.href, '');
        });
    }
})(jQuery);


/* jquery.setHome
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).setHome();
 --------------------------------------------
 */
(function(){
	$.fn.setHome = function(obj){
        var defaults = {
            tip: '抱歉，您所使用的浏览器无法完成此操作。'
        }
        
        var opts = $.extend(defaults, obj);
        
        function setHome(obj,url){
            try{
                obj.style.behavior='url(#default#homepage)';
                obj.setHomePage(url);
            }catch(e){
               if(window.netscape){
                  try{
                      netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
                  }catch(e){
                      alert('抱歉，此操作被浏览器拒绝！');
                  }
               }else{
                   alert(opts.tip);
               }
            }
        }
        
        this.bind('click', function(){
            setHome(this, location.href);
        });
    }
})(jQuery);


/* jquery.former
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).former();
 --------------------------------------------
 */
(function(){
	$.fn.former = function(obj){
        var $postform = this,
			reg = {
				name: /([\u4e00-\u9fa5]{2,4})/,
				phone: /((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/,
				email: /^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/
			}
			
		function console(msg, l, t){
			var _offsetX = 0,
                  _offsetY = 44;
              if(msg == null){
                  msg = '必填字段，请输入正确的内容';
              }
              if ($('#jLog').length){
                  $('#jLog').html(msg + '<i></i>').show().css({ 'left': (l + _offsetX), 'top': (t + _offsetY) });
              } else {
                  $('<div class="dialog-log" id="jLog">' + msg + '<i></i></div>').appendTo('body').css({ 'left': (l + _offsetX), 'top': (t + _offsetY) });
              }
		}
		
		$postform.find('.txt, .text, .code').bind({
			'focus': function(){
				$(this).parent().addClass('onfocus');
				if ($(this).val() == $(this).attr('placeholder')) {
					$(this).val('');
				}
			},
			'blur': function(){
				$(this).parent().removeClass('onfocus');
				$('#jLog').hide();
				if ($(this).val() == '') {
					$(this).val($(this).attr('placeholder'));
				}
			},
			'keyup': function(){
				$('#jLog').hide();
			}
		});
        
        var $name = $postform.find('[name="Name"]'),
              $phone = $postform.find('[name="Phone"]'),
              $email = $postform.find('[name="Email"]'),
              $code = $postform.find('[name="txtImageCode"]');
        
		$postform.find('[type="submit"]').bind('click', function () {
			if ($name.val() == '' || $name.val() == $name.attr('placeholder')) {
				console($name.attr('null'), $name.offset().left, $name.offset().top);
				$name.focus();
				return false;
			}
            if (!$name.val().match(reg.name)) {
				console($name.attr('error'), $name.offset().left, $name.offset().top);
				$name.focus();
				return false;
			}
            
			if ($phone.val() == '' || $phone.val() == $phone.attr('placeholder')) {
				console($phone.attr('null'), $phone.offset().left, $phone.offset().top);
				$phone.focus();
				return false;
			}
			if (!$phone.val().match(reg.phone)) {
				console($phone.attr('error'), $phone.offset().left, $phone.offset().top);
				$phone.focus();
				return false;
			}
            
			if (($email.val() != '' && $email.val() != $email.attr('placeholder')) && !$email.val().match(reg.email)) {
				console($email.attr('error'), $email.offset().left, $email.offset().top);
				$email.focus();
				return false;
			}
            
			if ($code.val() == '' || $code.val() == $code.attr('placeholder')) {
				console($code.attr('null'), $code.offset().left, $code.offset().top);
				$code.focus();
				return false;
			}
		})
	}
})(jQuery);


/* jquery.bdmap
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).bdmap();
 --------------------------------------------
 */
(function(){
	$.fn.bdmap = function(obj){
        var me = this;
        
		function func(){
        	if(me.find(".BMap_bubble_title a").length < 1){
                setTimeout(func, 100);
              }else{
                me.find(".BMap_bubble_title a").attr({"target":"_blank"});
              }
            }
        
        func();
	}
})(jQuery);


/* jquery.ajaxload
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).ajaxload();
 --------------------------------------------
 container     -- 容器
 pager         -- 页面
 ajaxpager     -- ajax翻页按钮
 nodata        -- 结束提示文字
 --------------------------------------------
 */
(function(){
	$.fn.ajaxload = function(obj){
		var defaults = {
			container: 'ajaxLoader',
            pager: '.pager',
            ajaxpager: '#ajaxPager',
            nodata: ''
		}
		
		var opts = $.extend(defaults, obj);
		
		var me = this,
              bool = true,
              pageNum = '';
        
        if(!me.length || !$(opts.pager).length){
            return false;
        }
        if(!$(opts.pager + ' span:contains("下一页")').length){
            $(opts.ajaxpager).show();
        }
        
        $(opts.ajaxpager).bind('click', function(){
            bool = false;
            var p = $(opts.pager + ' a:contains("下一页")'),
                url = p.attr('href');
            if(pageNum == url || !$(opts.pager + ' a:contains("下一页")').length){
                if(opts.nodata == ''){
                    $(opts.ajaxpager).hide();
                }else{
                	$(opts.ajaxpager).html(opts.nodata);
                }
                return false;
            }else{
                pageNum = url
            }
            $.ajax({
                url : url,
                type: 'GET',
                dataType: 'html',
                beforeSend: function(){
                    $(opts.ajaxpager).html('正在努力加载..');
                },
                success: function(data){
                  var html = $(data).children('#'+ opts.container +' .list').html(),
                      pager = $(data).find(opts.pager + ' a:contains("下一页")').attr('href');
                  me.find('.list').append(html);
                  if(pager == undefined){
                      opts.nodata == '' ? $(opts.ajaxpager).hide() : $(opts.ajaxpager).html(opts.nodata) ;
                  }else{
                      p.attr({'href': pager});
                      $(opts.ajaxpager).html('点击加载更多');
                  }
                  bool = true;
                }
            });
        });
	}
})(jQuery);


/* jquery.searcher
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).searcher();
 --------------------------------------------
 key     -- 关键词
 tip      -- 提示
 --------------------------------------------
 */
(function(){
	$.fn.searcher = function(obj){
        var defaults = {
            key: '#SearchTxt',
            tip: '请输入关键词'
        }
        
        var opts = $.extend(defaults, obj);
        
        var me = this,
              isFocus = false;
        
		$(opts.key).bind({
			'focus': function(){
				isFocus = true;
				$(this).val('');
			},
			'blur': function(){
				isFocus = false;
                if($(this).val() == ''){
					$(this).val(opts.tip);
                }
			}
		})
		me.bind('click', function(){
			if($(opts.key).val() == '' || $(opts.key).val() == $(opts.key).attr('placeholder')){
				alert(opts.tip);
				return false;
			}
			search();
		});
		$(document).keydown(function(event){
			event = event ? event : ( window.event ? window.event : null );
			if(event.keyCode == 13 && isFocus == true){
				me.trigger('click');
			}
		});
	}
})(jQuery);


/* jquery.album
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).album();
 --------------------------------------------
 data     -- 数据源
 --------------------------------------------
 */
(function(){
	$.fn.album = function(obj){
		if(typeof(multigraph) == 'undefined'){
			return false;
		}
		
        var defaults = {
            data: multigraph
        }
        
        var opts = $.extend(defaults, obj);
        
        var $photo = this,
			$original = $photo.find('.original img'),
			$prev = $photo.find('.prev'),
			$next = $photo.find('.next'),
			$thum = $photo.find('.thum dl'),
			index = 0,
			_os = 4,
			_size = 0,
			_width = 101;
		
        if(typeof(opts.data) != 'undefined'){
            var _html = '';
            $(opts.data).each(function(index, element){
                if(index == 0){
					_html += '<dd class="current"><img src="'+ element.src +'" title="'+ element.title +'" alt="'+ element.title +'" /></dd>';
                  	$original.attr({'src': element.src});
                }else{
					_html += '<dd><img src="'+ element.src +'" title="'+ element.title +'" alt="'+ element.title +'" /></dd>';
                }
            });
            $thum.html(_html);
            _size = opts.data.length;
        	$thum.width(_width*_size);
        };
		
		$photo.on('click', '.thum dd', function(){
			$(this).addClass('current').siblings().removeClass('current');
			$original.attr({'src': $(this).children('img').attr('src')});
		})
		
		function fun(){
			$thum.animate({'left': -index*_width}, 300, function(){
				$prev.removeClass('nodrop');
				$next.removeClass('nodrop');
				if(index == (_size - _os)){
					$next.addClass('nodrop');
				}else if(index == 0){
					$prev.addClass('nodrop');
				}
			});
		}
		$prev.bind('click', function(){
			if(index > 0){
				index --;
				fun();
			}
		})
		$next.bind('click', function(){
			if(index < _size - _os){
				index ++;
				fun();
			}
		});
	}
})(jQuery);


/* jquery.scroller
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).scroller();
 --------------------------------------------
 autoplay  -- 是否自动
 interval  -- 轮播间隔
 speed     -- 轮播速度
 offset    -- 偏移量
 number    -- 展示数量
 --------------------------------------------
 */
(function(){	
	$.fn.scroller = function(obj){
		var defaults = {
			autoplay: true,
			interval: 5000,
			speed: 500,
			offset: 0,
			number: 1
		}
		
		var opts = $.extend(defaults, obj);
		
		var $id = this,
			$list = $id.find('.list'),
			$tip = $id.find('.tip'),
			$prev = $id.find('.prev'),
			$next = $id.find('.next'),
			t,
			_interval = opts.interval,
			_speed = opts.speed,
			_index = 0,
			_size = $list.children('*').length,
			_width = $list.children('*').width() + opts.offset;
		
		if(_size <= opts.number){
			return false;
		}
		
		$list.append($list.html())
			 .width(2*_width*_size)
			 .css({'position': 'relative'});
		
		$prev.show();
		$next.show();
		
		if($tip.length){
			var _html = '';
			for(var i=0; i<_size; i++){
				if(i==0){
					_html += '<li class="active"></li>';
				}else{
					_html += '<li></li>';
				}
			}
			$tip.html(_html);
		}
		
		$list.children('*').eq(0).addClass('active');
		
		function _resize(){
			$list.width(2*_width*_size)
				 .css({'left': - _width*_index});
			
			if(opts.autoplay){
				t = setInterval(function(){
					_next();
				}, _interval);
			}
		}
		
		function _prev(){
			_index --;
			
			if(_index < 0){
				$list.css({'left': -(_size) * _width});
				_index = _size - 1;
			}
			
			$list.stop(false, false).animate({'left': -_index * _width}, _speed, 'easeInOutExpo');
			$list.children('*').eq(_index).addClass('active').siblings().removeClass('active');
			$tip.children('*').eq(_index).addClass('active').siblings().removeClass('active');
		}
		
		function _next(){
			_index ++;
			
			if(_index == _size){
				$list.stop(false, false).animate({'left': -_index * _width}, _speed, 'easeInOutExpo');
				$list.children('*').eq(_index).addClass('active').siblings().removeClass('active');
				$tip.children('*').eq(0).addClass('active').siblings().removeClass('active');
				return;
			}else if(_index > _size){
				$list.css({'left': 0});
				_index = 1;
			}
			
			$list.stop(false, false).animate({'left': -_index * _width}, _speed, 'easeInOutExpo');
			$list.children('*').eq(_index).addClass('active').siblings().removeClass('active');
			$tip.children('*').eq(_index).addClass('active').siblings().removeClass('active');
		}
		
		$tip.children('*').click(function(){
			_index = $(this).index() - 1;
			_next();
		})
		
		$prev.bind('click', function(){
			_prev();
		})
		
		$next.bind('click', function(){
			_next();
		})

		if(opts.autoplay){
			$id.hover(
				function(){
					clearInterval(t);
				},
				function(){
					t = setInterval(function(){
						_next();
					}, _interval);
				}
			)
		}
		
		$(window).bind('resize', function(){
			clearInterval(t);
			_resize();
		})
		
		if(opts.autoplay){
			t = setInterval(function(){
				_next();
			}, _interval);
		}
	}
})(jQuery);

/* jquery.scroller2
 * 1.0
 * liqingyun
 --------------------------------------------
 $(id).scroller2();
 --------------------------------------------
 autoplay  -- 是否自动
 interval  -- 轮播间隔
 speed     -- 轮播速度
 offset    -- 偏移量
 number    -- 展示数量
 --------------------------------------------
 */
(function(){	
	$.fn.scroller2 = function(obj){
		var defaults = {
			autoplay: true,
			interval: 5000,
			speed: 500,
			offset: 0,
			number: 1
		}
		
		var opts = $.extend(defaults, obj);
		
		var $id = this,
			$list = $id.find('.list'),
			$tip = $id.find('.tip'),
			$prev = $id.find('.prev'),
			$next = $id.find('.next'),
			t,
			_interval = opts.interval,
			_speed = opts.speed,
			_index = 0,
			_size = $list.children('*').length,
			_width =1200;
		console.log(_width)
		if(_size <= opts.number){
			return false;
		}
		
		$list.width(_width*_size)
			 .css({'position': 'relative'}); 
		$prev.show();
		$next.show();
		
		if($tip.length){
			var _html = '';
			for(var i=0; i<_size; i++){
				if(i==0){
					_html += '<li class="active"></li>';
				}else{
					_html += '<li></li>';
				}
			}
			$tip.html(_html);
		}
		
		$list.children('*').eq(0).addClass('active');
		
		function _resize(){
			$list.width(_width*_size)
				 .css({'left': - _width*_index});
			
			if(opts.autoplay){
				t = setInterval(function(){
					_next();
				}, _interval);
			}
		}
		
		function _prev(){
			_index --;
			
			if(_index < 0){
				$list.css({'left': -(_size) * _width});
				_index = _size - 1;
			}
			
			$list.stop(false, false).animate({'left': -_index * _width}, _speed, 'easeInOutExpo');
			$list.children('*').eq(_index).addClass('active').siblings().removeClass('active');
			$tip.children('*').eq(_index).addClass('active').siblings().removeClass('active');
		}
		
		function _next(){
			_index ++;
			
			if(_index == _size){
				$list.stop(false, false).animate({'left': -_index * _width}, _speed, 'easeInOutExpo');
				$list.children('*').eq(_index).addClass('active').siblings().removeClass('active');
				$tip.children('*').eq(0).addClass('active').siblings().removeClass('active');
				return;
			}else if(_index > _size){
				$list.css({'left': 0});
				_index = 1;
			}
			
			$list.stop(false, false).animate({'left': -_index * _width}, _speed, 'easeInOutExpo');
			$list.children('*').eq(_index).addClass('active').siblings().removeClass('active');
			$tip.children('*').eq(_index).addClass('active').siblings().removeClass('active');
		}
		
		$tip.children('*').click(function(){
			_index = $(this).index() - 1;
			_next();
		})
		
		$prev.bind('click', function(){
			_prev();
		})
		
		$next.bind('click', function(){
			_next();
		})

		if(opts.autoplay){
			$id.hover(
				function(){
					clearInterval(t);
				},
				function(){
					t = setInterval(function(){
						_next();
					}, _interval);
				}
			)
		}
		
		$(window).bind('resize', function(){
			clearInterval(t);
			_resize();
		})
		
		if(opts.autoplay){
			t = setInterval(function(){
				_next();
			}, _interval);
		}
	}
})(jQuery);
