/* modernizr 2.8.3 (custom build) | mit & bsd */ ;window.modernizr=function(a,b,c){function a(a){j.csstext=a}function b(a,b){return a(m.join(a+";")+(b||""))}function c(a,b){return typeof a===b}function d(a,b){return!!~(""+a).indexof(b)}function e(a,b){for(var d in a){var e=a[d];if(!d(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function f(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:c(f,"function")?f.bind(d||b):f}return!1}function g(a,b,c){var d=a.charat(0).touppercase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return c(b,"string")||c(b,"undefined")?e(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),f(e,b,c))}var d="2.8.3",e={},f=!0,g=b.documentelement,h="modernizr",i=b.createelement(h),j=i.style,k,l={}.tostring,m=" -webkit- -moz- -o- -ms- ".split(" "),n="webkit moz o ms",o=n.split(" "),p=n.tolowercase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createelement("div"),m=b.body,n=m||b.createelement("body");if(parseint(d,10))while(d--)j=b.createelement("div"),j.id=e?e[d]:h+(d+1),l.appendchild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerhtml+=f,n.appendchild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendchild(n)),i=c(l,a),m?l.parentnode.removechild(l):(n.parentnode.removechild(n),g.style.overflow=k),!!i},x=function(b){var c=a.matchmedia||a.msmatchmedia;if(c)return c(b)&&c(b).matches||!1;var d;return w("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getcomputedstyle?getcomputedstyle(b,null):b.currentstyle)["position"]=="absolute"}),d},y={}.hasownproperty,z;!c(y,"undefined")&&!c(y.call,"undefined")?z=function(a,b){return y.call(a,b)}:z=function(a,b){return b in a&&c(a.constructor.prototype[b],"undefined")},function.prototype.bind||(function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new typeerror;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.touch=function(){var c;return"ontouchstart"in a||a.documenttouch&&b instanceof documenttouch?c=!0:w(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsettop===9}),c},q.csstransitions=function(){return g("transition")};for(var h in q)z(q,h)&&(v=h.tolowercase(),e[v]=q[h](),t.push((e[v]?"":"no-")+v));return e.addtest=function(a,b){if(typeof a=="object")for(var d in a)z(a,d)&&e.addtest(d,a[d]);else{a=a.tolowercase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.classname+=" "+(b?"":"no-")+a),e[a]=b}return e},a(""),i=k=null,function(a,b){function l(a,b){var c=a.createelement("p"),d=a.getelementsbytagname("head")[0]||a.documentelement;return c.innerhtml="x",d.insertbefore(c.lastchild,d.firstchild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createelement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].clonenode():f.test(a)?g=(d.cache[a]=d.createelem(a)).clonenode():g=d.createelem(a),g.canhavechildren&&!e.test(a)&&!g.tagurn?d.frag.appendchild(g):g}function p(a,c){a||(a=b);if(k)return a.createdocumentfragment();c=c||n(a);var d=c.frag.clonenode(),e=0,f=m(),g=f.length;for(;e",g="hidden"in a,k=a.childnodes.length==1||function(){b.createelement("a");var a=b.createdocumentfragment();return typeof a.clonenode=="undefined"||typeof a.createdocumentfragment=="undefined"||typeof a.createelement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivcss:d.shivcss!==!1,supportsunknownelements:k,shivmethods:d.shivmethods!==!1,type:"default",shivdocument:r,createelement:o,createdocumentfragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=m,e._domprefixes=p,e._cssomprefixes=o,e.mq=x,e.testprop=function(a){return e([a])},e.testallprops=g,e.teststyles=w,g.classname=g.classname.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?b.injectcss:b.injectjs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readystate)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removechild(l)},50);for(var d in y[c])y[c].hasownproperty(d)&&y[c][d].onload()}}var j=j||b.errortimeout,l=b.createelement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertbefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=b;return a.loader={load:j,i:0},a}var l=b.documentelement,m=a.settimeout,n=b.getelementsbytagname("script")[0],o={}.tostring,p=[],q=0,r="mozappearance"in l.style,s=r&&!!b.createrange().comparenode,t=s?l:n.parentnode,l=a.opera&&"[object opera]"==o.call(a.opera),l=!!b.attachevent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=array.isarray||function(a){return"[object array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},a,b;b=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origurl:c,prefixes:a},e,f,g;for(f=0;fli.dropdown, .main-navigation li.dropdown>ul>li.dropdown').hover( function(){ var $this = $(this); settimeoutconst = settimeout(function(){ $this.addclass('open').slidedown(); $this.find('.dropdown-toggle').addclass('disabled'); }, delay); }, function(){ cleartimeout(settimeoutconst ); $(this).removeclass('open'); $(this).find('.dropdown-toggle').removeclass('disabled'); }); }; if (modernizr.mq('only all and (max-width: 767px)') || modernizr.touch) { $('.main-navigation [data-toggle=dropdown], .header-top [data-toggle=dropdown]').on('click', function(event) { event.preventdefault(); event.stoppropagation(); $(this).parent().siblings().removeclass('open'); $(this).parent().siblings().find('[data-toggle=dropdown]').parent().removeclass('open'); $(this).parent().toggleclass('open'); }); }; }); })(this.jquery); /*wow.js 动态加载*/ (function(){var a,b,c=function(a,b){return function(){return a.apply(b,arguments)}};a=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in a)d=a[c],null!=d&&(b[c]=d);return b},a.prototype.ismobile=function(a){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(a)},a}(),b=this.weakmap||(b=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),this.wow=function(){function d(a){null==a&&(a={}),this.scrollcallback=c(this.scrollcallback,this),this.scrollhandler=c(this.scrollhandler,this),this.start=c(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationnamecache=new b}return d.prototype.defaults={boxclass:"wow",animateclass:"animated",offset:0,mobile:!0},d.prototype.init=function(){var a;return this.element=window.document.documentelement,"interactive"===(a=document.readystate)||"complete"===a?this.start():document.addeventlistener("domcontentloaded",this.start)},d.prototype.start=function(){var a,b,c,d;if(this.boxes=this.element.getelementsbyclassname(this.config.boxclass),this.boxes.length){if(this.disabled())return this.resetstyle();for(d=this.boxes,b=0,c=d.length;c>b;b++)a=d[b],this.applystyle(a,!0);return window.addeventlistener("scroll",this.scrollhandler,!1),window.addeventlistener("resize",this.scrollhandler,!1),this.interval=setinterval(this.scrollcallback,50)}},d.prototype.stop=function(){return window.removeeventlistener("scroll",this.scrollhandler,!1),window.removeeventlistener("resize",this.scrollhandler,!1),null!=this.interval?clearinterval(this.interval):void 0},d.prototype.show=function(a){return this.applystyle(a),a.classname=""+a.classname+" "+this.config.animateclass},d.prototype.applystyle=function(a,b){var c,d,e;return d=a.getattribute("data-wow-duration"),c=a.getattribute("data-wow-delay"),e=a.getattribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customstyle(a,b,d,c,e)}}(this))},d.prototype.animate=function(){return"requestanimationframe"in window?function(a){return window.requestanimationframe(a)}:function(a){return a()}}(),d.prototype.resetstyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setattribute("style","visibility: visible;"));return e},d.prototype.customstyle=function(a,b,c,d,e){return b&&this.cacheanimationname(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorset(a.style,{animationduration:c}),d&&this.vendorset(a.style,{animationdelay:d}),e&&this.vendorset(a.style,{animationiterationcount:e}),this.vendorset(a.style,{animationname:b?"none":this.cachedanimationname(a)}),a},d.prototype.vendors=["moz","webkit"],d.prototype.vendorset=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charat(0).touppercase()+c.substr(1)]=d);return h}.call(this));return f},d.prototype.vendorcss=function(a,b){var c,d,e,f,g,h;for(d=window.getcomputedstyle(a),c=d.getpropertycssvalue(b),h=this.vendors,f=0,g=h.length;g>f;f++)e=h[f],c=c||d.getpropertycssvalue("-"+e+"-"+b);return c},d.prototype.animationname=function(a){var b;try{b=this.vendorcss(a,"animation-name").csstext}catch(c){b=window.getcomputedstyle(a).getpropertyvalue("animation-name")}return"none"===b?"":b},d.prototype.cacheanimationname=function(a){return this.animationnamecache.set(a,this.animationname(a))},d.prototype.cachedanimationname=function(a){return this.animationnamecache.get(a)},d.prototype.scrollhandler=function(){return this.scrolled=!0},d.prototype.scrollcallback=function(){var a;return this.scrolled&&(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isvisible(a)?this.show(a):e.push(a));return e}.call(this),!this.boxes.length)?this.stop():void 0},d.prototype.offsettop=function(a){for(var b;void 0===a.offsettop;)a=a.parentnode;for(b=a.offsettop;a=a.offsetparent;)b+=a.offsettop;return b},d.prototype.isvisible=function(a){var b,c,d,e,f;return c=a.getattribute("data-wow-offset")||this.config.offset,f=window.pageyoffset,e=f+this.element.clientheight-c,d=this.offsettop(a),b=d+a.clientheight,e>=d&&b>=f},d.prototype.util=function(){return this._util||(this._util=new a)},d.prototype.disabled=function(){return!this.config.mobile&&this.util().ismobile(navigator.useragent)},d}()}).call(this); new wow().init(); /* top move */ (function($){$.fn.uitotop=function(options){var defaults={text:'to top',min:200,indelay:600,outdelay:400,containerid:'totop',containerhoverid:'totophover',scrollspeed:1200,easingtype:'linear'},settings=$.extend(defaults,options),containeridhash='#'+settings.containerid,containerhoveridhash='#'+settings.containerhoverid;$('body').append(''+settings.text+'');$(containeridhash).hide().on('click.uitotop',function(){$('html, body').animate({scrolltop:0},settings.scrollspeed,settings.easingtype);$('#'+settings.containerhoverid,this).stop().animate({'opacity':0},settings.indelay,settings.easingtype);return false;}).prepend('').hover(function(){$(containerhoveridhash,this).stop().animate({'opacity':1},600,'linear');},function(){$(containerhoveridhash,this).stop().animate({'opacity':0},700,'linear');});$(window).scroll(function(){var sd=$(window).scrolltop();if(typeof document.body.style.maxheight==="undefined"){$(containeridhash).css({'position':'absolute','top':sd+$(window).height()-50});} if(sd>settings.min) $(containeridhash).fadein(settings.indelay);else $(containeridhash).fadeout(settings.outdelay);});};})(jquery); /*easing*/ 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