text: window.Q||function(){function b(){}function Z(a){return aa(K(O(a),8*a.length))}function ba(a,b){var c=O(a);16<c.length&&(c=K(c,8*a.length));for(var d=Array(16),f=Array(16),g=0;16>g;g++)d[g]=c[g]^909522486,f[g]=c[g]^1549556828;c=K(d.concat(O(b)),512+8*b.length);return aa(K(f.concat(c),640))}function ca(a){try{P}catch(b){P=0}for(var c=P?"0123456789ABCDEF":"0123456789abcdef",d="",f,g=0;g<a.length;g++)f=a.charCodeAt(g),d+=c.charAt(f>>>4&15)+c.charAt(f&15);return d}function da(a){try{Q}catch(b){Q=""}for(var c=
  "",d=a.length,f=0;f<d;f+=3)for(var g=a.charCodeAt(f)<<16|(f+1<d?a.charCodeAt(f+1)<<8:0)|(f+2<d?a.charCodeAt(f+2):0),h=0;4>h;h++)c=8*f+6*h>8*a.length?c+Q:c+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>>6*(3-h)&63);return c}function H(a){for(var b="",c=-1,d,f;++c<a.length;)d=a.charCodeAt(c),f=c+1<a.length?a.charCodeAt(c+1):0,55296<=d&&(56319>=d&&56320<=f&&57343>=f)&&(d=65536+((d&1023)<<10)+(f&1023),c++),127>=d?b+=String.fromCharCode(d):2047>=d?b+=String.fromCharCode(192|
  d>>>6&31,128|d&63):65535>=d?b+=String.fromCharCode(224|d>>>12&15,128|d>>>6&63,128|d&63):2097151>=d&&(b+=String.fromCharCode(240|d>>>18&7,128|d>>>12&63,128|d>>>6&63,128|d&63));return b}function O(a){for(var b=Array(a.length>>2),c=0;c<b.length;c++)b[c]=0;for(c=0;c<8*a.length;c+=8)b[c>>5]|=(a.charCodeAt(c/8)&255)<<c%32;return b}function aa(a){for(var b="",c=0;c<32*a.length;c+=8)b+=String.fromCharCode(a[c>>5]>>>c%32&255);return b}function K(a,b){a[b>>5]|=128<<b%32;a[(b+64>>>9<<4)+14]=b;for(var c=1732584193,
  d=-271733879,f=-1732584194,g=271733878,h=0;h<a.length;h+=16)var m=c,n=d,q=f,p=g,c=u(c,d,f,g,a[h+0],7,-680876936),g=u(g,c,d,f,a[h+1],12,-389564586),f=u(f,g,c,d,a[h+2],17,606105819),d=u(d,f,g,c,a[h+3],22,-1044525330),c=u(c,d,f,g,a[h+4],7,-176418897),g=u(g,c,d,f,a[h+5],12,1200080426),f=u(f,g,c,d,a[h+6],17,-1473231341),d=u(d,f,g,c,a[h+7],22,-45705983),c=u(c,d,f,g,a[h+8],7,1770035416),g=u(g,c,d,f,a[h+9],12,-1958414417),f=u(f,g,c,d,a[h+10],17,-42063),d=u(d,f,g,c,a[h+11],22,-1990404162),c=u(c,d,f,g,a[h+
  12],7,1804603682),g=u(g,c,d,f,a[h+13],12,-40341101),f=u(f,g,c,d,a[h+14],17,-1502002290),d=u(d,f,g,c,a[h+15],22,1236535329),c=w(c,d,f,g,a[h+1],5,-165796510),g=w(g,c,d,f,a[h+6],9,-1069501632),f=w(f,g,c,d,a[h+11],14,643717713),d=w(d,f,g,c,a[h+0],20,-373897302),c=w(c,d,f,g,a[h+5],5,-701558691),g=w(g,c,d,f,a[h+10],9,38016083),f=w(f,g,c,d,a[h+15],14,-660478335),d=w(d,f,g,c,a[h+4],20,-405537848),c=w(c,d,f,g,a[h+9],5,568446438),g=w(g,c,d,f,a[h+14],9,-1019803690),f=w(f,g,c,d,a[h+3],14,-187363961),d=w(d,f,
  g,c,a[h+8],20,1163531501),c=w(c,d,f,g,a[h+13],5,-1444681467),g=w(g,c,d,f,a[h+2],9,-51403784),f=w(f,g,c,d,a[h+7],14,1735328473),d=w(d,f,g,c,a[h+12],20,-1926607734),c=r(d^f^g,c,d,a[h+5],4,-378558),g=r(c^d^f,g,c,a[h+8],11,-2022574463),f=r(g^c^d,f,g,a[h+11],16,1839030562),d=r(f^g^c,d,f,a[h+14],23,-35309556),c=r(d^f^g,c,d,a[h+1],4,-1530992060),g=r(c^d^f,g,c,a[h+4],11,1272893353),f=r(g^c^d,f,g,a[h+7],16,-155497632),d=r(f^g^c,d,f,a[h+10],23,-1094730640),c=r(d^f^g,c,d,a[h+13],4,681279174),g=r(c^d^f,g,c,a[h+
  0],11,-358537222),f=r(g^c^d,f,g,a[h+3],16,-722521979),d=r(f^g^c,d,f,a[h+6],23,76029189),c=r(d^f^g,c,d,a[h+9],4,-640364487),g=r(c^d^f,g,c,a[h+12],11,-421815835),f=r(g^c^d,f,g,a[h+15],16,530742520),d=r(f^g^c,d,f,a[h+2],23,-995338651),c=x(c,d,f,g,a[h+0],6,-198630844),g=x(g,c,d,f,a[h+7],10,1126891415),f=x(f,g,c,d,a[h+14],15,-1416354905),d=x(d,f,g,c,a[h+5],21,-57434055),c=x(c,d,f,g,a[h+12],6,1700485571),g=x(g,c,d,f,a[h+3],10,-1894986606),f=x(f,g,c,d,a[h+10],15,-1051523),d=x(d,f,g,c,a[h+1],21,-2054922799),
  c=x(c,d,f,g,a[h+8],6,1873313359),g=x(g,c,d,f,a[h+15],10,-30611744),f=x(f,g,c,d,a[h+6],15,-1560198380),d=x(d,f,g,c,a[h+13],21,1309151649),c=x(c,d,f,g,a[h+4],6,-145523070),g=x(g,c,d,f,a[h+11],10,-1120210379),f=x(f,g,c,d,a[h+2],15,718787259),d=x(d,f,g,c,a[h+9],21,-343485551),c=F(c,m),d=F(d,n),f=F(f,q),g=F(g,p);return[c,d,f,g]}function r(a,b,c,d,f,g){a=F(F(b,a),F(d,g));return F(a<<f|a>>>32-f,c)}function u(a,b,c,d,f,g,h){return r(b&c|~b&d,a,b,f,g,h)}function w(a,b,c,d,f,g,h){return r(b&d|c&~d,a,b,f,g,
  h)}function x(a,b,c,d,f,g,h){return r(c^(b|~d),a,b,f,g,h)}function F(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}function A(){var a=location.hash.queryField("url"),e=null;void 0===a&&(a=window.location.href.split("#")[0].substr(b.info.baseUrl.length+1));A.ignore?A.ignore=!1:a!=A.currentUrl&&(b.handle(-1==a.indexOf(b.info.baseUrl)?b.info.baseUrl+"/"+a:a),e=!0);A.currentUrl=a;return e}function ia(){var a=window.location.href.split("#")[0],e=null;if(b.info.url!==a)return a=
  a.substr(b.info.baseUrl.length+1),a!=A.currentUrl&&(b.handle(-1==a.indexOf(b.info.baseUrl)?b.info.baseUrl+"/"+a:a,this,[],{ignoreHistory:!0,quiet:!0}),e=!0),A.currentUrl=a,e}function ja(a,e,c){b.Tool.loadScript(a,function(a,f,g,h){f.toolConstructor||(f.toolConstructor=function(a,c){if(!this.constructed){this.options=b.extend({},f.options,c);this.name=g;var e=b.Tool.call(this,a,c);this.state=b.copy(this.options,f.stateKeys);f.call(this,this.prefix,this.options,e);this.constructed=!0}},b.mixin(f.toolConstructor,
  b.Tool,f));a=new f.toolConstructor(a,e);h&&c.pipe.fill(h)();return a},c)}function ka(a){b.Tool.loadScript(a,function(){var e=b.Tool.from(a);e&&(e.Q_init&&b.handle(e.Q_init,e),e.Q_ready&&b.handle(e.Q_ready,e))})}function J(a,b,c){a.on(b,c);L.push(function(){a.removeListener(b,c)})}function ea(a,e,c,d){function f(a,c,e){if(window.io){var f=t[a][c];f.namespace||(t[a][c]=f=new b.Socket,f.namespace=io.connect(a+c,d?{"force new connection":!0}:{}),f.url=a,f.ns=c,C[a]||(C[a]=f.namespace.socket,J(C[a],"connect",
  function(){setTimeout(function(){f.namespace.emit("session",b.cookie(b.info.sessionName||"session_id"));b.Socket.onConnect.handle(a,c,f);console.log("Socket connected to "+a)},500)}),J(C[a],"connect_failed",function(){console.log("Failed to connect to "+a)}),J(C[a],"disconnect",function(){console.log("Socket disconnected from "+a)})),B[a]&&b.each(B[a][c],function(a,b){J(f.namespace,a,b.handle)}),B[""]&&b.each(B[""][c],function(a,b){J(f.namespace,a,b.handle)}));e&&e(t[a][c]);b.Socket.renewAll()}}window.io&&
  io.Socket?f(a,e,c):b.addScript(a+"/socket.io/socket.io.js",function(){f(a,e,c)},{duplicate:!0})}function D(a,b,c){return a.documentStorage?!0===c?a.special[b]:a.data[b]:(a=(a.localStorage?localStorage:a.sessionStorage?sessionStorage:null).getItem(a.name+(!0===c?"\t":"\t\t")+b))?JSON.parse(a):void 0}function E(a,b,c,d){if(a.documentStorage)!0===d?a.special[b]=c:a.data[b]=c;else{var f,g=1,h,m;try{h=JSON.stringify(c)}catch(n){h="{";for(f in c){g||(h+=",");try{m=JSON.stringify(c[f]),h+=JSON.stringify(f)+
  ":"+(void 0===m?null:m)}catch(q){h+=JSON.stringify(f)+"null"}g=0}h+="}"}(a.localStorage?localStorage:a.sessionStorage?sessionStorage:null).setItem(a.name+(!0===d?"\t":"\t\t")+b,h)}}function fa(a,b,c){a.documentStorage?!0===c?delete a.special[b]:delete a.data[b]:(a.localStorage?localStorage:a.sessionStorage?sessionStorage:null).removeItem(a.name+(!0===c?"\t":"\t\t")+b)}function ga(a,b){var c;b.prev?(c=D(a,b.prev),c.next=b.next,E(a,b.prev,c)):a.earliest(b.next);b.next?(c=D(a,b.next),c.prev=b.prev,E(a,
  b.next,c)):a.latest(b.prev)}var ha=!1,R=null;b.tools={};b.constructors={};b.toolEvents={};b.plugins={};b.text={Q:{jsonRequest:{error:"Error {status} during request",404:"Not found"}}};b.callbacks=[];b.indexes={};b.page=function(a,e,c){void 0===c&&(c="Q");if("object"===typeof a)for(var d in a)b.page(d,a[d],c);else"function"===typeof e&&b.onPageActivate(a).add(function(){var d=e.call(b,b.beforePageUnload("Q\t"+a));d&&"function"===typeof d&&b.beforePageUnload("Q\t"+a).set(d,c)},c)};b.ifSet=function(a,
  b,c){if(!a)return c;for(var d=0;d<b.length;d++){if(!(b[d]in a))return c;a=a[b[d]]}return a};b.init=function(a){function e(){d.fill("ready")()}b.handle(b.onInit);b.addEventListener(window,"unload",b.onUnload);var c=["ready"];window.cordova&&c.push("device");var d=b.pipe(c,1,function(){function c(){b.addEventListener(document,"online",b.onOnline);b.addEventListener(document,"offline",b.onOffline);b.handle(navigator.onLine?b.onOnline:b.onOffline);b.ready()}function e(){window.JSON?c():b.addScript(b.init.jsonLibraryUrl,
  c)}b.info||(b.info={});b.info.isPhoneGap=!!window.device&&window.device.available;a&&a.isLocalFile&&(b.info.isLocalFile=!0,b.handle.options.loadUsingAjax=!0);b.info.isPhoneGap&&!b.cookie("Q_phonegap")&&b.cookie("Q_phonegap","yes");a&&a.isLocalFile?b.loadUrl(b.info.baseUrl,{ignoreHistory:!0,skipNonce:!0,onActivate:e,handler:function(){},slotNames:["phonegap"]}):e()});if(window.jQuery)b.jQueryPluginPlugin(),b.onJQuery.handle(window.jQuery,[window.jQuery]),jQuery(document).ready(e);else var f=setInterval(function(){/loaded|complete/.test(document.readyState)&&
  (clearInterval(f),e())},10);(function(){function a(){b.info||(b.info={});(b.info.isPhoneGap=window.device&&window.device.available)&&document.addEventListener("click",function(a){var b=a.target,c;do b&&("A"===b.nodeName&&b.href&&!b.outerHTML.match(/\Whref=[',"]#[',"]\W/)&&b.href.match(/^https?:\/\//))&&(a.preventDefault(),c="_blank"===b.target?"_system":"_blank",window.open(b.href,c,"location=no"));while(b=b.parentNode)});d.fill("device")()}0>c.indexOf("device")||(window.device?a():document.addEventListener("deviceready",
  a,!1))})()};b.init.jsonLibraryUrl="http://cdnjs.cloudflare.com/ajax/libs/json3/3.2.4/json3.min.js";b.ready=function(){b.loadNonce(function(){ha=!0;if(b.info.isLocalFile){var a=location.hash.queryField("url");void 0===a?b.handle(b.info.baseUrl):b.handle(-1==a.indexOf(b.info.baseUrl)?b.info.baseUrl+"/"+a:a)}else b.jQueryPluginPlugin(),b.beforeActivate.handle.call(window,window.jQuery),a=document.getElementsByTagName("body")[0],b.activate(a,void 0,function(){b.addEventListener(window,"hashchange",b.onHashChange.handle);
  b.addEventListener(window,"popstate",b.onPopState.handle);b.addEventListener(window,"resize",b.layout);b.addEventListener(window,"orientationchange",b.layout);b.onReady.handle.call(window,window.jQuery);b.info.isPhoneGap&&navigator.splashscreen&&navigator.splashscreen.hide();b.onPageActivate(b.info.uri.module+"/"+b.info.uri.action).handle();b.info.uriString!==b.info.uri.module+"/"+b.info.uri.action&&b.onPageActivate(b.info.uriString).handle();b.onPageActivate("").handle();location.hash.toString()&&
  A()}),b.onPageLoad(b.info.uri.module+"/"+b.info.uri.action).handle(),b.info.uriString!==b.info.uri.module+"/"+b.info.uri.action&&b.onPageLoad(b.info.uriString).handle(),b.onPageLoad("").handle()},{noXHR:!0})};b.loadNonce=function(a,e,c){b.nonce=b.cookie("Q_nonce");b.nonce?b.handle(a,e,c):b.req("Q/nonce","data",function(d){b.nonce=b.cookie("Q_nonce");b.nonce?b.handle(a,e,c):(d=b.ajaxExtend(b.action("Q/nonce"),"data"),b.formPost(d,{just:"something"},"post",function(){b.nonce=b.cookie("Q_nonce");b.nonce||
  alert("Our server couldn't set cookies in this browser.")}))},{method:"post",skipNonce:!0})};b.layout=function(a){b.trigger("onLayout",a||document.body,[])};b.isReady=function(){return ha};b.isOnline=function(){return R};b.load=function(a,e){b.addScript(b.info.baseUrl+"/plugins/"+a+"/js/"+a+".js",e)};b.ensure=function(a,e,c){void 0!==a?b.handle(c):"string"===typeof e?b.addScript(e,c):"function"===typeof e&&e(c)};b.url=function(a,e){if(e){a+="?";for(var c in e)a+="&"+encodeURIComponent(c)+"="+encodeURIComponent(e[c])}c=
  a.split("?");2<c.length&&(a=c.slice(0,2).join("?")+"&"+c.slice(2).join("&"));c="";c=b.info.proxyBaseUrl||b.info.baseUrl;c=a?a.isUrl()?a:"/"==a.substr(0,1)?c+a:c+"/"+a:c;b.url.options.beforeResult&&(c={what:a,fields:e,result:c},b.url.options.beforeResult.handle(c),c=c.result);return c};b.url.options={beforeResult:null};b.ajaxExtend=function(a,e,c){if(!a&&""!==a)return console&&"warn"in console&&console.warn("Q.ajaxExtend received empty url"),"";e="string"===typeof e?e:e.join(",");var d=b.microtime(!0);
  if("string"==typeof a){var f=a;b.info&&b.info.baseUrl===f&&(f+="/");f+=0>a.indexOf("?")?"?":"&";f+=encodeURI("Q.ajax="+(c&&c.loadExtras?"loadExtras":"json"))+encodeURI("&Q.timestamp=")+encodeURIComponent(d);e&&(f+=encodeURI("&Q.slotNames=")+encodeURIComponent(e));c&&(c.callback&&(f+=encodeURI("&Q.callback=")+encodeURIComponent(c.callback)),"echo"in c&&(f+=encodeURI("&Q.echo=")+encodeURIComponent(c.echo)),c.method&&(f+=encodeURI("&Q.method="+encodeURIComponent(c.method))));void 0!==b.nonce&&(f+=encodeURI("&Q.nonce=")+
  encodeURIComponent(b.nonce))}else{var f={},g;for(g in a)f[g]=a[g];f.Q={ajax:"json",timestamp:d,slotNames:e};c&&(c.callback&&(f.Q.callback=callback),"echo"in c&&(f.Q.echo=c.echo),c.method&&(f.Q.method=c.method));"nonce"in b&&(f.Q.nonce=b.nonce)}return f};b.ajaxErrors=function(a,b){var c={},d,f;b&&"string"===typeof b&&(b=[b]);for(i=0;i<a.length;++i){f=!1;if(d=a[i].fields)for(j=0;j<d.length;++j)b&&0>b.indexOf(d[j])||(c[d[j]]=a[i].message,f=!0);!f&&b&&(c[b[0]]=a[i].message)}return c};b.action=function(a,
  e){return a.isUrl()?b.url(a,e):b.url("action.php/"+a,e)};b.req=function(a,e,c,d){"string"===typeof d&&(d={method:d});var f=arguments,g="string"===typeof arguments[0]?0:1;f[g]=b.action(f[g]);b.jsonRequest.apply(this,f)};b.jsonRequest=function(a,e,c,d,f){function g(d){function f(){d.quiet&&(d.quiet=!0);b.handle(d.onLoadStart,this,[d]);!1!==r&&(v.timeout=setTimeout(h,r))}function g(a){v.cancelled=!0;m();b.handle(c,this,[{errors:[{message:a||"Request was canceled"}]}])}function h(){if(!v.loaded&&(b.handle(d.onShowCancel,
  this,[g,d]),d.onTimeout))d.onTimeout(g)}function m(a,c){v.loaded=!0;v.timeout&&clearTimeout(v.timeout);b.handle(d.onLoadEnd,this,[d]);d.quiet&&(d.quiet=!1);if(!v.cancelled){if(d.onLoad)d.onLoad(a);c&&c(a)}}var r=!1,v={};!1!==d.timeout&&(r=d.timeout||1500);if(d.handleRedirects){var I=c;c=function(a){I&&I.apply(this,arguments);a&&(a.redirect&&a.redirect.url)&&d.handleRedirects.call(b,a.redirect.url)}}if(!d.query&&!1!==d.xhr&&0===a.search(b.info.baseUrl)&&"undefined"!==typeof jQuery)return f(),function(a,
  c,d,e){var f=e&&e.method&&"GET"!==e.method.toUpperCase()?"POST":"GET";jQuery.ajax({type:f,url:b.ajaxExtend(a,c,{method:e.method,loadExtras:!!e.loadExtras}),data:e.fields,context:b,xhrFields:{withCredentials:!0}}).success(function(a,b,c){d(a)}).error(function(a,c,d){console.log("Q.jsonRequest xhr: "+status+" "+c);g(b.text.Q.jsonRequest[a.status]||b.text.Q.jsonRequest.error.supplant({status:a.status}))})}(a,e,function(a){m(a,c)},d);var M=a,N=b.callbacks.length;c?(b.callbacks[N]=function(a){delete b.callbacks[N];
  m(a,c)},M=d.callbackName?a+(0>a.indexOf("?")?"?":"&")+encodeURIComponent(d.callbackName)+"="+encodeURIComponent("Q.callbacks["+N+"]"):b.ajaxExtend(a,e,b.extend(d,{callback:"Q.callbacks["+N+"]"}))):M=b.ajaxExtend(a,e,d);if(d.query)return M;f();b.addScript(M,null,{duplicate:d.duplicate})}var h,m;if("object"===typeof a)for(m in h=a,a=e,e=c,c=d,d=f,f=0>a.indexOf("?")?"?":"&",h)a+=f+encodeURIComponent(m)+"="+encodeURIComponent(h[m]),f="&";"function"===typeof e&&(d=c,c=e,e=[]);d=b.extend({},b.jsonRequest.options,
  d);if(d.skipNonce)return g.call(this,d);b.loadNonce(g,this,[d])};b.parseUrl=function(a,b){for(var c="source scheme authority userInfo user pass host port relative path directory file query fragment".split(" "),d=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(a),f={},g=14;g--;)d[g]&&(f[c[g]]=d[g]);if(b)return f[b.replace("PHP_URL_","").toLowerCase()];delete f.source;return f};b.formPost=
  function(a,e,c,d){d="function"===typeof d?{onLoad:d}:!0===d?{straight:!0}:d||{};d=b.copy(d);a&&"string"===typeof a.action?d.form=a:c=c||"post";var f;d.onLoad&&(f="Q.Event"===d.onLoad.typename?d.onLoad.handle:d.onLoad);var g=d.target,h;if(!g){(h=d.iframe)&&(g=h.getAttribute("name"));g||(g="Q_formPost_iframe_"+ ++b.formPost.counter%1E3);if(!d.iframe)try{h=document.createElement('<iframe name="'+g.htmlentities()+'">')}catch(m){h=document.createElement("iframe"),h.width=h.height=h.marginWidth=h.marginHeight=
  0}h.setAttribute("name",g);h.setAttribute("id",g)}var n=d.form;n||(n=document.createElement("form"),n.setAttribute("method",c),n.setAttribute("action",a));for(var q in e)e.hasOwnProperty(q)&&(a=document.createElement("input"),a.setAttribute("type","hidden"),a.setAttribute("name",q),a.setAttribute("value",e[q]),n.appendChild(a));h&&!d.iframe&&document.body.appendChild(h);h&&d.onLoad&&b.addEventListener(h,"load",function(){b.handle(f,this,[h]);!d.iframe&&h.parentNode&&h.parentNode.removeChild(h)});
  d.form||document.body.appendChild(n);d.straight||n.setAttribute("target",g);n.submit();d.form||document.body.removeChild(n)};b.formPost.counter=0;b.activate=function(a,e,c){var d={waitingForTools:[],pipe:b.pipe()};"function"===typeof e&&(c=e,e=void 0);b.find(a,!0,b.activate.onConstruct.handle,b.activate.onInit.handle,e,d);d.pipe.add(d.waitingForTools,function(){b.trigger("onLayout",a,[]);c&&c(a,e);b.onActivate.handle(a,e)}).run()};b.addScript=function(a,e,c){function d(c){if(!(z||"readyState"in this&&
  "complete"!==this.readyState&&"loaded"!==this.readyState)){for(b.addScript.loaded[a]=!0;c=b.addScript.onLoadCallbacks[a].shift();)b.nonce=b.nonce||b.cookie("Q_nonce"),c.call(this);z=!0}}function f(c){if(h.ignoreLoadingErrors)return d(c);if(!G&&(b.addScript.loaded[a]=!1,b.addScript.onErrorCallbacks[a]))for(;cb=b.addScript.onErrorCallbacks[a].shift();)cb.call(this)}function g(){b.addScript.loaded[a]=!0;window.jQuery&&!b.onJQuery.occurred&&b.onJQuery.handle(window.jQuery,[window.jQuery]);b.jQueryPluginPlugin();
  e()}var h=b.extend({},b.addScript.options,c),m;e||(e=function(){});if("array"===b.typeOf(a)){var n=[];m=0;var q=function(){if(m+1===a.length)return e.call(a);n.push(b.addScript(a[++m].src,q,h))};n.push(b.addScript(a[0].src,q,h));return n}if(!a)return e(!1);a=b.url(a);if(!h||!h.duplicate)for(c=document.getElementsByTagName("script"),m=0;m<c.length;++m){var p=c[m];if(p.getAttribute("src")===a){if(b.addScript.loaded[a])return g();if(!1===b.addScript.loaded[a]){if(h.ignoreLoadingErrors)return g();if(h.onError)return h.onError.call(c[m])}if(!(b.addScript.added[a]||
  "readyState"in p&&"complete"===p.readyState&&"loaded"===p.readyState))return g();b.addScript.onLoadCallbacks[a]||(b.addScript.onLoadCallbacks[a]=[]);b.addScript.onErrorCallbacks[a]||(b.addScript.onErrorCallbacks[a]=[]);b.addScript.onLoadCallbacks[a].push(e);h.onError&&b.addScript.onErrorCallbacks[a].push(h.onError);c[m].wasProcessedByQ||(c[m].onload=d,c[m].onreadystatechange=d,b.addEventListener(p,"error",f),c[m].wasProcessedByQ=!0);return}}var z,G,p=document.createElement("script");p.setAttribute("type",
  "text/javascript");b.addScript.added[a]=!0;b.addScript.onLoadCallbacks[a]=[g];b.addScript.onErrorCallbacks[a]=[];h.onError&&b.addScript.onErrorCallbacks[a].push(h.onError);p.onload=d;p.onreadystatechange=d;p.setAttribute("src",a);p.wasProcessedByQ=!0;b.addEventListener(p,"error",f);document.getElementsByTagName("head")[0].appendChild(p);return p};b.addScript.onLoadCallbacks={};b.addScript.onErrorCallbacks={};b.addScript.added={};b.addScript.loaded={};b.addScript.options={duplicate:!1,ignoreLoadingErrors:!1};
  b.addStylesheet=function(a,e,c){function d(c){if(!(m||"readyState"in this&&"complete"!==this.readyState&&"loaded"!==this.readyState)){for(b.addStylesheet.loaded[a]=!0;c=b.addStylesheet.onLoadCallbacks[a].shift();)c.call(this);m=!0}}var f;"function"===typeof e&&(c=e,e=null);c||(c=function(){});if("array"===b.typeOf(a)){e=[];var g=a.length,h=function(){0===--g&&c.call(a)};for(f=0;f<a.length;++f)e.push(b.addStylesheet(a[f].href,h));return e}if(!a)return c(!1);a=b.url(a);e||(e="screen, print");h=document.styleSheets;
  for(f=0;f<h.length;++f)if(h[f].href===a){if(b.addStylesheet.loaded[a]||!b.addStylesheet.added[a]){c();return}b.addStylesheet.onLoadCallbacks[a]?b.addStylesheet.onLoadCallbacks[a].push(c):b.addStylesheet.onLoadCallbacks[a]=[c];f=document.getElementsByTagName("link");for(e=0;e<f.length;++e)if(f[e].href===a){f[e].onload=d;f[e].onreadystatechange=d;break}return}var m;f=document.createElement("link");f.setAttribute("rel","stylesheet");f.setAttribute("type","text/css");f.setAttribute("media",e);b.addStylesheet.added[a]=
  !0;b.addStylesheet.onLoadCallbacks[a]=[c];f.onload=d;f.onreadystatechange=d;f.setAttribute("href",a);document.getElementsByTagName("head")[0].appendChild(f);return f};b.addStylesheet.onLoadCallbacks={};b.addStylesheet.added={};b.addStylesheet.loaded={};b.cookie=function(a,e,c){var d;if("undefined"!=typeof e){var f;d="";d=b.info.baseUrl.split("://");f=c&&"path"in c?";path="+c.path:";path=/"+d[1].split("/").slice(1).join("/");d=c&&"domain"in c?";domain="+c.domain:";domain=."+d[1].split("/").slice(0,
  1);if(null===e)return document.cookie=encodeURIComponent(a)+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT"+f+d,null;var g="";c&&c.expires&&(g=new Date,g.setTime((new Date).getTime()+c.expires),g=";expires="+g.toGMTString());document.cookie=encodeURIComponent(a)+"="+encodeURIComponent(e)+g+f+d;return null}e=document.cookie.split(";");for(f=0;f<e.length;++f)if(d=e[f].split("="),c=d.splice(0,1),c.push(d.join("=")),decodeURIComponent(c[0].trim())===a)return 2>c.length?null:decodeURIComponent(c[1]);return null};
  b.find=function(a,e,c,d,f,g){var h;if(a)if(!0===e&&(e="Q_tool"),"array"===b.typeOf(a)||"undefined"!==typeof HTMLCollection&&a instanceof HTMLCollection||window.jQuery&&a instanceof jQuery)for(h=0;h<a.length;++h)b.find(a[h],e,c,d,f,g);else{var m=!1;if("className"in a&&"string"===typeof a.className){var n=a.className.split(" ");for(h=0;h<n.length;++h)if("string"===typeof e&&e===n[h]||e instanceof RegExp&&e.test(n[h])){m=!0;break}}n=f;if(m&&"function"==typeof c){n=c(a,f,g);if(n===b.find.skipSubtree)return;
  "undefined"==typeof n&&(n=f)}var q;q="children"in a?a.children:a.childNodes;var p=[];if(q)for(h=0;h<q.length;++h)p[h]=q[h];b.find(p,e,c,d,n,g);m&&"function"==typeof d&&d(a,f,g)}};b.find.skipSubtree="Q:skipSubtree";b.addEventListener=function(a,e,c){var d="Q.Event"===c.typename?function(d){b.handle(c,a,[d])}:c;if("array"===b.typeOf(e))for(var f=0,g=e.length;f<g;++f)b.addEventListener(a,e[f],c);a.addEventListener?a.addEventListener(e,d,!1):a.attachEvent&&a.attachEvent("on"+e,d)};b.trigger=function(a,
  e,c){var d=a.split(".");b.find(e||document.body,!0,function(a){var e=b.Tool.from(a);if(e){var h=d.length,m;for(m=0;m<h;++m)e=e[d[m]]}e&&b.handle(e,a,c)},null)};b.objectWithPrototype=function(a){function b(){}if(!a)return{};b.prototype=a;return new b};b.typeOf=function(a){var b=typeof a;if("object"===b){if(null===a)return"null";if(a instanceof Array||a.constructor&&"Array"===a.constructor.name||"[object Array]"===Object.prototype.toString.apply(a))b="array";else return"undefined"!=typeof a.typename?
  a.typename:"undefined"!=typeof a.constructor&&"undefined"!=typeof a.constructor.name?"Object"==a.constructor.name?"object":a.constructor.name:"object"}return b};b.isInteger=function(a){return parseFloat(a)==parseInt(a)&&!isNaN(a)};b.bind=function(a,b,c){return c?function(){var d=Array.prototype.slice.call(arguments);c&&d.push(c);return a.apply(b,d)}:function(){return a.apply(b,arguments)}};b.pipe=function(a,e,c){return new b.Pipe(a,e,c)};b.Pipe=function(a,b,c){this.callbacks=[];this.params={};this.subjects=
  {};this.ignore={};this.finished=!1;this.add.apply(this,arguments)};b.Pipe.prototype.add=function(a,e,c){for(var d=null,f=null,g=0;g<arguments.length;g++)"function"===typeof arguments[g]?(arguments[g].pipeRequires=d,arguments[g].pipeRemaining=f,this.callbacks.push(arguments[g]),d=f=null):"array"===b.typeOf(arguments[g])?d=arguments[g]:"number"===b.typeOf(arguments[g])&&(f=arguments[g]);return this};b.Pipe.prototype.fill=function(a,e){if(!0===e)this.ignore[this.i]=!0;else if("string"===typeof e)this.ignore[e]=
  !0;else if("array"===b.typeOf(e))for(var c=0;c<e.length;++c)this.ignore[e[c]]=!0;var d=this;return function(){d.params[a]=Array.prototype.slice.call(arguments);d.subjects[a]=this;d.run()}};b.Pipe.prototype.run=function(){var a,e=this.callbacks,c=b.copy(this.params),d=0,f=0;a:for(;f<e.length;f++)if(!this.ignore[f]&&(this.i=f,a=e[f])){if(a.pipeRequires)for(var g=0;g<a.pipeRequires.length;g++)if(!(this.ignore[a.pipeRequires[g]]||a.pipeRequires[g]in c))continue a;a.pipeRemaining&&(--a.pipeRemaining||
  delete e[f]);a=a.call(this,this.params,this.subjects);++d;if(!1===a)delete e[f];else if(!0===a){this.callbacks=[];this.finished=!0;break}}};b.batcher=function(a,e){var c=b.extend({max:10,ms:50},e),d=function(){function b(){a.call(this,a.subjects,a.args,a.callbacks);a.subjects=a.args=a.callbacks=null;a.count=0;a.argmax=0;a.cbmax=0}var d,e=[],m=[];for(d=0;d<arguments.length;++d)"function"===typeof arguments[d]?e.push(arguments[d]):m.push(arguments[d]);a.count||(a.count=0);a.argmax||(a.argmax=0);a.cbmax||
  (a.cbmax=0);++a.count;e.length>a.cbmax&&(a.cbmax=e.length);m.length>a.argmax&&(a.argmax=m.length);a.subjects||(a.subjects=[]);a.args||(a.args=[]);a.callbacks||(a.callbacks=[]);a.subjects.push(this);a.args.push(m);a.callbacks.push(e);a.timeout&&clearTimeout(a.timeout);a.count==c.max?b():a.timeout=setTimeout(b,c.ms)};d.batch=a;d.cancel=function(){clearTimeout(a.timeout)};return d};b.getter=function(a,e){function c(a,b){var c,d=[];for(c=0;c<a.length;++c)"function"!==typeof a[c]?d.push(a[c]):b&&b.push&&
  b.push(a[c]);return JSON.stringify(d)}function d(){var b,e,n,q,p,z,G=Array.prototype.slice.call(arguments),r=[];z=c(G,r);if(0===r.length){var v=function(){};G.push(v);r.push(v)}var I;if(d.cache&&f&&(v=f.get(z))&&(I=v.cbpos,r[I]))return r[I].apply(v.subject,v.params),0;if(g[z])return g[z].push(r),3;g[z]=[];v=[];for(cbi=p=0;p<G.length;p++)"function"!==typeof G[p]?v.push(G[p]):(v.push(function(a,b){return function(){d.cache&&f&&f.set(z,b,this,arguments);a.apply(this,arguments);if(g[z]){for(p=0;p<g[z].length;p++)g[z][p][b].apply(this,
  arguments);delete g[z]}d.throttle&&d.throttle.throttleNext&&d.throttle.throttleNext(this)}}(r[cbi],cbi)),++cbi);if(!d.throttle)return a.apply(this,v),2;d.throttle.throttleTry||(b=d.throttleSize,e=0,n=[],q=[],d.throttle.throttleTry=function(a,c,d){++e;if(null===b||e<=b)return c.apply(a,d),!0;n.push(c);q.push(d);return!1},d.throttle.throttleNext=function(a){if(0>--e)throw Error("Q.getter: Throttle count out of range!");n.length&&n.shift().apply(a,q.shift())});d.throttleSize||(d.throttle.throttleSize=
  function(a){if("undefined"===typeof a)return b;b=a});return d.throttle.throttleTry(this,a,v)?2:1}b.extend(d,b.getter.options,e);var f=null,g={};!1===d.cache?d.cache=null:f=!0!==d.cache?d.cache:b.Cache.document(++_Q_getter_i);d.throttle=d.throttle||null;!0===d.throttle&&(d.throttle="");"string"===typeof d.throttle&&(b.getter.throttles[d.throttle]||(b.getter.throttles[d.throttle]={}),d.throttle=b.getter.throttles[d.throttle]);d.forget=function(){var a=c(arguments);d.cache&&d.cache.remove(a)};a.batch&&
  (d.batch=a.batch);return d};_Q_getter_i=0;b.getter.options={cache:!0,throttle:null,throttleSize:100};b.getter.throttles={};b.getter.cache={};b.getter.waiting={};b.handle=function(a,e,c,d){if(!a)return 0;var f=0,g=0,h,m;a===location&&(a=location.href);switch(b.typeOf(a)){case "function":return m=a.apply(e?e:window,c?c:[]),!1===m?!1:1;case "array":for(f=0;f<a.length;++f){m=b.handle(a[f],e,c);if(!1===m)return!1;g+=m}return g;case "Q.Event":for(f=0;f<a.keys.length;++f){m=b.handle(a.handlers[a.keys[f]],
  e,c);if(!1===m)return!1;g+=m}a.occurred=!0;a.lastContext=e;a.lastArgs=c;return g;case "object":for(h in a){m=b.handle(a[h],e,c);if(!1===m)return!1;g+=m}return g;case "string":f=b.extend({},b.handle.options,d);if(!f.target&&!a.isUrl()){try{(m=b.getObject(a))||eval("c = "+a)}catch(n){}return b.handle(m,e,c)}if(f.dontReload&&b.info&&b.info.url===a)return 0;var q=null;"function"===typeof arguments[1]?(q=arguments[1],f=b.handle.options):arguments[1]&&void 0===arguments[3]&&(f=b.extend({},b.handle.options,
  arguments[1]),"function"===typeof arguments[2]&&(q=arguments[2]));if(!f.target&&f.loadUsingAjax)0===a.search(b.info.baseUrl)?b.loadUrl(a,b.extend({loadExtras:!0,ignoreHistory:!1,onActivate:function(){q&&q()}},f)):f.externalLoader&&f.externalLoader.apply(this,arguments);else if("object"===b.typeOf(f.fields)){g="POST";if(f.method)switch(f.method.toUpperCase()){case "GET":case "POST":g=f.method;break;default:g="POST"}b.formPost(a,f.fields,g,{onLoad:f.callback,target:f.target})}else!b.info||a!==b.info.baseUrl&&
  a!==b.info.proxyBaseUrl||(a+="/"),f.target&&!0!==f.target&&"_self"!==f.target?window.open(a,f.target):window.location.href==a?window.location.reload(!0):window.location=a;return 1;default:return 0}};b.handle.options={loadUsingAjax:!1,externalLoader:null,dontReload:!1};b.param=function(a){function e(a,f){if("array"===b.typeOf(f))b.each(f,function(f,g){/\[\]$/.test(a)?c(a,g):e(a+"["+("object"===b.typeOf(g)||"array"===b.typeOf(g)?f:"")+"]",g,c)});else if(f&&"object"===b.typeOf(f))for(var g in f)e(a+
  "["+g+"]",f[g],c);else _(a,f)}function c(a,c){c="function"===b.typeOf(c)?c():c;s[s.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)}b.each(a,function(b){e(b,a[b])});return s.join("&").replace(/%20/g,"+")};b.each=function(a,e,c,d,f){var g,h;switch(b.typeOf(a)){default:if(!a)break;a=Array.prototype.slice.call(a,0);case "array":h=a.length;if(!a||!h||!e)break;if(c&&!1===c.ascending)for(c=h-1;0<=c&&(d=b.handle(e,a[c],[c,a[c]]),!1!==d);--c);else for(c=0;c<h&&(d=b.handle(e,a[c],[c,a[c]]),!1!==d);++c);
  break;case "object":if(!a||!e)break;if(c&&"ascending"in c){h=[];for(g in a)(!c.hasOwnProperty||b.has(a,g))&&a.hasOwnProperty&&a.hasOwnProperty(g)&&h.push(c.numeric?parseFloat(g):g);h=c.numeric?h.sort(function(a,b){return a-b}):h.sort();if(!1===c.ascending)for(c=h.length-1;0<=c&&(g=h[c],d=b.handle(e,a[g],[g,a[g]]),!1!==d);--c);else for(c=0;c<h.length&&(g=h[c],d=b.handle(e,a[g],[g,a[g]]),!1!==d);++c);}else for(g in a)if(a.hasOwnProperty&&a.hasOwnProperty(g)&&(d=b.handle(e,a[g],[g,a[g]]),!1===d))break;
  break;case "string":if(!a||!e)break;if(c&&!1===c.ascending)for(c=0;c<a.length&&(d=b.handle(e,a,[c,a.charAt(c)]),!1!==d);++c);else for(c=a.length-1;0<=c&&(d=b.handle(e,a,[c,a.charAt(c)]),!1!==d);--c);break;case "number":var m=0;g=a;if("number"===typeof e)if(m=a,g=e,"number"===typeof c){h=c;if(!h||0>(g-m)*h)throw Error("Q.each: step="+h+" leads to infinite loop");e=d;c=f}else e=c,c=d;if(!e)break;void 0===h&&(h=m<=g?1:-1);if(m<=g)for(c=m;c<=g&&(d=b.handle(e,this,[c]),!1!==d);c+=h);else for(c=m;c>=g&&
  (d=b.handle(e,this,[c]),!1!==d);c+=h);}};b.first=function(a){if(!a)return null;switch(typeof a){case "array":for(var e=0;e<a.length;++e)if(void 0!==a[e])return e;break;case "object":for(e in a)if(!a.hasOwnProperty(e))return e;break;case "string":return 0;default:throw new b.Exception("Q.first: container has to be an array, object or string");}return null};b.isEmpty=function(a){if(!a)return!0;var e,c;c=b.typeOf(a);if("object"===c){for(e in a)if(c=a[e],void 0!==c)return!1;return!0}return"array"===c?
  0===a.length:!1};b.isPlainObject=function(a){return null===a||"object"!==typeof a||"[object Object]"!==Object.prototype.toString.apply(a)||window.attachEvent&&!window.addEventListener&&a&&a.constructor&&0>a.constructor.toString().indexOf("function Object()")?!1:!0};b.copy=function(a,e){if(a&&"function"===typeof a.copy)return a.copy();if(null===a||!b.isPlainObject(a))return a;var c=b.objectWithPrototype(Object.getPrototypeOf(a)),d,f,g;if(e)for(g=e.length,d=0;d<g;++d)f=e[d],f in a&&(c[f]=a[f]&&"function"===
  typeof a[f].copy?a[f].copy():a[f]);else for(f in a)b.has(a,f)&&(c[f]=a[f]&&"function"===typeof a[f].copy?a[f].copy():a[f]);return c};b.extend=function(a){var e=arguments.length,c=void 0;"string"===typeof arguments[e-1]&&(c=arguments[e-1],--e);if(0===e)return{};a=a||{};for(var d=!1,f=0,g=1;g<e;++g){var h=arguments[g];if(h)if(!0===h)d=!0;else if(!1!==h)if("number"===typeof h&&h)f=h;else{for(var m in h)if(!0===d||h.hasOwnProperty&&h.hasOwnProperty(m)||!h.hasOwnProperty&&m in h){var n=h[m];if(m in a&&
  "Q.Event"===b.typeOf(a[m]))if(n.constructor===Object)for(var q in n)a[m].set(n[q],q);else a[m].set(n,c);else f&&b.isPlainObject(n)&&"Q.Event"!==b.typeOf(h[m])&&n.constructor===Object?a[m]=b.extend(a[m],d,f-1,n):a[m]=b.copy(n)}d=!1;f=0}}return a};b.mixin=function(a,e){for(var c=a.__mixins||(a.__mixins=[]),d=1,f=arguments.length;d<f;++d){var g=arguments[d];if("function"!==typeof g)throw Error("Q.mixin: argument "+d+" is not a function");b.extend(a.prototype,g.prototype);for(var h in g)h in a||"function"!==
  typeof g[h]||(a[h]=g[h]);g.__mixins&&Array.prototype.splice.apply(c,[c.length,0].concat(g.__mixins));c.push(arguments[d])}a.prototype.constructors=function(){if(!this.constructor.__mixins)throw Error("Q.mixin: mixinObject.constructors() called on something that does not have mixins info");for(var a=this.constructor.__mixins,b=0,c=a.length;b<c;++b)a[b].apply(this,arguments)};a.staticProperty=function(b){for(var c=0;c<a.__mixins.length;++c)if(b in a.__mixins[c])return a.__mixins[c].propName}};b.Class=
  function(a){function e(){this.constructors.apply(this,arguments);a&&a.apply(this,arguments)}var c,d,f=arguments.length;for(d=c=1;c<f&&"function"===typeof arguments[c];++c)d=c;c=Array.prototype.slice.call(arguments,1,d+1);c.unshift(e);"object"===typeof arguments[++d]&&(b.extend(e.prototype,arguments[d]),"object"===typeof arguments[++d]&&b.extend(e,arguments[d]));b.mixin.apply(b,c);return e};b.take=function(a,e){var c={};if("array"===b.typeOf(e))for(var d=0;d<e.length;++d)c[e[d]]=a[e[d]];else for(d in e)c[d]=
  d in a?a[d]:e[d];return c};b.has=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};b.shuffle=function(a){var b=a.length;if(!b)return!1;for(;--b;){var c=Math.floor(Math.random()*(b+1)),d=a[b];a[b]=a[c];a[c]=d}};b.microtime=function(a){var b=(new Date).getTime()/1E3,c=parseInt(b,10);return a?b:Math.round(1E3*(b-c))/1E3+" "+c};var P=0,Q="";b.md5=function(a){return ca(Z(H(a)))};b.md5_b64=function(a){return da(Z(H(a)))};b.md5_hmac=function(a,b){return ca(ba(H(a),H(b)))};b.md5_hmac_b64=function(a,
  b){return da(ba(H(a),H(b)))};b.normalize=function(a,e,c){void 0===c&&(c="_");e=e||/[^A-Za-z0-9]+/;e=a.toLowerCase().replace(e,c);233<a.length&&(e=a.substr(0,200)+"_"+b.md5(e.substr(200)));return e};b.host=function(a){for(var e=0;e<b.node.routers.length;++e){var c=b.node.routers[e](a);if(c)return c}a=b.parseUrl(b.info.baseUrl);return a.scheme+"://"+a.host+(a.port?a.port:"")};b.host.routers=[];b.node=function(a){for(var e=0;e<b.node.routers.length;++e){var c=b.node.routers[e](a);if(c)return c}return b.info.socketUrl};
  b.node.routers=[];var S={};b.Template=function(){};b.Template.load=function(a,e,c){function d(){var b=m&&m[a];e(b);return b}function f(b){m[a]=b.trim();e(m[a])}function g(){console.warn('Failed to load template "'+h.dir+"/"+a+"."+h.type+'"');e()}"object"===typeof e&&(c=e,e=void 0);var h=b.extend({type:"mustache",dir:"views"},c);S[h.type]||(S[h.type]={});var m=S[h.type],n=document.getElementsByTagName("script"),q,p=[];c=0;for(l=n.length;c<l;c++)(q=n[c])&&(q.id&&q.innerHTML&&q.getAttribute("type")===
  "text/"+h.type)&&(m[q.id]=q.innerHTML.trim(),p.unshift(q));c=0;for(l=p.length;c<l;c++)p[c].parentNode.removeChild(p[c]);if(!e||"function"!==typeof e)return m&&m[a];if(m&&m[a])return d();$.get(b.url(h.dir+"/"+a+"."+h.type),f,"html").fail(function(){var c=a.split("/"),d=c[0];if(2>c.length)return g();c.splice(1,0,h.dir,d);$.get(b.url("plugins/"+c.join("/")+"."+h.type),f,"html").fail(g)});return!0};b.Template.render=function(a,e,c,d,f){"function"===typeof e?(f=c,d=e,c=void 0,e={}):"function"===typeof c&&
  (f=d,d=c,c=void 0);if(!d)return!1;var g=b.pipe(["tpl","partials"],function(a){d($.mustache(a.tpl[0],e,a.partials[0]))});if(!b.Template.load(a,g.fill("tpl"),f))return!1;if(c&&c.length){a=b.pipe(c,function(a){var b,d;for(b=0;b<c.length;b++)d=c[b],a[d]=a[d][0];g.fill("partials")(a)});var h;for(h=0;h<c.length;h++)if(!b.Template.load(c[h],a.fill(c[h]),f))return!1}else g.fill("partials")();return!0};b.loadUrl=function(a,e){var c=b.extend({},b.loadUrl.options,e);b.handle(c.onLoadStart,this,[c]);var d=c.handler||
  b.loadUrl.defaultHandler,f=c.slotNames||b.info.slotNames;"string"===typeof f&&(f=f.split(","));if(c.cacheSlots){var g=[],h,m=f.length;for(h=0;h<m;++h){var n=f[h];c.cacheSlots[n]&&b.loadUrl.cachedSlots[n]||g.push(n)}f=g}var q=a.split("#"),g=q[1]?q[1].queryField("url"):void 0;a=void 0!==g?g:q[0];var g=b.jsonRequest,p=window.alert,r;c.loader&&(g=c.loader);c.onError&&(p=c.onError);c.onActivate&&(r=c.onActivate);g(a,f,function(e){function g(){function f(a){var d=b[a+"PageUnload"];b.handle(c.onLoadEnd,
  this,[c]);b.info&&b.info.uri&&(a=d("Q\t"+b.info.uri.module+"/"+b.info.uri.action),a.handle(),a.removeAllHandlers(),a=d(b.info.uri.module+"/"+b.info.uri.action),a.handle(),b.info.uriString!==b.info.uri.module+"/"+b.info.uri.action&&(a=d("Q\t"+b.info.uriString),a.handle(),a.removeAllHandlers(),a=d(b.info.uriString),a.handle()));a=d("Q\t");a.handle();a.removeAllHandlers();a=d("");a.handle()}function h(){if("array"!==b.typeOf(m)||++t==m.length)b.onPageActivate("").handle(),b&&(b.info&&b.info.uri)&&(b.onPageActivate(b.info.uri.module+
  "/"+b.info.uri.action).handle(),b.info.uriString!==b.info.uri.module+"/"+b.info.uri.action&&b.onPageActivate(b.info.uriString).handle()),b.handle(r,this,arguments)}f("before");var m=d(e);f("on");b.info&&b.info.uri&&(b.beforePageLoad(b.info.uri.module+"/"+b.info.uri.action).occurred=!1,b.onPageLoad(b.info.uri.module+"/"+b.info.uri.action).occurred=!1,b.onPageActivate(b.info.uri.module+"/"+b.info.uri.action).occurred=!1,b.info.uriString!==b.info.uri.module+"/"+b.info.uri.action&&(b.beforePageLoad(b.info.uriString).occurred=
  !1,b.onPageLoad(b.info.uriString).occurred=!1,b.onPageActivate(b.info.uriString).occurred=!1));var n;if(!c.ignoreHistory&&a.substr(0,b.info.baseUrl.length)===b.info.baseUrl){var p=a.substr(b.info.baseUrl.length+1);p||(p="");history.pushState?(history.pushState({},null,a),A.currentUrl=a.substr(b.info.baseUrl.length+1)):(p="#!url="+encodeURIComponent(p)+location.hash.replace(/#!url=[^&]*/,"").replace(/&!url=[^&]*/,"").replace(/&column=[^&]+/,"").replace(/#column=[^&]+/,""),q[1]&&(p+=("&"+q[1]).replace(/&!url=[^&]*/,
  "").replace(/&column=[^&]+/,"")),location.hash!==p&&(A.ignore=!0,location.hash=p))}e.scriptData&&b.each(e.scriptData,function(a,c){b.each(c,function(a,c){b.extendObject(a,c)})});if(e.scriptLines)for(n in e.scriptLines)e.scriptLines[n]&&eval(e.scriptLines[n]);b.onPageLoad("").handle();b&&(b.info&&b.info.uri)&&(b.onPageLoad(b.info.uri.module+"/"+b.info.uri.action).handle(),b.info.uriString!==b.info.uri.module+"/"+b.info.uri.action&&b.onPageLoad(b.info.uriString).handle());var t=0;if(void 0===m)h();
  else if("array"===b.typeOf(m)){for(n=0;n<m.length;++n)b.activate(m[n],void 0,h);m.length||h()}else b.activate(m,void 0,h)}var h,m,n;if(e)if(e.errors)p(e.errors[0].message);else{var t;if(e.stylesheets)for(h in e.stylesheets)for(m in e.stylesheets[h])t=e.stylesheets[h][m],b.addStylesheet(t.href,t.media);h=document.head||document.getElementsByTagName("head")[0];if(e.stylesInline)for(n in e.stylesInline)e.stylesInline[n]&&(m=document.createElement("style"),m.setAttribute("type","text/css"),m.styleSheet?
  m.styleSheet.cssText=e.stylesInline[n]:m.appendChild(document.createTextNode(e.stylesInline[n])),h.appendChild(m));if(e.templates)for(n in e.templates)e.templates[n]&&(m=e.templates[n],t=document.createElement("script"),t.setAttribute("id",m.src),t.setAttribute("type","text/"+m.type),t.appendChild(document.createTextNode(e.stylesInline[n])),h.appendChild(t));if(e.scripts){var u=b.pipe(f,function(){g()});for(h=0;h<f.length;h++)n=f[h],e.scripts[n]?function(a,d){var e=void 0!==c.ignoreLoadingErrors?
  c.ignoreLoadingErrors:void 0;b.addScript(d,u.fill(a),e)}(n,e.scripts[n]):u.fill(n)()}else g()}else p("Response is empty",e)},c)};b.loadUrl.cachedSlots={};var T=b.getProp=function(a,b,c){var d,f=0;c=c||window;if(!a.length)return c;for(;c&&void 0!==(d=a[f++]);)c=d in c?c[d]:b?c[d]={}:void 0;return c};b.loadUrl.defaultHandler=function(a){var e=[],c,d;for(c in a.slots)if("TITLE"===c.toUpperCase())window.document.title=a.slots[c];else if(d=document.getElementById(c+"_slot")){try{b.replace(d,a.slots[c])}catch(f){console.warn("slot "+
  c+" could not be filled"),console.warn(f)}e.push(d)}return e};b.extendObject=function(a,e,c){var d=a.split(".");a=d.pop();c=T(d,!0,c);if(void 0===c)console.warn("Failed to set '"+k+"'");else return c[a]&&"object"===typeof c[a]&&"object"===b.typeOf(e)?b.extend(c[a],e):c[a]=e,e};b.setObject=function(a,e,c){if("object"===typeof a){c=e;e={};for(var d in a)e[d]=b.setObject(d,a[d],c);return e}d=a.split(".");a=d.pop();return(c=T(d,!0,c))&&a?c[a]=e:void 0};b.getObject=function(a,b,c){return T(a.split("."),
  b,c)};b.parseQueryString=function(a,e){if(!a)return{};if("?"===a[0]||"#"===a[0])a=a.substr(1);var c={};b.each(a.split("&"),function(a,b){var g=b.split("="),h=decodeURIComponent(g[0]),g=decodeURIComponent(g[1]);h&&(e&&e.push(h),c[h]=g)});return c};b.buildQueryString=function(a,b){for(var c=[],d=0;d<b.length;++d)b[d]in a&&c.push(encodeURIComponent(b[d])+"="+encodeURIComponent(a[b[d]]));return c.join("&")};b.Event=function(a,e,c){if(this===b)throw Error("Q.Event: Missing new keyword");var d=this;this.handlers=
  {};this.keys=[];this.typename="Q.Event";a&&this.set(a,e,c);this.handle=function(){var a,c=0,e;for(a=0;a<d.keys.length;++a){e=b.handle(d.handlers[d.keys[a]],this,arguments);if(!1===e)return!1;c+=e}d.occurred=!0;d.lastContext=this;d.lastArgs=arguments;return c}};b.Event.prototype.occurred=!1;b.Event.prototype.set=function(a,e,c){var d;if(void 0===e||null===e)for(d=this.keys.length,e="unique_"+d;this[e];)e="unique_"+ ++d;d=void 0;"Q.Tool"===b.typeOf(e)&&(d=e,e=d.prefix,b.toolEvents[e]||(b.toolEvents[e]=
  []));this.handlers[e]=a;-1==this.keys.indexOf(e)&&(c?this.keys.unshift(e):this.keys.push(e),d&&b.toolEvents[e].push(this));return e};b.Event.prototype.add=function(a,e,c){this.set(a,e,c);this.occurred&&b.handle(a,this.lastContext,this.lastArgs)};b.Event.prototype.remove=function(a){"Q.Tool"===b.typeOf(a)&&(a=a.prefix);delete this.handlers[a];var e=this.keys.indexOf(a);if(0>e)return 0;this.keys.splice(e,1);if(b.toolEvents[a])for(e=0;e<b.toolEvents[a].length;++e)if(b.toolEvents[a][e]===this){b.toolEvents[a].splice(e,
  1);break}return 1};b.Event.prototype.removeAllHandlers=function(){this.handlers={};this.keys=[]};b.Event.prototype.copy=function(){for(var a=new b.Event,e=0;e<this.keys.length;++e)a.handlers[this.keys[e]]=this.handlers[this.keys[e]],a.keys.push(this.keys[e]);return a};b.Tool=function(a,e){if(this.constructed)return!1;this.constructed=!0;this.element=a;this.typename="Q.Tool";window.jQuery&&jQuery(a).data("Q_tool",this);this.element.id||(this.element.id=b.Tool.defaultIdPrefix+b.Tool.nextDefaultId++ +
  "_tool");this.prefix=b.Tool.prefixById(this.element.id);var c=this.element.className&&this.element.className.split(/\s+/)||[],d=a.getAttribute("data-"+this.name.replace("/","-"));d&&b.extend(this.options,JSON.parse(d),"Q.Tool");var f;e=e||{};this.options=this.options||{};d=0;for(l=c.length;d<l;d++)(f=e["."+c[d]])&&b.extend(this.options,f,"Q.Tool");(f=e["#"+this.element.id])&&b.extend(this.options,f,"Q.Tool");c=this.element.id.split("_");for(d=0;d<c.length-1;++d)(f=e["#"+c.slice(d).join("_")])&&b.extend(this.options,
  f,"Q.Tool");a.options&&b.extend(this.options,a.options,"Q.Tool");a.Q||(a.Q={});a.Q.tool=this;this.beforeRemove=new b.Event;b.tools[this.prefix]||(b.tools[this.prefix]=this);return this};b.Tool.constructors=b.constructors;b.Tool.prefixById=function(a){return a.match(/_tool$/)?a.substring(0,a.length-4):"_"===a.substr(-1)?a:a+"_"};b.Tool.byId=function(a){return b.tools[b.Tool.prefixById(a)]};b.Tool.remove=function(a,e){b.find(a,!0,null,function(a){(a=b.Tool.from(a))&&a.remove(e)})};b.Tool.define=function(a,
  e,c,d,f){"object"===typeof d&&(f=d,d=void 0);e.options=c||{};e.stateKeys=d;b.extend(e.prototype,f);return b.Tool.constructors[a]=e};b.Tool.jQuery=function(a,e,c,d,f){"object"===typeof d&&(f=d,d=void 0);b.onJQuery.add(function(g){function h(c){if("string"===typeof arguments[0]){var f=arguments[0];if(h.methods[f])return h.methods[f].apply(this,Array.prototype.slice.call(arguments,1))}else{arguments[0]=b.extend({},10,h.options,10,arguments[0]);var m=arguments;window.jQuery(this).each(function(){var f=
  a+" state",h=g(this);h.data(f)&&h.plugin(a,"destroy");h.data(f,b.copy(c,d));e.apply(h,m)})}return this}h.options=c||{};h.methods=f||{};window.jQuery.fn[a.replace(RegExp("[./]","g"),"_")]=h;var m=b.Tool.define(a,function(b,c){g(this.element).plugin(a,c,this);this.beforeRemove.set(function(){g(this.element).plugin(a,"destroy",this)},"Q")});b.each(f,function(b,c){m.prototype[b]=function(){g(this.element).plugin(a,b,options,this)}})})};b.Tool.nextDefaultId=1;b.Tool.defaultIdPrefix="Q_Tool_";b.Tool.prototype.toString=
  function(){return this.prefix.substr(0,this.prefix.length-1)};b.Tool.prototype.children=function(a){var e={};a=a?this.prefix+a:this.prefix;for(var c in b.tools)c.length>this.prefix.length&&c.substr(0,a.length)==a&&(e[c]=b.tools[c]);return e};b.Tool.prototype.child=function(a){a=a?this.prefix+a:this.prefix;for(var e in b.tools)if(e.length>this.prefix.length&&e.substr(0,a.length)==a)return b.tools[e];return null};b.Tool.prototype.remove=function(a){(a=a||!this.element.getAttribute("data-Q-cache"))&&
  b.handle(this.beforeRemove);this.element.parentNode&&this.element.parentNode.removeChild(this.element);if(a){for(;b.toolEvents[this.prefix]&&b.toolEvents[this.prefix].length;)b.toolEvents[this.prefix][0].remove(this);delete b.tools[this.prefix]}return null};b.Tool.prototype.$=function(a){if("undefined"!==typeof jQuery)return jQuery(a,this.element);throw Error("Q.Tool.prototype.$ requires jQuery");};b.Tool.prototype.getElementsByClassName=function(a){return this.element.getElementsByClassName(a)};
  b.Tool.prototype.getElementByClassName=function(a,b){void 0===b&&(b=!0);var c=this.getElementsByClassName(a);switch(c.length){case 1:return c[0];case 0:if(!b)return null;throw Error("Q.Tool.prototype.getElementByClassName: no elements found with class name '"+a+"' in element #"+this.element.id);default:throw Error("Q.Tool.prototype.getElementByClassName: more than one element found with class name '"+a+"' in element #"+this.element.id);}};b.Tool.prototype.getChildByClassName=function(a,e){var c=this.getElementByClassName(a,
  e);return c&&b.Tool.from(c)};b.Tool.from=function(a){"string"===typeof a&&(a=document.getElementById(a));a=b.Tool.prefixById(a.id);a=b.tools[a];return"object"===typeof a?a:void 0};b.Tool.loadScript=function(a,e,c){var d=a.className.split(" ");b.each(d,function(d,g){if("Q_tool"!==g&&"_tool"===g.slice(-5)){var h=g.substr(0,g.length-5).replace("_","/"),m=b.Tool.constructors[h];if("function"===typeof m)e(a,m,h);else if("string"===typeof m){if(c){var n="tool "+(c.waitingForTools.length+1);c.waitingForTools.push(n)}b.addScript(m,
  function(){m=b.Tool.constructors[h]||b.Tool.constructors[h];if("function"!==typeof m)throw Error("Q.Tool.loadScript: toolFunc cannot be "+typeof m);e(a,m,h,n)})}else if("undefined"!==typeof m)throw Error("Q.Tool.loadScript: toolFunc cannot be "+typeof m);}})};b.tool=function(a,b,c){"string"===typeof b&&(c=b,b=void 0);var d=document.createElement("div");d.setAttribute("class","Q_tool "+a.replace("/","_")+"_tool");c&&d.setAttribute("id",c);b&&(d.options=b);return d};b.replace=function(a,e){if(!e)return b.Tool.remove(a),
  a.innerHTML="",a;if("string"===b.typeOf(e)){var c=document.createElement("div");c.innerHTML=e;e=c}b.find(e,!0,function(a,c,e){if((c=b.Tool.byId(a.id))&&c.element.getAttribute("data-Q-cache")&&!a.getAttribute("data-Q-replace")){e="data-"+c.name.replace("/","-");var h=a.getAttribute(e);a.parentNode.replaceChild(c.element,a);a.setAttribute(e,h);b.handle(c.onUseCached)}});b.Tool.remove(a);for(a.innerHTML="";c=e.childNodes[0];)a.appendChild(c);return a};b.Session=function(){return{}};Object.getPrototypeOf||
  (Object.getPrototypeOf=function(a){return a.__proto__?a.__proto__:a.constructor&&a.constructor.prototype?a.constructor.prototype:null});String.prototype.toCapitalized=function(){return(this+"").replace(/^([a-z])|\s+([a-z])/g,function(a){return a.toUpperCase()})};String.prototype.isUrl=function(){return this.match(/^[A-Za-z]*:\/\//)};String.prototype.htmlentities=function(){for(var a=this.split(""),b=a.length,c=[];--b;){var d=a[b].charCodeAt();65>d||127<d||90<d&&97>d?c.push("&#"+d+";"):c.push(a[b])}return c.reverse().join("")};
  String.prototype.quote=function(){var a,b,c=this.length,d='"';for(b=0;b<c;b+=1)if(a=this.charAt(b)," "<=a){if("\\"===a||'"'===a)d+="\\";d+=a}else switch(a){case "\b":d+="\\b";break;case "\f":d+="\\f";break;case "\n":d+="\\n";break;case "\r":d+="\\r";break;case "\t":d+="\\t";break;default:a=a.charCodeAt(),d+="\\u00"+Math.floor(a/16).toString(16)+(a%16).toString(16)}return d+'"'};String.prototype.supplant=function(a){return this.replace(/\{([^{}]*)\}/g,function(b,c){var d=a[c];return"string"===typeof d||
  "number"===typeof d?d:b})};String.prototype.replaceAll=function(a){var b=this,c;for(c in a)b=b.replace(RegExp(c,"g"),a[c]);return b};String.prototype.queryField=function(a,e){var c=this,d=["#!","#","?","!"],f=d.length,g,h,m;for(g=0;g<f;++g)if(h=d[g].length,m=this.substring(0,h),m==d[g]){previx=m;c=this.substring(h);break}if("object"===typeof a){var n=c;b.each(e,function(a,b){n=n.queryField(a,b)})}else{if(void 0===e)return b.parseQueryString(c)[a];null===e?(d=[],c=b.parseQueryString(c,d),delete c[a]):
  (d=[],c=b.parseQueryString(c,d),a in c||d.push(a),c[a]=e);return""+b.buildQueryString(c,d)}};String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});Function.prototype.bind||(Function.prototype.bind=function(a,e){return b.bind(this,a,e)});Array.prototype.indexOf||(Array.prototype.indexOf=function(a){if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;0<arguments.length&&(d=Number(arguments[1]),d!==d?
  d=0:0!==d&&(d!==window.Infinity&&d!==-window.Infinity)&&(d=(0<d||-1)*Math.floor(Math.abs(d))));if(d>=c)return-1;for(d=0<=d?d:Math.max(c-Math.abs(d),0);d<c;d++)if(d in b&&b[d]===a)return d;return-1});Date.now||(Date.now=function(){return(new Date).getTime()});var t={},C={},B={},L=[];b.Socket=function(){};b.Socket.get=function(a,b){if(void 0===a)return t;"/"!==b[0]&&(b="/"+b);return t[a]&&t[a][b]};b.Socket.connect=function(a,b,c){"function"===typeof b?(c=b,b=""):b?"/"!==b[0]&&(b="/"+b):b="";t[a]||(t[a]=
  {});t[a][b]||(t[a][b]={cback:c});ea(a,b,c)};b.Socket.prototype.disconnect=function(){this.url?C[this.url]?C[url].disconnect():console.warn("Q.Socket.prototype.disconnect: Attempt to disconnect nonexistent socket: ",url):console.warn("Q.Socket.prototype.disconnect: Attempt to disconnect socket with empty url")};b.Socket.disconnectAll=function(){for(var a in C)C[a].disconnect()};b.Socket.renewAll=function(){var a,b;for(a in t)for(b in t[a])t[a][b].namespace?t[a][b].namespace.socket.connected||t[a][b].namespace.socket.reconnect():
  ea(a,b,t[a][b].cback)};b.Socket.destroyAll=function(){b.Socket.disconnectAll();setTimeout(function(){for(var a=0;a<L.length;a++)L[a]();L=[];C={};t={};window.io=void 0},500)};b.Socket.onEvent=function(a,e,c){a||(a="");e||(e="");c||(c="");"/"!==e[0]&&(e="/"+e);B[a]||(B[a]={});B[a][e]||(B[a][e]={});if(!B[a][e][c]){B[a][e][c]=new b.Event;var d=b.Socket.get(a,e);if(d)d.namespace.on(c,function(a){b.handle(handler,a)})}return B[a][e][c]};b.Socket.prototype.onEvent=function(a){return b.Socket.onEvent(this.url,
  this.ns,a)};b.Socket.onConnect=new b.Event;b.Cache=function(a){a=a||{};this.localStorage=!!a.localStorage;this.sessionStorage=!!a.sessionStorage;this.name=a.name;this.data={};this.special={};if(a.localStorage)this.localStorage=!0;else if(a.sessionStorage)this.sessionStorage=!0;else{this.documentStorage=!0;var b,c,d=0;b=c=null}this.max=a.max||100;this.earliest=function(a){if(void 0===a){if(this.documentStorage)return b;a=D(this,"earliest",!0);return void 0===a?null:a}this.documentStorage?b=a:E(this,
  "earliest",a,!0)};this.latest=function(a){if(void 0===a){if(this.documentStorage)return c;a=D(this,"latest",!0);return void 0===a?null:a}this.documentStorage?c=a:E(this,"latest",a,!0)};this.count=function(a){if(void 0===a)return this.documentStorage?d:D(this,"count",!0)||0;this.documentStorage?d=a:E(this,"count",a,!0)}};b.Cache.prototype.set=function(a,b,c,d,f){var g,h;"string"!==typeof a&&(a=JSON.stringify(a));f&&f.dontTouch||(g=this.get(a),g||(h=this.count()+1,this.count(h)));b={cbpos:b,subject:c,
  params:d,prev:f&&f.prev?f.prev:g?g.prev:this.latest(),next:f&&f.next?f.next:g?g.next:null};E(this,a,b);if(!g||!f||!f.dontTouch){if(f=D(this,b.prev))f.next=a,E(this,b.prev,f);this.latest(a);1===h&&this.earliest(a)}h>this.max&&this.remove(this.earliest());return g?!0:!1};b.Cache.prototype.get=function(a,b){var c,d;"string"!==typeof a&&(a=JSON.stringify(a));if(c=D(this,a)){if(!(b&&b.dontTouch||this.latest()===a)){this.earliest()==a&&this.earliest(this.next);ga(this,c);c.prev=this.latest();c.next=null;
  E(this,a,c);if(d=D(this,c.prev))d.next=a,E(this,c.prev,d);this.latest(a)}return c}};b.Cache.prototype.remove=function(a){"string"!==typeof a&&(a=JSON.stringify(a));var b,c;b=this.get(a,!0);if(!b)return!1;c=this.count()-1;this.count(c);this.latest()===a&&this.latest(b.prev);ga(this,b);fa(this,a);return!0};b.Cache.prototype.clear=function(){if(this.documentStorage)this.special={},this.data={};else for(var a=this.earliest(),b,c;a;){c=D(this,a);if(void 0===c)break;b=a;a=c.next;fa(this,b)}};b.Cache.document=
  function(a){b.Cache.document.caches[a]||(b.Cache.document.caches[a]=new b.Cache({name:a}));return b.Cache.document.caches[a]};b.Cache.local=function(a){b.Cache.local.caches[a]||(b.Cache.local.caches[a]=new b.Cache({name:a,localStorage:!0}));return b.Cache.local.caches[a]};b.Cache.session=function(a){b.Cache.session.caches[a]||(b.Cache.session.caches[a]=new b.Cache({name:a,sessionStorage:!0}));return b.Cache.session.caches[a]};b.Cache.document.caches={};b.Cache.local.caches={};b.Cache.session.caches=
  {};b.Animation=function(a,e,c,d){e||(e=1E3);"string"==typeof c&&(c=b.Animation.ease[c]);"function"!==typeof c&&(c=b.Animation.ease.smooth);var f=1E3/b.Animation.fps,g=e/f,h,m=this;m.fraction=0;this.play=function(){h=setInterval(function(){m.fraction>=g?(clearInterval(h),a(1,c(1),d)):(a(m.fraction/g,c(m.fraction/g),d),++m.fraction)},f);return this};this.pause=function(){h&&clearInterval(h);return this};this.rewind=function(){this.pause();this.fraction=0;return this}};b.Animation.play=function(a,e,
  c,d){return(new b.Animation(a,e,c,d)).play()};b.Animation.fps=50;b.Animation.ease={linear:function(a){return a},bounce:function(a){return Math.sin(1.2*Math.PI*(a-0.5))/1.7+0.5},smooth:function(a){return Math.sin(Math.PI*(a-0.5))/2+0.5},inOutQuintic:function(a){var b=a*a;a*=b;return 6*a*b+-15*b*b+10*a}};b.jQueryPluginPlugin=function(){window.jQuery&&!window.jQuery.fn.plugin&&(window.jQuery.fn.plugin=function(a,e,c){var d;switch(b.typeOf(e)){case "array":d=e;break;case "string":d=Array.prototype.slice.call(arguments,
  1);break;default:d=[e]}var f=a.replace(RegExp("[./]","g"),"_"),g=window.jQuery.fn[f];if(g)g.apply(this,d),b.handle(c,this,d);else{var h=this;window.jQuery.fn.plugin.load(a,function(){var e=window.jQuery.fn[f];if(!e)throw Error("jQuery.fn.plugin: "+a+" not defined");e.apply(h,d);b.handle(c,h,d)})}return this},window.jQuery.fn.plugin.load=function(a,e){var c;"string"===typeof a?c=window.jQuery.fn.plugin[a]||"plugins/jQuery/"+a+".js":b.each(a,function(b,e){window.jQuery.fn.plugin[a]&&c.push("plugins/jQuery/"+
  a+".js")});b.addScript(c,function(){b.handle(e)})},window.jQuery.fn.state=function(a){var b=jQuery(this).data(a+" state");b||jQuery(this).data(a+" state",b={});return b},window.jQuery.fn.activate=function(a){jQuery(this).each(function(e,c){if(!jQuery(c).closest("html").length)throw Error("jQuery.fn.activate: element to activate must be in the DOM");b.activate(c,a,a&&a.callback)})})};b.jQueryPluginPlugin();b.beforeUnload=function(a){window.onbeforeunload=function(b){if(a){if(b=b||window.event)b.returnValue=
  a;return a}}};b.Interval={collection:{},set:function(a,e,c){if("function"!=typeof a)throw Error("Q.Interval.set: 'callback' must be a function");if("number"!=typeof e||0>e)throw Error("Q.Interval.set: 'interval' must be a positive number");if(void 0===c)b.Interval.increment||(b.Interval.increment=0),c="interval_"+(b.Interval.increment-1),b.Interval.increment++;else if(c in b.Interval.collection)return b.Interval.collection[c].id;var d=setInterval(a,e);b.Interval.collection[c]={id:d,callback:a,interval:e,
  running:!0};return d},exists:function(a){return a in b.Interval.collection},pause:function(a){var e=b.Interval.collection;if("string"==typeof a)if(a in e)clearInterval(e[a].id),e[a].running=!1;else throw Error("Q.Interval.set: Interval with key '"+a+"' doesn't exist");else{for(var c in e)if(a==e[c].id){clearInterval(e[c].id);e[a].running=!1;return}throw Error("Q.Interval.set: Interval with id "+a+" doesn't exist");}},resume:function(a){var e=b.Interval.collection;if("string"==typeof a)if(a in e){if(a=
  e[a],!a.running)return a.id=setInterval(a.callback,a.interval),a.running=!0,a.id}else throw Error("Q.Interval.set: Interval with key '"+a+"' doesn't exist");else{for(var c in e)if(a==e[c].id)return a=e[a],a.running||(a.id=setInterval(a.callback,a.interval),a.running=!0),a.id;throw Error("Q.Interval.set: Interval with id "+a+" doesn't exist");}},clear:function(a){var e=b.Interval.collection;if("string"==typeof a)if(a in e)clearInterval(e[a].id),delete e[a];else throw Error("Q.Interval.set: Interval with key '"+
  a+"' doesn't exist");else{for(var c in e)if(a==e[c].id){clearInterval(e[c].id);delete e[c];break}throw Error("Q.Interval.set: Interval with id "+a+" doesn't exist");}},pauseAll:function(){var a=b.Interval.collection,e;for(e in a)clearInterval(a[e].id),a[e].running=!1},resumeAll:function(){var a=b.Interval.collection,e;for(e in a){var c=a[e];c.running||(c.id=setInterval(c.callback,c.interval),c.running=!0)}},clearAll:function(){var a=b.Interval.collection,e;for(e in a)clearInterval(a[e].id);b.Interval.collection=
  {}}};b.Browser={detect:function(){var a=this.searchData(this.dataBrowser).identity||"An unknown browser",b=(this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version").toString(),c=b.indexOf(".");mainVersion=b.substring(0,-1!=c?c:b.length);var b=this.searchData(this.dataOS),c=b.identity||"an unknown OS",d="",f=navigator.userAgent.toLowerCase();-1!=f.indexOf("webkit")?d="webkit":-1!=f.indexOf("gecko")?d="gecko":-1!=f.indexOf("presto")&&(d="presto");f=/(.*)QWebView(.*)/.test(navigator.userAgent)||
  /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);return{name:a.toLowerCase(),mainVersion:mainVersion,OS:c.toLowerCase(),engine:d,device:b.device,isWebView:f}},searchData:function(a){for(var b=0;b<a.length;b++){var c=a[b].string;this.versionSearchString=a[b].versionSearch||a[b].identity;if(c&&-1!=navigator.userAgent.indexOf(a[b].subString))return a[b]}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(-1!=b)return parseFloat(a.substring(b+this.versionSearchString.length+
  1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera",versionSearch:"Version"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},
  {string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.userAgent,subString:"iPhone",identity:"iOS",device:"iPhone"},{string:navigator.userAgent,
  subString:"iPod",identity:"iOS",device:"iPod"},{string:navigator.userAgent,subString:"iPad",identity:"iOS",device:"iPad"},{string:navigator.userAgent,subString:"Android",identity:"Android"},{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}],getScrollbarWidth:function(){if(b.Browser.scrollbarWidth)return b.Browser.scrollbarWidth;var a=document.createElement("p");a.style.width=
  "100%";a.style.height="200px";var e=document.createElement("div");b.each({position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"},function(a,b){e.style[a]=b});e.appendChild(a);document.body.appendChild(e);var c=parseInt(a.offsetWidth);e.style.overflow="scroll";a=parseInt(a.offsetWidth);c==a&&(a=e.clientWidth);document.body.removeChild(e);b.Browser.scrollbarWidth=c-a}};var y=b.Browser.detect();b.info={isTouchscreen:navigator.userAgent.match(RegExp("android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)/|plucker|pocket|psp|symbian|treo|up.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino",
  "i"))||navigator.userAgent.substr(0,4).match("1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|/(k|l|u)|50|54|e-|e/|-[a-w])|libw|lynx|m1-w|m3ga|m50/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(-|2|g)|yas-|your|zeto|zte-",
  "i")?!0:!1,isTablet:navigator.userAgent.match("tablet|ipad","i")||navigator.userAgent.match("android","i")&&!navigator.userAgent.match("mobile","i")?!0:!1,platform:y.OS};b.info.isMobile=b.info.isTouchscreen&&!b.info.isTablet;b.info.formFactor=b.info.isMobile?"mobile":b.info.isTablet?"tablet":"desktop";b.Pointer={start:b.info.isTouchscreen?"touchstart":"mousedown",move:b.info.isTouchscreen?"touchmove":"mousemove",end:b.info.isTouchscreen?"touchend":"mouseup",click:b.info.isTouchscreen?"touchend":"click",
  window:!0,getX:function(a){a=a.originalEvent.touches?a.originalEvent.touches[0]:a;return window?a.clientX:a.pageX},getY:function(a){a=a.originalEvent.touches?a.originalEvent.touches[0]:a;return window?a.clientY:a.pageY},getDX:function(a){a=a.originalEvent.changedTouches?a.originalEvent.changedTouches[0]:a;return window?a.clientX:a.pageX},getDY:function(a){a=a.originalEvent.changedTouches?a.originalEvent.changedTouches[0]:a;return window?a.clientY:a.pageY}};window.console||(y=function(){},window.console=
  {debug:y,dir:y,error:y,group:y,groupCollapsed:y,groupEnd:y,info:y,log:y,time:y,timeEnd:y,trace:y,warn:y});b.onInit=new b.Event;b.onLoad=new b.Event;b.onUnload=new b.Event(function(){console.log("Leaving page "+window.location.href)},"Q");var U={},V={},W={},X={},Y={};b.onPageLoad=function(a){U[a]||(U[a]=new b.Event);return U[a]};b.onPageActivate=function(a){Y[a]||(Y[a]=new b.Event);return Y[a]};b.onPageUnload=function(a){V[a]||(V[a]=new b.Event);return V[a]};b.beforePageLoad=function(a){W[a]||(W[a]=
  new b.Event);return W[a]};b.beforePageUnload=function(a){X[a]||(X[a]=new b.Event);return X[a]};b.onHashChange=new b.Event;b.onPopState=new b.Event;b.onOnline=new b.Event(function(){R=!0},"Q");b.onOffline=new b.Event(function(){R=!1},"Q");b.beforeActivate=new b.Event;b.onActivate=new b.Event;b.onReady=new b.Event;b.onJQuery=new b.Event;b.addEventListener(window,"load",b.onLoad.handle);b.onInit.add(function(){A.currentUrl=window.location.href.split("#")[0].substr(b.info.baseUrl.length+1);window.history.pushState?
  b.onPopState.set(ia,"Q.loadUrl"):b.onHashChange.set(A,"Q.loadUrl");b.onOnline.set(b.Socket.renewAll,"Q.Socket")},"Q");b.onJQuery.add(function(a){b.Tool.constructors["Q/inplace"]="plugins/Q/js/tools/inplace.js";b.Tool.constructors["Q/tabs"]="plugins/Q/js/tools/tabs.js";b.Tool.constructors["Q/form"]="plugins/Q/js/tools/form.js";b.Tool.constructors["Q/panel"]="plugins/Q/js/tools/panel.js";b.Tool.constructors["Q/ticker"]="plugins/Q/js/tools/ticker.js";b.Tool.constructors["Q/timestamp"]="plugins/Q/js/tools/timestamp.js";
  b.Tool.constructors["Q/bookmarklet"]="plugins/js/Q/tools/bookmarklet.js";a.fn.plugin["Q/placeholders"]="plugins/Q/js/fn/placeholders.js";a.fn.plugin["Q/autogrow"]="plugins/Q/js/fn/autogrow.js";a.fn.plugin["Q/clickable"]="plugins/Q/js/fn/clickable.js";a.fn.plugin["Q/columns"]="plugins/Q/js/fn/columns.js";a.fn.plugin["Q/dialog"]="plugins/Q/js/fn/dialog.js";a.fn.plugin["Q/flip"]="plugins/Q/js/fn/flip.js";a.fn.plugin["Q/gallery"]="plugins/Q/js/fn/gallery.js";a.fn.plugin["Q/zoomer"]="plugins/Q/js/fn/zoomer.js";
  a.fn.plugin["Q/listing"]="plugins/Q/js/fn/listing.js";a.fn.plugin["Q/hautoscroll"]="plugins/Q/js/fn/hautoscroll.js";a.fn.plugin["Q/imagepicker"]="plugins/Q/js/fn/imagepicker.js";a.fn.plugin["Q/actions"]="plugins/Q/js/fn/actions.js";a.fn.plugin["Q/clickfocus"]="plugins/Q/js/fn/clickfocus.js";a.fn.plugin["Q/contextual"]="plugins/Q/js/fn/contextual.js";a.fn.plugin["Q/scrollIndicators"]="plugins/Q/js/fn/scrollIndicators.js";a.fn.plugin["Q/iScroll"]="plugins/Q/js/fn/iScroll.js";a.fn.plugin["Q/scroller"]=
  "plugins/Q/js/fn/scroller.js";a.fn.plugin["Q/touchscroll"]="plugins/Q/js/fn/touchscroll.js";a.fn.plugin["Q/scrollbarsAutoHide"]="plugins/Q/js/fn/scrollbarsAutoHide.js";b.onLoad.add(function(){a.fn.plugin.load("Q/clickfocus");a.fn.plugin.load("Q/contextual");a.fn.plugin.load("Q/scrollIndicators");a.fn.plugin.load("Q/iScroll");a.fn.plugin.load("Q/scroller");a.fn.plugin.load("Q/touchscroll")});a&&(a.tools&&a.tools.validator&&a.tools.validator.conf)&&(a.tools.validator.conf.formEvent=null)},"Q");b.loadUrl.options=
  {quiet:!1,onLoadStart:new b.Event,onLoadEnd:new b.Event,onActivate:new b.Event};b.jsonRequest.options={duplicate:!0,quiet:!0,handleRedirects:function(a){b.handle(a,{target:"_self",loadUsingAjax:!1})},onLoadStart:new b.Event,onShowCancel:new b.Event,onLoadEnd:new b.Event};b.activate.onConstruct=new b.Event(function(){ja.apply(this,arguments)},"Q.Tool");b.activate.onInit=new b.Event(function(){ka.apply(this,arguments)},"Q.Tool");"undefined"!==typeof module?module.exports=b:window.Q=b}();