Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:230) in /www/wwwroot/www.85520057.com/js.php on line 6
/* 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(gsettings.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)}$("").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((/(?:iphoness|ipods|ipads).*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&<.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('
'),t.parent().wrap('
'),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('
'),"#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('
    ');var n=e(A);n.addClass(function(){return s.showActiveTooltip?O+" "+s.navigationPosition:s.navigationPosition});for(var t=0;t',a=s.navigationTooltips[t];"undefined"!=typeof a&&""!==a&&(i+='
    '+a+"
    "),i+="",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=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 t149&&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&<.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&>.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.pageYVt&&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()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('
    ')}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('
      ');var t=e.find(U);t.addClass(s.slidesNavPosition);for(var o=0;n>o;o++)t.find("ul").append('
    • ');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(/(iphoness|ipods|ipads|androids|playbook|silk|BlackBerry|BB10|Windows phones|Tizen|Bada|weboses|IEmobiles|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'
      '}}}); /* 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< 3 ? $list.children('*').length : 3; if($tip.length){ var _html = ''; for(var i=0; i<_size; i++){ if(i==0){ _html +='
    • '; }else{ _html += '
    • '; } } $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); }, function(){ t = setInterval(function(){ _next(); }, opts.interval); } ) t = setInterval(function(){ _next(); }, opts.interval); } })(jQuery); /* jquery.phones * 1.0 * liqingyun -------------------------------------------- $(id).phones(); -------------------------------------------- format -- 格式 -------------------------------------------- */ (function(){ $.fn.phones = 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})/, phones: /((\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 + '').show().css({ 'left': (l + _offsetX), 'top': (t + _offsetY) }); } else { $('
      ' + msg + '
      ').appendTo('body').css({ 'left': (l + _offsetX), 'top': (t + _offsetY) }); } } $postform.find('[type="submit"]').bind('click', function(){ var _boolean = true; // 验证数据 $postform.find('[data-required]').each(function(index, element){ var _required = $(this).attr('data-required'), _val = $.trim($(this).val()), _holder = $(this).attr('placeholder'); if(_required == 'required' && ( _val == '' || _val == _holder)){ console($(this).attr('null'), $(this).offset().left, $(this).offset().top); $(this).focus().addClass('error'); _boolean = false; return false; }else if(_required == 'name' && (!_val.match(_reg.name) || _val == _holder)){ console($(this).attr('error'), $(this).offset().left, $(this).offset().top); $(this).focus().addClass('error'); _boolean = false; return false; }else if(_required == 'phones' && (!_val.match(_reg.phones || _val == _holder))){ console($(this).attr('error'), $(this).offset().left, $(this).offset().top); $(this).focus().addClass('error'); _boolean = false; return false; }else if(_required == 'email' && (!_val.match(_reg.email) || _val == _holder)){ console($(this).attr('error'), $(this).offset().left, $(this).offset().top); $(this).focus().addClass('error'); _boolean = false; return false; } }); // 判断是否跳转 return _boolean; }) $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(); } }); } })(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){ 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 += '
      '+ element.title +'
      '; $original.attr({'src': element.src}); }else{ _html += '
      '+ element.title +'
      '; } }); $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.1 * 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 += '
    • '; }else{ _html += '
    • '; } } $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.scrolling * 1.0 * liqingyun -------------------------------------------- $(id).scrolling(); -------------------------------------------- autoplay -- 自动滚动 interval -- 间隔时间 offset -- 偏移宽度 number -- 数量 -------------------------------------------- */ (function(){ $.fn.scrolling = function(obj){ var defaults = { autoplay: true, arrow: 'left', interval: 12, speed: 1, offset: 0, number: 5 } var opts = $.extend(defaults, obj); var $id = this, $list = $id.find('.list'), 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'}); function _prev(){ _index -= _speed; if(_index < 0){ $list.css({'left': -(_size) * _width}); _index = _width * _size; } $list.stop(false, false).css({'left': -_index}); } function _next(){ _index += _speed; if(_index >= _width * _size){ $list.css({'left': 0}); _index = 1; } $list.stop(false, false).css({'left': -_index}); } $id.bind({ 'mouseenter': function(){ clearInterval(t); }, 'mouseleave': function(){ if(opts.autoplay && opts.arrow == 'left'){ t = setInterval(function(){ _next(); }, _interval); }else if(opts.autoplay && opts.arrow == 'right'){ t = setInterval(function(){ _prev(); }, _interval); } } }) if(opts.autoplay && opts.arrow == 'left'){ t = setInterval(function(){ _next(); }, _interval); }else if(opts.autoplay && opts.arrow == 'right'){ t = setInterval(function(){ _prev(); }, _interval); } } })(jQuery); /********************************************* * 底层超集 ********************************************/ $('#banner').banner(); $('.ig-phones').phones(); $('#addFavo').addFavorite(); $('#setHome').setHome(); $('#bdmap').bdmap(); $('#formPost').former(); $('#ajaxLoader').ajaxload(); $('#SearchSubmit').searcher(); if($('#productPhoto').length){ $('#productPhoto').album(); } if($('#rmdPro').length){ $('#rmdPro').scroller({ number: 4, offset: 20 }); }