/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
;(function($){$.fn.slide=function(options){$.fn.slide.defaults={type:"slide",effect:"fade",autoPlay:false,delayTime:500,interTime:2500,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:false,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:false,pnLoop:true,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:true,defaultPlay:true,returnDefault:false};return this.each(function(){var opts=$.extend({},$.fn.slide.defaults,options);var slider=$(this);var effect=opts.effect;var prevBtn=$(opts.prevCell,slider);var nextBtn=$(opts.nextCell,slider);var pageState=$(opts.pageStateCell,slider);var playState=$(opts.playStateCell,slider);var navObj=$(opts.titCell,slider);var navObjSize=navObj.size();var conBox=$(opts.mainCell,slider);var conBoxSize=conBox.children().size();var sLoad=opts.switchLoad;var tarObj=$(opts.targetCell,slider);var index=parseInt(opts.defaultIndex);var delayTime=parseInt(opts.delayTime);var interTime=parseInt(opts.interTime);var triggerTime=parseInt(opts.triggerTime);var scroll=parseInt(opts.scroll);var vis=parseInt(opts.vis);var autoPlay=(opts.autoPlay=="false"||opts.autoPlay==false)?false:true;var opp=(opts.opp=="false"||opts.opp==false)?false:true;var autoPage=(opts.autoPage=="false"||opts.autoPage==false)?false:true;var pnLoop=(opts.pnLoop=="false"||opts.pnLoop==false)?false:true;var mouseOverStop=(opts.mouseOverStop=="false"||opts.mouseOverStop==false)?false:true;var defaultPlay=(opts.defaultPlay=="false"||opts.defaultPlay==false)?false:true;var returnDefault=(opts.returnDefault=="false"||opts.returnDefault==false)?false:true;var slideH=0;var slideW=0;var selfW=0;var selfH=0;var easing=opts.easing;var inter=null;var mst=null;var rtnST=null;var titOn=opts.titOnClassName;var onIndex=navObj.index(slider.find("."+titOn));var oldIndex=index=onIndex==-1?index:onIndex;var defaultIndex=index;var _ind=index;var cloneNum=conBoxSize>=vis?(conBoxSize%scroll!=0?conBoxSize%scroll:scroll):0;var _tar;var isMarq=effect=="leftMarquee"||effect=="topMarquee"?true:false;var doStartFun=function(){if($.isFunction(opts.startFun)){opts.startFun(index,navObjSize,slider,$(opts.titCell,slider),conBox,tarObj,prevBtn,nextBtn)}}
var doEndFun=function(){if($.isFunction(opts.endFun)){opts.endFun(index,navObjSize,slider,$(opts.titCell,slider),conBox,tarObj,prevBtn,nextBtn)}}
var resetOn=function(){navObj.removeClass(titOn);if(defaultPlay)navObj.eq(defaultIndex).addClass(titOn)}
if(opts.type=="menu"){if(defaultPlay){navObj.removeClass(titOn).eq(index).addClass(titOn);}
navObj.hover(function(){_tar=$(this).find(opts.targetCell);var hoverInd=navObj.index($(this));mst=setTimeout(function(){index=hoverInd;navObj.removeClass(titOn).eq(index).addClass(titOn);doStartFun();switch(effect)
{case"fade":_tar.stop(true,true).animate({opacity:"show"},delayTime,easing,doEndFun);break;case"slideDown":_tar.stop(true,true).animate({height:"show"},delayTime,easing,doEndFun);break;}},opts.triggerTime);},function(){clearTimeout(mst);switch(effect){case"fade":_tar.animate({opacity:"hide"},delayTime,easing);break;case"slideDown":_tar.animate({height:"hide"},delayTime,easing);break;}});if(returnDefault){slider.hover(function(){clearTimeout(rtnST);},function(){rtnST=setTimeout(resetOn,delayTime);});}
return;}
if(navObjSize==0)navObjSize=conBoxSize;if(isMarq)navObjSize=2;if(autoPage){if(conBoxSize>=vis){if(effect=="leftLoop"||effect=="topLoop"){navObjSize=conBoxSize%scroll!=0?(conBoxSize/scroll^0)+1:conBoxSize/scroll;}
else{var tempS=conBoxSize-vis;navObjSize=1+parseInt(tempS%scroll!=0?(tempS/scroll+1):(tempS/scroll));if(navObjSize<=0)navObjSize=1;}}
else{navObjSize=1}
navObj.html("");var str="";if(opts.autoPage==true||opts.autoPage=="true"){for(var i=0;i"+(i+1)+""}}
else{for(var i=0;i=vis){conBox.children().each(function(){if($(this).width()>selfW){selfW=$(this).width();slideW=$(this).outerWidth(true);}
if($(this).height()>selfH){selfH=$(this).height();slideH=$(this).outerHeight(true);}});var _chr=conBox.children();var cloneEle=function(){for(var i=0;i').css({"top":-(index*scroll)*slideH,"position":"relative","padding":"0","margin":"0"}).children().css({"height":selfH});break;case"left":conBox.wrap('').css({"width":conBoxSize*slideW,"left":-(index*scroll)*slideW,"position":"relative","overflow":"hidden","padding":"0","margin":"0"}).children().css({"float":"left","width":selfW});break;case"leftLoop":case"leftMarquee":cloneEle();conBox.wrap('').css({"width":(conBoxSize+vis+cloneNum)*slideW,"position":"relative","overflow":"hidden","padding":"0","margin":"0","left":-(cloneNum+index*scroll)*slideW}).children().css({"float":"left","width":selfW});break;case"topLoop":case"topMarquee":cloneEle();conBox.wrap('').css({"height":(conBoxSize+vis+cloneNum)*slideH,"position":"relative","padding":"0","margin":"0","top":-(cloneNum+index*scroll)*slideH}).children().css({"height":selfH});break;}}
var scrollNum=function(ind){var _tempCs=ind*scroll;if(ind==navObjSize){_tempCs=conBoxSize;}else if(ind==-1&&conBoxSize%scroll!=0){_tempCs=-conBoxSize%scroll;}
return _tempCs;}
var doSwitchLoad=function(objs){var changeImg=function(t){for(var i=t;i<(vis+t);i++){objs.eq(i).find("img["+sLoad+"]").each(function(){var _this=$(this);_this.attr("src",_this.attr(sLoad)).removeAttr(sLoad);if(conBox.find(".clone")[0]){var chir=conBox.children();for(var j=0;j=1){index=1;}else if(index<=0){index=0;}}
else{_ind=index;if(index>=navObjSize){index=0;}else if(index<0){index=navObjSize-1;}}
doStartFun();if(sLoad!=null){doSwitchLoad(conBox.children())}
if(tarObj[0]){_tar=tarObj.eq(index);if(sLoad!=null){doSwitchLoad(tarObj)}
if(effect=="slideDown"){tarObj.not(_tar).stop(true,true).slideUp(delayTime);_tar.slideDown(delayTime,easing,function(){if(!conBox[0])doEndFun()});}
else{tarObj.not(_tar).stop(true,true).hide();_tar.animate({opacity:"show"},delayTime,function(){if(!conBox[0])doEndFun()});}}
if(conBoxSize>=vis){switch(effect)
{case"fade":conBox.children().stop(true,true).eq(index).animate({opacity:"show"},delayTime,easing,function(){doEndFun()}).siblings().hide();break;case"fold":conBox.children().stop(true,true).eq(index).animate({opacity:"show"},delayTime,easing,function(){doEndFun()}).siblings().animate({opacity:"hide"},delayTime,easing);break;case"top":conBox.stop(true,false).animate({"top":-index*scroll*slideH},delayTime,easing,function(){doEndFun()});break;case"left":conBox.stop(true,false).animate({"left":-index*scroll*slideW},delayTime,easing,function(){doEndFun()});break;case"leftLoop":var __ind=_ind;conBox.stop(true,true).animate({"left":-(scrollNum(_ind)+cloneNum)*slideW},delayTime,easing,function(){if(__ind<=-1){conBox.css("left",-(cloneNum+(navObjSize-1)*scroll)*slideW);}else if(__ind>=navObjSize){conBox.css("left",-cloneNum*slideW);}
doEndFun();});break;case"topLoop":var __ind=_ind;conBox.stop(true,true).animate({"top":-(scrollNum(_ind)+cloneNum)*slideH},delayTime,easing,function(){if(__ind<=-1){conBox.css("top",-(cloneNum+(navObjSize-1)*scroll)*slideH);}else if(__ind>=navObjSize){conBox.css("top",-cloneNum*slideH);}
doEndFun();});break;case"leftMarquee":var tempLeft=conBox.css("left").replace("px","");if(index==0){conBox.animate({"left":++tempLeft},0,function(){if(conBox.css("left").replace("px","")>=0){conBox.css("left",-conBoxSize*slideW)}});}
else{conBox.animate({"left":--tempLeft},0,function(){if(conBox.css("left").replace("px","")<=-(conBoxSize+cloneNum)*slideW){conBox.css("left",-cloneNum*slideW)}});}break;case"topMarquee":var tempTop=conBox.css("top").replace("px","");if(index==0){conBox.animate({"top":++tempTop},0,function(){if(conBox.css("top").replace("px","")>=0){conBox.css("top",-conBoxSize*slideH)}});}
else{conBox.animate({"top":--tempTop},0,function(){if(conBox.css("top").replace("px","")<=-(conBoxSize+cloneNum)*slideH){conBox.css("top",-cloneNum*slideH)}});}break;}}
navObj.removeClass(titOn).eq(index).addClass(titOn);oldIndex=index;if(!pnLoop){nextBtn.removeClass("nextStop");prevBtn.removeClass("prevStop");if(index==0){prevBtn.addClass("prevStop");}
if(index==navObjSize-1){nextBtn.addClass("nextStop");}}
pageState.html(""+(index+1)+"/"+navObjSize);};if(defaultPlay){doPlay(true);}
if(returnDefault)
{slider.hover(function(){clearTimeout(rtnST)},function(){rtnST=setTimeout(function(){index=defaultIndex;if(defaultPlay){doPlay();}
else{if(effect=="slideDown"){_tar.slideUp(delayTime,resetOn);}
else{_tar.animate({opacity:"hide"},delayTime,resetOn);}}
oldIndex=index;},300);});}
var setInter=function(time){inter=setInterval(function(){opp?index--:index++;doPlay()},!!time?time:interTime);}
var setMarInter=function(time){inter=setInterval(doPlay,!!time?time:interTime);}
var resetInter=function(){if(!mouseOverStop){clearInterval(inter);setInter()}}
var nextTrigger=function(){if(pnLoop||index!=navObjSize-1){index++;doPlay();if(!isMarq)resetInter();}}
var prevTrigger=function(){if(pnLoop||index!=0){index--;doPlay();if(!isMarq)resetInter();}}
var playStateFun=function(){clearInterval(inter);isMarq?setMarInter():setInter();playState.removeClass("pauseState")}
var pauseStateFun=function(){clearInterval(inter);playState.addClass("pauseState");}
if(autoPlay){if(isMarq){opp?index--:index++;setMarInter();if(mouseOverStop)conBox.hover(pauseStateFun,playStateFun);}else{setInter();if(mouseOverStop)slider.hover(pauseStateFun,playStateFun);}}
else{if(isMarq){opp?index--:index++;}playState.addClass("pauseState");}
playState.click(function(){playState.hasClass("pauseState")?playStateFun():pauseStateFun()});if(opts.trigger=="mouseover"){navObj.hover(function(){var hoverInd=navObj.index(this);mst=setTimeout(function(){index=hoverInd;doPlay();resetInter();},opts.triggerTime);},function(){clearTimeout(mst)});}else{navObj.click(function(){index=navObj.index(this);doPlay();resetInter();})}
if(isMarq){nextBtn.mousedown(nextTrigger);prevBtn.mousedown(prevTrigger);if(pnLoop)
{var st;var marDown=function(){st=setTimeout(function(){clearInterval(inter);setMarInter(interTime/10^0)},150)}
var marUp=function(){clearTimeout(st);clearInterval(inter);setMarInter()}
nextBtn.mousedown(marDown);nextBtn.mouseup(marUp);prevBtn.mousedown(marDown);prevBtn.mouseup(marUp);}
if(opts.trigger=="mouseover"){nextBtn.hover(nextTrigger,function(){});prevBtn.hover(prevTrigger,function(){});}}else{nextBtn.click(nextTrigger);prevBtn.click(prevTrigger);}});};})(jQuery);$.easing['jswing']=$.easing['swing'];
;/* idTabs ~ Sean Catchpole - Version 2.2 - MIT/GPL */
(function(){var dep={"jQuery":"http://code.jquery.com/jquery-latest.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;i0)return;var old=$.fn[n];$.fn[n]=function(){var r=old.apply(this,arguments);$jQlq.run();return r;};$jQlq.registered.push(n);});},run:function(id){if(id!==undefined){if($.inArray(id,$jQlq.queue)<0)
$jQlq.queue.push(id);}
else
$.each($jQlq.queries,function(id){if($.inArray(id,$jQlq.queue)<0)
$jQlq.queue.push(id);});if($jQlq.timeout)clearTimeout($jQlq.timeout);$jQlq.timeout=setTimeout($jQlq.checkQueue,20);},stop:function(id){if(id!==undefined)
$jQlq.queries[id].stop();else
$.each($jQlq.queries,$jQlq.prototype.stop);}});$jQlq.registerPlugin('append','prepend','after','before','wrap','attr','removeAttr','addClass','removeClass','toggleClass','empty','remove','html','prop','removeProp');$(function(){$jQlq.play();});}));;(function($){var defaults={topSpacing:0,bottomSpacing:0,className:'is-sticky',wrapperClassName:'sticky-wrapper',center:false,getWidthFrom:''},$window=$(window),$document=$(document),sticked=[],windowHeight=$window.height(),scroller=function(){var scrollTop=$window.scrollTop(),documentHeight=$document.height(),dwh=documentHeight-windowHeight,extra=(scrollTop>dwh)?dwh-scrollTop:0;for(var i=0;i').attr('id',stickyId+'-sticky-wrapper').addClass(o.wrapperClassName);stickyElement.wrapAll(wrapper);if(o.center){stickyElement.parent().css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"});}
if(stickyElement.css("float")=="right"){stickyElement.css({"float":"none"}).parent().css({"float":"right"});}
var stickyWrapper=stickyElement.parent();stickyWrapper.css('height',stickyElement.outerHeight());sticked.push({topSpacing:o.topSpacing,bottomSpacing:o.bottomSpacing,stickyElement:stickyElement,currentTop:null,stickyWrapper:stickyWrapper,className:o.className,getWidthFrom:o.getWidthFrom});});},update:scroller};if(window.addEventListener){window.addEventListener('scroll',scroller,false);window.addEventListener('resize',resizer,false);}else if(window.attachEvent){window.attachEvent('onscroll',scroller);window.attachEvent('onresize',resizer);}
$.fn.sticky=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments);}else{$.error('Method '+method+' does not exist on jQuery.sticky');}};$(function(){setTimeout(scroller,0);});})(jQuery);;(function($){var base64module={};var base64=new function()
{var utfLibName="utf";var b64char="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b64encTable=b64char.split("");var b64decTable=[];for(var i=0;i0;i--)_ary[_ary.length]=0;for(i=0;i<_ary.length;i+=3)
{tmp=(_ary[i]<<16)|(_ary[i+1]<<8)|_ary[i+2];b64+=b64encTable[(tmp>>>18)&0x3f]
+b64encTable[(tmp>>>12)&0x3f]
+b64encTable[(tmp>>>6)&0x3f]
+b64encTable[tmp&0x3f];}
if(md)
{md=3-md;b64=b64.substr(0,b64.length-md);while(md--)b64+="=";}
return b64;}
this.decode=function(_b64,_strMode)
{var tmp=decoder(_b64);return _strMode?packUTF8(tmp):packChar(tmp);}
var decoder=function(_b64)
{_b64=_b64.replace(/[^A-Za-z0-9\+\/]/g,"");var md=_b64.length%4;var j,i,tmp;var dat=[];if(md)for(i=0;i<4-md;i++)_b64+="A";for(j=i=0;i<_b64.length;i+=4,j+=3)
{tmp=(b64decTable[_b64.charAt(i)]<<18)|(b64decTable[_b64.charAt(i+1)]<<12)|(b64decTable[_b64.charAt(i+2)]<<6)|b64decTable[_b64.charAt(i+3)];dat[j]=tmp>>>16;dat[j+1]=(tmp>>>8)&0xff;dat[j+2]=tmp&0xff;}
if(md)dat.length-=[0,0,2,1][md];return dat;}
var packUTF8=function(_x){return utf.packUTF8(_x)};var unpackUTF8=function(_x){return utf.unpackUTF8(_x)};var packChar=function(_x){return utf.packChar(_x)};var unpackChar=function(_x){return utf.unpackChar(_x)};}
var utf=new function()
{this.unpackUTF16=function(_str)
{var i,utf16=[];for(i=0;i<_str.length;i++)utf16[i]=_str.charCodeAt(i);return utf16;}
this.unpackChar=function(_str)
{var utf16=this.unpackUTF16(_str);var i,n,tmp=[];for(n=i=0;i>8;tmp[n++]=utf16[i]&0xff;}}
return tmp;}
this.packChar=this.packUTF16=function(_utf16)
{var i,str="";for(i in _utf16)str+=String.fromCharCode(_utf16[i]);return str;}
this.unpackUTF8=function(_str)
{return this.toUTF8(this.unpackUTF16(_str));}
this.packUTF8=function(_utf8)
{return this.packUTF16(this.toUTF16(_utf8));}
this.toUTF8=function(_utf16)
{var utf8=[];var idx=0;var i,j,c;for(i=0;i<_utf16.length;i++)
{c=_utf16[i];if(c<=0x7f)utf8[idx++]=c;else if(c<=0x7ff)
{utf8[idx++]=0xc0|(c>>>6);utf8[idx++]=0x80|(c&0x3f);}
else if(c<=0xffff)
{utf8[idx++]=0xe0|(c>>>12);utf8[idx++]=0x80|((c>>>6)&0x3f);utf8[idx++]=0x80|(c&0x3f);}
else
{j=4;while(c>>(6*j))j++;utf8[idx++]=((0xff00>>>j)&0xff)|(c>>>(6*--j));while(j--)
utf8[idx++]=0x80|((c>>>(6*j))&0x3f);}}
return utf8;}
this.toUTF16=function(_utf8)
{var utf16=[];var idx=0;var i,s;for(i=0;i<_utf8.length;i++,idx++)
{if(_utf8[i]<=0x7f)utf16[idx]=_utf8[i];else
{if((_utf8[i]>>5)==0x6)
{utf16[idx]=((_utf8[i]&0x1f)<<6)|(_utf8[++i]&0x3f);}
else if((_utf8[i]>>4)==0xe)
{utf16[idx]=((_utf8[i]&0xf)<<12)|((_utf8[++i]&0x3f)<<6)|(_utf8[++i]&0x3f);}
else
{s=1;while(_utf8[i]&(0x20>>>s))s++;utf16[idx]=_utf8[i]&(0x1f>>>s);while(s-->=0)utf16[idx]=(utf16[idx]<<6)^(_utf8[++i]&0x3f);}}}
return utf16;}
this.URLencode=function(_str)
{return _str.replace(/([^a-zA-Z0-9_\-\.])/g,function(_tmp,_c)
{if(_c=="\x20")return"+";var tmp=utf.toUTF8([_c.charCodeAt(0)]);var c="";for(var i in tmp)
{i=tmp[i].toString(16);if(i.length==1)i="0"+i;c+="%"+i;}
return c;});}
this.URLdecode=function(_dat)
{_dat=_dat.replace(/\+/g,"\x20");_dat=_dat.replace(/%([a-fA-F0-9][a-fA-F0-9])/g,function(_tmp,_hex){return String.fromCharCode(parseInt(_hex,16))});return this.packChar(this.toUTF16(this.unpackUTF16(_dat)));}}
$.extend({base64:{encode:base64.encode,decode:base64.decode,codec:typeof atob=='function'?'builtin':'alternate'}})
$.ajax=(function(ajax){return function(option){var flg=0
if(option.dataType&&option.dataType.match(/:b64/)){option.dataType=option.dataType.replace(':b64','')
flg=1}
if(flg){option.success=(function(callback){return function(data,status,xhr){data=$.base64.decode(data)
callback(data,status,xhr)}})(option.success||function(data,status,xhr){})}
return ajax.apply(this,arguments)}})($.ajax)})(jQuery)
;/*
jQuery Waypoints - v1.1.4
Copyright (c) 2011-2012 Caleb Troughton
Dual licensed under the MIT license and GPL license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/MIT-license.txt
https://github.com/imakewebthings/jquery-waypoints/blob/master/GPL-license.txt
*/
(function($,k,m,i,d){var e=$(i),g="waypoint.reached",b=function(o,n){o.element.trigger(g,n);if(o.options.triggerOnce){o.element[k]("destroy")}},h=function(p,o){var n=o.waypoints.length-1;while(n>=0&&o.waypoints[n].element[0]!==p[0]){n-=1}return n},f=[],l=function(n){$.extend(this,{element:$(n),oldScroll:0,waypoints:[],didScroll:false,didResize:false,doScroll:$.proxy(function(){var q=this.element.scrollTop(),p=q>this.oldScroll,s=this,r=$.grep(this.waypoints,function(u,t){return p?(u.offset>s.oldScroll&&u.offset<=q):(u.offset<=s.oldScroll&&u.offset>q)}),o=r.length;if(!this.oldScroll||!q){$[m]("refresh")}this.oldScroll=q;if(!o){return}if(!p){r.reverse()}$.each(r,function(u,t){if(t.options.continuous||u===o-1){b(t,[p?"down":"up"])}})},this)});$(n).scroll($.proxy(function(){if(!this.didScroll){this.didScroll=true;i.setTimeout($.proxy(function(){this.doScroll();this.didScroll=false},this),$[m].settings.scrollThrottle)}},this)).resize($.proxy(function(){if(!this.didResize){this.didResize=true;i.setTimeout($.proxy(function(){$[m]("refresh");this.didResize=false},this),$[m].settings.resizeThrottle)}},this));e.load($.proxy(function(){this.doScroll()},this))},j=function(n){var o=null;$.each(f,function(p,q){if(q.element[0]===n){o=q;return false}});return o},c={init:function(o,n){this.each(function(){var u=$.fn[k].defaults.context,q,t=$(this);if(n&&n.context){u=n.context}if(!$.isWindow(u)){u=t.closest(u)[0]}q=j(u);if(!q){q=new l(u);f.push(q)}var p=h(t,q),s=p<0?$.fn[k].defaults:q.waypoints[p].options,r=$.extend({},s,n);r.offset=r.offset==="bottom-in-view"?function(){var v=$.isWindow(u)?$[m]("viewportHeight"):$(u).height();return v-$(this).outerHeight()}:r.offset;if(p<0){q.waypoints.push({element:t,offset:null,options:r})}else{q.waypoints[p].options=r}if(o){t.bind(g,o)}if(n&&n.handler){t.bind(g,n.handler)}});$[m]("refresh");return this},remove:function(){return this.each(function(o,p){var n=$(p);$.each(f,function(r,s){var q=h(n,s);if(q>=0){s.waypoints.splice(q,1)}})})},destroy:function(){return this.unbind(g)[k]("remove")}},a={refresh:function(){$.each(f,function(r,s){var q=$.isWindow(s.element[0]),n=q?0:s.element.offset().top,p=q?$[m]("viewportHeight"):s.element.height(),o=q?0:s.element.scrollTop();$.each(s.waypoints,function(u,x){if(!x){return}var t=x.options.offset,w=x.offset;if(typeof x.options.offset==="function"){t=x.options.offset.apply(x.element)}else{if(typeof x.options.offset==="string"){var v=parseFloat(x.options.offset);t=x.options.offset.indexOf("%")?Math.ceil(p*(v/100)):v}}x.offset=x.element.offset().top-n+o-t;if(x.options.onlyOnScroll){return}if(w!==null&&s.oldScroll>w&&s.oldScroll<=x.offset){b(x,["up"])}else{if(w!==null&&s.oldScroll=x.offset){b(x,["down"])}else{if(!w&&o>x.offset){b(x,["down"])}}}});s.waypoints.sort(function(u,t){return u.offset-t.offset})})},viewportHeight:function(){return(i.innerHeight?i.innerHeight:e.height())},aggregate:function(){var n=$();$.each(f,function(o,p){$.each(p.waypoints,function(q,r){n=n.add(r.element)})});return n}};$.fn[k]=function(n){if(c[n]){return c[n].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof n==="function"||!n){return c.init.apply(this,arguments)}else{if(typeof n==="object"){return c.init.apply(this,[null,n])}else{$.error("Method "+n+" does not exist on jQuery "+k)}}}};$.fn[k].defaults={continuous:true,offset:0,triggerOnce:false,context:i};$[m]=function(n){if(a[n]){return a[n].apply(this)}else{return a.aggregate()}};$[m].settings={resizeThrottle:200,scrollThrottle:100};e.load(function(){$[m]("refresh")})})(jQuery,"waypoint","waypoints",this);
;/*! jQuery.qrcode 0.2 - //larsjung.de/qrcode - MIT License */
(function(a){"use strict";var b=function(a,b,c){var d=g(a,b);return d.addData(c),d.make(),d},c=function(a){for(var c=2;c<=40;c+=1)try{return b(c,"L",a)}catch(d){}return null},d=function(b){var d=c(b.text),e=a("").attr("width",b.width).attr("height",b.height),f=e[0].getContext("2d");b.bgColor&&(f.fillStyle=b.bgColor,f.fillRect(0,0,b.width,b.height));if(d){var g=d.getModuleCount(),h=b.width/g,i=b.height/g,j,k;f.beginPath();for(j=0;j").css({position:"relative",left:0,top:0,padding:0,margin:0,width:b.width,height:b.height});b.bgColor&&e.css("background-color",b.bgColor);if(d){var f=d.getModuleCount(),g=Math.floor(b.width/f),h=Math.floor(b.height/f),i=Math.floor(.5*(b.width-g*f)),j=Math.floor(.5*(b.height-h*f)),k,l;for(k=0;k").css({left:i+l*g,top:j+k*h}).appendTo(e);e.children().css({position:"absolute",padding:0,margin:0,width:g,height:h,"background-color":b.color})}return e},f={render:"canvas",width:256,height:256,color:"#000",bgColor:null,text:"no text"};a.fn.qrcode=function(b){var c=a.extend({},f,b);return this.each(function(){a(this).append(c.render==="canvas"?d(c):e(c))})};var g=function(){function g(a,b){if(typeof a.length=="undefined")throw new Error(a.length+"/"+b);var c=function(){var c=0;while(c=7&&x(a),p==null&&(p=B(k,l,q)),z(p,b)},t=function(a,b){for(var c=-1;c<=7;c+=1){if(a+c<=-1||n<=a+c)continue;for(var d=-1;d<=7;d+=1){if(b+d<=-1||n<=b+d)continue;0<=c&&c<=6&&(d==0||d==6)||0<=d&&d<=6&&(c==0||c==6)||2<=c&&c<=4&&2<=d&&d<=4?m[a+c][b+d]=!0:m[a+c][b+d]=!1}}},u=function(){var a=0,b=0;for(var c=0;c<8;c+=1){s(!0,c);var d=e.getLostPoint(r);if(c==0||a>d)a=d,b=c}return b},v=function(){for(var a=8;a>c&1)==1;m[Math.floor(c/3)][c%3+n-8-3]=d}for(var c=0;c<18;c+=1){var d=!a&&(b>>c&1)==1;m[c%3+n-8-3][Math.floor(c/3)]=d}},y=function(a,b){var c=l<<3|b,d=e.getBCHTypeInfo(c);for(var f=0;f<15;f+=1){var g=!a&&(d>>f&1)==1;f<6?m[f][8]=g:f<8?m[f+1][8]=g:m[n-15+f][8]=g}for(var f=0;f<15;f+=1){var g=!a&&(d>>f&1)==1;f<8?m[8][n-f-1]=g:f<9?m[8][15-f-1+1]=g:m[8][15-f-1]=g}m[n-8][8]=!a},z=function(a,b){var c=-1,d=n-1,f=7,g=0,h=e.getMaskFunction(b);for(var i=n-1;i>0;i-=2){i==6&&(i-=1);for(;;){for(var j=0;j<2;j+=1)if(m[d][i-j]==null){var k=!1;g>>f&1)==1);var l=h(d,i-j);l&&(k=!k),m[d][i-j]=k,f-=1,f==-1&&(g+=1,f=7)}d+=c;if(d<0||n<=d){d-=c,c=-c;break}}}},A=function(a,b){var c=0,d=0,f=0,h=new Array(b.length),i=new Array(b.length);for(var j=0;j=0?p.get(q):0}}var r=0;for(var m=0;mm*8)throw new Error("code length overflow. ("+j.getLengthInBits()+">"+m*8+")");j.getLengthInBits()+4<=m*8&&j.put(0,4);while(j.getLengthInBits()%8!=0)j.putBit(!1);for(;;){if(j.getLengthInBits()>=m*8)break;j.put(d,8);if(j.getLengthInBits()>=m*8)break;j.put(f,8)}return A(j,g)};return r.addData=function(a){var b=j(a);q.push(b),p=null},r.isDark=function(a,b){if(a<0||n<=a||b<0||n<=b)throw new Error(a+","+b);return m[a][b]},r.getModuleCount=function(){return n},r.make=function(){s(!1,u())},r.createTableTag=function(a,b){a=a||2,b=typeof b=="undefined"?a*4:b;var c="";c+='',c+="";for(var d=0;d";for(var e=0;e';c+=""}return c+="",c+="
",c},r.createImgTag=function(a,b){a=a||2,b=typeof b=="undefined"?a*4:b;var c=r.getModuleCount()*a+b*2,d=b,e=c-b;return o(c,c,function(b,c){if(d<=b&&b>>8),b.push(g&255)):b.push(d)}}return b}};var b={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},c={L:1,M:0,Q:3,H:2},d={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e=function(){var a=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],c=1335,e=7973,h=21522,i={},j=function(a){var b=0;while(a!=0)b+=1,a>>>=1;return b};return i.getBCHTypeInfo=function(a){var b=a<<10;while(j(b)-j(c)>=0)b^=c<=0)b^=e<5&&(c+=3+f-5)}for(var d=0;d=256)b-=255;return a[b]},d}(),h=function(){var a=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],b=function(a,b){var c={};return c.totalCount=a,c.dataCount=b,c},d={},e=function(b,d){switch(d){case c.L:return a[(b-1)*4+0];case c.M:return a[(b-1)*4+1];case c.Q:return a[(b-1)*4+2];case c.H:return a[(b-1)*4+3];default:return undefined}};return d.getRSBlocks=function(a,c){var d=e(a,c);if(typeof d=="undefined")throw new Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+c);var f=d.length/3,g=new Array;for(var h=0;h>>7-b%8&1)==1},c.put=function(a,b){for(var d=0;d>>b-d-1&1)==1)},c.getLengthInBits=function(){return b},c.putBit=function(c){var d=Math.floor(b/8);a.length<=d&&a.push(0),c&&(a[d]|=128>>>b%8),b+=1},c},j=function(c){var d=b.MODE_8BIT_BYTE,e=c,f=a.stringToBytes(c),g={};return g.getMode=function(){return d},g.getLength=function(a){return f.length},g.write=function(a){for(var b=0;b>>8)},b.writeBytes=function(a,c,d){c=c||0,d=d||a.length;for(var e=0;e0&&(b+=","),b+=a[c];return b+="]",b},b},l=function(){var a=0,b=0,c=0,d="",e={},f=function(a){d+=String.fromCharCode(g(a&63))},g=function(a){if(!(a<0)){if(a<26)return 65+a;if(a<52)return 97+(a-26);if(a<62)return 48+(a-52);if(a==62)return 43;if(a==63)return 47}throw new Error("n:"+a)};return e.writeByte=function(d){a=a<<8|d&255,b+=8,c+=1;while(b>=6)f(a>>>b-6),b-=6},e.flush=function(){b>0&&(f(a<<6-b),a=0,b=0);if(c%3!=0){var e=3-c%3;for(var g=0;g=b.length){if(e==0)return-1;throw new Error("unexpected end of file./"+e)}var a=b.charAt(c);c+=1;if(a=="=")return e=0,-1;if(a.match(/^\s$/))continue;d=d<<6|g(a.charCodeAt(0)),e+=6}var f=d>>>e-8&255;return e-=8,f};var g=function(a){if(65<=a&&a<=90)return a-65;if(97<=a&&a<=122)return a-97+26;if(48<=a&&a<=57)return a-48+52;if(a==43)return 62;if(a==47)return 63;throw new Error("c:"+a)};return f},n=function(a,b){var c=a,d=b,e=new Array(a*b),f={};f.setPixel=function(a,b,d){e[b*c+a]=d},f.write=function(a){a.writeString("GIF87a"),a.writeShort(c),a.writeShort(d),a.writeByte(128),a.writeByte(0),a.writeByte(0),a.writeByte(0),a.writeByte(0),a.writeByte(0),a.writeByte(255),a.writeByte(255),a.writeByte(255),a.writeString(","),a.writeShort(0),a.writeShort(0),a.writeShort(c),a.writeShort(d),a.writeByte(0);var b=2,e=h(b);a.writeByte(b);var f=0;while(e.length-f>255)a.writeByte(255),a.writeBytes(e,f,255),f+=255;a.writeByte(e.length-f),a.writeBytes(e,f,e.length-f),a.writeByte(0),a.writeString(";")};var g=function(a){var b=a,c=0,d=0,e={};return e.write=function(a,e){if(a>>>e!=0)throw new Error("length over");while(c+e>=8)b.writeByte(255&(a<>>=8-c,d=0,c=0;d=a<0&&b.writeByte(d)},e},h=function(a){var b=1<",o};return a}()})(jQuery)
;jQuery.extend({highlight:function(node,re,nodeName,className){if(node.nodeType===3){var match=node.data.match(re);if(match){var highlight=document.createElement(nodeName||'span');highlight.className=className||'highlight';var wordNode=node.splitText(match.index);wordNode.splitText(match[0].length);var wordClone=wordNode.cloneNode(true);highlight.appendChild(wordClone);wordNode.parentNode.replaceChild(highlight,wordNode);return 1;}}else if((node.nodeType===1&&node.childNodes)&&!/(script|style)/i.test(node.tagName)&&!(node.tagName===nodeName.toUpperCase()&&node.className===className)){for(var i=0;i0)
{$mytopPhone.html('0512-62752246');}
$mysliderPhone=$("body").find(".myslider.phone")
if($mysliderPhone.size()>0)
{$mysliderPhone.attr("href","tel:18115601589");$mysliderPhone.html('电话 18115601589 / 18913533344');}
if(typeof layer!=='undefined')
{layer.use('extend/layer.ext.source.js');}
$(function(){});$(function(){if($.browser.msie){window.IE_Version=$.browser.version;}
window.Page_Width=$("body").outerWidth();if(window.Page_Width<768)
{if($("body").find(".home-product-nav").size()>0){$parent=$(".home-product-nav").find(".menu-nav");$parent.find(".icon-plus-sign").each(function(){$(this).addClass("icon-minus-sign");});}}});$(function(){if($("body").find(".product-section").size()>0&&$("body").find(".product-scroll-nav").size()>0)
{var sections=$(".product-section");var navigation_links=$(".product-scroll-nav a");sections.waypoint({handler:function(event,direction){var active_section;active_section=$(this);if(direction==="up")active_section=active_section.prev();var active_link=$('.nav a[href="#'+active_section.attr("id")+'"]');navigation_links.removeClass("selected");active_link.addClass("selected");},offset:'25%'})
navigation_links.click(function(event){$obj=$(this).attr("href");$topval=$($obj).offset().top;$('body,html').animate({scrollTop:$topval},500);return false;});}});$(function(){if(!in_array(window.IE_Version,['6.0','7.0']))
{if($("body").find(".product-scroll-nav").size()>0)
{$(".product-scroll-nav").sticky({topSpacing:0});}}});$(function(){if($("body").find(".qrcode").size()>0)
{$val=$(".qrcode").outerWidth();$(".qrcode").qrcode({render:'div',width:$val,height:$val,color:'#003449',text:$mhost+$uri});}});$(function(){if($("body").find(".qrcode-wechat").size()>0)
{$val=$(".qrcode-wechat").outerWidth();$(".qrcode-wechat").qrcode({render:'div',width:$val,height:$val,color:'#003449',text:$mhost});}});$(function(){if($(".bdsharebuttonbox").size()>0){window._bd_share_config={common:{bdText:$pagetitle,bdDesc:$summary,bdUrl:$pchost+$uri,bdPic:$pchost+$pagethumb},share:[{"bdSize":24}],}
with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];}});var $bc2="proadmin";var $tw1="/page";$(document).ready(function(e){filterShow();if(typeof $isLoggedin!=="undefined"){doajax({"do":"alif"},"POST",$baseurl+'api/',"json",nofun,loadAlif);}
$msgbox='';$("#layout").append($msgbox);if($("body").find("#form_express #fe-submit-button").size()>0)
{$("#form_express").prepend('');}});function loadAlif()
{if(window.jdata.code==1)
{$("body").prepend(window.jdata.html);if($("#ALIFeditpage").size()>0)$("#ALIFeditpage").attr("href",$baseurl+$bc1+$bc2+$tw1+"/edit"+"/?id="+$pageid);}}
$(document).on("click",".btn-home-emailto",function(){$(document).on("click",".btn-modal-demo1",function(){$html=$(".common-modal").outerHTML();var pageii=$.layer({type:1,title:false,area:['560px',0],border:[0],shade:[0.8,'#000'],closeBtn:[0,true],offset:['auto','50%'],page:{html:$html}});$(".xubox_page").find(".common-modal").removeClass("hidden");window.modelPage=pageii;});});$(document).on("click","#slider-search .button",function(){if($("#slider-search .text").val().length<2)
{layer.alert('请输入两位长度以上的关键词!',3);return false;}});jQuery(function($){if(typeof layer!=='undefined'&&$("body").find(".modal-imgs").size()>0&&$(window).width()>992)
{layer.ext=function(){layer.photosPage({html:'',title:'当前图片',id:1,parent:'.modal-imgs'});};}});$(".layer_img_index").livequery(function(){$content=$(".xubox_bigimg").find("img").attr("alt");$("#modal-img-desc").html($content);},function(){});jQuery(function($){$(document).on("click",".btn-home-emailto",function(){$(".common-modal .modal-title").html('发送邮件给我们');$(".common-modal .modal-body").html('');$(".common-modal .modal-foot").html('取消确认发送');$html=$(".common-modal").outerHTML();var pageii=$.layer({type:1,title:false,area:['660px',0],border:[0],shade:[0.8,'#000'],closeBtn:[0,true],offset:['auto','50%'],page:{html:$html}});$(".xubox_page").find(".common-modal").removeClass("hidden");window.modelPage=pageii;});})
$(document).on("click",".xubox_layer .btn-home-email-send",function(){$youremail=$(".xubox_layer .your-email").val();$subject=$(".xubox_layer .email-subject").val();$content=$(".xubox_layer .email-content").val();if(ValidEmail($youremail)==false)
{alert('请输入正确的邮件地址!');return false;}
if($subject.length<2)
{alert('邮件主题不能为空!');return false;}
if($content.length<10)
{alert('邮件正文至少10位长度');return false;}
if($("body").find(".xubox_layer .home-mail-to").size()>0)
{doajax({action:'send_mail',title:$subject,content:$content+"
from:"+$youremail},"POST",$baseurl+'ajax/',"json",ajaxLoad,mailRecived);}});$(document).on("click",".btn-modal-demo2",function(){layer.alert('这是一个消息成功的对话框!',1);});jQuery(function($){$(document).on("click",".btn-modal-demo3",function(){$.layer({shade:[0],area:['auto','auto'],dialog:{msg:'你会点yes还是no?',btns:2,type:4,btn:['是','否'],yes:function(){layer.msg('你点了yes',1,1);},no:function(){layer.msg('你点了no',1,5);}}});});});jQuery(function($){$(document).on("click",".btn-modal-demo4",function(){layer.load(3);});});jQuery(function($){$(document).on("click",".btn-modal-demo5",function(){$.layer({type:2,shadeClose:true,title:false,closeBtn:[0,true],shade:[0.8,'#000'],border:[0],offset:['20px',''],area:['1000px',($(window).height()-50)+'px'],iframe:{src:'http://www.cossim.com'}});});});jQuery(function(){if($("body").find(".slidebox").size()>0)
{$(".slidebox").hover(function(){$(this).find(".auto").fadeIn();},function(){$(this).find(".auto").fadeOut();});$(".slidebox").slide({mainCell:".container ul",effect:"fold",autoPlay:true,trigger:"click",easing:"swing",delayTime:1000,interTime:6000,mouseOverStop:true,pnLoop:true,startFun:function(i,c){},endFun:function(i,c){}});}});$(document).on("click",".btn-model-close",function(){layer.close(window.modelPage);return false;});$(document).on("click","#btn-menu-link",function(){$(this).toggleClass("menu-open");if($(this).hasClass("menu-open"))
{$(this).animate({right:"150px"});$("#mobile-menu").animate({right:"0px"});}
else
{$(this).animate({right:"0px"});$("#mobile-menu").animate({right:"-150px"});}
return false;});$(function(){if(!in_array(window.IE_Version,['6.0','7.0']))
{$(".header-menu .dropdown").hover(function(){$index=$(this).closest(".header-menu").find(".dropdown").index(this);$box=$(this).find(".sub-menu");$outH=$(this).closest("ul").outerHeight();$outW=$(this).closest("ul").outerWidth();$innH=$(this).outerHeight();$topH=($outH-$innH)/2;$box.find(".arrow").css({"height":$topH+"px"});$box_w=$box.outerWidth();$this_w=$(this).outerWidth();switch($index)
{case 0:$left=$(this).closest("ul").find("li").eq(0).outerWidth()+5;$box.css({"left":-$left+"px","width":$outW+"px"});$maxh=getMaxChildSize("height",$("#header-product-nav"),"ul.items");setUnifiedSize("height",$("#header-product-nav"),"ul.items",$maxh)
break;case 1:$left=$(this).closest("ul").find("li").eq(0).outerWidth()+$(this).closest("ul").find("li").eq(1).outerWidth()+5;$box.css({"left":-$left+"px","width":$outW+"px"});$maxh=getMaxChildSize("height",$("#header-solution-nav"),"ul.items");setUnifiedSize("height",$("#header-solution-nav"),"ul.items",$maxh)
break;default:$left=($box_w-$this_w)/2;$box.css({"left":-$left+"px"});break;}
$(this).find("a").first().toggleClass("active");$box.stop().fadeTo("slow",0.9);},function(){$(this).find(".sub-menu").stop().fadeOut("slow");$(this).find("a").first().toggleClass("active");});}})
$(document).on("click",".btn-home-widget-pro",function(){$iconbox=$(this).find(".icon");$parent=$(this).closest(".menu-nav");if(window.Page_Width<768)
{}
else
{if($iconbox.hasClass("icon-minus-sign"))
{return true;}
else
{$parent.find(".icon-plus-sign").each(function(){$(this).removeClass("icon-minus-sign");$(this).closest("li").find(".sub-menu").removeClass("show").css({"display":"none"});});$(this).find(".icon-plus-sign").addClass("icon-minus-sign").closest("li").find(".sub-menu").fadeIn();return false;}}});if(typeof $q!=='undefined')
{$(function(){$("div.result-list").highlight($q);});}
if(typeof map_points!=='undefined')
{$(function(){$.each(map_config,function(i,map){createBaiduMap("baidumaps"+i,map.city,map.address,map.phone,map.store,true);});});}
if($("body").find(".home-widget-map").size()>0)
{$(function(){createBaiduMap("home-widget-map","苏州","苏州市苏虹东路177号","4000-134-686","景通仪器",true);});}
$(function(){$("#form_express input.text,#form_express textarea").focusin(function(){$parent=$(this).closest("div");$parent.find(".fe-tips").fadeIn();}).focusout(function(e){$parent=$(this).closest("div");$parent.find(".fe-tips").fadeOut();});});$(document).on("click","#form_express #fe-submit-button",function(){$form=$("#form_express");$username=$("#fe_username").val();$expressNumber=$("#fe_express_number").val();$expressCompany=$("#fe_express_company").val();$phone=$("#fe_phone").val();$details=$("#fe_details").val();$title=$("#fe_title").val();$data=$form.serialize();if($username.length<2){layer.alert('姓名长度至少两个字!',3);$("#fe_username").focus();return false;}
if($expressCompany.length<2){layer.alert('快递公司不能为空!',3);$("#fe_express_company").focus();return false;}
if($expressNumber.length<8){layer.alert('快递单号长度至少8!',3);$("#fe_express_number").focus();return false;}
if(ValidPhone($phone)==false){layer.alert('电话号码格式错误!',3);$("#fe_phone").focus();return false;}
if($title.length<1){layer.alert('请输入样品名称!',3);$("#fe_title").focus();return false;}
if($details.length<10){layer.alert('请至少输入十个字以上的描述内容!',3);$("#fe_details").focus();return false;}
doajax($data,"POST",$baseurl+'ajax/',"json",postLoad,expressPostMsg);return false;});function expressPostMsg(){if(window.jdata.msg==1)
{layer.alert('数据提交成功!',10);setTimeout(function(){layer.closeAll();cleanForm("form_express");},2000);}
else
{layer.alert('错误的请求,请重试!',3);setTimeout(function(){layer.closeAll();},2000);}}
function initSectionH()
{var windowHeight=$(window).height();var windowWidth=$(window).width();if($("body").find("#body .width-2of3").size()>0&&windowWidth>=768)
{$mainSection=$("#body .width-2of3").first();var $mainHeight=$mainSection.outerHeight();var $sliderHeight=$("#body aside.width-1of3").outerHeight();if($mainHeight<$sliderHeight)
{$mainSection.css({"height":$sliderHeight+'px'});}}
if($("body").find("#body .width-2of3").size()>0&&windowWidth<768)
{$mainSection=$("#body .width-2of3").first();$mainSection.css({"height":"auto"});}}
$(window).load(function(){initSectionH();$(window).scroll(function(){});});$(window).resize(function(){var $width=$(window).outerWidth();var $height=$(window).outerHeight();initSectionH();filterShow();});function postLoad(){var ii=layer.load('正在提交数据...');setTimeout(function(){layer.close(ii);},100000);}
function nofun(){}
function ajaxLoad(){var ii=layer.load('邮件发送中...');setTimeout(function(){layer.close(ii);},100000);}
function mailRecived(){if(window.jdata.msg==1)
{layer.alert('邮件发送成功!',10);setTimeout(function(){layer.closeAll();},2000);}}
function showDialog(msgText,timer)
{if(typeof timer=='undefined')timer=6000;layer.alert(msgText,10);setTimeout(function(){layer.closeAll();},timer);}
function doajax(dataArr,doType,doUrl,dataType,loadfun,sucfun,asyncVal)
{if(typeof(asyncVal)=='undefined'){asyncVal=true; }
$.ajax({url:doUrl,type:doType,async:asyncVal,dataType:dataType,data:dataArr,beforeSend:function(){loadfun();},success:function(json){window.jdata=json;sucfun();},error:function(err){showDialog("出错了:"+err);}});}
function in_array(needle,haystack,argStrict){var key='',strict=!!argStrict;if(strict){for(key in haystack){if(haystack[key]===needle){return true;}}}else{for(key in haystack){if(haystack[key]==needle){return true;}}}
return false;}
function getMaxChildSize(type,sel,matching){max=0;sel.find(matching).each(function(){$(sel).css({position:"absolute",visibility:"hidden",display:"block"});switch(type){case'width':c_value=parseInt($(this).outerWidth());break;case'height':c_value=parseInt($(this).outerHeight());break;default:return false;break;}
$(sel).css({position:"",visibility:"",display:""});if(c_value>max){max=c_value;}});return max;}
function setUnifiedSize(type,sel,matching,maxv)
{sel.find(matching).each(function(){if($(this).outerHeight()').append(this.eq(0).clone()).html();};function ValidEmail(emailAddress){var email_check=new RegExp(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i);return email_check.test(emailAddress);};function ValidPhone(phoneNumber){var phone_check=new RegExp(/^((\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}))$)/i);return phone_check.test(phoneNumber);}
function createBaiduMap(mapContainer,city,address,phone,store,open_map,zoom)
{var $map_city=city;var $map_address=address;var $map_phone=phone;var $map_store=store;var $open_map=open_map;var $zoom=typeof(zoom)=='undefined'?12:zoom;var map=new BMap.Map(mapContainer);var point=new BMap.Point(116.331398,39.897445);map.centerAndZoom(point,12);var myGeo=new BMap.Geocoder();myGeo.getPoint($map_address,function(point){if(point){map.centerAndZoom(point,$zoom);map.enableScrollWheelZoom();maker=new BMap.Marker(point);map.addOverlay(maker);var sContent=""+$map_store+"
"+" 电话:"+$map_phone+"
"+"";var infoWindow=new BMap.InfoWindow(sContent);infoWindow.redraw();maker.addEventListener("click",function(){this.openInfoWindow(infoWindow);});}else{alert("您选择地址没有解析到结果!");}},$map_city);}
function cleanForm(formID)
{$(':input','#'+formID).not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');}
var filterShow=function(){$screenWidth=$(window).width()+17;$width=$("#goods-filter .cell dl.filter-field").outerWidth()/2;$("#goods-filter .cell .filter-field dd.filter-class").each(function(index,element){if($screenWidth>1200)
{$this_length=0;$(this).children("a").each(function(){$this_length=$this_length+$(this).outerWidth();});$this_title=$(this).prev("#goods-filter .cell .filter-field dt.filter-class").outerWidth();$this_w=$this_length+$this_title;if($this_w<$width)
{$(this).removeClass("width-9of10").removeClass("width-5of6").addClass("width-4of10");}
else
{$(this).removeClass("width-4of10").removeClass("width-5of6").addClass("width-9of10");}
$(this).prev("#goods-filter .cell .filter-field dt.col").removeClass("width-1of6").addClass("width-1of10");$("#goods-filter .cell .filter-field dt").eq(0).removeClass("width-1of6").addClass("width-1of10");$("#goods-filter .cell .filter-field dd").eq(0).removeClass("width-5of6").addClass("width-9of10");}
else if($screenWidth>768)
{$(this).prev("#goods-filter .cell .filter-field dt.col").removeClass("width-1of10").addClass("width-1of6");$(this).removeClass("width-4of10").removeClass("width-9of10").addClass("width-5of6");$("#goods-filter .cell .filter-field dt").eq(0).removeClass("width-1of10").addClass("width-1of6");$("#goods-filter .cell .filter-field dd").eq(0).removeClass("width-9of10").addClass("width-5of6");}
else
{$(this).prev("#goods-filter .cell .filter-field dt.col").removeClass("width-1of6").addClass("width-1of10");$(this).removeClass("width-4of10").removeClass("width-5of6").addClass("width-9of10");$("#goods-filter .cell .filter-field dt").eq(0).removeClass("width-1of6").addClass("width-1of10");$("#goods-filter .cell .filter-field dd").eq(0).removeClass("width-5of6").addClass("width-9of10");}});}