/*! 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);
/*
jQuery Tools dev - The missing UI library for the Web
dateinput/dateinput.js
overlay/overlay.js
overlay/overlay.apple.js
rangeinput/rangeinput.js
scrollable/scrollable.js
scrollable/scrollable.autoscroll.js
scrollable/scrollable.navigator.js
tabs/tabs.js
toolbox/toolbox.expose.js
toolbox/toolbox.history.js
toolbox/toolbox.mousewheel.js
tooltip/tooltip.js
tooltip/tooltip.slide.js
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
http://flowplayer.org/tools/
jquery.event.wheel.js - rev 1
Copyright (c) 2008, Three Dub Media (http://threedubmedia.com)
Liscensed under the MIT License (MIT-LICENSE.txt)
http://www.opensource.org/licenses/mit-license.php
Created: 2008-07-01 | Updated: 2008-07-14
-----
*/
(function(a,v){function n(a,b){a=""+a;for(b=b||2;a.lengthg?(l.addMonth(-1),h=a("#"+p.weeks+" a:eq("+(g+42)+")")):h=d.eq(g);h.addClass(p.focus);return b.preventDefault()}if(34==c)return l.addMonth();if(33==c)return l.addMonth(-1);if(36==c)return l.today();13==c&&(a(b.target).is("select")||a("."+p.focus).click());return 0<=a([16,17,18,9]).index(c)});a(document).on("click.d",function(b){var c=b.target;c.id==p.root||a(c).parents("#"+p.root).length||c==e[0]||y&&c==y[0]||l.hide(b)})}var l=this,q=new Date,u=q.getFullYear(),p=h.css,n=m[h.lang],
x=a("#"+p.root),F=x.find("#"+p.title),y,H,I,L,N,M,D=e.attr("data-value")||h.value||e.val(),A=e.attr("min")||h.min,E=e.attr("max")||h.max,G,P;0===A&&(A="0");D=b(D)||q;A=b(A||new Date(u+h.yearRange[0],1,1));E=b(E||new Date(u+h.yearRange[1]+1,1,-1));if(!n)throw"Dateinput: invalid language: "+h.lang;"date"==e.attr("type")&&(P=e.clone(),u=P.wrap("
").parent().html(),u=a(u.replace(/type/i,"type=text data-orig-type")),h.value&&u.val(h.value),e.replaceWith(u),e=u);e.addClass(p.input);var O=e.add(l);
if(!x.length){x=a("").hide().css({position:"absolute"}).attr("id",p.root);x.children().eq(0).attr("id",p.head).end().eq(1).attr("id",p.body).children().eq(0).attr("id",p.days).end().eq(1).attr("id",p.weeks).end().end().end().find("a").eq(0).attr("id",p.prev).end().eq(1).attr("id",p.next);F=x.find("#"+p.head).find("div").attr("id",p.title);if(h.selectors){var J=a(" ").attr("id",p.month),K=a(" ").attr("id",p.year);F.html(J.add(K))}for(var u=
x.find("#"+p.days),S=0;7>S;S++)u.append(a(" ").text(n.shortDays[(S+h.firstDay)%7]));a("body").append(x)}h.trigger&&(y=a(" ").attr("href","#").addClass(p.trigger).click(function(a){h.toggle?l.toggle():l.show();return a.preventDefault()}).insertAfter(e));var Q=x.find("#"+p.weeks),K=x.find("#"+p.year),J=x.find("#"+p.month);a.extend(l,{show:function(b){if(!e.attr("disabled")&&!G&&(b=a.Event(),b.type="onBeforeShow",O.trigger(b),!b.isDefaultPrevented())){a.each(g,function(){this.hide()});G=!0;
J.off("change").change(function(){l.setValue(d(K.val()),d(a(this).val()))});K.off("change").change(function(){l.setValue(d(a(this).val()),d(J.val()))});H=x.find("#"+p.prev).off("click").click(function(a){H.hasClass(p.disabled)||l.addMonth(-1);return!1});I=x.find("#"+p.next).off("click").click(function(a){I.hasClass(p.disabled)||l.addMonth();return!1});l.setValue(D);var c=e.offset();/iPad/i.test(navigator.userAgent)&&(c.top-=a(window).scrollTop());x.css({top:c.top+e.outerHeight(!0)+h.offset[0],left:c.left+
h.offset[1]});h.speed?x.show(h.speed,function(){w(b)}):(x.show(),w(b));return l}},setValue:function(g,e,w){var f=-1<=d(e)?new Date(d(g),d(e),d(w==v||isNaN(w)?1:w)):g||D;fE&&(f=E);"string"==typeof g&&(f=b(g));g=f.getFullYear();e=f.getMonth();w=f.getDate();-1==e?(e=11,g--):12==e&&(e=0,g++);if(!G)return k(f,h),l;N=e;L=g;M=w;w=(new Date(g,e,1-h.firstDay)).getDay();var t=(new Date(g,e+1,0)).getDate(),r=(new Date(g,e-1+1,0)).getDate(),u;if(h.selectors){J.empty();a.each(n.months,function(b,c){A<
new Date(g,b+1,1)&&E>new Date(g,b,0)&&J.append(a(" ").html(c).attr("value",b))});K.empty();for(var f=q.getFullYear(),m=f+h.yearRange[0];mnew Date(m,0,0)&&K.append(a(" ").text(m));J.val(e);K.val(g)}else F.html(n.months[e]+" "+g);Q.empty();H.add(I).removeClass(p.disabled);for(var m=w?0:-7,x,y;m<(w?42:35);m++)x=a(" "),0===m%7&&(u=a("
").addClass(p.week),Q.append(u)),m=w+t?(x.addClass(p.off),
y=m-t-w+1,f=new Date(g,e+1,y)):(y=m-w+1,f=new Date(g,e,y),c(D,f)?x.attr("id",p.current).addClass(p.focus):c(q,f)&&x.attr("id",p.today)),A&&fE&&x.add(I).addClass(p.disabled),x.attr("href","#"+y).text(y).data("date",f),u.append(x);Q.find("a").click(function(b){var c=a(this);c.hasClass(p.disabled)||(a("#"+p.current).removeAttr("id"),c.attr("id",p.current),k(c.data("date"),h,b));return!1});p.sunday&&Q.find("."+p.week).each(function(){var b=h.firstDay?7-h.firstDay:
0;a(this).children().slice(b,b+1).addClass(p.sunday)});return l},setMin:function(a,c){A=b(a);c&&D E&&l.setValue(E);return l},today:function(){return l.setValue(q)},addDay:function(a){return this.setValue(L,N,M+(a||1))},addMonth:function(a){a=N+(a||1);var b=(new Date(L,a+1,0)).getDate();return this.setValue(L,a,M<=b?M:b)},addYear:function(a){return this.setValue(L+(a||1),N,M)},destroy:function(){e.add(document).off("click.d keydown.d");x.add(y).remove();
e.removeData("dateinput").removeClass(p.input);P&&e.replaceWith(P)},hide:function(b){if(G){b=a.Event();b.type="onHide";O.trigger(b);if(b.isDefaultPrevented())return;a(document).off("click.d keydown.d");x.hide();G=!1}return l},toggle:function(){return l.isOpen()?l.hide():l.show()},getConf:function(){return h},getInput:function(){return e},getCalendar:function(){return x},getValue:function(a){return a?f(h.formatter,D,a,h.lang):D},isOpen:function(){return G}});a.each(["onBeforeShow","onShow","change",
"onHide"],function(b,c){if(a.isFunction(h[c]))a(l).on(c,h[c]);l[c]=function(b){if(b)a(l).on(c,b);return l}});h.editable||e.on("focus.d click.d",l.show).keydown(function(b){var c=b.keyCode;if(!G&&0<=a(r).index(c))return l.show(b),b.preventDefault();8!=c&&46!=c||e.val("");return b.shiftKey||b.ctrlKey||b.altKey||9==c?!0:b.preventDefault()});b(e.val())&&k(D,h)}a.tools=a.tools||{version:"1.2.8-dev"};var g=[],h={},k,r=[75,76,38,39,74,72,40,37],m={};k=a.tools.dateinput={conf:{format:"mm/dd/yy",formatter:"default",
selectors:!1,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:v,max:v,trigger:0,toggle:0,editable:0,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},addFormatter:function(a,b){h[a]=b},localize:function(b,c){a.each(c,function(a,b){c[a]=b.split(",")});m[b]=c}};k.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",
shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var q=a(" ");k.addFormatter("default",function(a,b,c,d){return a.replace(/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,function(a){return a in c?c[a]:a})});k.addFormatter("prefixed",function(a,b,c,d){return a.replace(/%(d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*')/g,function(a,b){return b in c?c[b]:a})});a.expr[":"].date=function(b){var c=
b.getAttribute("type");return c&&"date"==c||!!a(b).data("dateinput")};a.fn.dateinput=function(b){if(this.data("dateinput"))return this;b=a.extend(!0,{},k.conf,b);a.each(b.css,function(a,c){c||"prefix"==a||(b.css[a]=(b.css.prefix||"")+(c||a))});var c;this.each(function(){var d=new e(a(this),b);g.push(d);d=d.getInput().data("dateinput",d);c=c?c.add(d):d});return c?c:this}})(jQuery);
(function(a){function v(d,c){var b=this,e=d.add(b),g=a(window),h,k,r,m=a.tools.expose&&(c.mask||c.expose),q=Math.random().toString().slice(10);m&&("string"==typeof m&&(m={color:m}),m.closeOnClick=m.closeOnEsc=!1);var t=c.target||d.attr("rel");k=t?a(t):d;if(!k.length)throw"Could not find Overlay: "+t;if(d&&-1==d.index(k))d.off("click.jqtoverlay").on("click.jqtoverlay",function(a){if(d.attr("href")&&(a.ctrlKey||a.shiftKey||a.altKey||1 '),k.prepend(h));h.click(function(a){b.close(a)});c.load&&b.load()}
a.tools=a.tools||{version:"1.2.8-dev"};a.tools.overlay={addEffect:function(a,c,b){f[a]=[c,b]},conf:{close:null,closeOnClick:!0,closeOnEsc:!0,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||6 ');r.css({border:0,display:"none"}).width(k);a("body").append(r);b.data("img",r)}var q=e.start.top||Math.round(f.height()/2),t=e.start.left||Math.round(f.width()/2);g&&(g=v(g),q=g.top,t=g.left);e.fixed?(q-=f.scrollTop(),t-=f.scrollLeft()):(d.top+=f.scrollTop(),d.left+=f.scrollLeft());r.css({position:"absolute",top:q,left:t,width:0,zIndex:e.zIndex}).show();d.position=m;b.css(d);r.animate({top:d.top,left:d.left,width:k},e.speed,function(){b.css("zIndex",
e.zIndex+1).fadeIn(e.fadeInSpeed,function(){h.isOpened()&&!a(this).index(b)?c.call():b.hide()})}).css("position",m)},function(d){var c=this.getOverlay().hide(),b=this.getConf(),e=this.getTrigger(),c=c.data("img"),g={top:b.start.top,left:b.start.left,width:0};e&&a.extend(g,v(e));b.fixed&&c.css({position:"absolute"}).animate({top:"+="+f.scrollTop(),left:"+="+f.scrollLeft()},0);c.animate(g,b.closeSpeed,d)})})(jQuery);
(function(a){function v(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}function n(a,b){var c=parseInt(a.css(b),10);return c?c:(c=a[0].currentStyle)&&c.width&&parseInt(c.width,10)}function f(a){return(a=a.data("events"))&&a.onSlide}function d(b,c){function d(a,e,f,l){void 0===f?f=e/C*R:l&&(f-=c.min);x&&(f=Math.round(f/x)*x);if(void 0===e||x)e=f*C/R;if(isNaN(f))return q;e=Math.max(0,Math.min(e,C));f=e/C*R;if(l||!B)f+=c.min;B&&(l?e=C-e:f=c.max-f);f=v(f,F);var k="click"==a.type;if(I&&void 0!==w&&
!k&&(a.type="onSlide",H.trigger(a,[f,e]),a.isDefaultPrevented()))return q;l=k?c.speed:0;k=k?function(){a.type="change";H.trigger(a,[f])}:null;B?(u.animate({top:e},l,k),c.progress&&p.animate({height:C-e+u.height()/2},l)):(u.animate({left:e},l,k),c.progress&&p.animate({width:e+u.width()/2},l));w=f;b.val(f);return q}function e(){(B=c.vertical||n(z,"height")>n(z,"width"))?(C=n(z,"height")-n(u,"height"),l=z.offset().top+C):(C=n(z,"width")-n(u,"width"),l=z.offset().left)}function m(){e();q.setValue(void 0!==
c.value?c.value:c.min)}var q=this,t=c.css,z=a("").data("rangeinput",q),B,w,l,C;b.before(z);var u=z.addClass(t.slider).find("a").addClass(t.handle),p=z.find("div").addClass(t.progress);a.each(["min","max","step","value"],function(a,d){var e=b.attr(d);parseFloat(e)&&(c[d]=parseFloat(e,10))});var R=c.max-c.min,x="any"==c.step?0:c.step,F=c.precision;void 0===F&&(F=x.toString().split("."),F=2===F.length?F[1].length:0);if("range"==b.attr("type")){var y=b.clone().wrap("
").parent().html(),
y=a(y.replace(/type/i,"type=text data-orig-type"));y.val(c.value);b.replaceWith(y);b=y}b.addClass(t.input);var H=a(q).add(b),I=!0;a.extend(q,{getValue:function(){return w},setValue:function(b,c){e();return d(c||a.Event("api"),void 0,b,!0)},getConf:function(){return c},getProgress:function(){return p},getHandle:function(){return u},getInput:function(){return b},step:function(b,d){d=d||a.Event();q.setValue(w+("any"==c.step?1:c.step)*(b||1),d)},stepUp:function(a){return q.step(a||1)},stepDown:function(a){return q.step(-a||
-1)}});a.each(["onSlide","change"],function(b,d){if(a.isFunction(c[d]))a(q).on(d,c[d]);q[d]=function(b){if(b)a(q).on(d,b);return q}});u.drag({drag:!1}).on("dragStart",function(){e();I=f(a(q))||f(b)}).on("drag",function(a,c,e){if(b.is(":disabled"))return!1;d(a,B?c:e)}).on("dragEnd",function(a){a.isDefaultPrevented()||(a.type="change",H.trigger(a,[w]))}).click(function(a){return a.preventDefault()});z.click(function(a){if(b.is(":disabled")||a.target==u[0])return a.preventDefault();e();var c=B?u.height()/
2:u.width()/2;d(a,B?C-l-c+a.pageY:a.pageX-l-c)});c.keyboard&&b.keydown(function(c){if(!b.attr("readonly")){var d=c.keyCode,e=-1!=a([75,76,38,33,39]).index(d),h=-1!=a([74,72,40,34,37]).index(d);if((e||h)&&!(c.shiftKey||c.altKey||c.ctrlKey))return e?q.step(33==d?10:1,c):h&&q.step(34==d?-10:-1,c),c.preventDefault()}});b.blur(function(b){var c=a(this).val();c!==w&&q.setValue(c,b)});a.extend(b[0],{stepUp:q.stepUp,stepDown:q.stepDown});m();C||a(window).load(m)}a.tools=a.tools||{version:"1.2.8-dev"};var c;
c=a.tools.rangeinput={conf:{min:0,max:100,step:"any",steps:0,value:0,precision:void 0,vertical:0,keyboard:!0,progress:!1,speed:100,css:{input:"range",slider:"slider",progress:"progress",handle:"handle"}}};var b,e;a.fn.drag=function(c){document.ondragstart=function(){return!1};c=a.extend({x:!0,y:!0,drag:!0},c);b=b||a(document).on("mousedown mouseup",function(d){var f=a(d.target);if("mousedown"==d.type&&f.data("drag")){var r=f.position(),m=d.pageX-r.left,q=d.pageY-r.top,t=!0;b.on("mousemove.drag",function(a){var b=
a.pageX-m;a=a.pageY-q;var d={};c.x&&(d.left=b);c.y&&(d.top=a);t&&(f.trigger("dragStart"),t=!1);c.drag&&f.css(d);f.trigger("drag",[a,b]);e=f});d.preventDefault()}else try{e&&e.trigger("dragEnd")}finally{b.off("mousemove.drag"),e=null}});return this.data("drag",!0)};a.expr[":"].range=function(b){var c=b.getAttribute("type");return c&&"range"==c||!!a(b).filter("input").data("rangeinput")};a.fn.rangeinput=function(b){if(this.data("rangeinput"))return this;b=a.extend(!0,{},c.conf,b);var e;this.each(function(){var c=
new d(a(this),a.extend(!0,{},b)),c=c.getInput().data("rangeinput",c);e=e?e.add(c):c});return e?e:this}})(jQuery);
(function(a){function v(d,c){var b=a(c);return 2>b.length?b:d.parent().find(c)}function n(d,c){var b=this,e=d.add(b),g=d.children(),h=0,k=c.vertical;f||(f=b);1=b.getSize()&&(--h,b.move(1));return b},seekTo:function(d,l,q){d.jquery||(d*=1);if(c.circular&&0===d&&-1==h&&0!==l||!c.circular&&
0>d||d>b.getSize()||-1>d)return b;var m=d;d.jquery?d=b.getItems().index(d):m=b.getItems().eq(d);var t=a.Event("onBeforeSeek");if(!q&&(e.trigger(t,[d,l]),t.isDefaultPrevented()||!m.length))return b;m=k?{top:-m.position().top}:{left:-m.position().left};h=d;f=b;void 0===l&&(l=c.speed);g.animate(m,l,c.easing,q||function(){e.trigger("onSeek",[d])});return b}});a.each(["onBeforeSeek","onSeek","onAddItem","onRemoveItem"],function(d,e){if(a.isFunction(c[e]))a(b).on(e,c[e]);b[e]=function(c){if(c)a(b).on(e,
c);return b}});if(c.circular){var r=b.getItems().slice(-1).clone().prependTo(g),m=b.getItems().eq(1).clone().appendTo(g);r.add(m).addClass(c.clonedClass);b.onBeforeSeek(function(a,c,d){if(!a.isDefaultPrevented()){var e=b.getCircularClones();if(-1==c)return b.seekTo(e.first(),d,function(){b.end(0)}),a.preventDefault();c==b.getSize()&&b.seekTo(e.last(),d,function(){b.begin(0)})}});r=d.parents().add(d).filter(function(){if("none"===a(this).css("display"))return!0});r.length?(r.show(),b.seekTo(0,0,function(){}),
r.hide()):b.seekTo(0,0,function(){})}var q=v(d,c.prev).click(function(a){a.stopPropagation();b.prev()}),t=v(d,c.next).click(function(a){a.stopPropagation();b.next()});c.circular||(b.onBeforeSeek(function(a,d){setTimeout(function(){a.isDefaultPrevented()||(q.toggleClass(c.disabledClass,0>=d),t.toggleClass(c.disabledClass,d>=b.getSize()-1))},1)}),c.initialIndex||q.addClass(c.disabledClass));2>b.getSize()&&q.add(t).addClass(c.disabledClass);c.mousewheel&&a.fn.mousewheel&&d.mousewheel(function(a,d){if(c.mousewheel)return b.move(0>
d?1:-1,c.wheelSpeed||50),!1});if(c.touch){var n,B;g[0].ontouchstart=function(a){a=a.touches[0];n=a.clientX;B=a.clientY};g[0].ontouchmove=function(a){if(1==a.touches.length&&!g.is(":animated")){var c=a.touches[0],d=n-c.clientX,c=B-c.clientY;b[k&&0 *",items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",size:1,speed:400,vertical:!1,touch:!0,wheelSpeed:0}};var f;a.fn.scrollable=function(d){var c=this.data("scrollable");
if(c)return c;d=a.extend({},a.tools.scrollable.conf,d);this.each(function(){c=new n(a(this),d);a(this).data("scrollable",c)});return d.api?c:this}})(jQuery);
(function(a){var v=a.tools.scrollable;v.autoscroll={conf:{autoplay:!0,interval:3E3,autopause:!0}};a.fn.autoscroll=function(n){"number"==typeof n&&(n={interval:n});var f=a.extend({},v.autoscroll.conf,n),d;this.each(function(){function c(){g&&clearTimeout(g);g=setTimeout(function(){b.next()},f.interval)}var b=a(this).data("scrollable"),e=b.getRoot(),g,h=!1;b&&(d=b);b.play=function(){g||(h=!1,e.on("onSeek",c),c())};b.hoverPlay=function(){h||b.play()};b.pause=function(){g=clearTimeout(g);e.off("onSeek",
c)};b.resume=function(){h||b.play()};b.stop=function(){h=!0;b.pause()};f.autopause&&e.add(b.getNaviButtons()).hover(b.pause,b.resume);f.autoplay&&b.play();b.onRemoveItem(function(a,c){2>=b.getSize()&&b.stop()})});return f.api?d:this}})(jQuery);
(function(a){function v(f,d){var c=a(d);return 2>c.length?c:f.parent().find(d)}var n=a.tools.scrollable;n.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,idPrefix:null,history:!1}};a.fn.navigator=function(f){"string"==typeof f&&(f={navi:f});f=a.extend({},n.navigator.conf,f);var d;this.each(function(){function c(){return g.find(f.naviItem||"> *")}function b(b){var c=a("<"+(f.naviItem||"a")+"/>").click(function(c){a(this);e.seekTo(b);c.preventDefault();n&&history.pushState({i:b},
"")});0===b&&c.addClass(k);f.indexed&&c.text(b+1);f.idPrefix&&c.attr("id",f.idPrefix+b);return c.appendTo(g)}var e=a(this).data("scrollable"),g=f.navi.jquery?f.navi:v(e.getRoot(),f.navi),h=e.getNaviButtons(),k=f.activeClass,n=f.history&&!!history.pushState,m=e.getConf().size;e&&(d=e);e.getNaviButtons=function(){return h.add(g)};n&&(history.pushState({i:0},""),a(window).on("popstate",function(a){(a=a.originalEvent.state)&&e.seekTo(a.i)}));c().length?c().click(function(b){a(this);var d=c().index(this);
e.seekTo(d);b.preventDefault();n&&history.pushState({i:d},"")}):a.each(e.getItems(),function(a){0==a%m&&b(a)});e.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var d=b/m;c().eq(d).length&&c().removeClass(k).eq(d).addClass(k)}},1)});e.onAddItem(function(a,c){var d=e.getItems().index(c);0==d%m&&b(d)});e.onRemoveItem(function(a,b){var d=e.getItems().index(b);c().eq(d).remove();c().removeClass(k).eq(db)return g.click(w,t);if(b>w)return g.click(0,t)}if(!r.length){if(0<=m)return g;b=d.initialIndex;r=k.eq(b)}if(b===
m)return g;t=t||a.Event();t.type="onBeforeClick";f.trigger(t,[b]);if(!t.isDefaultPrevented())return n[v?d.initialEffect&&d.effect||"default":d.effect].call(g,b,function(){m=b;t.type="onClick";f.trigger(t,[b])}),k.removeClass(d.current),r.addClass(d.current),g},getConf:function(){return d},getTabs:function(){return k},getPanes:function(){return r},getCurrentPane:function(){return r.eq(m)},getCurrentTab:function(){return k.eq(m)},getIndex:function(){return m},next:function(){return g.click(m+1)},prev:function(){return g.click(m-
1)},destroy:function(){k.off(d.event).removeClass(d.current);r.find('a[href^="#"]').off("click.T");return g}});a.each(["onBeforeClick","onClick"],function(b,c){if(a.isFunction(d[c]))a(g).on(c,d[c]);g[c]=function(b){if(b)a(g).on(c,b);return g}});d.history&&a.fn.history&&(a.tools.history.init(k),d.event="history");k.each(function(b){a(this).on(d.event,function(a){g.click(b,a);return a.preventDefault()})});r.find('a[href^="#"]').on("click.T",function(b){g.click(a(this).attr("href"),b)});location.hash&&
"a"==d.tabs&&c.find('[href="'+location.hash.replace('"',"")+'"]').length?g.click(location.hash):(0===d.initialIndex||0b-c?c:b]}return[a(document).width(),a(document).height()]}function n(b){if(b)return b.call(a.mask)}a.tools=a.tools||{version:"1.2.8-dev"};var f;f=a.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:!0,closeOnEsc:!0,zIndex:9998,opacity:.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var d,c,b,e,g;a.mask={load:function(h,k){if(b)return this;"string"==typeof h&&(h={color:h});h=h||e;e=h=a.extend(a.extend({},f.conf),h);d=a("#"+h.maskId);d.length||(d=a("
").attr("id",h.maskId),a("body").append(d));var r=v();d.css({position:"absolute",top:0,left:0,width:r[0],height:r[1],display:"none",opacity:h.startOpacity,zIndex:h.zIndex});h.color&&d.css("backgroundColor",h.color);if(!1===n(h.onBeforeLoad))return this;if(h.closeOnEsc)a(document).on("keydown.mask",function(b){27==
b.keyCode&&a.mask.close(b)});if(h.closeOnClick)d.on("click.mask",function(b){a.mask.close(b)});a(window).on("resize.mask",function(){a.mask.fit()});k&&k.length&&(g=k.eq(0).css("zIndex"),a.each(k,function(){var b=a(this);/relative|absolute|fixed/i.test(b.css("position"))||b.css("position","relative")}),c=k.css({zIndex:Math.max(h.zIndex+1,"auto"==g?0:g)}));d.css({display:"block"}).fadeTo(h.loadSpeed,h.opacity,function(){a.mask.fit();n(h.onLoad);b="full"});b=!0;return this},close:function(){if(b){if(!1===
n(e.onBeforeClose))return this;d.fadeOut(e.closeSpeed,function(){c&&c.css({zIndex:g});b=!1;n(e.onClose)});a(document).off("keydown.mask");d.off("click.mask");a(window).off("resize.mask")}return this},fit:function(){if(b){var a=d.css("display");d.css("display","none");var c=v();d.css({display:a,width:c[0],height:c[1]})}},getMask:function(){return d},isLoaded:function(a){return a?"full"==b:b},getConf:function(){return e},getExposed:function(){return c}};a.fn.mask=function(b){a.mask.load(b);return this};
a.fn.expose=function(b){a.mask.load(b,this);return this}})(jQuery);
(function(a){function v(a){if(a){var c=f.contentWindow.document;c.open().close();c.location.hash=a}}var n,f,d,c;a.tools=a.tools||{version:"1.2.8-dev"};a.tools.history={init:function(b){c||(a.browser.msie&&"8">a.browser.version?f||(f=a("").attr("src","javascript:false;").hide().get(0),a("body").append(f),setInterval(function(){var b=f.contentWindow.document.location.hash;n!==b&&a(window).trigger("hash",b)},100),v(location.hash||"#")):setInterval(function(){var b=location.hash;b!==n&&a(window).trigger("hash",
b)},100),d=d?d.add(b):b,b.click(function(b){var c=a(this).attr("href");f&&v(c);if("#"!=c.slice(0,1))return location.href="#"+c,b.preventDefault()}),c=!0)}};a(window).on("hash",function(b,c){c?d.filter(function(){var b=a(this).attr("href");return b==c||b==c.replace("#","")}).trigger("history",[c]):d.eq(0).trigger("history",[c]);n=c});a.fn.history=function(b){a.tools.history.init(this);return this.on("history",b)}})(jQuery);
(function(a){function v(f){switch(f.type){case "mousemove":return a.extend(f.data,{clientX:f.clientX,clientY:f.clientY,pageX:f.pageX,pageY:f.pageY});case "DOMMouseScroll":a.extend(f,f.data);f.delta=-f.detail/3;break;case "mousewheel":f.delta=f.wheelDelta/120}f.type="wheel";return a.event.handle.call(this,f,f.delta)}a.fn.mousewheel=function(a){return this[a?"on":"trigger"]("wheel",a)};a.event.special.wheel={setup:function(){a.event.add(this,n,v,{})},teardown:function(){a.event.remove(this,n,v)}};var n=
a.browser.mozilla?"DOMMouseScroll"+("1.9">a.browser.version?" mousemove":""):"mousewheel"})(jQuery);
(function(a){function v(d,c,b){var e=b.relative?d.position().top:d.offset().top,g=b.relative?d.position().left:d.offset().left,f=b.position[0],e=e-(c.outerHeight()-b.offset[0]),g=g+(d.outerWidth()+b.offset[1]);/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var k=c.outerHeight()+d.outerHeight();"center"==f&&(e+=k/2);"bottom"==f&&(e+=k);f=b.position[1];d=c.outerWidth()+d.outerWidth();"center"==f&&(g-=d/2);"left"==f&&(g-=d);return{top:e,left:g}}function n(d,c){var b=this,e=d.add(b),g,
h=0,k=0,n=d.attr("title"),m=d.attr("data-tooltip"),q=f[c.effect],t,z=d.is(":input"),B=z&&d.is(":checkbox, :radio, select, :button, :submit"),w=d.attr("type"),l=c.events[w]||c.events[z?B?"widget":"input":"def"];if(!q)throw'Nonexistent effect "'+c.effect+'"';l=l.split(/,\s*/);if(2!=l.length)throw"Tooltip: bad events configuration for "+w;d.on(l[0],function(a){clearTimeout(h);c.predelay?k=setTimeout(function(){b.show(a)},c.predelay):b.show(a)}).on(l[1],function(a){clearTimeout(k);c.delay?h=setTimeout(function(){b.hide(a)},
c.delay):b.hide(a)});n&&c.cancelDefault&&(d.removeAttr("title"),d.data("title",n));a.extend(b,{show:function(f){if(!g&&(m?g=a(m):c.tip?g=a(c.tip).eq(0):n?g=a(c.layout).addClass(c.tipClass).appendTo(document.body).hide().append(n):(g=d.find("."+c.tipClass),g.length||(g=d.next()),g.length||(g=d.parent().next())),!g.length))throw"Cannot find tooltip for "+d;if(b.isShown())return b;g.stop(!0,!0);var u=v(d,g,c);c.tip&&g.html(d.data("title"));f=a.Event();f.type="onBeforeShow";e.trigger(f,[u]);if(f.isDefaultPrevented())return b;
u=v(d,g,c);g.css({position:"absolute",top:u.top,left:u.left});t=!0;q[0].call(b,function(){f.type="onShow";t="full";e.trigger(f)});u=c.events.tooltip.split(/,\s*/);if(!g.data("__set")){g.off(u[0]).on(u[0],function(){clearTimeout(h);clearTimeout(k)});if(u[1]&&!d.is("input:not(:checkbox, :radio), textarea"))g.off(u[1]).on(u[1],function(a){a.relatedTarget!=d[0]&&d.trigger(l[1].split(" ")[0])});c.tip||g.data("__set",!0)}return b},hide:function(d){if(!g||!b.isShown())return b;d=a.Event();d.type="onBeforeHide";
e.trigger(d);if(!d.isDefaultPrevented())return t=!1,f[c.effect][1].call(b,function(){d.type="onHide";e.trigger(d)}),b},isShown:function(a){return a?"full"==t:t},getConf:function(){return c},getTip:function(){return g},getTrigger:function(){return d}});a.each(["onHide","onBeforeShow","onShow","onBeforeHide"],function(d,e){if(a.isFunction(c[e]))a(b).on(e,c[e]);b[e]=function(c){if(c)a(b).on(e,c);return b}})}a.tools=a.tools||{version:"1.2.8-dev"};a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",
predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"
",tipClass:"tooltip"},addEffect:function(a,c,b){f[a]=[c,b]}};var f={toggle:[function(a){var c=this.getConf(),b=this.getTip(),c=c.opacity;1>c&&b.css({opacity:c});b.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(d){var c=
this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeTo(c.fadeInSpeed,c.opacity,d):(this.getTip().show(),d())},function(d){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeOut(c.fadeOutSpeed,d):(this.getTip().hide(),d())}]};a.fn.tooltip=function(d){d=a.extend(!0,{},a.tools.tooltip.conf,d);"string"==typeof d.position&&(d.position=d.position.split(/,?\s/));this.each(function(){a(this).data("tooltip")||(api=new n(a(this),d),a(this).data("tooltip",api))});return d.api?api:this}})(jQuery);
(function(a){var v=a.tools.tooltip;a.extend(v.conf,{direction:"up",bounce:!1,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!a.browser.msie});var n={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};v.addEffect("slide",function(a){var d=this.getConf(),c=this.getTip(),b=d.slideFade?{opacity:d.opacity}:{},e=n[d.direction]||n.up;b[e[1]]=e[0]+"="+d.slideOffset;d.slideFade&&c.css({opacity:0});c.show().animate(b,d.slideInSpeed,a)},function(f){var d=this.getConf(),c=d.slideOffset,
b=d.slideFade?{opacity:0}:{},e=n[d.direction]||n.up,g=""+e[0];d.bounce&&(g="+"==g?"-":"+");b[e[1]]=g+"="+c;this.getTip().animate(b,d.slideOutSpeed,function(){a(this).hide();f.call()})})})(jQuery);
/**
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright © 2001 Robert Penner
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
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
*
* @param f onMouseOver function || An object with configuration options
* @param g onMouseOut function || Nothing (use configuration options object)
* @author Brian Cherne
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))c&&(c+=a.value.length),typeof d==b&&(d=c),0>d&&(d+=a.value.length),{start:c,end:d}}function q(a,b,c){return{start:b,end:c,length:c-b,text:a.value.slice(b,c)}}function r(){return n(document,"body")?document.body:document.getElementsByTagName("body")[0]}var c,d,e,f,g,h,i,j,k,b="undefined";a(document).ready(function(){function v(a,b){return function(){var c=this.jquery?this[0]:this,d=c.nodeName.toLowerCase();if(1==c.nodeType&&("textarea"==d||"input"==d&&"text"==c.type)){var e=[c].concat(Array.prototype.slice.call(arguments)),f=a.apply(this,e);if(!b)return f}return b?this:void 0}}var s=document.createElement("textarea");if(r().appendChild(s),m(s,"selectionStart")&&m(s,"selectionEnd"))c=function(a){var b=a.selectionStart,c=a.selectionEnd;return q(a,b,c)},d=function(a,b,c){var d=p(a,b,c);a.selectionStart=d.start,a.selectionEnd=d.end},k=function(a,b){b?a.selectionEnd=a.selectionStart:a.selectionStart=a.selectionEnd};else{if(!(l(s,"createTextRange")&&n(document,"selection")&&l(document.selection,"createRange")))return r().removeChild(s),o("No means of finding text input caret position"),void 0;c=function(a){var d,e,f,g,b=0,c=0,h=document.selection.createRange();return h&&h.parentElement()==a&&(f=a.value.length,d=a.value.replace(/\r\n/g,"\n"),e=a.createTextRange(),e.moveToBookmark(h.getBookmark()),g=a.createTextRange(),g.collapse(!1),e.compareEndPoints("StartToEnd",g)>-1?b=c=f:(b=-e.moveStart("character",-f),b+=d.slice(0,b).split("\n").length-1,e.compareEndPoints("EndToEnd",g)>-1?c=f:(c=-e.moveEnd("character",-f),c+=d.slice(0,c).split("\n").length-1))),q(a,b,c)};var t=function(a,b){return b-(a.value.slice(0,b).split("\r\n").length-1)};d=function(a,b,c){var d=p(a,b,c),e=a.createTextRange(),f=t(a,d.start);e.collapse(!0),d.start==d.end?e.move("character",f):(e.moveEnd("character",t(a,d.end)),e.moveStart("character",f)),e.select()},k=function(a,b){var c=document.selection.createRange();c.collapse(b),c.select()}}r().removeChild(s),f=function(a,b,c,e){var f;b!=c&&(f=a.value,a.value=f.slice(0,b)+f.slice(c)),e&&d(a,b,b)},e=function(a){var b=c(a);f(a,b.start,b.end,!0)},j=function(a){var e,b=c(a);return b.start!=b.end&&(e=a.value,a.value=e.slice(0,b.start)+e.slice(b.end)),d(a,b.start,b.start),b.text};var u=function(a,b,c,e){var f=b+c.length;if(e="string"==typeof e?e.toLowerCase():"",("collapsetoend"==e||"select"==e)&&/[\r\n]/.test(c)){var g=c.replace(/\r\n/g,"\n").replace(/\r/g,"\n");f=b+g.length;var h=b+g.indexOf("\n");"\r\n"==a.value.slice(h,h+2)&&(f+=g.match(/\n/g).length)}switch(e){case"collapsetostart":d(a,b,b);break;case"collapsetoend":d(a,f,f);break;case"select":d(a,b,f)}};g=function(a,b,c,d){var e=a.value;a.value=e.slice(0,c)+b+e.slice(c),"boolean"==typeof d&&(d=d?"collapseToEnd":""),u(a,c,b,d)},h=function(a,b,d){var e=c(a),f=a.value;a.value=f.slice(0,e.start)+b+f.slice(e.end),u(a,e.start,b,d||"collapseToEnd")},i=function(a,d,e,f){typeof e==b&&(e=d);var g=c(a),h=a.value;a.value=h.slice(0,g.start)+d+g.text+e+h.slice(g.end);var i=g.start+d.length;u(a,i,g.text,f||"select")},a.fn.extend({getSelection:v(c,!1),setSelection:v(d,!0),collapseSelection:v(k,!0),deleteSelectedText:v(e,!0),deleteText:v(f,!0),extractSelectedText:v(j,!1),insertText:v(g,!0),replaceSelectedText:v(h,!0),surroundSelectedText:v(i,!0)})})}(jQuery);
/*
* XenForo xenforo.min.js
* Copyright 2010-2016 XenForo Ltd.
* Released under the XenForo License Agreement: http://xenforo.com/license-agreement
*/
var XenForo={};jQuery===void 0&&(jQuery=$={});$.tools===void 0&&console.error("jQuery Tools is not loaded.");(function(c){var g,i=0;if(!c.console)c.console={};if(c.console.log&&!c.console.debug)c.console.debug=c.console.log;g="assert,clear,count,debug,dir,dirxml,error,getFirebugElement,group,groupCollapsed,groupEnd,info,log,notifyFirebug,profile,profileEnd,time,timeEnd,trace,warn".split(",");for(i=0;i
').closest("div._swOuter").css("overflow","hidden"));if(a)try{return this.data("slidewrapper").height()}catch(b){return 0}return this.data("slidewrapper")},xfSlideIn:function(a,b,c){var e=this._xfSlideWrapper().css("height","auto"),f=0;e.find("div._swInner").css("margin","auto");f=this.show(0).outerHeight();e.css("height",0).animate({height:f},
a,b,function(){e.css("height","")}).find("div._swInner").css("marginTop",f*-1).animate({marginTop:0},a,b,c);return this},xfSlideOut:function(a,b,c){var e=this.outerHeight();this._xfSlideWrapper().animate({height:0},a,b).find("div._swInner").animate({marginTop:e*-1},a,b,c);return this},ieOpacityFix:function(a){c.support.opacity||(this.css("filter",""),this.attr("style",this.attr("style").replace(/filter:\s*;/i,"")));c.isFunction(a)&&a.apply(this);return this},overlay:function(a){return XenForo.isTouchBrowser()?
this._jQueryToolsOverlay(c.extend(!0,a,{speed:0,loadSpeed:0})):this._jQueryToolsOverlay(a)}});c.tools.overlay.addEffect("slideDownContentFade",function(a,b){var d=this.getOverlay(),e=this.getConf();d.find(".content").css("opacity",0);this.getConf().fixed?a.position="fixed":(a.position="absolute",a.top+=c(g).scrollTop(),a.left+=c(g).scrollLeft());d.css(a).xfSlideDown(XenForo.speed.fast,function(){d.find(".content").animate({opacity:1},e.speed,function(){c(this).ieOpacityFix(b)})})},function(a){var b=
this.getOverlay();b.find(".content").animate({opacity:0},this.getConf().speed,function(){b.xfSlideUp(XenForo.speed.fast,a)})});c.tools.overlay.addEffect("slideDown",function(a,b){this.getConf().fixed?a.position="fixed":(a.position="absolute",a.top+=c(g).scrollTop(),a.left+=c(g).scrollLeft());this.getOverlay().css(a).xfSlideDown(this.getConf().speed,b)},function(a){this.getOverlay().hide(0,a)});c.extend(XenForo,{_OverlayCache:{},_AjaxProgress:!1,ajaxBaseHref:"",_uniqueIdCounter:0,_overlayConfig:{},
_loadedScripts:{},_cookieConfig:{path:"/",domain:"",prefix:"xf_"},_hasFocus:!0,serverTimeInfo:{},visitor:{},_pageLoadTime:(new Date).getTime()/1E3,_jsVersion:"",_noRtnProtect:!1,_csrfToken:"",_csrfRefreshUrl:"",_noSocialLogin:!1,speed:{xxfast:50,xfast:100,fast:200,normal:400,slow:600},_animationSpeedMultiplier:1,_enableOverlays:!0,_enableAjaxSubmit:!0,_lightBoxUniversal:!1,phrases:{},init:function(){var a=new Date,b=function(){XenForo._hasFocus=!0;c(i).triggerHandler("XenForoWindowFocus")},d=function(){XenForo._hasFocus=
!1;c(i).triggerHandler("XenForoWindowBlur")},e=c("html");c.browser.msie?c(i).bind({focusin:b,focusout:d}):c(g).bind({focus:b,blur:d});c(g).on("resize",function(){XenForo.checkQuoteSizing(c(i))});XenForo.setAnimationSpeed(XenForo._animationSpeedMultiplier);XenForo._TimestampRefresh=new XenForo.TimestampRefresh;XenForo.prepareIgnoredContent();XenForo.AjaxProgress();XenForo.activate(i);c(i).on("click",".bbCodeQuote .quoteContainer .quoteExpand",function(){c(this).closest(".quoteContainer").toggleClass("expanded")});
XenForo.watchProxyLinks();XenForo._noRtnProtect||XenForo.watchExternalLinks();if(!e.hasClass("NoResponsive")){XenForo.updateVisibleBreadcrumbs();XenForo.updateVisibleNavigationTabs();XenForo.updateVisibleNavigationLinks();var f,h=e.width();c(g).on("resize orientationchange load",function(a){!f&&!(a.type!="load"&&e.width()==h)&&(h=e.width(),f=setTimeout(function(){f=0;XenForo.updateVisibleBreadcrumbs();XenForo.updateVisibleNavigationTabs();XenForo.updateVisibleNavigationLinks()},20))});c(i).on("click",
".breadcrumb .placeholder",function(){c(this).closest(".breadcrumb").addClass("showAll");XenForo.updateVisibleBreadcrumbs()})}XenForo._CsrfRefresh=new XenForo.CsrfRefresh;"autofocus"in i.createElement("input")||c("input[autofocus], textarea[autofocus], select[autofocus]").first().focus();XenForo.tweetButtonInit();console.info("XenForo.init() %dms. jQuery %s/%s",new Date-a,c().jquery,c.tools.version);c("#ManualDeferredTrigger").length&&setTimeout(XenForo.manualDeferredHandler,100);c("html.RunDeferred").length&&
setTimeout(XenForo.runAutoDeferred,100)},runAutoDeferred:function(){XenForo.ajax("deferred.php",{},function(a){a&&a.moreDeferred&&setTimeout(XenForo.runAutoDeferred,100)},{error:!1,global:!1})},prepareIgnoredContent:function(){var a=c("a.DisplayIgnoredContent"),b={},d=[];a.length&&(c(".ignored").each(function(){var a=c(this).data("author");a&&(b[a]=!0)}),c.each(b,function(a){d.push(a)}),d.length&&(a.attr("title",XenForo.phrases.show_hidden_content_by_x.replace(/\{names\}/,d.join(", "))),a.parent().show()))},
watchProxyLinks:function(){var a=function(a){var d=c(this),e=d.data("proxy-href"),f=d.data("proxy-handler-last");e&&!(f&&f==a.timeStamp)&&(d.data("proxy-handler-last",a.timeStamp),XenForo.ajax(e,{},function(){},{error:!1,global:!1}))};c(i).on("click","a.ProxyLink",a).on("focusin","a.ProxyLink",function(){var b=c(this);b.data("proxy-handler")||b.data("proxy-handler",!0).click(a)})},watchExternalLinks:function(){var a=function(a){if(!a.isDefaultPrevented()){var d=c(this),e=d.attr("href"),f=d.data("blank-handler-last");
if(e&&(!e.match(/^[a-z]:/i)||e.match(/^https?:/i)))if(e=XenForo.canonicalizeUrl(e),(!RegExp("^[a-z]+://"+location.host+"(/|$|:)","i").test(e)||d.hasClass("ProxyLink"))&&!(f&&f==a.timeStamp)){d.data("blank-handler-last",a.timeStamp);var h=navigator.userAgent,d=h.indexOf("MSIE")!==-1,f=h.indexOf("Safari")!==-1&&h.indexOf("Chrome")==-1,h=h.indexOf("Gecko/")!==-1;if(!a.shiftKey||!h)if((!f||!a.shiftKey&&!a.altKey)&&!d){if(f)d=c('').appendTo(i.body),f=d[0].contentDocument||
d[0].contentWindow.document,f.__href=e,e=c("",f),e[0].text="window.opener=null;window.parent=null;window.top=null;window.frameElement=null;window.open(document.__href).opener = null;",f.body.appendChild(e[0]),d.remove();else{e=g.open(e);try{e.opener=null}catch(j){}}a.preventDefault()}}}};c(i).on("click","a[target=_blank]",a).on("focusin","a[target=_blank]",function(){var b=c(this);b.data("blank-handler")||b.data("blank-handler",!0).click(a)})},loadJs:function(a,b,c){try{var e=i.createElement("script");
e.async=!0;if(c)try{e.innerHTML=c}catch(f){}var h=function(){b&&(b(),b=null)};e.onload=h;e.onreadystatechange=function(){e.readyState==="loaded"&&h()};e.src=a;i.getElementsByTagName("head")[0].appendChild(e)}catch(j){}},tweetButtonInit:function(){c("a.twitter-share-button").length&&XenForo.loadJs("https://platform.twitter.com/widgets.js")},plusoneButtonInit:function(a){if(c(a).find("div.g-plusone, .GoogleLogin").length){var b=c("html").attr("lang"),d=function(){g.gapi&&c(a).find(".GoogleLogin").each(function(){var a=
c(this),b=a.data("client-id");gapi.signin.render(this,{callback:function(b){if(b.status.method!="AUTO"&&b.code)g.location=XenForo.canonicalizeUrl(a.data("redirect-url").replace("__CODE__",b.code))},clientid:b,cookiepolicy:"single_host_origin",accesstype:"offline",immediate:!1,requestvisibleactions:"http://schemas.google.com/AddActivity",scope:"https://www.googleapis.com/auth/plus.login email"})})};g.___gcfg&&g.gapi?d():(g.___gcfg={lang:b,isSignedOut:!0},XenForo.loadJs("https://plus.google.com/js/client:plusone.js",
d))}},chromeAutoFillFix:function(a){if(c.browser.webkit&&navigator.userAgent.toLowerCase().indexOf("chrome")>=0){a||(a=c(i));var b;try{b=a.find("input:-webkit-autofill")}catch(d){b=c([])}b.length&&b.each(function(){var a=c(this),b=a.val();b&&b.length&&a.after(a.clone(!0).val(b)).remove()})}},updateVisibleBreadcrumbs:function(){c(".breadcrumb").each(function(){var a=this,b=c(a);b.find(".placeholder").remove();var d=b.find(".crust");d.removeClass("firstVisibleCrumb").show();var e=d.filter(".homeCrumb");
b.css("height","");var f=a.offsetHeight;b.css("height","auto");if(a.offsetHeight<=f)b.css("height","");else{var h=null;d.each(function(){var b=c(this);if(b.is(".selectedTabCrumb, :last-child"))return!0;b.hide();h=b;return a.offsetHeight>f});if(h){d=c('... > ');h.after(d);if(a.offsetHeight>f){var j=h.prevAll(".crust:not(.selectedTabCrumb, :last-child)").last();j.length&&
j.hide()}a.offsetHeight>f&&(j=h.nextAll(".crust:not(.placeholder, .selectedTabCrumb, :last-child)").first(),j.length&&(j.hide(),j.after(d)));e.length&&!e.is(":visible")&&b.find(".crust:visible:first").addClass("firstVisibleCrumb");a.offsetHeight<=f&&b.css("height","")}else b.css("height","")}})},updateVisibleNavigationTabs:function(){var a=c("#navigation").find(".navTabs");if(a.length){var b=a.coords(),d=a.find(".publicTabs"),e=d.find("> .navTab"),f=a.find(".visitorTabs"),h=f.find("> .navTab"),j=
c("#VisitorExtraMenu_Counter"),g,l=e.filter(".navigationHiddenTabs");e.show();l.hide();h.show();j.addClass("ResponsiveOnly");if(!a.is(".showAll")){g=a.width()-f.width()-1;var a=function(){var a=e.filter(":not(.selected, .navigationHiddenTabs)"),b=c(""),f=0,h=!1;c.each(a.get().reverse(),function(){var a=c(this);if(i(d.coords(),!0))b.prepend(c(" ").html(a.find(".navLink").clone())),a.hide(),f++;else return f?(l.show(),i(d.coords(),!0)&&(b.prepend(c(" ").html(a.find(".navLink").clone())),
a.hide(),f++),c("#NavigationHiddenMenu").html(b).xfActivate(),h=!0):l.hide(),!1});f&&!h&&(l.show(),c("#NavigationHiddenMenu").html(b).xfActivate())},i=function(a,c){return a.top>=b.top+b.height||a.height>=b.height*2?!0:c&&a.width>g?!0:!1};f.length?i(f.coords())&&(a(),i(f.coords())&&(h.hide(),h.filter(".account, .selected").show(),j.removeClass("ResponsiveOnly"))):i(d.coords())&&a()}}},updateVisibleNavigationLinks:function(){var a=c("#navigation").find(".navTab.selected .blockLinksList");if(a.length){var b=
a.find("> li"),d=a.offset(),e=b.filter(".navigationHidden");b.show();e.hide();if(!a.is(".showAll")){var f=[],h=b.filter(":not(.navigationHidden)").last(),j=0,g=!1,i;if(h.length){do if(i=h.coords(),i.top>d.top+i.height)i=b.eq(j),i.hide(),f.push(i),j++,g||(g=!0,e.length?e.show():(e=c(''),a.append(e),new XenForo.PopupMenu(e)));
else break;while(jd.top+a.height&&(i=b.eq(j),i.hide(),f.push(i)));var n=c("");c(f).each(function(){n.append(c(" ").html(c(this).find("a").clone()))});c("#NavigationLinksHiddenMenu").html(n).xfActivate()}}}}},register:function(a,b,d){if(typeof b=="string")var e=b,b=function(){XenForo.create(e,this)};c(i).bind(d||"XenForoActivateHtml",function(d){c(d.element).find(a).each(b)})},create:function(a,b){var d=c(b),e=g,f=a.split("."),h;for(h=0;h<
f.length;h++)e=e[f[h]];if(typeof e!="function")return console.error("%s is not a function.",a);d.data(a)||d.data(a,new e(d));return d.data(a)},activate:function(a){var b=c(a);console.group("XenForo.activate(%o)",a);b.trigger("XenForoActivate").removeClass("__XenForoActivator");b.find("noscript").empty().remove();XenForo._TimestampRefresh.refresh(a,!0);c(i).trigger({element:a,type:"XenForoActivateHtml"}).trigger({element:a,type:"XenForoActivatePopups"}).trigger({element:a,type:"XenForoActivationComplete"});
var d=b.find("form.AutoSubmit:first");d.length&&(c(i).trigger("PseudoAjaxStart"),d.submit(),d.find('input[type="submit"], input[type="reset"]').hide());XenForo.checkQuoteSizing(b);XenForo.plusoneButtonInit(a);XenForo.Facebook.start();console.groupEnd();return a},checkQuoteSizing:function(a){a.find(".bbCodeQuote .quoteContainer").each(function(){var a=this,d=0,e=function(){var f=c(a),h=f.find(".quote")[0];h&&(h.scrollHeight==0||h.offsetHeight==0?d<2E3&&(setTimeout(e,d),d+=100):h.scrollHeight>h.offsetHeight+
1?f.find(".quoteExpand").addClass("quoteCut"):f.find(".quoteExpand").removeClass("quoteCut"))};e();c(this).find("img").one("load",e);c(this).on("elementResized",e)})},ajaxDataPush:function(a,b,c){!a||typeof a=="string"?(a=String(a),a+="&"+encodeURIComponent(b)+"="+encodeURIComponent(c)):a[0]!==void 0?a.push({name:b,value:c}):a[b]=c;return a},ajax:function(a,b,d,e){if(!a)return console.error("No URL specified for XenForo.ajax()");a=XenForo.canonicalizeUrl(a,XenForo.ajaxBaseHref);b=XenForo.ajaxDataPush(b,
"_xfRequestUri",g.location.pathname+g.location.search);b=XenForo.ajaxDataPush(b,"_xfNoRedirect",1);XenForo._csrfToken&&(b=XenForo.ajaxDataPush(b,"_xfToken",XenForo._csrfToken));var f=function(a,b){typeof a=="object"&&(typeof a._visitor_conversationsUnread!="undefined"&&(XenForo.balloonCounterUpdate(c("#ConversationsMenu_Counter"),a._visitor_conversationsUnread),XenForo.balloonCounterUpdate(c("#AlertsMenu_Counter"),a._visitor_alertsUnread),XenForo.balloonCounterUpdate(c("#VisitorExtraMenu_ConversationsCounter"),
a._visitor_conversationsUnread),XenForo.balloonCounterUpdate(c("#VisitorExtraMenu_AlertsCounter"),a._visitor_alertsUnread),XenForo.balloonCounterUpdate(c("#VisitorExtraMenu_Counter"),(parseInt(a._visitor_conversationsUnread,10)+parseInt(a._visitor_alertsUnread,10)||0).toString())),a._manualDeferred?XenForo.manualDeferredHandler():a._autoDeferred&&XenForo.runAutoDeferred());c(i).trigger({type:"XFAjaxSuccess",ajaxData:a,textStatus:b});d.call(null,a,b)},h=g.location.href;if(h.match(/[^\x20-\x7f]/)){var j=
i.createElement("a");j.href="";h=h.replace(j.href,XenForo.baseUrl())}e=c.extend(!0,{data:b,url:a,success:f,type:"POST",dataType:"json",error:function(a,b,d){if(a.readyState!=0)try{f.call(null,c.parseJSON(a.responseText),b)}catch(e){XenForo.handleServerError(a,b,d)}},headers:{"X-Ajax-Referer":h},timeout:3E4},e);if(!e.data._xfResponseType)switch(e.dataType){case "html":case "json":case "xml":e.data=XenForo.ajaxDataPush(e.data,"_xfResponseType",e.dataType)}return c.ajax(e)},balloonCounterUpdate:function(a,
b){if(a.length){var d=a.find("span.Total"),e=d.text();d.text(b);!b||b=="0"?a.fadeOut("fast",function(){a.addClass("Zero").css("display","")}):a.fadeIn("fast",function(){a.removeClass("Zero").css("display","");var d=parseInt(e.replace(/[^\d]/,""),10),d=parseInt(b.replace(/[^\d]/,""),10)-d;if(d>0&&a.data("text")){var h=a.closest(".Popup"),j=h.data("XenForo.PopupMenu"),d=c(" ").css("cursor","pointer").html(a.data("text").replace(/%d/,d)).click(function(){if(h.is(":visible")&&j)j.$clicker.trigger("click");
else if(h.find("a[href]").length)g.location=XenForo.canonicalizeUrl(h.find("a[href]").attr("href"));return!1});j&&!j.menuVisible&&j.resetLoader();XenForo.stackAlert(d,1E4,a)}})}},_manualDeferUrl:"",_manualDeferOverlay:!1,_manualDeferXhr:!1,manualDeferredHandler:function(){if(XenForo._manualDeferUrl&&!XenForo._manualDeferOverlay){var a=XenForo.phrases.processing||"Processing",a=c('');a.find(".CancelDeferred").click(function(a){a.preventDefault();c.setCookie("cancel_defer","1");c(this).text(c(this).data("cancelling"))});a.appendTo("body").overlay(c.extend(!0,{mask:{color:"white",opacity:0.6,loadSpeed:XenForo.speed.normal,closeSpeed:XenForo.speed.fast},closeOnClick:!1,closeOnEsc:!1,oneInstance:!1},
XenForo._overlayConfig,{top:"20%"}));a.overlay().load();XenForo._manualDeferOverlay=a;c(i).trigger("PseudoAjaxStart");var b=function(){XenForo._manualDeferOverlay.overlay().close();c("#ManualDeferOverlay").remove();XenForo._manualDeferOverlay=!1;XenForo._manualDeferXhr=!1;c(i).trigger("PseudoAjaxStop");c(i).trigger("ManualDeferComplete")},d=function(){XenForo._manualDeferXhr=XenForo.ajax(XenForo._manualDeferUrl,{execute:1},function(a){if(a&&a.continueProcessing){setTimeout(d,0);XenForo._manualDeferOverlay.find("span").text(a.status);
var c=XenForo._manualDeferOverlay.find(".CancelDeferred");a.canCancel?c.show():c.hide()}else b()}).fail(b)};d()}},handleServerError:function(a,b){switch(b){case "abort":return!1;case "timeout":return XenForo.alert(XenForo.phrases.server_did_not_respond_in_time_try_again,XenForo.phrases.following_error_occurred+":"),!1;case "parsererror":return console.error("PHP "+a.responseText),XenForo.alert("The server responded with an error. The error message is in the JavaScript console."),!1;case "notmodified":case "error":if(!a||
!a.responseText)return!1}var d=a.getResponseHeader("Content-Type"),e=!1,f;if(d)switch(d.split(";")[0]){case "application/json":e="json";break;case "text/html":e="html";break;default:a.responseText.substr(0,1)=="{"?e="json":a.responseText.substr(0,9)=="\n'+a.traceHtml+"":""),XenForo.phrases.following_error_occurred+":");return a.error}else return a.status=="ok"&&a.message?(XenForo.alert(a.message,"",4E3),!0):!1},hasTemplateHtml:function(a,b){b=b||"templateHtml";return!a[b]?!1:typeof a[b].search=="function"?a[b].search(/\S+/)!==-1:!0},createOverlay:function(a,b,d){var e=null,f=null,f=null,f=/