//cached @ 2024-02-15 17:26:58
/*loaded from file 2024-02-15 17:26:58*/if(typeof(console) === 'undefined'){var console ={};console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = function(){}}
/*File: js/onflyjs.js*/

/*File: js/5.2.js*/

/*File: js/jquery-3.7.0.min.js*/
/*! jQuery v3.7.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.0",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i)return e.textContent;if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=ce.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},R=function(){V()},M=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&z(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function X(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&M(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function U(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function z(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",R),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:X(!1),disabled:X(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:U(function(){return[0]}),last:U(function(e,t){return[t-1]}),eq:U(function(e,t,n){return[n<0?n+t:n]}),even:U(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:U(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:U(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:U(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&z(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&z(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var R=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)R(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},M=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(M,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,X=new B,U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,z=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:U.test(i)?JSON.parse(i):i)}catch(e){}X.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return X.hasData(e)||_.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=X.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){X.set(this,n)}):R(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=X.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){X.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Me(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);X.hasData(e)&&(o=X.access(e),a=ce.extend({},o),X.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Re,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return R(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return R(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ue=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},ze=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=Xe.test(t),u=e.style;return(n=n||Ue(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Ue(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=Xe.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return Xe.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):ze(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Ue(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return R(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ue(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return R(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return R(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Rt=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},Xt="*/".concat("*"),Ut=C.createElement("a");function zt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Ut.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:zt(Bt),ajaxTransport:zt(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Ut.protocol+"//"+Ut.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Mt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Rt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Xt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return R(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
/*File: js/jquery.compatibility.js*/
if(typeof jQuery.fn.live=="undefined"||!(jQuery.isFunction(jQuery.fn.live))){jQuery.fn.extend({live:function(a,b){console.log(this,a,b);if(this.selector){jQuery(document).on(a,this.selector,b)}else{console.trace()}}})}jQuery.uaMatch=function(b){b=b.toLowerCase();var a=/(chrome)[ \/]([\w.]+)/.exec(b)||/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||b.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(b)||[];return{browser:a[1]||"",version:a[2]||"0"}};if(!jQuery.browser){var matched=jQuery.uaMatch(navigator.userAgent),browser={};if(matched.browser){browser[matched.browser]=true;browser.version=matched.version}if(browser.chrome){browser.webkit=true}else{if(browser.webkit){browser.safari=true}}jQuery.browser=browser}if(typeof jQuery.fn.curCSS=="undefined"||!(jQuery.isFunction(jQuery.fn.curCSS))){jQuery.fn.extend({curCSS:function(a,b){if(this.selector){jQuery(this.selector).css(a,b)}}})}var oldOffset=jQuery.fn.offset;jQuery.fn.offset=function(){var a=this[0];if(a&&(!a.nodeType||!a.getBoundingClientRect)){return arguments.length?this:undefined}return oldOffset.apply(this,arguments)};
/*File: js/jquery.autocomplete.js*/
jQuery.autocomplete=function(d,u){var p=this;var y=$(d).attr("autocomplete","off");this.input=y;this.options=u;this.autoFill=w;if(u.inputClass){y.addClass(u.inputClass)}var q=document.createElement("div");var h=$(q);h.hide().addClass(u.resultsClass).css("position","absolute");if(u.width>0){h.css("width",u.width)}$("body").append(q);d.autocompleter=p;var H=null;var x="";var I=-1;var j={};var A=false;var l=true;var a=null;function m(){j={};j.data={};j.length=0}m();if(u.data!=null){var s="",N={},n=[];if(typeof u.url!="string"){u.cacheLength=1}for(var L=0;L<u.data.length;L++){n=((typeof u.data[L]=="string")?[u.data[L]]:u.data[L]);if(n[0].length>0){s=n[0].substring(0,1).toLowerCase();if(!N[s]){N[s]=[]}N[s].push(n)}}for(var K in N){u.cacheLength++;e(K,N[K])}}y.keydown(function(i){a=i.keyCode;switch(i.keyCode){case 38:i.preventDefault();D(-1);break;case 40:i.preventDefault();D(1);break;case 9:case 13:if(F()){y.get(0).blur();i.preventDefault()}break;default:I=-1;if(H){clearTimeout(H)}if(!u.delay){setTimeout(t,10)}else{H=setTimeout(function(){t()},u.delay)}break}}).focus(function(){l=true;b(0,200)}).click(function(){$(this).attr("value","")}).blur(function(){l=false;c()});v();function t(){if((a>8&&a<32)){return h.hide()}var i=y.val();if(i==x){return}x=i;if(i.length>=u.minChars){y.addClass(u.loadingClass);C(i)}else{y.removeClass(u.loadingClass);h.hide()}}function D(k){var i=$("li",q);if(!i){return}I+=k;if(I<0){I=0}else{if(I>=i.size()){I=i.size()-1}}i.removeClass("ac_over");$(i[I]).addClass("ac_over")}function F(){var i=$("li.ac_over",q)[0];if(!i){var k=$("li",q);if(u.selectOnly){if(k.length==1){i=k[0]}}else{if(u.selectFirst){i=k[0]}}}if(i){r(i);return true}else{return false}}function r(i){if(!i){i=document.createElement("li");i.extra=[];i.selectValue=""}var k=$.trim(i.selectValue?i.selectValue:i.innerHTML);d.lastSelected=k;x=k;h.html("");y.val(k);y.focus();v();if(u.onItemSelect){setTimeout(function(){u.onItemSelect(i,p)},1)}}function b(P,k){var O=y.get(0);if(O.createTextRange){var i=O.createTextRange();i.collapse(true);i.moveStart("character",P);i.moveEnd("character",k);i.select()}else{if(O.setSelectionRange){O.setSelectionRange(P,k)}else{if(O.selectionStart){O.selectionStart=P;O.selectionEnd=k}}}O.focus()}function w(i){y.val(y.val()+i.substring(x.length));b(x.length,i.length)}function E(){var k=z(d);var i=(u.width>0)?u.width:y.width();h.css({width:parseInt(i)+"px",top:(k.y+d.offsetHeight)+"px",left:k.x+"px"}).show()}function c(){if(H){clearTimeout(H)}H=setTimeout(v,200)}function v(){if(H){clearTimeout(H)}y.removeClass(u.loadingClass);if(h.is(":visible")){h.hide()}if(u.mustMatch){var i=y.val();if(i!=d.lastSelected){if(u.onNoMatch!==undefined){u.onNoMatch(i,p)}else{r(null)}}}}function g(k,i){if(i){y.removeClass(u.loadingClass);q.innerHTML="";if(!l||i.length==0){return v()}if($.browser.msie){h.append(document.createElement("iframe"))}q.appendChild(J(i));if(u.autoFill&&(y.val().toLowerCase()==k.toLowerCase())){w(i[0][0])}E()}else{v()}}function f(Q){if(!Q){return null}var k=[];var P=Q.split(u.lineSeparator);for(var O=0;O<P.length;O++){var R=$.trim(P[O]);if(R){k[k.length]=R.split(u.cellSeparator)}}return k}function J(T){var S=document.createElement("ul");var Q=T.length;if((u.maxItemsToShow>0)&&(u.maxItemsToShow<Q)){Q=u.maxItemsToShow}for(var R=0;R<Q;R++){var U=T[R];if(!U){continue}var O=document.createElement("li");if(u.formatItem){O.innerHTML=u.formatItem(U,R,Q);O.selectValue=U[0]}else{O.innerHTML=U[0];O.selectValue=U[0]}var k=null;if(U.length>1){k=[];for(var P=1;P<U.length;P++){k[k.length]=U[P]}}O.extra=k;S.appendChild(O);$(O).hover(function(){$("li",S).removeClass("ac_over");$(this).addClass("ac_over");I=$("li",S).indexOf($(this).get(0))},function(){$(this).removeClass("ac_over")}).click(function(i){i.preventDefault();i.stopPropagation();r(this)})}return S}function C(k){if(!u.matchCase){k=k.toLowerCase()}var i=u.cacheLength?M(k):null;if(i){g(k,i)}else{if((typeof u.url=="string")&&(u.url.length>0)){$.get(o(k),function(O){O=f(O);e(k,O);g(k,O)})}else{y.removeClass(u.loadingClass)}}}function o(P){var k=u.url+"/"+encodeURI(P);for(var O in u.extraParams){k+="&"+O+"="+encodeURI(u.extraParams[O])}return k}function M(T){if(!T){return null}if(j.data[T]){return j.data[T]}if(T.indexOf(",")==-1){return null}if(u.matchSubset){for(var R=T.length-1;R>=u.minChars;R--){var O=T.substr(0,R);var U=j.data[O];if(U){var S=[];for(var P=0;P<U.length;P++){var k=U[P];var Q=k[0];if(B(Q,T)){S[S.length]=k}}return S}}}return null}function B(P,O){O=O.replace(new RegExp("^[ ]+","g"),"");if(!u.matchCase){P=P.toLowerCase()}var k=P.indexOf(O);if(k==-1){return false}return k==0||u.matchContains}this.flushCache=function(){m()};this.setExtraParams=function(i){u.extraParams=i};this.findValue=function(){var k=y.val();if(!u.matchCase){k=k.toLowerCase()}var i=u.cacheLength?M(k):null;if(i){G(k,i)}else{if((typeof u.url=="string")&&(u.url.length>0)){$.get(o(k),function(O){O=f(O);e(k,O);G(k,O)})}else{G(k,null)}}return i};function G(T,S){if(S){y.removeClass(u.loadingClass)}var Q=(S)?S.length:0;var O=null;for(var R=0;R<Q;R++){var U=S[R];if(U[0].toLowerCase()==T.toLowerCase()){O=document.createElement("li");if(u.formatItem){O.innerHTML=u.formatItem(U,R,Q);O.selectValue=U[0]}else{O.innerHTML=U[0];O.selectValue=U[0]}var k=null;if(U.length>1){k=[];for(var P=1;P<U.length;P++){k[k.length]=U[P]}}O.extra=k}}if(u.onFindValue){setTimeout(function(){u.onFindValue(O,p)},1)}}function e(k,i){if(!i||!k||!u.cacheLength){return}if(!j.length||j.length>u.cacheLength){m();j.length++}else{if(!j[k]){j.length++}}j.data[k]=i}function z(k){var O=k.offsetLeft||0;var i=k.offsetTop||0;while(k=k.offsetParent){O+=k.offsetLeft;i+=k.offsetTop}return{x:O,y:i}}};jQuery.fn.autocomplete=function(b,a,c){a=a||{};a.url=b;a.data=((typeof c=="object")&&(c.constructor==Array))?c:null;a.inputClass=a.inputClass||"ac_input";a.resultsClass=a.resultsClass||"ac_results";a.lineSeparator=a.lineSeparator||"--";a.cellSeparator=a.cellSeparator||"|";a.minChars=a.minChars||1;a.delay=a.delay||400;a.matchCase=a.matchCase||0;a.matchSubset=a.matchSubset||1;a.matchContains=a.matchContains||0;a.cacheLength=a.cacheLength||1;a.mustMatch=a.mustMatch||0;a.extraParams=a.extraParams||{};a.loadingClass=a.loadingClass||"ac_loading";a.selectFirst=a.selectFirst||false;a.selectOnly=a.selectOnly||false;a.maxItemsToShow=a.maxItemsToShow||-1;a.autoFill=a.autoFill||false;a.width=parseInt(a.width,10)||0;this.each(function(){var d=this;new jQuery.autocomplete(d,a)});return this};jQuery.fn.autocompleteArray=function(b,a){return this.autocomplete(null,a,b)};jQuery.fn.indexOf=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return a}}return -1};
/*File: js/attached_events_pre.js*/
_attached_events={};_detached_events={};_lazy_loaded_fast=false;if(typeof detachEvents!="function"){detachEvents=function(a,b){if(typeof _detached_events=="undefined"){_detached_events={}}_detached_events[a]=b}}if(typeof attachEvents!="function"){attachEvents=function(a,b){if(typeof _attached_events=="undefined"){_attached_events={}}_attached_events[a]=b}}if(typeof attachedEvents!="function"){attachedEvents=function(a){for(i in _detached_events){if(_attached_event_cancelled==a&&a!=null){return}_detached_events[i]()}for(i in _attached_events){if(_attached_event_cancelled==a&&a!=null){return}_attached_events[i]()}}}function lazyloadnow(){$(".lazyBG, .lazy, .lazys").css("background-repeat","no-repeat");if(_lazy_loaded_fast){$(".lazyBG, .lazy, .lazys").lazy({visible:false,onError:lazyfallback})}else{$(".lazyBG, .lazy:not(iframe), .lazys").lazy({visible:false,onError:lazyfallback})}var a=$(".lazys").lazy({chainable:false});a.force($(".lazys"));var a=$(".lazys").lazy({chainable:false});a.force($(".lazys"));setTimeout(function(){$(".lazyBG").removeClass("lazyBG");$(".lazys").removeClass("lazys")},50)}function lazyfallback(b){var a=$(b);var c=a.data("src-fallback");if(!c){return}a.css("background-image","url("+c+")");a.css("background-repeat","no-repeat")}function lazyload(d){if(typeof(d)==="undefined"){d=0}if(d>10){return}iframe_delay=1000;if($.lazy!="undefined"){var b=1000,a=0;if(window.innerWidth<800){a=3500}else{iframe_delay+=1000}var c=0;if($(document).attr("lazy")===undefined){$(document).attr("lazy",d);c=d}else{c=$(document).attr("lazy");lazyscroll=$(document).attr("lazyscroll");if(c!="scroll"&&c!="scrolled"){$(document).on("scroll",function(){c=$(document).attr("lazy");if(c!="scrolled"){$(document).attr("lazy","scrolled");lazyloadnow()}});$(document).attr("lazy","scroll");$(document).attr("lazyscroll",Date.now()+b+a)}else{if(lazyscroll<Date.now()){lazyloadnow();if(d<10){setTimeout(function(){lazyload(10)},600)}return}}}$(".lazy").css("background-repeat","no-repeat");setTimeout(function(){_lazy_loaded_fast=true},b+a+iframe_delay);$("iframe.lazy").lazy({delay:b+a+iframe_delay,onError:lazyfallback});setTimeout(function(){$(".lazy:not(iframe)").lazy({visibleOnly:true,onError:lazyfallback})},10);setTimeout(function(){lazyloadnow()},a*2+b);if(d<10){setTimeout(function(){lazyload(10)},500)}}else{setTimeout(function(){lazyload(d+1)},500)}}attachEvents("lazyload",lazyload);
/*File: js/jquery.cookie.js*/
/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports==="object"){a(require("jquery"))}else{a(jQuery)}}}(function(f){var a=/\+/g;function d(i){return b.raw?i:encodeURIComponent(i)}function g(i){return b.raw?i:decodeURIComponent(i)}function h(i){return d(b.json?JSON.stringify(i):String(i))}function c(i){if(i.indexOf('"')===0){i=i.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{i=decodeURIComponent(i.replace(a," "));return b.json?JSON.parse(i):i}catch(j){}}function e(j,i){var k=b.raw?j:c(j);return f.isFunction(i)?i(k):k}var b=f.cookie=function(q,p,v){if(p!==undefined&&!f.isFunction(p)){v=f.extend({},b.defaults,v);if(typeof v.expires==="number"){var r=v.expires,u=v.expires=new Date();u.setTime(+u+r*86400000)}return(document.cookie=[d(q),"=",h(p),v.expires?"; expires="+v.expires.toUTCString():"",v.path?"; path="+v.path:"",v.domain?"; domain="+v.domain:"",v.secure?"; secure":""].join(""))}var w=q?undefined:{};var s=document.cookie?document.cookie.split("; "):[];for(var o=0,m=s.length;o<m;o++){var n=s[o].split("=");var j=g(n.shift());var k=n.join("=");if(q&&q===j){w=e(k,p);break}if(!q&&(k=e(k))!==undefined){w[j]=k}}return w};b.defaults={};f.removeCookie=function(j,i){if(f.cookie(j)===undefined){return false}f.cookie(j,"",f.extend({},i,{expires:-1}));return !f.cookie(j)}}));
/*File: js/affiliates.js*/
if(typeof(banner_outputs)=="undefined"){banner_outputs={}}function outputBanner(a){console.log("outputBanner-aff");$.each(a,function(d){var b=$(a[d].tgt).attr("class");var e=a[d].tgt;$(".cmHead").empty();$(".cmHead").siblings().empty();var c=a[d].data;if(e==".cmHead"&&(template!="mobi"&&template!="bigmenu"&&template!="multi")){$(a[d].tgt).parent().replaceWith(c)}else{$(a[d].tgt).replaceWith(c)}})}function getAffiliateCookie(c){var a="";var e="";if($.cookie!==undefined&&$.cookie("tagrid")!==undefined){e=$.cookie("tagrid");if(e=="undefined"||e==null){e="";$.cookie("tagrid","")}}if($.cookie!==undefined&&$.cookie("GBTAPrezbotAffID")!==undefined){var a=$.cookie("GBTAPrezbotAffID");if(a!="ap"&&a!="gb"&&a!=""&&a!=null&&a!="undefined"&&a!="notset"){$.get("/en/contact/plug-contentcontactAffiliates",function(f){affContactData=$("<div>"+f+"</div>").find("#affContactResponsive").html();oldaffContactData=$("<div>"+f+"</div>").find("#affContactOld").html();if(affContactData){if($("div.freephone").length>0){$("div.freephone").replaceWith(affContactData)}else{if($("div.contact").length>0){$("div.contact").replaceWith(affContactData)}else{$("ul.contact li:eq(0)").empty().append(oldaffContactData)}}}})}if(a=="undefined"||a==null){a="";$.cookie("GBTAPrezbotAffID","")}var d=false;if($(".cmHead").length>0&&$(".norefresh .cmHead").length>0||$(".cmHead").length==0){d=true}if(!d){var b="/hack/output/banner/outputBanner/scripts";if(a!=""&&a!="ap"&&a!="gb"){b="/hack/output/banner/outputBanner/scripts_affID-"+a+"_tagrid-"+e}$.get(b,function(f){$("body").append(f);outputBanner(banner_outputs)})}return a}else{if(c==5){a="";$.cookie("GBTAPrezbotAffID","")}if(c<=5){setTimeout(function(){var f=getAffiliateCookie(c+1)},(c+1)*50)}else{return"notset"}}if(a=="undefined"||a==null){$.cookie("GBTAPrezbotAffID","");return""}if(a){return a}return null}var myAff="";myAff=getAffiliateCookie(0);function affiliateEvents(){if(myAff===null){setTimeout(affiliateEvents,100);return}if(myAff=="ap"||myAff=="gb"||myAff==""||myAff.toLowerCase()!=myAff){if(typeof(voucher_video_tag)!="undefined"&&$("#videowrap .img").length>0){var a=$("#videowrap").html();$("#videowrap").empty().append(voucher_video_tag);$("#videoimage .altImg").empty().append(a)}}$.each(banner_outputs,function(c){var b=$(banner_outputs[c].tgt).attr("class");if(b!=undefined&&b.split(" ").length==1){if(banner_outputs[c].tgt==".cmHead"){$(banner_outputs[c].tgt+":eq(0)").parent().replaceWith(banner_outputs[c].data)}else{$(banner_outputs[c].tgt+":eq(0)").replaceWith(banner_outputs[c].data)}}})}attachEvents("affiliateEvents",affiliateEvents);function rotateAlerts(b,a,c){if(typeof(socialAlerts)=="undefined"){fetchAlerts();return}if(noAlerts||!socialAlerts.length){return}if(alertScriptID!=c){return}if(a==0||a!=socialAlerts.length){a=socialAlerts.length;b=0}setTimeout(function(){makeAlert(socialAlerts[b]);rotateAlerts((b+1)%a,a,c)},3500)}function fetchAlerts(){params=[];$(".alerter").hide();socialAlerts=[];var a=true;if(typeof(oAct)!="undefined"&&oAct!="any"&&oAct!=""&&oAct!=0){params.push("oAct-"+oAct);a=false}if(typeof(oVenAct)!="undefined"&&oVenAct!="any"&&oVenAct!=""&&oVenAct!=0){params.push("oVenAct-"+oVenAct);a=false}if(typeof(oCat)!="undefined"&&a&&oCat!="any"&&oCat!=""&&oCat!=0){params.push("oCat-"+oCat)}if(typeof(oVenue)!="undefined"&&oVenue!="any"&&oVenue!=""&&oVenue!=0){params.push("oVenue-"+oVenue)}if(typeof(page)!="undefined"&&page!="any"&&page!=""&&page!=0){params.push("oPage-"+page)}if(typeof(noAlerts)=="undefined"){noAlerts=false}if(typeof(alertScriptID)=="undefined"){alertScriptID=0}var b="/hack/json/social_proof/social_proofs/"+params.join("_");if(typeof(alerter_website)!="undefined"){b=alterer_website+b}$.get(b,function(c){socialAlerts=c;alertScriptID++;rotateAlerts(0,0,alertScriptID)});return false}function makeAlert(b){if(typeof(b)=="undefined"){$(".social-popup").hide();return false}img="https://activitysearch.co.uk/images/"+b.icon;var a=['<div class="alerter">','<span class="img" style="background-image:url('+img+');"></span>','<span class="rw1">','<a class="rw2 voucherLink">','<span class="h3 h">',b.name,"</span>","<span>",b.statement,"</span>","</a>",'<span class="rw3">',b.timing,'<span> <a href="https://geronigo.com/en/network" target="_blank" rel="nofollow">Geronigo</a></span></span>',"</span>",'<a href="#" class="close h3 h">x</a>',"</div>"].join("");if(noAlerts){$(".social-popup").hide();return false}setTimeout(function(){$(".social-popup").show();$(".alerter").fadeOut(1000,function(){$(".alerter").replaceWith(a);$(".social-popup .close").off("click");$(".social-popup .close").on("click",function(){$(".alerter").remove();$(".social-popup").remove();socialAlerts=[];noAlerts=true;return false})})},4000)}if(brand!="The Big Shoot"){setTimeout(function(){rotateAlerts()},10000)};
/*File: js/gg_tracker.js*/
if(typeof(banner_loaded)=="undefined"){banner_loaded=false}function parseTrackingParams(){var d={};if(typeof(globals)=="object"){d=globals.track}var n=document.location.href;var b,m;if(typeof(URL)!=="undefined"){try{b=new URL(n)}catch(i){}}try{m=parseSBParams((b.pathname.split("/")).pop())}catch(i){m=parseSBParams((document.location.pathname.split("/")).pop())}var j,l,h,g,a,c;if(b!==undefined&&b.searchParams!==undefined){j=pickValid("affID",[b.searchParams.get("affID"),b.searchParams.get("affiliate_id"),b.searchParams.get("partnerID"),m.affID,m.partnerID]);c=pickValid("tagrid",[b.searchParams.get("tagrid"),m.tagrid]);l=pickValid("gclid",[b.searchParams.get("gclid"),m.gclid]);h=pickValid("fbad",[b.searchParams.get("fbad"),m.fbad]);g=pickValid("bingad",[b.searchParams.get("bingad"),m.bingad]);a=pickValid("adID",[b.searchParams.get("adID"),m.adID])}else{var k={};$(document.location.search.substr(1).split("&")).each(function(o,p){k[p.split("=")[0]]=p.split("=")[1]});j=pickValid("affID",[k.affID,k.partnerID,m.affID,m.partnerID]);c=pickValid("tagrid",[k.tagrid,m.tagrid]);l=pickValid("gclid",[k.gclid,m.gclid]);h=pickValid("fbad",[k.fbad,m.fbad]);g=pickValid("bingad",[k.bingad,m.bingad]);a=pickValid("adID",[k.adID,m.adID])}d.affID=j;d.tagrid=c;d.gclid=l;d.fbad=h;d.adID=a;d.bingad=g;if(typeof(globals)=="undefined"){globals={track:{}}}globals.track=d;setTracker();if($("body.templateApi").length>0){if(banner_loaded){return}banner_loaded=true;console.log("script check");var e=false;if($(".cmHead *").length>0&&$(".norefresh .cmHead").length>0){e=true}if($(".cmHead *").length==0){e=true}if(!e){console.log("script get");var f="/hack/output/banner/outputBanner/scripts";if(j!=""&&j!="ap"&&j!="gb"){f="/hack/output/banner/outputBanner/scripts_affID-"+j+"_tagrid-"+c}$.get(f,function(o){console.log("script runs");$("body").append(o);outputBanner(banner_outputs)})}}}function setTracker(){$(".affID").each(function(a,b){$(b).val(globals.track.affID)});$(".tagrid").each(function(a,b){$(b).val(globals.track.tagrid)});$(".adID").each(function(a,b){$(b).val(globals.track.adID)});$(".gclid").each(function(a,b){$(b).val(globals.track.gclid)});$(".fbad").each(function(a,b){$(b).val(globals.track.fbad)});$(".bingad").each(function(a,b){$(b).val(globals.track.bingad)})}function parseSBParams(d){var b=/([^\/_-]+)(-?)([^\/_-]+)/g;var a;var c={};while((a=b.exec(d))!==null){if(a.index===b.lastIndex){b.lastIndex++}if(a[2]=="-"){c[a[1]]=a[3]}}return c}function pickValid(a,b){var c=getTrackingCookiesData(a);for(var e in b){if(b[e]!==undefined&&b[e]!=null&&b[e]!=false){if(c.key!=""){_cookie_params={path:"/",expires:c.days,samesite:"strict"};if(location.protocol=="https:"){_cookie_params.secure=true}$.cookie(c.key,b[e],_cookie_params);return b[e]}}}if(a===undefined){return""}var d=$.cookie(c.key);if(d===undefined||d===null||d===false){return""}return d}function getTrackingCookiesData(a){var b="";var d=30;switch(a){case"gclid":b="gclid";d=14;break;case"affID":b="GBTAPrezbotAffID";d=30;break;case"tagrid":b="tagrid";d=30;break;case"adID":b="rezbotAdID";d=14;break;case"fbad":b="fbad";d=14;break;case"bingad":b="bingad";d=14;break}var c=$.cookie(b);return{key:b,days:d,data:c}}parseTrackingParams();
/*File: js/templateResponsive/template.js*/
if(!function(e){"use strict";e(window).on("load",function(){e(".pre-loader").length>0&&e(".pre-loader").fadeOut("slow"),e("body").removeClass("noscript"),setTimeout(function(){e("body").addClass("loaded")},50)})}(jQuery),$(window).on("scroll",function(e){$(window).scrollTop()}),$(window).scroll(function(){$(window).scrollTop()}),"undefined"==typeof subbrand&&(subbrand=""),void 0===e){var e={};e.log=e.error=e.info=e.debug=e.warn=e.trace=e.dir=e.dirxml=e.group=e.groupEnd=e.time=e.timeEnd=e.assert=e.profile=function(){}}function sbPopup(e,t){var n="",a=e;e.indexOf("pageVenue_")>=0&&(n="venue",a="/en/venue/"+(a=e.replace("pageVenue_","")).replace("_search-ajaxed","")),e.indexOf("pageActivity_")>=0&&(n="activity",a="/en/activity/"+(a=e.replace("pageActivity_","")).replace("_search-ajaxed","")),""!=n&&window.history.pushState(e+"*"+n,"",a);var o=$("body").attr("class");if("ajaxed"!=o&&"ajaxed2"!=o&&("780">=$(window).width()&&$("html,body").animate({scrollTop:$("body").offset().top},50),$("#content").before('<div id="ajax"></div>')),$("#ajax").html(""),$("body").append('<div class="loader"><span>Loading...</span></div>'),"780">=$(window).width()&&(0==navigator.appName.search("Explorer")||"undefined"==navigator.appName.search("Explorer"))&&scroll(0,0),"href"==t)$("#ajax").fadeIn().load(""+e,function(){$("#ajax h2.title").append('<a href="#" class="ajax-close AJAXCLOSEjs">x</a>'),$(".loader").remove()});else{var s=e.replace(/\:/g,"");-1==e.indexOf("_search-")&&"images"!=t&&(e+="_search-ajaxed"),"ggWindow"==t?$("#ajax").show().append('<div id="'+t+'" class="ajax-'+s+' closed" style="left:100%;"></div>'):$("#ajax").show().append('<div id="'+t+'" class="ajax-'+s+'"></div>'),"ggWindow"==t?$(".ajax-"+s).load("/en/index/plug-"+e,function(){$("body").addClass("ajaxed"),setTimeout(function(){$(".loader").remove(),setTimeout(function(){$(".ajax-"+s).prepend('<a href="#" class="ajax-close AJAXCLOSEjs"><span>&laquo; View All Venues</span></a>'),$(".ajax-"+s).removeClass("closed").animate({left:"0%"},150)},100)},200)}):$(".ajax-"+s).show().load("/en/index/plug-"+e,function(){$("body").addClass("ajaxed2"),"venueWindow"==t?"Escape This"==brand?$(".ajax-"+s+" .rooms .subhead").prepend('<a href="#" class="ajax-close AJAXCLOSEjs"><span>&laquo; Back</span></a>'):$(".ajax-"+s+" #head .s").prepend('<a href="#" class="ajax-close AJAXCLOSEjs"><span>&laquo; View All Venues</span></a>'):$(".ajax-"+s).prepend('<a href="#" class="ajax-close AJAXCLOSEjs"><span>&laquo; Back</span></a>'),$(".loader").remove()})}}!function(t,n){"use strict";function a(e){t.fn.cycle.debug&&o(e)}function o(){window.console&&e.log&&e.log("[cycle] "+Array.prototype.join.call(arguments," "))}function s(e,n,a){var o=t(e).data("cycle.opts");if(o){var s=!!e.cyclePause;s&&o.paused?o.paused(e,o,n,a):!s&&o.resumed&&o.resumed(e,o,n,a)}}function r(e,n){if(!t.support.opacity&&n.cleartype&&e.style.filter)try{e.style.removeAttribute("filter")}catch(a){}}function c(e,o,s,r){function d(){var t=0;o.timeout,o.timeout&&!o.continuous?(t=l(e[o.currSlide],e[o.nextSlide],o,r),"shuffle"==o.fx&&(t-=o.speedOut)):o.continuous&&p.cyclePause&&(t=10),t>0&&(p.cycleTimeout=setTimeout(function(){c(e,o,0,!o.backwards)},t))}var u,p=o.$cont[0],f=e[o.currSlide],h=e[o.nextSlide];if(s&&o.busy&&o.manualTrump&&(a("manualTrump in go(), stopping active transition"),t(e).stop(!0,!0),o.busy=0,clearTimeout(p.cycleTimeout)),o.busy){a("transition active, ignoring new tx request");return}if(p.cycleStop==o.stopCount&&(0!==p.cycleTimeout||s)){if(!s&&!p.cyclePause&&!o.bounce&&(o.autostop&&--o.countdown<=0||o.nowrap&&!o.random&&o.nextSlide<o.currSlide)){o.end&&o.end(o);return}var m=!1;if((s||!p.cyclePause)&&o.nextSlide!=o.currSlide){m=!0;var v=o.fx;f.cycleH=f.cycleH||t(f).height(),f.cycleW=f.cycleW||t(f).width(),h.cycleH=h.cycleH||t(h).height(),h.cycleW=h.cycleW||t(h).width(),o.multiFx&&(r&&(o.lastFx===n||++o.lastFx>=o.fxs.length)?o.lastFx=0:!r&&(o.lastFx===n||--o.lastFx<0)&&(o.lastFx=o.fxs.length-1),v=o.fxs[o.lastFx]),o.oneTimeFx&&(v=o.oneTimeFx,o.oneTimeFx=null),t.fn.cycle.resetState(o,v),o.before.length&&t.each(o.before,function(e,t){p.cycleStop==o.stopCount&&t.apply(h,[f,h,o,r])});var g=function(){o.busy=0,t.each(o.after,function(e,t){p.cycleStop==o.stopCount&&t.apply(h,[f,h,o,r])}),p.cycleStop||d()};a("tx firing("+v+"); currSlide: "+o.currSlide+"; nextSlide: "+o.nextSlide),o.busy=1,o.fxFn?o.fxFn(f,h,o,g,r,s&&o.fastOnEvent):t.isFunction(t.fn.cycle[o.fx])?t.fn.cycle[o.fx](f,h,o,g,r,s&&o.fastOnEvent):t.fn.cycle.custom(f,h,o,g,r,s&&o.fastOnEvent)}else d();(m||o.nextSlide==o.currSlide)&&(o.lastSlide=o.currSlide,o.random?(o.currSlide=o.nextSlide,++o.randomIndex==e.length&&(o.randomIndex=0,o.randomMap.sort(function(e,t){return Math.random()-.5})),o.nextSlide=o.randomMap[o.randomIndex],o.nextSlide==o.currSlide&&(o.nextSlide=o.currSlide==o.slideCount-1?0:o.currSlide+1)):o.backwards?(u=o.nextSlide-1<0)&&o.bounce?(o.backwards=!o.backwards,o.nextSlide=1,o.currSlide=0):(o.nextSlide=u?e.length-1:o.nextSlide-1,o.currSlide=u?0:o.nextSlide+1):(u=o.nextSlide+1==e.length)&&o.bounce?(o.backwards=!o.backwards,o.nextSlide=e.length-2,o.currSlide=e.length-1):(o.nextSlide=u?0:o.nextSlide+1,o.currSlide=u?e.length-1:o.nextSlide-1)),m&&o.pager&&o.updateActivePagerLink(o.pager,o.currSlide,o.activePagerClass)}}function l(e,t,n,o){if(n.timeoutFn){for(var s=n.timeoutFn.call(e,e,t,n,o);"none"!=n.fx&&s-n.speed<250;)s+=n.speed;if(a("calculated timeout: "+s+"; speed: "+n.speed),!1!==s)return s}return n.timeout}function d(e,n){var a=n?1:-1,o=e.elements,s=e.$cont[0],r=s.cycleTimeout;if(r&&(clearTimeout(r),s.cycleTimeout=0),e.random&&a<0)e.randomIndex--,-2==--e.randomIndex?e.randomIndex=o.length-2:-1==e.randomIndex&&(e.randomIndex=o.length-1),e.nextSlide=e.randomMap[e.randomIndex];else if(e.random)e.nextSlide=e.randomMap[e.randomIndex];else if(e.nextSlide=e.currSlide+a,e.nextSlide<0){if(e.nowrap)return!1;e.nextSlide=o.length-1}else if(e.nextSlide>=o.length){if(e.nowrap)return!1;e.nextSlide=0}var l=e.onPrevNextEvent||e.prevNextClick;return t.isFunction(l)&&l(a>0,e.nextSlide,o[e.nextSlide]),c(o,e,1,n),!1}function u(e){function n(e){return(e=parseInt(e,10).toString(16)).length<2?"0"+e:e}a("applying clearType background-color hack"),e.each(function(){t(this).css("background-color",function e(a){for(;a&&"html"!=a.nodeName.toLowerCase();a=a.parentNode){var o=t.css(a,"background-color");if(o&&o.indexOf("rgb")>=0){var s=o.match(/\d+/g);return"#"+n(s[0])+n(s[1])+n(s[2])}if(o&&"transparent"!=o)return o}return"#ffffff"}(this))})}t.expr[":"].paused=function(e){return e.cyclePause},t.fn.cycle=function(e,p){var f={s:this.selector,c:this.context};return 0===this.length&&"stop"!=e?!t.isReady&&f.s?(o("DOM not ready, queuing slideshow"),t(function(){t(f.s,f.c).cycle(e,p)}),this):(o("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=function e(a,r,l){function d(e,n,a){if(!e&&!0===n){var s=t(a).data("cycle.opts");if(!s)return o("options not found, can not resume"),!1;a.cycleTimeout&&(clearTimeout(a.cycleTimeout),a.cycleTimeout=0),c(s.elements,s,1,!s.backwards)}}if(a.cycleStop===n&&(a.cycleStop=0),(r===n||null===r)&&(r={}),r.constructor==String)switch(r){case"destroy":case"stop":var u,p,f=t(a).data("cycle.opts");if(!f)return!1;return a.cycleStop++,a.cycleTimeout&&clearTimeout(a.cycleTimeout),a.cycleTimeout=0,f.elements&&t(f.elements).stop(),t(a).removeData("cycle.opts"),"destroy"==r&&(u=a,p=f,p.next&&t(p.next).unbind(p.prevNextEvent),p.prev&&t(p.prev).unbind(p.prevNextEvent),(p.pager||p.pagerAnchorBuilder)&&t.each(p.pagerAnchors||[],function(){this.unbind().remove()}),p.pagerAnchors=null,t(u).unbind("mouseenter.cycle mouseleave.cycle"),p.destroy&&p.destroy(p)),!1;case"toggle":return a.cyclePause=1===a.cyclePause?0:1,d(a.cyclePause,l,a),s(a),!1;case"pause":return a.cyclePause=1,s(a),!1;case"resume":return a.cyclePause=0,d(!1,l,a),s(a),!1;case"prev":case"next":if(!(f=t(a).data("cycle.opts")))return o('options not found, "prev/next" ignored'),!1;return"string"==typeof l&&(f.oneTimeFx=l),t.fn.cycle[r](f),!1;default:r={fx:r}}else if(r.constructor==Number){var h=r;return(r=t(a).data("cycle.opts"))?h<0||h>=r.elements.length?(o("invalid slide index: "+h),!1):(r.nextSlide=h,a.cycleTimeout&&(clearTimeout(a.cycleTimeout),a.cycleTimeout=0),"string"==typeof l&&(r.oneTimeFx=l),c(r.elements,r,1,h>=r.currSlide),!1):(o("options not found, can not advance slide"),!1)}return r}(this,e,p);if(!1!==h){h.updateActivePagerLink=h.updateActivePagerLink||t.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var m=t(this),v=h.slideExpr?t(h.slideExpr,this):m.children(),g=v.get();if(g.length<2){o("terminating; too few slides: "+g.length);return}var y=function e(l,p,f,h,m){var v,g=t.extend({},t.fn.cycle.defaults,h||{},t.metadata?l.metadata():t.meta?l.data():{}),y=t.isFunction(l.data)?l.data(g.metaAttr):null;y&&(g=t.extend(g,y)),g.autostop&&(g.countdown=g.autostopCount||f.length);var _,b=l[0];if(l.data("cycle.opts",g),g.$cont=l,g.stopCount=b.cycleStop,g.elements=f,g.before=g.before?[g.before]:[],g.after=g.after?[g.after]:[],!t.support.opacity&&g.cleartype&&g.after.push(function(){r(this,g)}),g.continuous&&g.after.push(function(){c(f,g,0,!g.backwards)}),(_=g).original={before:[],after:[]},_.original.cssBefore=t.extend({},_.cssBefore),_.original.cssAfter=t.extend({},_.cssAfter),_.original.animIn=t.extend({},_.animIn),_.original.animOut=t.extend({},_.animOut),t.each(_.before,function(){_.original.before.push(this)}),t.each(_.after,function(){_.original.after.push(this)}),t.support.opacity||!g.cleartype||g.cleartypeNoBg||u(p),"static"==l.css("position")&&l.css("position","relative"),g.width&&l.width(g.width),g.height&&"auto"!=g.height&&l.height(g.height),g.startingSlide!==n?(g.startingSlide=parseInt(g.startingSlide,10),g.startingSlide>=f.length||g.startSlide<0?g.startingSlide=0:v=!0):g.backwards?g.startingSlide=f.length-1:g.startingSlide=0,g.random){g.randomMap=[];for(var x=0;x<f.length;x++)g.randomMap.push(x);if(g.randomMap.sort(function(e,t){return Math.random()-.5}),v)for(var w=0;w<f.length;w++)g.startingSlide==g.randomMap[w]&&(g.randomIndex=w);else g.randomIndex=1,g.startingSlide=g.randomMap[1]}else g.startingSlide>=f.length&&(g.startingSlide=0);g.currSlide=g.startingSlide||0;var k=g.startingSlide;if(p.css({position:"absolute",top:0,left:0}).hide().each(function(e){var n;n=g.backwards?k?e<=k?f.length+(e-k):k-e:f.length-e:k?e>=k?f.length-(e-k):k-e:f.length-e,t(this).css("z-index",n)}),t(f[k]).css("opacity",1).show(),r(f[k],g),g.fit&&(g.aspect?p.each(function(){var e=t(this),n=!0===g.aspect?e.width()/e.height():g.aspect;g.width&&e.width()!=g.width&&(e.width(g.width),e.height(g.width/n)),g.height&&e.height()<g.height&&(e.height(g.height),e.width(g.height*n))}):(g.width&&p.width(g.width),g.height&&"auto"!=g.height&&p.height(g.height))),g.center&&(!g.fit||g.aspect)&&p.each(function(){var e=t(this);e.css({"margin-left":g.width?(g.width-e.width())/2+"px":0,"margin-top":g.height?(g.height-e.height())/2+"px":0})}),!g.center||g.fit||g.slideResize||p.each(function(){var e=t(this);e.css({"margin-left":g.width?(g.width-e.width())/2+"px":0,"margin-top":g.height?(g.height-e.height())/2+"px":0})}),(g.containerResize||g.containerResizeHeight)&&1>l.innerHeight()){for(var C=0,S=0,O=0;O<f.length;O++){var A=t(f[O]),T=A[0],I=A.outerWidth(),B=A.outerHeight();I||(I=T.offsetWidth||T.width||A.attr("width")),B||(B=T.offsetHeight||T.height||A.attr("height")),C=I>C?I:C,S=B>S?B:S}g.containerResize&&C>0&&S>0&&l.css({width:C+"px",height:S+"px"}),g.containerResizeHeight&&S>0&&l.css({height:S+"px"})}var E=!1;if(g.pause&&l.bind("mouseenter.cycle",function(){E=!0,this.cyclePause++,s(b,!0)}).bind("mouseleave.cycle",function(){E&&this.cyclePause--,s(b,!0)}),!1===function e(n){var s,r,c=t.fn.cycle.transitions;if(n.fx.indexOf(",")>0){for(s=0,n.multiFx=!0,n.fxs=n.fx.replace(/\s*/g,"").split(",");s<n.fxs.length;s++){var l=n.fxs[s];(r=c[l])&&c.hasOwnProperty(l)&&t.isFunction(r)||(o("discarding unknown transition: ",l),n.fxs.splice(s,1),s--)}if(!n.fxs.length)return o("No valid transitions named; slideshow terminating."),!1}else if("all"==n.fx)for(var d in n.multiFx=!0,n.fxs=[],c)c.hasOwnProperty(d)&&(r=c[d],c.hasOwnProperty(d)&&t.isFunction(r)&&n.fxs.push(d));if(n.multiFx&&n.randomizeEffects){var u=Math.floor(20*Math.random())+30;for(s=0;s<u;s++){var p=Math.floor(Math.random()*n.fxs.length);n.fxs.push(n.fxs.splice(p,1)[0])}a("randomized fx sequence: ",n.fxs)}return!0}(g))return!1;var R=!1;if(h.requeueAttempts=h.requeueAttempts||0,p.each(function(){var e=t(this);if(this.cycleH=g.fit&&g.height?g.height:e.height()||this.offsetHeight||this.height||e.attr("height")||0,this.cycleW=g.fit&&g.width?g.width:e.width()||this.offsetWidth||this.width||e.attr("width")||0,e.is("img")&&0===this.cycleH&&0===this.cycleW&&!this.complete){if(m.s&&g.requeueOnImageNotLoaded&&++h.requeueAttempts<100)return o(h.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){t(m.s,m.c).cycle(h)},g.requeueTimeout),R=!0,!1;o("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return!0}),R)return!1;if(g.cssBefore=g.cssBefore||{},g.cssAfter=g.cssAfter||{},g.cssFirst=g.cssFirst||{},g.animIn=g.animIn||{},g.animOut=g.animOut||{},p.not(":eq("+k+")").css(g.cssBefore),t(p[k]).css(g.cssFirst),g.timeout){g.timeout=parseInt(g.timeout,10),g.speed.constructor==String&&(g.speed=t.fx.speeds[g.speed]||parseInt(g.speed,10)),g.sync||(g.speed=g.speed/2);for(var q="none"==g.fx?0:"shuffle"==g.fx?500:250;g.timeout-g.speed<q;)g.timeout+=g.speed}if(g.easing&&(g.easeIn=g.easeOut=g.easing),g.speedIn||(g.speedIn=g.speed),g.speedOut||(g.speedOut=g.speed),g.slideCount=f.length,g.currSlide=g.lastSlide=k,g.random?(++g.randomIndex==f.length&&(g.randomIndex=0),g.nextSlide=g.randomMap[g.randomIndex]):g.backwards?g.nextSlide=0===g.startingSlide?f.length-1:g.startingSlide-1:g.nextSlide=g.startingSlide>=f.length-1?0:g.startingSlide+1,!g.multiFx){var L=t.fn.cycle.transitions[g.fx];if(t.isFunction(L))L(l,p,g);else if("custom"!=g.fx&&!g.multiFx)return o("unknown transition: "+g.fx,"; slideshow terminating"),!1}var j,J,F,P,D,N=p[k];return!g.skipInitializationCallbacks&&(g.before.length&&g.before[0].apply(N,[N,N,g,!0]),g.after.length&&g.after[0].apply(N,[N,N,g,!0])),g.next&&t(g.next).bind(g.prevNextEvent,function(){return d(g,1)}),g.prev&&t(g.prev).bind(g.prevNextEvent,function(){return d(g,0)}),(g.pager||g.pagerAnchorBuilder)&&(j=f,J=g,F=t(J.pager),t.each(j,function(e,n){t.fn.cycle.createPagerAnchor(e,n,F,j,J)}),J.updateActivePagerLink(J.pager,J.startingSlide,J.activePagerClass)),P=g,D=f,P.addSlide=function(e,n){var a=t(e),o=a[0];!P.autostopCount&&P.countdown++,D[n?"unshift":"push"](o),P.els&&P.els[n?"unshift":"push"](o),P.slideCount=D.length,P.random&&(P.randomMap.push(P.slideCount-1),P.randomMap.sort(function(e,t){return Math.random()-.5})),a.css("position","absolute"),a[n?"prependTo":"appendTo"](P.$cont),n&&(P.currSlide++,P.nextSlide++),t.support.opacity||!P.cleartype||P.cleartypeNoBg||u(a),P.fit&&P.width&&a.width(P.width),P.fit&&P.height&&"auto"!=P.height&&a.height(P.height),o.cycleH=P.fit&&P.height?P.height:a.height(),o.cycleW=P.fit&&P.width?P.width:a.width(),a.css(P.cssBefore),(P.pager||P.pagerAnchorBuilder)&&t.fn.cycle.createPagerAnchor(D.length-1,o,t(P.pager),D,P),t.isFunction(P.onAddSlide)?P.onAddSlide(a):a.hide()},g}(m,v,g,h,f);if(!1!==y){var _=y.continuous?10:l(g[y.currSlide],g[y.nextSlide],y,!y.backwards);_&&((_+=y.delay||0)<10&&(_=10),a("first timeout: "+_),this.cycleTimeout=setTimeout(function(){c(g,y,0,!h.backwards)},_))}}})},t.fn.cycle.resetState=function(e,n){n=n||e.fx,e.before=[],e.after=[],e.cssBefore=t.extend({},e.original.cssBefore),e.cssAfter=t.extend({},e.original.cssAfter),e.animIn=t.extend({},e.original.animIn),e.animOut=t.extend({},e.original.animOut),e.fxFn=null,t.each(e.original.before,function(){e.before.push(this)}),t.each(e.original.after,function(){e.after.push(this)});var a=t.fn.cycle.transitions[n];t.isFunction(a)&&a(e.$cont,t(e.elements),e)},t.fn.cycle.updateActivePagerLink=function(e,n,a){t(e).each(function(){t(this).children().removeClass(a).eq(n).addClass(a)})},t.fn.cycle.next=function(e){d(e,1)},t.fn.cycle.prev=function(e){d(e,0)},t.fn.cycle.createPagerAnchor=function(e,n,o,r,l){if(t.isFunction(l.pagerAnchorBuilder)?(d=l.pagerAnchorBuilder(e,n),a("pagerAnchorBuilder("+e+", el) returned: "+d)):d='<a href="#">'+(e+1)+"</a>",d){var d,u=t(d);if(0===u.parents("body").length){var p=[];o.length>1?(o.each(function(){var e=u.clone(!0);t(this).append(e),p.push(e[0])}),u=t(p)):u.appendTo(o)}l.pagerAnchors=l.pagerAnchors||[],l.pagerAnchors.push(u);var f=function(n){n.preventDefault(),l.nextSlide=e;var a=l.$cont[0],o=a.cycleTimeout;o&&(clearTimeout(o),a.cycleTimeout=0);var s=l.onPagerEvent||l.pagerClick;t.isFunction(s)&&s(l.nextSlide,r[l.nextSlide]),c(r,l,1,l.currSlide<e)};/mouseenter|mouseover/i.test(l.pagerEvent)?u.hover(f,function(){}):u.bind(l.pagerEvent,f),/^click/.test(l.pagerEvent)||l.allowPagerClickBubble||u.bind("click.cycle",function(){return!1});var h=l.$cont[0],m=!1;l.pauseOnPagerHover&&u.hover(function(){m=!0,h.cyclePause++,s(h,!0,!0)},function(){m&&h.cyclePause--,s(h,!0,!0)})}},t.fn.cycle.hopsFromLast=function(e,t){var n,a=e.lastSlide,o=e.currSlide;return t?o>a?o-a:e.slideCount-a:o<a?a-o:a+e.slideCount-o},t.fn.cycle.commonReset=function(e,n,a,o,s,r){t(a.elements).not(e).hide(),void 0===a.cssBefore.opacity&&(a.cssBefore.opacity=1),a.cssBefore.display="block",a.slideResize&&!1!==o&&n.cycleW>0&&(a.cssBefore.width=n.cycleW),a.slideResize&&!1!==s&&n.cycleH>0&&(a.cssBefore.height=n.cycleH),a.cssAfter=a.cssAfter||{},a.cssAfter.display="none",t(e).css("zIndex",a.slideCount+(!0===r?1:0)),t(n).css("zIndex",a.slideCount+(!0===r?0:1))},t.fn.cycle.custom=function(e,n,a,o,s,r){var c=t(e),l=t(n),d=a.speedIn,u=a.speedOut,p=a.easeIn,f=a.easeOut,h=a.animInDelay,m=a.animOutDelay;l.css(a.cssBefore),r&&(d=u="number"==typeof r?r:1,p=f=null);var v=function(){l.delay(h).animate(a.animIn,d,p,function(){o()})};c.delay(m).animate(a.animOut,u,f,function(){c.css(a.cssAfter),a.sync||v()}),a.sync&&v()},t.fn.cycle.transitions={fade:function(e,n,a){n.not(":eq("+a.currSlide+")").css("opacity",0),a.before.push(function(e,n,a){t.fn.cycle.commonReset(e,n,a),a.cssBefore.opacity=0}),a.animIn={opacity:1},a.animOut={opacity:0},a.cssBefore={top:0,left:0}}},t.fn.cycle.ver=function(){return"3.0.3"},t.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!t.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:n,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(e){"use strict";e.fn.cycle.transitions.none=function(t,n,a){a.fxFn=function(t,n,a,o){e(n).show(),e(t).hide(),o()}},e.fn.cycle.transitions.fadeout=function(t,n,a){n.not(":eq("+a.currSlide+")").css({display:"block",opacity:1}),a.before.push(function(t,n,a,o,s,r){e(t).css("zIndex",a.slideCount+(!0!==r?1:0)),e(n).css("zIndex",a.slideCount+(!0!==r?0:1))}),a.animIn.opacity=1,a.animOut.opacity=0,a.cssBefore.opacity=1,a.cssBefore.display="block",a.cssAfter.zIndex=0},e.fn.cycle.transitions.scrollUp=function(t,n,a){t.css("overflow","hidden"),a.before.push(e.fn.cycle.commonReset);var o=t.height();a.cssBefore.top=o,a.cssBefore.left=0,a.cssFirst.top=0,a.animIn.top=0,a.animOut.top=-o},e.fn.cycle.transitions.scrollDown=function(t,n,a){t.css("overflow","hidden"),a.before.push(e.fn.cycle.commonReset);var o=t.height();a.cssFirst.top=0,a.cssBefore.top=-o,a.cssBefore.left=0,a.animIn.top=0,a.animOut.top=o},e.fn.cycle.transitions.scrollLeft=function(t,n,a){t.css("overflow","hidden"),a.before.push(e.fn.cycle.commonReset);var o=t.width();a.cssFirst.left=0,a.cssBefore.left=o,a.cssBefore.top=0,a.animIn.left=0,a.animOut.left=0-o},e.fn.cycle.transitions.scrollRight=function(t,n,a){t.css("overflow","hidden"),a.before.push(e.fn.cycle.commonReset);var o=t.width();a.cssFirst.left=0,a.cssBefore.left=-o,a.cssBefore.top=0,a.animIn.left=0,a.animOut.left=o},e.fn.cycle.transitions.scrollHorz=function(t,n,a){t.css("overflow","hidden").width(),a.before.push(function(t,n,a,o){a.rev&&(o=!o),e.fn.cycle.commonReset(t,n,a),a.cssBefore.left=o?n.cycleW-1:1-n.cycleW,a.animOut.left=o?-t.cycleW:t.cycleW}),a.cssFirst.left=0,a.cssBefore.top=0,a.animIn.left=0,a.animOut.top=0},e.fn.cycle.transitions.scrollVert=function(t,n,a){t.css("overflow","hidden"),a.before.push(function(t,n,a,o){a.rev&&(o=!o),e.fn.cycle.commonReset(t,n,a),a.cssBefore.top=o?1-n.cycleH:n.cycleH-1,a.animOut.top=o?t.cycleH:-t.cycleH}),a.cssFirst.top=0,a.cssBefore.left=0,a.animIn.top=0,a.animOut.left=0},e.fn.cycle.transitions.slideX=function(t,n,a){a.before.push(function(t,n,a){e(a.elements).not(t).hide(),e.fn.cycle.commonReset(t,n,a,!1,!0),a.animIn.width=n.cycleW}),a.cssBefore.left=0,a.cssBefore.top=0,a.cssBefore.width=0,a.animIn.width="show",a.animOut.width=0},e.fn.cycle.transitions.slideY=function(t,n,a){a.before.push(function(t,n,a){e(a.elements).not(t).hide(),e.fn.cycle.commonReset(t,n,a,!0,!1),a.animIn.height=n.cycleH}),a.cssBefore.left=0,a.cssBefore.top=0,a.cssBefore.height=0,a.animIn.height="show",a.animOut.height=0},e.fn.cycle.transitions.shuffle=function(t,n,a){var o,s=t.css("overflow","visible").width();for(n.css({left:0,top:0}),a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!0,!0,!0)}),a.speedAdjusted||(a.speed=a.speed/2,a.speedAdjusted=!0),a.random=0,a.shuffle=a.shuffle||{left:-s,top:15},a.els=[],o=0;o<n.length;o++)a.els.push(n[o]);for(o=0;o<a.currSlide;o++)a.els.push(a.els.shift());a.fxFn=function(t,n,a,o,s){a.rev&&(s=!s);var r=s?e(t):e(n);e(n).css(a.cssBefore);var c=a.slideCount;r.animate(a.shuffle,a.speedIn,a.easeIn,function(){for(var n=e.fn.cycle.hopsFromLast(a,s),l=0;l<n;l++)s?a.els.push(a.els.shift()):a.els.unshift(a.els.pop());if(s)for(var d=0,u=a.els.length;d<u;d++)e(a.els[d]).css("z-index",u-d+c);else{var p=e(t).css("z-index");r.css("z-index",parseInt(p,10)+1+c)}r.animate({left:0,top:0},a.speedOut,a.easeOut,function(){e(s?this:t).hide(),o&&o()})})},e.extend(a.cssBefore,{display:"block",opacity:1,top:0,left:0})},e.fn.cycle.transitions.turnUp=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!0,!1),a.cssBefore.top=n.cycleH,a.animIn.height=n.cycleH,a.animOut.width=n.cycleW}),a.cssFirst.top=0,a.cssBefore.left=0,a.cssBefore.height=0,a.animIn.top=0,a.animOut.height=0},e.fn.cycle.transitions.turnDown=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!0,!1),a.animIn.height=n.cycleH,a.animOut.top=t.cycleH}),a.cssFirst.top=0,a.cssBefore.left=0,a.cssBefore.top=0,a.cssBefore.height=0,a.animOut.height=0},e.fn.cycle.transitions.turnLeft=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!1,!0),a.cssBefore.left=n.cycleW,a.animIn.width=n.cycleW}),a.cssBefore.top=0,a.cssBefore.width=0,a.animIn.left=0,a.animOut.width=0},e.fn.cycle.transitions.turnRight=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!1,!0),a.animIn.width=n.cycleW,a.animOut.left=t.cycleW}),e.extend(a.cssBefore,{top:0,left:0,width:0}),a.animIn.left=0,a.animOut.width=0},e.fn.cycle.transitions.zoom=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!1,!1,!0),a.cssBefore.top=n.cycleH/2,a.cssBefore.left=n.cycleW/2,e.extend(a.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH}),e.extend(a.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})}),a.cssFirst.top=0,a.cssFirst.left=0,a.cssBefore.width=0,a.cssBefore.height=0},e.fn.cycle.transitions.fadeZoom=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!1,!1),a.cssBefore.left=n.cycleW/2,a.cssBefore.top=n.cycleH/2,e.extend(a.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH})}),a.cssBefore.width=0,a.cssBefore.height=0,a.animOut.opacity=0},e.fn.cycle.transitions.blindX=function(t,n,a){var o=t.css("overflow","hidden").width();a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a),a.animIn.width=n.cycleW,a.animOut.left=t.cycleW}),a.cssBefore.left=o,a.cssBefore.top=0,a.animIn.left=0,a.animOut.left=o},e.fn.cycle.transitions.blindY=function(t,n,a){var o=t.css("overflow","hidden").height();a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a),a.animIn.height=n.cycleH,a.animOut.top=t.cycleH}),a.cssBefore.top=o,a.cssBefore.left=0,a.animIn.top=0,a.animOut.top=o},e.fn.cycle.transitions.blindZ=function(t,n,a){var o=t.css("overflow","hidden").height(),s=t.width();a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a),a.animIn.height=n.cycleH,a.animOut.top=t.cycleH}),a.cssBefore.top=o,a.cssBefore.left=s,a.animIn.top=0,a.animIn.left=0,a.animOut.top=o,a.animOut.left=s},e.fn.cycle.transitions.growX=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!1,!0),a.cssBefore.left=this.cycleW/2,a.animIn.left=0,a.animIn.width=this.cycleW,a.animOut.left=0}),a.cssBefore.top=0,a.cssBefore.width=0},e.fn.cycle.transitions.growY=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!0,!1),a.cssBefore.top=this.cycleH/2,a.animIn.top=0,a.animIn.height=this.cycleH,a.animOut.top=0}),a.cssBefore.height=0,a.cssBefore.left=0},e.fn.cycle.transitions.curtainX=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!1,!0,!0),a.cssBefore.left=n.cycleW/2,a.animIn.left=0,a.animIn.width=this.cycleW,a.animOut.left=t.cycleW/2,a.animOut.width=0}),a.cssBefore.top=0,a.cssBefore.width=0},e.fn.cycle.transitions.curtainY=function(t,n,a){a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!0,!1,!0),a.cssBefore.top=n.cycleH/2,a.animIn.top=0,a.animIn.height=n.cycleH,a.animOut.top=t.cycleH/2,a.animOut.height=0}),a.cssBefore.height=0,a.cssBefore.left=0},e.fn.cycle.transitions.cover=function(t,n,a){var o=a.direction||"left",s=t.css("overflow","hidden").width(),r=t.height();a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a),a.cssAfter.display="","right"==o?a.cssBefore.left=-s:"up"==o?a.cssBefore.top=r:"down"==o?a.cssBefore.top=-r:a.cssBefore.left=s}),a.animIn.left=0,a.animIn.top=0,a.cssBefore.top=0,a.cssBefore.left=0},e.fn.cycle.transitions.uncover=function(t,n,a){var o=a.direction||"left",s=t.css("overflow","hidden").width(),r=t.height();a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!0,!0,!0),"right"==o?a.animOut.left=s:"up"==o?a.animOut.top=-r:"down"==o?a.animOut.top=r:a.animOut.left=-s}),a.animIn.left=0,a.animIn.top=0,a.cssBefore.top=0,a.cssBefore.left=0},e.fn.cycle.transitions.toss=function(t,n,a){var o=t.css("overflow","visible").width(),s=t.height();a.before.push(function(t,n,a){e.fn.cycle.commonReset(t,n,a,!0,!0,!0),a.animOut.left||a.animOut.top?a.animOut.opacity=0:e.extend(a.animOut,{left:2*o,top:-s/2,opacity:0})}),a.cssBefore.left=0,a.cssBefore.top=0,a.animIn.left=0},e.fn.cycle.transitions.wipe=function(t,n,a){var o,s=t.css("overflow","hidden").width(),r=t.height();if(a.cssBefore=a.cssBefore||{},a.clip){if(/l2r/.test(a.clip))o="rect(0px 0px "+r+"px 0px)";else if(/r2l/.test(a.clip))o="rect(0px "+s+"px "+r+"px "+s+"px)";else if(/t2b/.test(a.clip))o="rect(0px "+s+"px 0px 0px)";else if(/b2t/.test(a.clip))o="rect("+r+"px "+s+"px "+r+"px 0px)";else if(/zoom/.test(a.clip)){var c=parseInt(r/2,10),l=parseInt(s/2,10);o="rect("+c+"px "+l+"px "+c+"px "+l+"px)"}}a.cssBefore.clip=a.cssBefore.clip||o||"rect(0px 0px 0px 0px)";var d=a.cssBefore.clip.match(/(\d+)/g),u=parseInt(d[0],10),p=parseInt(d[1],10),f=parseInt(d[2],10),h=parseInt(d[3],10);a.before.push(function(t,n,a){if(t!=n){var o=e(t),c=e(n);e.fn.cycle.commonReset(t,n,a,!0,!0,!1),a.cssAfter.display="block";var l=1,d=parseInt(a.speedIn/13,10)-1;!function e(){var t=u?u-parseInt(l*(u/d),10):0,n=h?h-parseInt(l*(h/d),10):0,a=f<r?f+parseInt(l*((r-f)/d||1),10):r,m=p<s?p+parseInt(l*((s-p)/d||1),10):s;c.css({clip:"rect("+t+"px "+m+"px "+a+"px "+n+"px)"}),l++<=d?setTimeout(e,13):o.css("display","none")}()}}),e.extend(a.cssBefore,{display:"block",opacity:1,top:0,left:0}),a.animIn={left:0},a.animOut={left:0}}}(jQuery),attachEvents("responsiveTemplateEvents",responsiveTemplateEvents);var ignorehashchange=!1;function close_ajax(){$("#wrap").attr("class").indexOf("page-venues")>=0&&(ignorehashchange=!0,window.history.back(),setTimeout(function(){ignorehashchange=!1},100)),$("body").removeClass("ajaxed"),$("#overlay").remove(),$("#overlay").remove(),$("#ajax").remove()}function readCookie(e){for(var t=e+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}function responsiveTemplateEvents(){if(void 0!=(affID=readCookie("GBTAPrezbotAffID"))&&""!=affID&&null!=affID?$('input[name="affID"]').val(affID):$('input[name="affID"]').val(""),$("#venue-prices-basic .formats-menu li a").off("click"),$("#venue-prices-basic .formats-menu li a").on("click",function(){var e=$(this).attr("rel");return $("#venue-prices-basic .formats-menu li").removeClass("current"),$(this).parent().addClass("current"),$("#venue-prices-basic .formats-list-basic .block-wrapper").hide(),$("#venue-prices-basic #"+e).show(),$("#venue-prices-basic #"+e+" .block-wrapper").show().attr("id",""),$("#venue-prices-basic #"+e+" .READMORECONTENTjs").hide(),!1}),$(".hintRecipientJS").off("keyup"),$(".hintRecipientJS").on("keyup",function(){$("#hintRecipient").html($(this).val())}),$(".hintNameJS").off("keyup"),$(".hintNameJS").on("keyup",function(){$("#hintSender").html($(this).val())}),$(".HINTjs").off("click"),$(".HINTjs").on("click",function(){var e=$(".hintNameJS").val(),t=$(".hintRecipientJS").val(),n=$(".hintEmailJS").val(),a=$(".hintEmail2JS").val(),o=$(".hintMessageJS").val();if($(".required").removeClass("value-required"),(""==e||e.length<2)&&$(".hintNameJS").parent().addClass("value-required"),(""==t||t.length<2)&&$(".hintRecipientJS").parent().addClass("value-required"),""==n&&$(".hintEmailJS").parent().addClass("value-required"),""!=e&&e.length>=2&&""!=t&&t.length>=2&&isValidEmail(n)){callbackSubmitting=1,$("body").append('<div class="loader contactLoader" id="loading"><span>Sending Hint...</span></div>');var s=theme;(theme==affID||"londonontheinside"==affID||"iq"==theme)&&(s="ger");var r={name:e,senderEmail:a,email:n,recipient:t,theme:s,website:siteUrl,message:o};$.post("/en/action_query/bookingactions/hintRequest",r,function(e){callbackSubmitting=0,$("#loading").empty().append("Hint Sent"),setTimeout(function(){$(".loader").fadeOut().remove()},50),e.tracking,void 0!==e.fb&&facebookPixelTrack(e.fb),$(".HINTFORMjs").empty().prepend("<p>"+t+" has been emailed your hint.</p>")})}else $(".HINTFORMjs .attn").remove(),$(".HINTFORMjs").prepend('<p class="attn">please check all form fields.</p>');return!1}),$(".CALLBACKjs").off("click"),$(".CALLBACKjs").on("click",function(){var e=$(".callbackNameJS").val(),t=$(".callbackTelephoneJS").val(),n=$(".callbackWebsiteJS").val(),a=$(".callbackTimeJS").val(),o=$("option:selected",$("select.callbackReasonJS")).val(),s=$(".contactAffIDJS").val(),r=$("input[name=settingsiqCompanyID]").val();return $(".required").removeClass("value-required"),(""==e||e.length<2)&&$(".callbackNameJS").parent().addClass("value-required"),(""==t||t.length<6)&&$(".callbackTelephoneJS").parent().addClass("value-required"),""==o&&$(".callbackReasonJS").parent().addClass("value-required"),""!=e&&e.length>=2&&""!=t&&t.length>5&&1!=callbackSubmitting&&""!=o?(callbackSubmitting=1,$("body").append('<div class="loader contactLoader" id="loading">Sending Email...</div>'),$.post("/en/action_query/bookingactions/callbackRequest",{name:e,telephone:t,website:n,time:a,reason:o,affID:s,settingsiqCompanyID:r},function(e){callbackSubmitting=0,$("#loading").empty().append("Email Sent"),setTimeout(function(){$(".loader").fadeOut().remove()},100),e.tracking,void 0!==e.fb&&facebookPixelTrack(e.fb);var t="<script>window.dataLayer = window.dataLayer || [];window.dataLayer.push({'booking_id':'"+e.iq+"','conversion_type':'callback'})</script>";$(".CALLBACKFORMjs").empty().append(t+'<p id="callBackSuccess">Thank you for your callback request. One of our sales team will be in touch with you shortly.</p>'+e.tracking)})):$(".CALLBACKFORMjs").append('<p class="attn">please check all form fields.</p>'),!1}),$(".CONTACTjs").off("click"),$(".CONTACTjs").on("click",function(){var e=$(".contactNameJS").val(),t=$(".contactEmailJS").val(),n=$(".contactTelephoneJS").val(),a=$(".contactSubscribeJS").prop("checked")?$(".contactSubscribeJS").val():0,o=document.location.href,s=$(".contactWebsiteIDJS").val(),r=$(".contactActivityIDJS").val(),c=$(".contactLocationIDJS").val(),l=$(".contactTypeJS").val(),d=$(".contactCommentJS").val(),u=$(".contactVenueEmailJS").val(),p=$("option:selected",$("select.contactReasonJS")).val(),f=$("input[name=settingsiqCompanyID]").val(),h=$(".contactVoucherIDJS").val(),m=$(".contactPkgJS").val();void 0==h&&(h="");var v="",g=$(".contactAffIDJS").val().trim("-"," ");if(""==c){if("Stag Nights Out"==brand)var v=$("option:selected",$("select.contactVenueJS")).val();else if("Stagzilla"==brand||"Stag Zilla"==brand)v="";else{var y=$("option:selected",$("select.contactVenueJS")).val();void 0!==y&&(c=(y=y.split(":"))[0],r=y[1]),v=$("option:selected",$("select.contactVenueJS")).text()}}else{var v=c;r&&(v=[c,r].join(", "))}$(".destinationJS").val()&&(v=v+" "+$(".destinationJS").val()),m&&(v=v+", "+m);var _=$("option:selected",$("select.contactParticipantsJS")).val();if(""!=h)b=" "+$(".contactDateJS").val();else var b=$(".contactDateJS").val();var x="yes";if($(".value-required").removeClass("value-required"),$(".validated").removeClass("validated"),""==e?($(".contactNameJS").parent().addClass("value-required"),x="no"):$(".contactNameJS").parent().addClass("validated"),""==t&&n.length<6?($(".contactEmailJS").parent().addClass("value-required"),x="no"):isValidEmail(t)||n.length>5?$(".contactEmailJS").parent().addClass("validated"):($(".contactEmailJS").parent().addClass("value-required"),x="no"),n.length<6&&!isValidEmail(t)?($(".contactTelephoneJS").parent().addClass("value-required"),x="no"):$(".contactTelephoneJS").parent().addClass("validated"),""==d&&""==h?($(".contactCommentJS").parent().addClass("value-required"),x="no"):$(".contactCommentJS").parent().addClass("validated"),("Stagzilla"==brand||"Stag Zilla"==brand)&&($("#wrap").hasClass("page-contact")||$("#wrap").hasClass("page-byo"))&&(v="",$("option:selected",$("select.contactDestinationsJS")).each(function(){v=v+" "+$(this).val()}),activity="",$("option:selected",$("select.contactActivitiesJS")).each(function(){activity=activity+" "+$(this).val()}),addons="",$("option:selected",$("select.contactAddonsJS")).each(function(){addons=addons+" "+$(this).val()}),""==v?($(".contactDestinationsJS").parent().addClass("value-required"),x="no"):$(".contactDestinationsJS").parent().addClass("validated"),""==activity?($(".contactActivitiesJS").parent().addClass("value-required"),x="no"):$(".contactActivitiesJS").parent().addClass("validated"),""==addons?($(".contactAddonsJS").parent().addClass("value-required"),x="no"):$(".contactAddonsJS").parent().addClass("validated")),"yes"==x&&1!=submitting){if(("Stagzilla"==brand||"Stag Zilla"==brand)&&($("#wrap").attr("class").indexOf("page-byo")>=0||$("#wrap").attr("class").indexOf("page-package")>=0)){r="178",$("#wrap").attr("class").indexOf("page-byo")>=0?(p="Stag party",_package=""):(p="Stag party",_package=$("#eventPackages input:checked").val(),activity=$("#eventActivities input:checked").val(),addons=$("#addons input:checked").val()),a="",date2=$(".contactDate2JS").val();var d=["STAG ENQUIRY: Comment: ",d,", Participants: ",_,", From Date:",b,", To Date:",date2,", Destination: ",v,", Package: ",_package,", Activity: ",activity,", Add Ons: ",addons].join("")}else if(""!=h){date2=$(".contactDate2JS").val(),date3=$(".contactDate3JS").val();var d=["VOUCHER REDEMPTION: Redemption ID:",h,", Comment: ",d,", Participants: ",_,", Date:",b,", Alternative Date:",date2,", Destination: ",v].join("")}else var d=[d,", Participants: ",_,", Date:",b,", Destination: ",v].join("");submitting=1,$("body").append('<div class="loader contactLoader" id="loading"><span>Sending Email...</span></div>'),$.post("/en/action_query/bookingactions/contactForm",{name:e,email:t,telephone:n,comment:d,subscribe:a,website:o,websiteID:s,activityID:r,locationID:c,type:l,venueEmail:u,affID:g,settingsiqCompanyID:f,bookReason:p,enq_pax:_,enq_date:b},function(m){submitting=0;var v="";if(void 0!==m.success){if(""!=m.message)v=m.message;else{var y=m;v="The page we attempted to submit to for payment processing returned an unrecognisable error"}}if(void 0===m.success&&0==m.indexOf('{"success":')&&(m=$.parseJSON(m)),void 0===m.success){var _=[];if(_.posted={},m.indexOf('{"success":')>0)temp=m.split('{"success":'),tempJson="",$.each(temp,function(e,t){0!=e&&(tempJson+='{"success":'+t)}),_.category="contactform",_.severity="medium",_.error=temp[0],_.response=tempJson,_.posted.name=e,_.posted.email=t,_.posted.telephone=n,_.posted.comment=d,_.posted.subscribe=a,_.posted.website=o,_.posted.websiteID=s,_.posted.activityID=r,_.posted.locationID=c,_.posted.type=l,_.posted.venueEmail=u,_.posted.affID=g,_.posted.settingsiqCompanyID=f,_.posted.bookReason=p,m=$.parseJSON(tempJson);else{_.category="contactform",_.severity="critical",_.error=m,void 0!==y?_.response=y:_.response=m,_.posted.name=e,_.posted.email=t,_.posted.telephone=n,_.posted.comment=d,_.posted.subscribe=a,_.posted.website=o,_.posted.websiteID=s,_.posted.activityID=r,_.posted.locationID=c,_.posted.type=l,_.posted.venueEmail=u,_.posted.affID=g,_.posted.settingsiqCompanyID=f,_.posted.bookReason=p;var m=[];m.success=!1,m.message="There has been an error in our processes, our tech team have been notified.<br />If you do not receive an email confirming your enquiry please try again later or give us a call."}}!0===m.success?(void 0!==_&&recordContactFormError(_),void 0!==m.fb&&facebookPixelTrack(m.fb),"Corpze"==brand&&($(".gm8Left, #gm8Sessions, .gm8PkgDesc, .gm8PkgRestrict, .gm8PkgExtras").hide(),$(".gm8Right").addClass("sent").prepend('<p class="h2 h">Welcome to the Corpze Team!!!</p>'),$("html,body").animate({scrollTop:$("#venue").offset().top},100)),email_sent(m.tracking,h,m.iq)):(setTimeout(function(){$(".loader").fadeOut().remove()},100),void 0!==_&&recordContactFormError(_),(void 0===m.message||""==m.message)&&void 0!==v&&""!=v&&(m.message=v),(void 0===m.message||""==m.message)&&(m.message="There has been an error in our processes, our tech team have been notified.<br />If you do not receive an email confirming your enquiry please try again later or give us a call."),alert(m.message))})}else $(".CONTACTFORMjs .attn").remove(),$(".CONTACTFORMjs").prepend('<p class="attn">please check all form fields.</p>');return!1}),$(".SUBSCRIBEjsform").off("submit"),$(".SUBSCRIBEjsform").on("submit",function(){var e="ajax=1&"+$(this).serialize();return $("body").append('<div class="loader"><span>Sending Email...</span></div>'),$.post("/en/action_query/sib_mod/mailer",e,function(e){$(".loader").fadeOut().remove(),e?$(".SUBSCRIBEjsform").html(e):$(".SUBSCRIBEjsform").prepend("<b>Invalid Email</b><br/>")}),!1}),$(".networkJSForm").off("submit"),$(".networkJSForm").on("submit",function(){var e=this,t="ajax=1&"+$(this).serialize(),n=$('*[name="name"]',this).val(),a=$('*[name="email"]',this).val();return $('*[name="telephone"]',this).val(),$(".value-required").removeClass("value-required"),""==n&&$('*[name="name"]',this).prev().addClass("value-required"),isValidEmail(a)||$('*[name="email"]',this).prev().addClass("value-required"),""!=n&&isValidEmail(a)&&($("body").append('<div class="loader"><span>Sending Email...</span></div>'),$.post("/en/action_query/sbmod/emailEnquiry",t,function(){$(e).html("<p>Thanks for your Enquiry.</p><p>We'll be in touch.</p>"),$(".loader").fadeOut().remove()})),!1}),$(".EMAILjs").off("click"),$(".EMAILjs").on("click",function(){$(this).parent().parent().attr("id");var e=$(".emailNameJS").val(),t=$(".emailEmailJS").val(),n=$(".emailTelephoneJS").val(),a=$(".emailCompanyJS").val(),o=$(".emailWebsiteJS").val(),s=$(".emailCommentJS").val(),r=$(".emailOriginJS").val(),c=$(".emailTypeJS").val();return $(".value-required").removeClass("value-required"),""==e&&$(".emailNameJS").parent().addClass("value-required"),isValidEmail(t)||$(".emailEmailJS").parent().addClass("value-required"),""!=e&&isValidEmail(t)&&($("body").append('<div class="loader"><span>Sending Email...</span></div>'),$.post("/en/action_query/sbmod/emailEnquiry",{type:c,name:e,email:t,telephone:n,company:a,website:o,message:s,origin:r},function(){document.location.href.indexOf("blogger")>=0?$("#enquire").html('<div class="sent"><p class="h3 h">Thank you for registering your interest in becoming a Geronigo Blogger.</p><p>Our team will be in touch over the next few days to discuss the program further and answer any questions you may have</p></div>'):document.location.href.indexOf("reseller")>=0?$("#enquire").html('<div class="sent"><p class="h3 h">Thank you for registering your interest in becoming a Geronigo Reseller.</p><p>Our team will be in touch over the next few days to discuss the program further and answer any questions you may have</p></div>'):$("#enquire").html('<div class="sent"><p class="h3 h">Thank you for your enquiry, we will be in touch soon.</p></div>'),$(".loader").fadeOut().remove()})),!1}),$(".geolocate_me").off("click"),$(".geolocate_me").on("click",function(){return n(),oTown="geo",oTown2="geo",isGeolocateAllowed()&&"undefined"==typeof userlat||""==userlat||"undefined"==typeof userlon||""==userlon?check_for_user_location(!0):($(".search_town").html("Nearby"),$("input#townsearch0").attr("value","Nearby"),$("input#townsearch1").length>0&&$("input#townsearch1").attr("value","Nearby"),loadBrowserGeoVenues()),!1}),$(".scrollNav a").off("click"),$(".scrollNav a").on("click",function(){var e=$(this).attr("class"),t=$(this).parents(".scrollx").attr("id"),n=$("#"+t+" .olp li").width(),a=$("#"+t+" .olp").scrollLeft();return a>0?$("#"+t+" .scrollNav li:first-of-type").show():$("#"+t+" .scrollNav li:first-of-type").hide(),"prev"==e?$("#"+t+" .olp").animate({scrollLeft:a-n},100):$("#"+t+" .olp").animate({scrollLeft:a+n},100),!1}),$(".allActs").off("click"),$(".allActs").on("click",function(){return $(this).remove(),$("#actVenues .r2a, .venue").removeClass("selected"),$("#actVenues").removeClass("venueSet"),$("#actVenues #venueContainer").empty(),$("html,body").animate({scrollTop:$("#head").offset().top},100),!1}),$(".venueContainer").off("click"),$(".venueContainer").on("click",function(){"s venueSet"!=$("#actVenues").attr("class")&&"Corpze"!=brand&&($(this).parents(".r2a").addClass("selected").prepend('<a href="#" class="allActs h3 a">&laquo; Show All Activities</a>'),$("#actVenues").addClass("venueSet"));var e=$(this).attr("href"),t=e=e.replace("//","/");return arr=t.split("oVenue-"),arr2=t.split("oVenAct-"),t="Venue_oVenue-"+arr[1],page="venue",oAct=arr2[1],$("body").append('<div class="loader"><span>Loading</span></div>'),$(".venue").removeClass("selected"),$(this).parents(".venue").addClass("selected"),"Corpze"==brand&&$("#missions:visible").length>0?selectVenue($(this).parents(".venue")):("Corpze"==brand&&"s venueSet"!=$("#actVenues").attr("class")&&($("#actVenues").addClass("venueSet"),$(this).parents(".r2a").addClass("selected").prepend('<a href="#" class="allActs h3 h">&laquo; Show All Training Facilities</a>')),date=Date.parse("today").toString("yyyy-MM-dd"),$("#venueContainer").load("/en/"+page+"/plug-page"+t+"_search-ajaxed",function(){$("html,body").animate({scrollTop:$("#actVenues").offset().top},100),$(".loader").remove()})),!1}),noajax=0,"Geronigo Affiliate"==brand&&"Partners"!==subbrand&&"Vouchers"!==subbrand&&(noajax=1),"Resellers"==subbrand&&(noajax=1),1==noajax);else{function t(){$(".mapLink2").off("hover"),$(".mapLink2").on("hover",function(){var e=$(this).attr("href"),t="/en/venues/",n=[];e.indexOf("venues-map")>-1&&(t="/en/venues-map/"),e.indexOf("venues_map")>-1&&(t="/en/venues-map/"),"0"!=oTown&&n.push("oTown-"+oTown),"0"!=oAct&&n.push("oAct-"+oAct),$(".mapLink2").attr("href",t+n.join("_"))}),$("#menu a, #sub-menu a, .voucherLink, .logo a, #footer .wrap a, map area, .map ul li a, .venues-list a, .map-venue-link, .venueLink, a.lp, a.activityLink, .packageLink, .venuesLink, .link").off("click"),$("#menu a, #sub-menu a, .voucherLink, .logo a, #footer .wrap a, map area, .map ul li a, .venues-list a, .map-venue-link, .venueLink, a.lp, a.activityLink, .packageLink, .venuesLink, .link").on("click",function(){var e=$(this).hasClass("town");if(!0==$(this).hasClass("noajax")||!0==$(this).hasClass("venueWindow"));else{!$(this).parent().is("b")&&($("#menu .mobiMenu").removeClass("open"),bWidth=700,"Geronigo Affiliate"==brand&&"Vouchers"==subbrand&&(bWidth=780),$(window).width()<=bWidth&&$("#footer .wrap").fadeOut(50,function(){$("#footer").animate({right:"100%"},75),$(".mobiWrap").removeClass("open"),$("#footer .close").remove()}));var t,n,a="",o=$(this).attr("href");if(o.indexOf("http")>-1){var s=new URL(o);""!=s.hostname&&(o=(parts=o.split(s.hostname))[1])}for(var r=o=o.replace("//","/"),c=/([^\/_-]+)(-?)([^\/_-]+)/g,l=o,d={};null!==(n=c.exec(l));)n.index===c.lastIndex&&c.lastIndex++,"-"==n[2]&&(d[n[1]]=n[3]);if(void 0!==d.oAct&&0!=d.oAct&&"0"!=d.oAct&&(t=d.oAct,$(".search-form input[name=oAct]").each(function(){$(this).val(t)})),"Corpze"==brand&&($("#menu .main .current").removeClass("current"),"/"==r&&$("#menu .main li:nth-child(1)").addClass("current"),(r.indexOf("training")>=0||r.indexOf("venues")>=0)&&$("#menu .main li:nth-child(2)").addClass("current"),r.indexOf("missions")>=0&&$("#menu .main li:nth-child(3)").addClass("current")),"venue"==websiteType&&!0==$("#wrap").hasClass("page-index")&&"/"==o)return"Reviews"==$(this).html()&&$("#reviews").length>0&&$("html,body").animate({scrollTop:$("#reviews").offset().top},50),"Facilities"==$(this).html()&&$("#facilities").length>0&&$("html,body").animate({scrollTop:$("#facilities").offset().top},50),"Facilities"==$(this).html()&&$(".venueFacilities").length>0&&$("html,body").animate({scrollTop:$(".venueFacilities").offset().top},50),"Location"==$(this).html()&&$("#location").length>0&&$("html,body").animate({scrollTop:$("#location").offset().top},50),!1;if("venue"==websiteType)var u=$(this).html();if(void 0===r)return!1;var p=["","index"],f=$(this).attr("target");if($(this).attr("href").indexOf("venues_map")>-1?(vlink="VenuesMap",vpage="venues_map"):(vlink="Venues",vpage="venues"),setCommonSettings(r),"#"!=o&&"_blank"!=f){if("/"==o)o="/",r="Index",a=page="index";else if(r.indexOf("rrCmsID")>-1)r="Experience_rrCmsID-"+(p=r.split("/rrCmsID-"))[1],oGift=p[1],a=page="experience";else if(r.indexOf("oGift")>-1)r="Gifts_oGift-"+(p=r.split("oGift-"))[1],oGift=p[1],a=page="gifts";else if(r.indexOf("oVenue")>-1)p=r.split("oVenue-"),arr2=r.split("oVenAct-"),r.indexOf("/room")>-1?(r="Room_oVenue-"+p[1],page="room"):(r="Venue_oVenue-"+p[1],page="venue"),a=page,oAct=arr2[1];else if(r.indexOf("oTown")>-1)($(".search-form input.townSearchBox ").val(""),p=$(this).attr("href").split("oTown-"),"Stagzilla"==brand)?(r="Destination_oTown-"+p[1],page="destination"):r.indexOf("/")>=0?(_page=r.split("/")[2].split("-")[0],r.indexOf("venues_map")>0&&(_page=_page.replace("venues_map","venuesMap")),r.indexOf("venues-map")>0&&(_page=_page.replace("venues-map","venuesMap")),r=(_page=_page.substr(0,1).toUpperCase()+_page.substr(1))+"_oTown-"+p[1],page=vpage):(r=vlink+"_oTown-"+p[1],page=vpage),void 0!==d.oAct&&0!=d.oAct&&"0"!=d.oAct&&(r=vlink+"_oTown-"+p[1]+"_oAct-"+d.oAct),a=page,dest=$(this).attr("href"),apply_filters_prep(dest);else if(r.indexOf("oAct")>-1)$(".search-form input").val(""),p=$(this).attr("href").split("oAct-"),r=vlink+"_oAct-"+p[1],a=page,dest=$(this).attr("href");else{var p=r.split("/");"en"==p[1]&&p.shift(),page=p[1];var p=r.split("/en/");p[1].replace("_","-").replace("_","-"),"venues-map"==p[1]&&(p[1]="venuesMap"),"shooting-guide"==p[1]&&(p[1]="guideClayPigeonShooting"),"clay-pigeon-shooting"==p[1]&&(p[1]="locations"),p[1].indexOf("parties")>=0&&(p[1]="event"+p[1].charAt(0).toUpperCase()+p[1].slice(1).replace("_parties","Parties").replace("-parties","Parties")),"families"==p[1]&&(p[1]="eventFamilies"),"school-trips"==p[1]&&(p[1]="eventSchoolTrip"),"scouts"==p[1]&&(p[1]="eventScouts"),"easter"==p[1]&&(p[1]="eventEaster"),"summer-holiday"==p[1]&&(p[1]="eventSummerHoliday"),"paintball-games"==p[1]&&(p[1]="guidePaintballGames"),"equipment"==p[1]&&(p[1]="guidePaintballEquipment"),0==p[1].indexOf("kids-")&&(p[1]="eventKids"),"indoor-paintball"==p[1]&&(p[1]="activityIndoorPaintball"),"low-impact-paintball"==p[1]&&(p[1]="activityLowImpactPaintball"),"zombie-paintball"==p[1]&&(p[1]="activityZombiePaintball"),"zombie-airsoft"==p[1]&&(p[1]="activityZombieAirsoft"),"combat-archery"==p[1]&&(p[1]="activityCombatArchery"),"wild-foraging"==p[1]&&(p[1]="activitySurvivalForaging"),"fire-starting"==p[1]&&(p[1]="activityFireStarting"),"shelter-building"==p[1]&&(p[1]="activityShelterBuilding"),"special-offers"==p[1]&&(p[1]="offers"),1 in p||(p[1]="activities"),r=p[1].toString().substr(0,1).toUpperCase()+p[1].toString().substr(1),a=p[1].toString()}var c=RegExp("/","g");return r=r.replace(c,"_"),e&&-1==r.indexOf("oTown")&&(oTown&&"geo"!=oTown?r=r+"_oTown-"+oTown:userlat&&(r=r+"_userlat-"+userlat+"_userlon-"+userlon)),loadpage(r,page,o,"","",a,u),!1}}})}t()}function n(){$(".main_page_content").show(),$(".geronigo_holder").hide(),$(".window.pp2").animate({left:"100%"},50,function(){$(".window.pp2").addClass("closed")})}function a(){$("#footer .close a").off("click"),$("#footer .close a").on("click",function(){return bWidth=700,"Geronigo Affiliate"==brand&&"Vouchers"==subbrand&&(bWidth=780),$(window).width()<=bWidth&&$("#footer .wrap").fadeOut(50,function(){$("#footer").animate({right:"100%"},75),$(".mobiWrap").removeClass("open"),$("#footer .close").remove()}),!1})}$(".popup2").off("click"),$(".popup2").on("click",function(){$(this).data("resource_id");var e=$(this).attr("href");return $("body").append('<div class="overlay v1"><div class="loader wheel"></div></div>'),$(e).animate({left:"0%"},100).removeClass("closed"),$(e+" input:eq(0)").focus(),$(".overlay.v1").remove(),!1}),$(".window.pp2 .close, .window.pp2 .overlay").off("click"),$(".window.pp2 .close, .window.pp2 .overlay").on("click",function(){var e=$(this).parents(".window").attr("id");return $("#"+e).animate({left:"100%"},100,function(){$("#"+e).addClass("closed")}),!1}),$(".venues-list .venue").off("click"),$(".venues-list .venue").on("click",function(){var e=$(this).attr("id");return $(".venues-list #"+e+" .tit a").trigger("click"),!1}),$(".reviewType").off("change"),$(".reviewType").on("change",function(){var e,t=$("option:selected",$(this)).val(),n="/en/"+t;return page=t,"stag_parties"==t?t="eventStagParties":"hen_parties"==t?t="eventHenParties":"kids_paintball"==t?t="eventKids":"christmas_parties"==t&&(t="eventChristmasParties"),loadpage(t.toString().substr(0,1).toUpperCase()+t.toString().substr(1),page,n,"","",t.toString()),!1}),$(".mapLink").off("click"),$(".mapLink").on("click",function(){var e=$(".venues-list .venue:visible").length;return listNr=e<=5?10:e<=10?19:e+10,pop=0,loadvenues(),!1}),$("select.actSelect").off("change"),$("select.actSelect").on("change",function(){!0==$(this).hasClass("chosen-select")?(oAct="",actI=1,$("select.actSelect :selected").each(function(){"any"!=$(this).val()&&(1!=actI&&(oAct+=","),oAct+=$(this).val(),actI+=1)})):(oAct=(oActParts=(oAct=this.value).split(":"))[0],actFlag="",oActParts.length>1&&(actFlag=oActParts[1])),pop=0,loadvenues()}),$("#catMenu .act a, #training .filter a").off("click"),$("#catMenu .act a, #training .filter a").on("click",function(){var e=$(this).attr("href").split("oAct-");return oCat=$(this).attr("rel"),oAct=e[1],pop="popular"==$(this).parents(".cat").attr("id")?1:0,loadvenues(),!1}),$("#catMenu .cat>a").off("mousedown"),$("#catMenu .cat>a").on("mousedown",function(){var e=$(this).attr("href").split("oCat-");return oCat=$(this).attr("rel"),oCat=e[1].split("_")[0],oAct="any",pop=0,loadvenues(),!1}),"undefined"==typeof autocompleteVersion&&($(".search-form").off("submit"),$(".search-form").on("submit",function(){var e=oTown,t=this;return function a(o){setTimeout(function(){oTown!=e||o>2?function e(t){pop=0;var a=$(t).find(".townSearchBox"),o=a[0].id.replace("townsearch","");findValue(a.attr("value")),(parts=(oTown=lookupTown(o)).split("_")).length>2&&(oTown=parts[0]);var s=$("input[name=oAct]",t).val();void 0!==s&&(oAct=s),$(".ac_results").hide(),n(),$(".search-form input").blur();var r=$("#wrap").attr("class");if(page=(_page=r.split(/\s+/))[0],"page-venuesMap"==r||$("#search-map").length)$("body").append('<div class="loader"><span>Loading</span></div>'),apply_filters();else if(-1==r.indexOf("page-venues")&&-1==r.indexOf("page-category")){var c=page="venues";if("geo"==oTown||""==oTown)var l="",d="";else{oTown.indexOf("ZIP")>-1&&oTown.indexOf(" ")>-1&&(oTown=oTown.split(" ")[0]),oTown2=oTown.replace(" ","").replace(/:/g,"%20");var l="_oTown-"+oTown,d="oTown-"+oTown2}var u="Venues"+l;void 0!==$("select.actSelect")&&"any"==$("select.actSelect option:selected").attr("value")&&(oAct="any"),"0"!=oAct&&0!=oAct&&"any"!=oAct&&(u+="_oAct-"+oAct),"0"!=oCat&&0!=oCat&&"any"!=oCat&&(u+="_oCat-"+oCat),"undefined"!=typeof actFlag&&null!==actFlag&&""!==actFlag&&(u+="_actFlag-"+actFlag),loadpage(u,page,"/en/venues/"+d,"","",c)}else pop=0,loadvenues();return!1}(t):a(o+1)},20*o)}(1),!1})),$(".search-form input.townSearchBox").off("change"),$(".search-form input.townSearchBox").on("change",function(){$(".search-form input.townSearchBox").val(this.value),$("#ajax").remove(),$("body").removeClass("ajaxed")}),$("#nearest .button:last-of-type").off("click"),$("#nearest .button:last-of-type").on("click",function(){$("body").append('<div class="loader"><span>Loading</span></div>')}),$("form p label input, form p label textarea, form p label select").off("focus"),$("form p label input, form p label textarea, form p label select").on("focus",function(){$("form p label").removeClass("focus"),!0!=$(this).parent().hasClass("checkbox")&&$(this).parent().addClass("focus")}),$(".toTop").off("click"),$(".toTop").on("click",function(){return $("html,body").animate({scrollTop:$("body").offset().top},50),!1}),$("#header .contact a").off("mousedown"),$("#header .contact a").on("mousedown",function(){!0==$("#header .contact").hasClass("show")?$("#header .contact").removeClass("show"):$("#header .contact").addClass("show")}),$("#venueLi3 > li").off("click"),$("#venueLi3 > li").on("click",function(){var e=$(this).attr("id");return $("#venueLi3 > li#"+e+" .button a").trigger("click"),!1}),$(".back a, .back").off("click"),$(".back a, .back").on("click",function(){return window.history.back(),!1}),$("#menu .mobiMenu b").off("click"),$("#menu .mobiMenu b").on("click",function(){return!0==$("#menu .mobiMenu").hasClass("open")?$("#menu .mobiMenu").removeClass("open"):(bWidth=700,"Geronigo Affiliate"==brand&&"Vouchers"==subbrand&&(bWidth=780),$("body").innerWidth()<=bWidth?($("#footer .close").length||($("#footer .wrap > .r").prepend('<li class="close h3 h"><a href="#"><span><span></span><span></span><span></span></span> Close</a></li>'),a()),$(".mobiWrap").addClass("open"),"500">=$(window).width()?$("#footer").animate({right:"15%"},50,function(){$("#footer .wrap").fadeIn()}):"580">=$(window).width()?$("#footer").animate({right:"25%"},50,function(){$("#footer .wrap").fadeIn()}):"780">=$(window).width()?$("#footer").animate({right:"50%"},50,function(){$("#footer .wrap").fadeIn()}):$("#footer").animate({right:"25%"},50,function(){$("#footer .wrap").fadeIn()})):$("body").innerWidth()>=bWidth+1&&($("#footer .close").remove(),$("#menu .mobiMenu").addClass("open"),t())),!1}),$("#menu a, #sub-menu a").on("click",function(){return $("#menu li, #sub-menu li").removeClass("current"),$(this).parent().addClass("current"),!0}),$(".geronigo_basket_link a").on("click",function(){$("#wrap").attr("class","page-events")}),a(),$(".map .hover").off("hover"),$(".map .hover").on("hover",function(){var e=$(this).attr("alt");return $(this).attr("id"),$(".map img").attr("src",resourceImages+"maps/"+e+".png"),!1}),$(".counter .controls li").off("click"),$(".counter .controls li").on("click",function(e){return $(this).children().trigger("click"),!1}),$(".counter .controls li a").off("click"),$(".counter .controls li a").on("click",function(e){_parent=$(e.target).parents(".value-counter")[0];var t=$(this).parent().attr("class"),n=$(".value li.current",_parent).html(),a=$(".value li.first",_parent).html();return"up"==t?"500"!=n&&($(".value li.current",_parent).next().addClass("next"),$(".value li",_parent).removeClass("current"),$(".value li.next",_parent).removeClass("next").addClass("current")):n!=a&&($(".value li.current",_parent).prev().addClass("prev"),$(".value li",_parent).removeClass("current"),$(".value li.prev",_parent).removeClass("prev").addClass("current")),!1}),$(".READMOREjs a").off("click"),$(".READMOREjs a").on("click",function(){return $(this).parent().trigger("click"),!1}),$(".READMOREjs").off("click"),$(".READMOREjs").on("click",function(){e.log("READMORE down.");var t=$(this).next(),n=$(this).parent().attr("id"),a=this;if(void 0!==n)a=$(this).parent();else var n=$(this).parent().parent().attr("id");return $(this).parents("#footer").length&&(n="footer"),$(this).animate({scrollTop:$("body").offset().top},50),$("#"+n+" .READMORECONTENTjs").hide(),$("#"+n).removeClass("selected"),!0==$(this).hasClass("open")?($(this).removeClass("open"),$(t).hide(),$("#"+n+" .READMORECONTENTjs a").click(function(e){setTimeout(function(){$("#"+n+" .READMOREjs").click()},100)})):($("#"+n).addClass("selected"),$(t).show(),$(this).addClass("open")),!1}),$(".ajax").off("click"),$(".ajax").on("click",function(){var e=$(this).attr("rel"),t=$(this).attr("name");return"ajaxed"!=$("body").attr("class")&&0==$("#overlay").length&&$("#content").append('<div id="overlay"></div>'),"voucherImage"==t&&$("#wrap").hasClass("page-basket")&&(basketRowID=(basketClass=$(this).parents(".voucher").attr("class").split(" voucher")[0].split("voucher-"))[1]),sbPopup(e,t,""),!1}),$("#venuesMap, #actVenues, #search-map, #nearest").off("click"),$("#venuesMap, #actVenues, #search-map, #nearest").on("click",".venueWindow",function(){var e=$(this).attr("rel")+"_search-ajaxed",t=$(this).attr("name"),n=$("body").attr("class");return oAct=(arr=$(this).attr("href").split("oVenAct-"))[1],$("#wrap").attr("class","page-venues act"+oAct),"ajaxed"!=n&&$("#content").append('<div id="overlay"></div>'),sbPopup(e,t,""),!1}),$(".AJAXCLOSEjs").off("click"),$(".AJAXCLOSEjs").on("click",function(){return close_ajax(),!1}),$("#overlay").off("click"),$("#overlay").on("click",function(){return close_ajax(),!1}),$(".tabs-menu li a").off("click"),$(".tabs-menu li a").on("click",function(){if($(this).hasClass("notab"));else{if("Geronigo AffiliateX"==brand&&"responsive"==template){var e=$(this).attr("href");$("html,body").animate({scrollTop:$(e).offset().top},100)}else{var t=$(this).parent(),n=$(this).attr("rev"),a=$(this).parent().parent().children(),o=$(this).parent().parent().parent().attr("id"),s=$(this).attr("rel"),e=$(this).attr("href").split("#"),r="#"+o+" #"+e[1],c=$(this).parent().attr("class");if($(this).parents(".buyWin").length&&"step4"==e[1]){validated1=0,validated2=0,validated3=0;var l=$(this).parents(".buyWin").attr("id");if($("#"+l+" .error").removeClass("error"),$("#"+l+" input[class=customer_name]").val().length<2?($("#"+l+" input[class=customer_name]").closest("label").addClass("error"),validated1=1):validated1=0,$("#"+l+" input[class=customer_email]").val().length<6?($("#"+l+" input[class=customer_email]").closest("label").addClass("error"),validated2=1):validated2=0,$("#"+l+" input[class=customer_tel]").val().length<5?($("#"+l+" input[class=customer_tel]").closest("label").addClass("error"),validated3=1):valdiated3=0,0!==validated1||0!==validated2||0!==validated3)return $("body").append('<div class="overlay v2"><div class="oops"><span class="icn">warning</span><p class="h1 h">Oops!!!</p><p>Please complete your details</p><p class="button"><a href="#" class="close">Okay</a></p></div></div>'),!1}"tab-selected"==c||"_blank"==$(this).attr("target")||!0==$(this).hasClass("categoryLink")||(!0==$(this).hasClass("scrollTo")?$("html,body").animate({scrollBottom:$("#"+e[1]).offset().top},50):($(this).parents("#pkgTabs").length&&$("html,body").animate({scrollTop:$("body").offset().top},50),"grid"==$(this).attr("id")?$("#venueLi3").addClass("grid"):$("#venueLi3").removeClass("grid"),$("#"+o+" ."+s).hide(0).removeClass("tabs-selected"),$(a).removeClass("tab-selected"),$(t).addClass("tab-selected"),"tabs-ajax-container"==s?$(r).show(0).addClass("tabs-selected").load("/en/index/plug-"+n,function(){}):$(r).show(0).addClass("tabs-selected xxx"),!0==$(this).hasClass("lival")&&"function"==typeof ajax_liveA&&ajax_liveA()))}return!1}}),$(".tabs-link").off("click"),$(".tabs-link").on("click",function(){$('.tabs-menu [href="'+$(this).attr("href")+'"]').click()}),$("#enquiryForm > .button a").off("click"),$("#enquiryForm > .button a").on("click",function(e){var t=$(this).parents(".pliva").attr("id");return $("#"+t+" #dates .selected").trigger("click"),!1}),$(".tab-link").off("click"),$(".tab-link").on("click",function(){var t=$(this).attr("href"),n=$(this).parents(".tablinks").attr("id");if($("#"+n+" .tab-link").removeClass("selected"),$(".tab-link").parent().removeClass("selected"),$(this).parent().addClass("selected"),$(this).parents(".pkgList").length){var a=$(this).parents(".pkgList").attr("id");$("#"+a+" .selected").removeClass("selected"),$("#"+a+" .open").removeClass("open"),$("#"+a+" .READMOREjs").html($(this).html()),$(this).parent().addClass("selected")}else if($(this).parents("#pkgNav").length)$("#pkgNav .open").removeClass("open"),$("#pkgNav .READMORECONTENTjs").hide();else if("#tabBook"==t)$("#tabLinks .c .w").removeClass("selected"),$("#tabLinks .c:nth-child(3) .w").addClass("selected");else if("#tabEnquiry"==t){t="[id=tabEnquiry]",$("[id=tabEnquiry]").parents(".liveA").filter(":not(:visible)").find("[id=tabEnquiry]").remove(),api_url="https://apidev2.geronigo.com/api/v1.1/";var o=$(this).attr("rel").split("+"),s=parseParams(o[3]);s.activity_id&&s.activity_id&&$("#enquiryForm *[name=activity_id]").val(s.activity_id),s.package_id&&s.package_id&&$("#enquiryForm *[name=package_id]").val(s.package_id),s.session_id&&s.session_id&&$("#enquiryForm *[name=session_id]").val(s.session_id),s.date&&s.date&&$("#enquiryForm *[name=date]").val(s.date),e.log($(this).attr("rel"),o),$("#enquiryForm .summary .date").html(o[0]),$("#enquiryForm .summary .pkg").html(o[1]),$("#enquiryForm .summary .sess").html(o[2]),$("#enquiryForm .bookit").attr("href",o[3])}return $(this).addClass("selected"),$(t).trigger("click"),!1}),$("body").off("click",".overlay .oops a"),$("body").on("click",".overlay .oops a",function(){return $(this).parent().parent().remove(),$(".overlay").remove(),$(".tab-link.validate").removeClass("validate"),!1}),$(".cmHead .cls").off("click"),$(".cmHead .cls").on("click",function(){return $(".cmHead .slidedown").animate({height:"0px"},100,function(){$(".cmHead .slidedown .promo").animate({opacity:"0"},50).remove(),$(".cmHead .slidedown").remove()}),!1}),$(".add-to-basket .button a").off("click"),$(".add-to-basket .button a").on("click",function(){return $("html,body").animate({scrollTop:$("#voucher-basket").offset().top},100),!0}),"Escape This"!=brand&&($(".gm8ShowForm").off("click"),$(".gm8ShowForm").on("click",function(){return $("html,body").animate({scrollTop:$("#book").offset().top},100),!0})),$("#promoCheck button").off("click"),$("#promoCheck button").on("click",function(){var e=$("#promoCheck input").val();return $("body").append('<div class="loader"><span>Loading</span></div>').addClass("loadingJS"),$(".promoDetails").load("/en/index/plug-contentpromocode_promocode-"+e,function(){$(".loader").remove(),$("#promoDetailsTab").trigger("click")}),!1}),$(".review .desc").each(function(){var e=$(this).height(),t=$(this).css("line-height"),n=$(this).css("padding");n=parseFloat(n),t=parseFloat(t);var a,n=2*n,e=e-n;Math.round(e/t)>1&&$(this).parent().addClass("readmore")}),$(".review.readmore").off("click"),$(".review.readmore").on("click",function(){$(this).removeClass("readmore").addClass("open")}),$(".review.open").off("click"),$(".review.open").on("click",function(){$(this).removeClass("open").addClass("readmore")}),$("#create-invite form button").off("click"),$("#create-invite form button").on("click",function(){if("Childrens Birthday Party"==$("option:selected",$("#create-invite form .eventTypeJS")).html()){var e=$("#create-invite form").attr("action");$("#create-invite form").attr("action",e+"_search-children")}}),"venue"==websiteType&&($(".r #gm8Calendar td div").off("click"),$(".r #gm8Calendar td div").on("click",function(){loadpage("Availability","availability","/en/availability","","","availability")})),("Red Rush Vouchers"==brand||"Red Rush Driving"==brand)&&($("#experiences select").off("change"),$("#experiences select").on("change",function(){var e=$(this).attr("class");$("option:selected",$("#experiences select."+e)).val(),$("body").append('<div class="loader"><span>Loading</span></div>').addClass("loadingJS");var t=[];$("#rrFilter select").each(function(){var e=$(this).val(),n=$(this).attr("rel");""!=e&&t.push(n+"-"+e)}),link=t.join("_"),$("#content .main_page_content").load("/en/experiences/plug-pageExperiences_"+link+"_search-ajaxed",function(){$(".loader").remove(),$("body").removeClass("loadingJS")})}),$("#menu .r .c.menu .w").off("click"),$("#menu .r .c.menu .w").on("click",function(){return!0==$(this).parent().hasClass("open")?$(this).parent().removeClass("open"):($("#menu .c.menu").each(function(){$(this).removeClass("open")}),$(this).parent().addClass("open")),!1}),$("#menu .r .c.menu li a").off("click"),$("#menu .r .c.menu li a").on("click",function(){$("#menu .c.menu").each(function(){$(this).removeClass("open")})}),$("#package #details .w p").each(function(){var e=$(this).height(),t=$(this).css("line-height"),n=$(this).css("padding");n=parseFloat(n),t=parseFloat(t);var a,n=2*n,e=e-n;Math.round(e/t)>3&&$(this).parent().addClass("readmore")}),$("#package #details .w .readmore").off("click"),$("#package #details .w .readmore").on("click",function(){$(this).removeClass("readmore").addClass("open")}),$("#package #details .w .open").off("click"),$("#package #details .w .open").on("click",function(){$(this).removeClass("open").addClass("readmore")}),$("#package #intro .viewall").off("click"),$("#package #intro .viewall").on("click",function(){$(this).removeClass("viewall").addClass("open")}),$("#package #intro .open").off("click"),$("#package #intro .open").on("click",function(){$(this).removeClass("open").addClass("viewall")})),$("#catMenu .h3 .button a").off("click"),$("#catMenu .h3 .button a").on("click",function(){oAct="any",oCat="",pop=0,loadvenues()}),"Corpze"==brand||"AdrenaCourse"==brand||"Dirt Karts"==brand||"Mud Mayhem"==brand||"Go Combat Archery"==brand||"Survive This"==brand||"Segway Trails"==brand||"Paintball Nation"==brand||brand,brand,setTimeout(function(){$(".search-form").fadeIn(50)},2e3),!function e(t){if(0!=$(".datepicker").length){if(void 0===$("").datepicker)return $.getScript("/js/templateResponsive/jquery-ui.min.v2.js",function(){e(10)});$(".datepicker").datepicker({dateFormat:"dd-mm-yy",changeMonth:!0,changeYear:!0,firstDay:1}).click(function(){$(this).datepicker("show")})}}(),$(".scrollLink").off("click"),$(".scrollLink").on("click",function(){"Geronigo Affiliate"==brand||"Adventure Card"==brand?$("html,body").animate({scrollTop:$($(this).attr("href")).offset().top-145},100):$("html,body").animate({scrollTop:$($(this).attr("href")).offset().top-255},100)}),window.location.href.indexOf("#")>-1&&$("#wrap").addClass("hashLink"),"Corpze"==brand&&($("#events .top a").off("click"),$("#events .top a").on("click",function(){return $("#events ul").animate({marginTop:"0px"},250),!1})),("Jump This"==brand||"Jump This Oz"==brand)&&$(".skydiver.s2").animate({"background-position-x":"100%","background-position-y":"100%"},1e3,"linear").animate({"background-position-x":"50%","background-position-y":"50%"},2e3,"linear").animate({"background-position-x":"100%","background-position-y":"100%"},1e3,"linear").animate({"background-position-x":"50%","background-position-y":"50%"},1e3,"linear").animate({"background-position-x":"100%","background-position-y":"100%"},1e3,"linear"),setTimeout(function(){$(".fade").cycle({fx:"fade"}),$.fn.cycle.updateActivePagerLink=function(e,t){$(e).find("a").removeClass("activeLI").filter("a:eq("+t+")").addClass("activeLI")},0==$("#pager .first").length&&$(".pager").after('<ul class="nav reset">').cycle({timeout:3e3,pager:"#pager .nav",pagerEvent:"mouseover",allowPagerClickBubble:!0,pagerAnchorBuilder:function(e,t){return 0==e?'<a href="#" class="first"></a>':'<a href="#"></a>'}}),0==$("#pagerAdv1 .first").length&&$(".pagerAdv1").cycle({timeout:3e3,pager:"#pagerAdv1 .navi",pagerEvent:"mouseover",pauseOnPagerHover:!0,allowPagerClickBubble:!0,pagerAnchorBuilder:function(e,t){var n=$("#pagerAdv1 #slide-"+e).html();return 0==e?'<a href="#" class="first">'+n+"</a>":'<a href="#">'+n+"</a>"}}),0==$("#pagerAdv2 .first").length&&$(".pagerAdv2").cycle({fx:"scrollVert,fade,scrollHorz",timeout:3e3,pager:"#pagerAdv2 .navi",randomizeEffects:!0,pagerEvent:"mouseover",pauseOnPagerHover:!0,allowPagerClickBubble:!0,pagerAnchorBuilder:function(e,t){var n=$("#pagerAdv2 #slide-"+e+" a").html();return 0==e?'<a href="#" class="first">'+n+"</a>":'<a href="#">'+n+"</a>"}})},100),"Geronigo Affiliate"==brand&&$("#brands .pagerB").after('<ul class="nav navB reset">').cycle({timeout:3e3,pager:"#clients .navB",pagerEvent:"mouseover",allowPagerClickBubble:!0,pagerAnchorBuilder:function(e,t){return 0==e?'<a href="#" class="first"></a>':'<a href="#"></a>'}})}function email_sent(e,t,n){if($(".required").removeClass("value-required"),$(".required").removeClass("validated"),$("#loading").empty().append("<h2>Email Sent</h2>"),setTimeout(function(){$("#loading").fadeOut().remove()},300),""!=t)var a="Thank you for your voucher redemption request.  One of our advisors will be in touch as soon as possible.";else{var a='Thank you for your enquiry. An interactive quote from <a href="http://rezbot.com" target="_blank">rezBot</a> will be emailed to you shortly, you will be notified via sms when it has been sent.</p><p>If you do not receive a quote from us within 24hrs please check your spam folder, or call us';if("Stagzilla"==brand||"Stag Zilla"==brand)var a='<div class="confirmed"><b>Thanks very much for your enquiry.</b> One of our advisors will be in touch as soon as possible.</div>';if("Red Rush Vouchers"==brand||"Red Rush Driving"==brand)var a="Thanks very much for your enquiry. One of our advisors will be in touch as soon as possible.";if("Action Pact"==brand)var a="Thank you for your enquiry. One of our event specialists will be in touch shortly."}$(".CONTACTFORMjs").empty().append("<script>window.dataLayer = window.dataLayer || [];window.dataLayer.push({'booking_id':'"+n+"','conversion_type':'contact'})</script><p id=\"contactSuccess\">"+a+"</p>"+e)}function recordContactFormError(e){e.posted=JSON.stringify(e.posted),$.post("/en/action_query/iqactions/recordError",{category:e.category,error:e.error,posted:e.posted,response:e.response,severity:e.severity},function(e){})}function clearText(e){e.defaultValue==e.value&&(e.value="")}function isValidEmail(e){return RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(e)}function randomString(e){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,e)}function isGeolocateAllowed(){return!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||-1!=(window.location+"").indexOf("https")}$(function(){$(".slider").off("change"),$(".slider").on("change",function(){var e=$(this).val(),t=$(this).parents(".range").attr("id");return $("#"+t+" span b").html(e),!1}),$("#venue-prices-basic .formats-list-basic .block-wrapper").hide(0),$(".popup2").off("click"),$(".popup2").on("click",function(){var e=$(this).attr("href");return $("body").append('<div class="overlay v1"><div class="loader wheel"></div></div>'),$(e).animate({left:"0%"},100).removeClass("closed"),$(".overlay.v1").remove(),!1})}),"undefined"==typeof basket&&(basketCount=0,voucherTotal="",chargeTotal="",basketTotal="",basket={items:{}});var loaderTimeout=null;function check_for_user_location(e){if(!isGeolocateAllowed())return e&&loadBrowserGeoVenues(),!1;if(void 0===e)var e=!0;var t=getCookie("latlon");if(void 0!==t&&null!=t&&-1!=t.indexOf(",")){userlat=(parts=t.split(","))[0],userlon=parts[1],e&&loadBrowserGeoVenues();return}navigator.geolocation&&(e?navigator.geolocation.getCurrentPosition(geoLocateLoad,geolocate_error):navigator.geolocation.getCurrentPosition(geoLocateOnly,geolocate_error))}function cancelLoaderTimeout(){loaderTimeout&&(clearTimeout(loaderTimeout),loaderTimeout=null)}function removeLoader(){$("body span.loader").remove()}function geolocate_error(e){(1==e.code||2==e.code)&&alert("Your browser cannot find your location. Please use the search box to find your closest sites.")}function geoLocateOnly(e){browserGeoLocate(e,!1)}function geoLocateLoad(e){browserGeoLocate(e,!0)}function browserGeoLocate(t,n){userlat=t.coords.latitude,userlon=t.coords.longitude,e.log("browserGeoLocate",userlat,userlon),setCookie("latlon",userlat+","+userlon,300),n&&loadBrowserGeoVenues()}function setCookie(e,t,n){var a=new Date;a.setTime(a.getTime()+3e5);var o=";expires="+a.toUTCString();document.cookie=e+"="+t+o+"; path=/"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}function loadBrowserGeoVenues(){$("body").append('<span class="loader"><span>Loading</span></span>');var t,n=$("#wrap").attr("class").split(/\s+/);if(n=n[0],e.log(n),"page-venuesMap"==n)$(".search_town").html("Nearby"),$("input#townsearch0").attr("value","Nearby"),$("input#townsearch1").length>0&&$("input#townsearch1").attr("value","Nearby"),apply_filters();else if("pagevenues"==n||"page-venues"==n||"page-venue"==n)pop=0,loadvenues();else{loadpage("Venues_userlat-"+userlat+"_userlon-"+userlon,n,"/en/venues/")}}function loadvenues(){"geo"==oTown&&"undefined"!=typeof oTown2&&(oTown=oTown2);var e="",t="",n="",a="",o="",s="",r=[],c="";if("geo"!=oTown?(t=e="oTown-"+oTown.replace(" ",":"),r.push(e)):"undefined"!=typeof userlat&&"undefined"!=typeof userlon&&userlat&&(e="userlat-"+userlat+"_userlon-"+userlon,r.push(e)),"any"!=oAct&&(a=n="oAct-"+oAct.replace(/,/,"-"),r.push(n)),a||""==oCat||"0"==oCat||0==oCat||"multiactivity"!=websiteType||-1!=oCat.indexOf(",")||(s=o="oCat-"+oCat,r.push(o)),""!=actFlag&&r.push("actFlag-"+actFlag),r=r.join("_"),add_parts="",r&&(c="/"+r),"undefined"!=typeof pop&&1==pop)var l="_search-pop";else var l="";$("body").append('<div id="loading" class="loader"><span>Loading</span></div>');var d="";if($("#wrap").hasClass("page-venuesMap")||$("#search-map").length)d="/en/venues-map"+c,apply_filters();else{d="/en/venues"+c;var u="/en/venues/plug-pageVenues_";document.location.href.indexOf("venues_map")>0&&(u="/en/venues_map/plug-pageVenuesMap_"),$("#content .main_page_content:eq(0)").load(u+r+"_listNr-"+listNr+l,function(){$("#wrap").attr("class","page-venues act"+oAct),$(".loader").remove()})}if(history&&history.pushState){var p="Venues_"+r+"*venues";try{window.history.pushState(""+p,"",d)}catch(f){}}else document.location.href="//"+window.location.hostname+d}function setCommonSettings(e){var t=e.split("_");for(i in oVenue="0",oAct="any",oVenAct="0",t)if(t[i].indexOf("-")>0){var n=t[i].split("-");switch(n[0]){case"oVenue":oVenue=n[1];break;case"oAct":oAct=n[1];break;case"oVenAct":oVenAct=n[1],oAct=n[1];break;case"oTown":oTown=n[1]}}}function loadpage(t,n,a,o,s,r,c){page2=t.toLowerCase().split("_")[0],"venues"==n&&a&&"string"==typeof a&&(e.log(t,n,a,o,s,r,c),a.replace("%20",":")),$(".window.pp2").animate({left:"100%"},50,function(){$(".window.pp2").addClass("closed")});var l="";if($(".geronigo_holder").hide(),$("html,body").animate({scrollTop:$("body").offset().top},50),!0==$("body").hasClass("ajaxed")&&($("body").removeClass("ajaxed"),$("#overlay").remove(),$("#ajax").remove()),$("body").append('<div class="loader"><span>Loading</span></div>').addClass("loadingJS"),history&&history.pushState||(document.location.href="//"+window.location.hostname+a),"index"==n?"undefined"!=typeof userlat&&"undefined"!=typeof userlon&&""!=userlat&&""!=userlon&&(oTown="geo",oTown2="geo",l="_userlat-"+userlat+"_userlon-"+userlon,$("input#townsearch0").attr("value","")):"undefined"==n&&(n="index"),t.indexOf("/")>=0){var d=RegExp("/","g");t=t.replace(d,"_")}setCommonSettings(t),"whitelabel"==brand&&"index"==n&&(r="venues",t="Venues"),"Geronigo Affiliate"==brand&&"Partners"==subbrand&&"index"==n&&(r="network",t="Network"),t=t.replace("Venues-map","VenuesMap"),brand,n.replace&&(n=n.replace("page-","")),(""==n||"undefined"==n)&&(n="venues"),!0==$(".mobiMenu").hasClass("open")&&$(".mobiMenu").removeClass("open"),"Stagzilla"==brand&&($("#menu .main .selected").removeClass("selected"),$("#menu .main .READMORECONTENTjs").hide()),0===t.indexOf("page")&&(t=t.substring(4)),0===t.indexOf("booker")&&(t="Booker"),0!==$(".page-css").length&&("undefined"==typeof ext&&(ext=1),$(".page-css").append('<link href="/css/api_sb/'+theme+"/"+ext+"/page-"+n+'.css" rel="stylesheet" media="all">'),page2!=n&&$(".page-css").append('<link href="/css/api_sb/'+theme+"/"+ext+"/page-"+page2+'.css" rel="stylesheet" media="all">')),$("#content .main_page_content").children().fadeOut(100),$("#content .main_page_content").css("min-height","1050px");var u="/en/"+n+"/plug-page"+t+"_search-ajaxed"+l;$.get(u,function(o){e.log("appending content 3");try{$("#content .main_page_content").empty().append(o)}catch(l){e.log(l)}$("body").removeClass("loaded"),"venue"==r?($("#content .social").load("//"+window.location.hostname+"/hack/templates/fork_sites/plugins/content/socialLikes"),$("#wrap").attr("class","page-venue act"+oAct)):"destination"==r?$("#wrap").attr("class","page-"+r+" oTown"+oTown):"gifts"==r?("1"==oGift||"3"==oGift||oGift,"4"==oGift||"4"==oGift||oGift,"5"==oGift||"7"==oGift||"15"==oGift||oGift,"11"==oGift||oGift,$("#wrap").attr("class","page-"+r+" children")):"Kids Activity Guide"==brand||"The Activity People"==brand||"Corpze"==brand||"whitelabel"==brand?$("#wrap").attr("class","page-"+r+" multi"+(Math.floor(5*Math.random())+1)):$("#wrap").attr("class","page-"+r+" act"+oAct),$("#content .main_page_content").fadeIn(50,function(){if(setTimeout(function(){$("body").addClass("loaded")},60),$(".loader").remove(),$("body").removeClass("loading"),"Reviews"==c&&$("html,body").animate({scrollTop:$("#reviews").offset().top},50),"Facilities"==c&&$("html,body").animate({scrollTop:$("#facilities").offset().top},50),"Location"==c&&$("html,body").animate({scrollTop:$("#location").offset().top},50),"undefined"==typeof basketCount||0==basketCount||"voucher"!=n&&"vouchers"!=n&&"experience"!=n&&"basket"!=n||($("ul.delivery label.selected").click(),$("ul.delivery label.selected").length||$("ul.delivery label").click()),$("#reviews").length&&$(".review .desc").each(function(){var e=$(this).height(),t=$(this).css("line-height"),n=$(this).css("padding");n=parseFloat(n),t=parseFloat(t);var a,n=2*n,e=e-n;Math.round(e/t)>1&&$(this).parent().addClass("readmore")}),"responsive"==template&&initiateSearchBox(),analytics=1,(!0==$("body").hasClass("dev")||!0==$("body").hasClass("stage"))&&(analytics=0),1==analytics&&(window.location.href.indexOf("dev")>-1||"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview","/en/"+n])),history&&(""==history.state||null==history.state)&&void 0!=history.replaceState&&history.replaceState("start","/","/"),history&&history.pushState){var e=t+"*"+n;if(1==s);else try{window.history.pushState(""+e,"",a)}catch(o){}}else document.location.href="//"+window.location.hostname+a}),apply_filters(),"#"!=document.location.hash&&""!=document.location.hash&&setTimeout(function(){document.location.hash=document.location.hash},50)})}$(function(){$(document).ready(function(){if(my_page=window.location.pathname,_pageType="index",_page="index",my_page.indexOf("/en")>-1){_pageType=(_page_parts=(_page=my_page.replace("/en/","")).split("/"))[0];var e=RegExp("/","g");_page=_page.replace(e,"_")}page=_pageType,_state=_page.charAt(0).toUpperCase()+_page.slice(1)+"*"+_pageType,history&&void 0!=history.replaceState&&history.replaceState(_state,_pageType,window.location.pathname)}),window.addEventListener&&window.addEventListener("popstate",function(e){if(!ignorehashchange){var t=null,n=null,a=null,o=null;if(null==e.state){if((a=$("#wrap").attr("class")).indexOf("page-")&&void 0!==(a=a.split("page-"))[1]&&(a=a[1]),a.indexOf(" ")>=0)var a=a.split(" "),a=a[0];var n=a.toString().substr(0,1).toUpperCase()+a.toString().substr(1)+"_";if("0"!=oCat&&"0"!=oVenAct&&(n+="oCat-"+oCat+"_"),"any"!=oAct&&"0"!=oVenAct&&(n+="oAct-"+oAct+"_"),"any"!=oGift&&(n+="oGift-"+oGift+"_"),"0"!=oVenue&&(n+="oVenue-"+oVenue+"_oVenAct-"+oVenAct),"basket"!=a.toLowerCase())return;"_"==n.substr(n.length-1)&&(n=n.substr(0,n.length-1)),o=window.location.pathname}else{if(1==(t=e.state.split("*")).length){n=(t=e.state.split("|"))[1],$(tgt=t[0]).empty().load(n);return}if(n=t[0],a=t[1],o=e.path,"partners"==a){window.location.href=document.location;return}}var s=a;if($("#menu li").removeClass("current"),"booker"==n){window.history.back();return}loadpage(n=n.replace("Venues-map","VenuesMap"),a,o,"","1",s)}})}),$(document).ready(function(){"Red Rush Vouchers"!=brand&&"Red Rush Driving"!=brand&&"Stagzilla"!=brand&&"Geronigo Affiliate"!=brand&&"Corpze"!=brand&&"Go Climbing"!=brand&&"Extreme Motors"!=brand&&"Axes"!=brand&&"Rifles"!=brand&&"Go Falconry"!=brand&&"Splat Paintball"!=brand&&"Escape This"!=brand&&"Surfs Cool"!=brand&&"Adventure Card"!=brand&&"Adventure Cards"!=brand&&"Karting Nation"!=brand&&"whitelabel"!=brand&&"venue"!=websiteType&&$("#navigation .mobiMenu > ul").hide(),extra_delay=0,window.innerWidth<=800&&(extra_delay=5e3),setTimeout(function(){$(".likeit").load("//"+window.location.hostname+"/hack/templates/fork_sites/plugins/content/socialLikes")},5e3+extra_delay),window.screen.availWidth>800&&"undefined"!=typeof snow&&1==snow&&$(document).snowfall&&($(document).snowfall("clear"),$(document).snowfall({round:!0,minSize:1,maxSize:4,collection:"#content",flakeCount:150}))}),("Scenes Above"==brand||"Jump This"==brand||"Jump This Oz"==brand||"Scenes Above Oz"==brand)&&1==cloud&&window.innerWidth>800&&($(function(){(!$.browser.msie||$.browser.version>5)&&$("#cloud-holder").clouds({clouds:[{src:"cloud-2.png",x:160,y:70,speedX:-2},{src:"cloud-2.png",x:1260,y:110,speedX:-2},{src:"cloud-3.png",x:0,y:0,speedX:-1},{src:"cloud-3.png",x:1400,y:0,speedX:-2},{src:"cloud-4.png",x:0,y:50,speedX:-1},{src:"cloud-4.png",x:1400,y:150,speedX:-1},{src:"cloud-5.png",x:1315,y:0,speedX:-1},{src:"cloud-6.png",x:65,y:0,speedX:-1},{src:"cloud-6.png",x:965,y:0,speedX:-2},{src:"cloud-7.png",x:1150,y:0,speedX:-1},{src:"cloud-8.png",x:310,y:0,speedX:-2},{src:"cloud-9.png",x:180,y:90,speedX:-1},{src:"cloud-9.png",x:1280,y:160,speedX:-1},{src:"cloud-10.png",x:500,y:160,speedX:-1},{src:"cloud-11.png",x:680,y:65,speedX:-1},{src:"cloud-12.png",x:100,y:20,speedX:-2},{src:"cloud-13.png",x:910,y:145,speedX:-1},{src:"cloud-14.png",x:0,y:0,speedX:-1},{src:"cloud-15.png",x:280,y:200,speedX:-3},{src:"cloud-15.png",x:120,y:70,speedX:-2}],folder:"//images.activitybooker.net/clouds/",speed:30})}),$.fn.clouds=function(e){return e=$.extend({clouds:[],folder:"/",speed:2,opacityStep:1,fader:!1},e),this.each(function(t,n){var a=$(n);$.each(e.clouds,function(t,n){var o=new Image;$(o).load(function(){var t=$('<div class="cloud"></div>');t.css({top:n.y+"px",left:n.x+"px",width:o.width+"px",height:o.height+"px",backgroundImage:"url("+this.src+")",zIndex:2}),a.append(t),e.opacityStep,window.setInterval(function(){e.fader&&t.css({opacity:n.currentO});var s=parseInt(t.css("left"));if(t.css({left:s-n.speedX+"px"}),t.offset().left>$(document).width()-a.offset().left){var r=-o.width;t.css({left:r+"px"})}},e.speed)}),o.src=e.folder+n.src})})}),$(document).ready(function(){if("Geronigo Affiliate"==brand&&""!=subbrand){if(xx=1,!$("#brands").length)return;$(window).scroll(function(){var e=$("#brands").offset().top-100,t=$("#brands").outerHeight(),n=$(window).height();$(this).scrollTop()>e+t-n&&1==xx&&(xx=2,$(".count").each(function(){var e=$(this),t=e.attr("data-count");$({countNum:e.text()}).animate({countNum:t},{duration:12500,easing:"linear",step:function(){e.parent().attr("class","cou"+Math.floor(this.countNum)),e.text(Math.floor(this.countNum))},complete:function(){e.text(this.countNum)}})}))})}_chat=!1,function e(){setTimeout(function(){$("#chat-widget-container").css({"z-index":"10"});var t=$("#livechat-compact-container, #chat-widget-container");"0"!=$(t).css("opacity")&&$(t).is(":visible")&&(_chat=!0,$(t).prepend('<a href="#" id="livechat-icon-close" class="h4 h" title="close chat" style="text-shadow:-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important">X</a>'),$("#livechat-icon-close").css({display:"box",padding:"10px",top:"10px",left:0,position:"relative","z-index":100,color:"#fff"}),$("#livechat-icon-close").off("click"),$("#livechat-icon-close").on("click",function(){return $(t).hide(),$("#livechat-icon-close").hide(),$("#chat-widget-container").hide(),!1})),_chat||e()},2e3)}(),"Adventure Card"==brand&&$(".autoplay").slick({autoplay:!0,autoplaySpeed:2e3,infinite:!0,speed:2e3,slidesToShow:1,centerMode:!0,variableWidth:!0}),"Corpze"==brand&&$("#events .events").height()>$("#events .scroll").height()&&setTimeout(function(){numItems=$("#events .events .date").length,up=10,id=1,(lstHe=$("#events .scroll").height()-$("#events .events .date:nth-child("+numItems+")").height()+10)>=1&&$("#events .events").append('<li class="h1 h" style="height:'+lstHe+"px; line-height:"+lstHe+'px;"><a href="/en/missions">View All</a></li>'),$("#events .events .date").each(function(){id<=numItems-1&&(id=1+id,up=$(this).height()+up,$("#events .scroll").animate({scrollTop:up},100,"linear").delay(50))})},1e3)});
/*File: js/familyTransition/vouchers1.js*/
if(typeof basket=="undefined"){basketCount=0;voucherTotal=0;chargeTotal=0;deliveryTotal=0;wrappingTotal=0;basketTotal=0;basket={items:[]}}if(typeof randomString=="undefined"){function randomString(a){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,a)}}attachEvents("voucher1Events",voucher1Events);function voucher1Events(){if(typeof(deliveryTotal)=="undefined"){deliveryTotal=0;wrappingTotal=0}$("#menu .basket").off("click");$("#menu .basket").on("click",function(){loadpage("Basket","basket","/en/basket","","","basket")});$("#voucher-basket > .overlay, #voucher-basket .READMORECONTENTjs > .close").off("click");$("#voucher-basket > .overlay, #voucher-basket .READMORECONTENTjs > .close").on("click",function(){$("#voucher-basket > .READMOREjs").trigger("click");return false});$(".basketLink").off("click");$(".basketLink").on("click",function(){var g=$(this).attr("rel");if(!g){return}var c=g.split("+");var z=null;var b=null;var A=null;var r="_nocache-"+randomString(10);if(g.indexOf("promoID:")===0){$.post("/en/index/plug-contentvoucherBasketFamilyTransition_promoID-"+g.substr(8)+r,function(F){loadpage("Basket","basket","/en/basket","","","basket");return false});return false}for(index in c){if(c[index].indexOf("rrPage:")===0){z=c[index].substr(7)}if(c[index].indexOf("rrCms:")===0){b=c[index].substr(6)}if(c[index].indexOf("act:")===0){A=c[index].substr(4)}}var s="";if(typeof c[2]!=="undefined"&&c[2]!=""){var y=c[2]}else{var y=""}var t=c[0];var B=c[1];var d="";var w="";var o="";var k="";if(typeof c[3]!=="undefined"&&c[3]!=""){var x=c[3]}else{var n=$(this).parents("div:eq(0)")[0];var x=$("#buy select option:selected").val();if(x==undefined){var x=$(".counter .value .current",n).text()}var D=$("#buy .addBasket .valueSelector").val();if(D!=undefined){var h=new RegExp(/[0-9]+/);var E=h.exec(D);if(E.length>0){if(E[0]){x=E[0]}}}if(x==undefined||isNaN(Number(x))){D=$(".value-counter li.current").text();var h=new RegExp(/[0-9]+/);var E=h.exec(D);if(E.length>0){if(E[0]){x=E[0]}}}}var v="";var m="";if($("#voucherName").val()){m=$("#voucherName").val()}var l="";if($("#voucherQuoteID").val()){l=$("#voucherQuoteID").val()}var q=0;if($("#thankyou").val()){q=$("#thankyou").val()}else{if($("input.thankyou:last").val()){q=$("input.thankyou:last").val()}}var f="";if($("#voucherMsg").val()){f=$("#voucherMsg").val()}var p="";var e={image:s,voucherImage:y,voucherBrand:t,voucherName:B,voucherType:d,voucherDesc:w,categoryTitle:o,categoryDesc:k,price:x,charge:v,voucherRecipient:m,voucherMessage:f,buttonClass:p,rrPage:z,rrCms:b,act:A,quoteID:l,thankyou:q};if($("#voucher-basket").length){console.log("basket is here");addBasket2(e)}else{var C="Basket";if(websiteType=="venue"&&template!="responsive"){C="venue1Basket"}else{C="Basket"}var j="basket";var u=$(this).attr("href");$("body").removeClass("ajaxed");$("#overlay").remove();$("#ajax").remove();$(".cornerPromo").hide();C=C+"_iq-"+l;console.log("load basket later");loadpage(C,j,u,"","","basket");addIfBasketIsHere(e,0)}return false});if(template!="rush"){$("#voucherNEW .viewBasket a").off("click");$("#voucherNEW .viewBasket a").on("click",function(){if(websiteType=="venue"){var b=$("#content").attr("class")}else{var b=$("#wrap").attr("class")}if(basketCount>=1&&(b.indexOf("page-voucher")==-0||b.indexOf("page-vouchers")==-0)){$("#voucher-basket").show();$(".voucherWrap").hide();return false}});$("#voucher-basket .back a").off("click");$("#voucher-basket .back a").on("click",function(){if(websiteType=="venue"){var b=$("#content").attr("class")}else{var b=$("#wrap").attr("class")}if(basketCount>=1&&(b.indexOf("page-voucher")==-0||b.indexOf("page-vouchers")==-0)){$("#voucher-basket").hide();$(".voucherWrap").show();return false}})}$(".voucher-basket li .remove").off("click");$(".voucher-basket li .remove").on("click",function(){if($(this).attr("class").match){_index=$(this).attr("class").match(/(\d+)/);_index=_index[1];_index=removeBasket(_index)}else{_index=$(this).attr("class").substr(8,2);if(_index[1]==" "){removeBasket(_index[0])}else{removeBasket(_index)}}});$("#voucher-basket .basket li .deliveryselect select,     #voucher-basket .basket li .deliveryselect option").off("change");$("#voucher-basket .basket li .deliveryselect select,       #voucher-basket .basket li .deliveryselect option").on("change",function(b){_self=b.target;_parent=$(_self).parents(".voucher")[0];$(".customise",_parent).show();$($("input",_parent)[0]).change();return true});$("#voucher-basket .basket li .delivery ul li label").off("click");$("#voucher-basket .basket li .delivery ul li label").on("click",function(c){_self=c.target;if(!$(_self).is("label")){_self=$(_self).parents("label:eq(0)")[0]}var d=$(_self).parents(".voucher")[0];var b=$(d).prop("class").split(" voucher");_class=$(_self).parent().prop("class").split(" ");_class=_class[0];if(_class=="x"){return}$("#voucher-basket .basket ."+b[0]+" .delivery ul li label").removeClass("selected");$(_self).addClass("selected");$("input[type=radio]",_self).attr("checked","checked");$("input[type=radio]",_self).trigger("change");$(".customise",d).show();$("#voucher-basket .basket ."+b[0]+" .packaging li").hide();$("#voucher-basket .basket ."+b[0]+" .packaging ."+_class).show();if(_class=="evoucher"||_class=="evoucherx"){$(".address",d).hide()}else{$(".address",d).show()}$(".deliveryselect",d).hide();if(_class!="evoucher"){$(".deliveryselect."+_class,d).show()}return true});$(".sameasabove").off("click");$(".sameasabove").on("click",function(){var c=$(this).attr("id").split("-"),d=c[1],b=[];offset=0;for(cpt=0;cpt<=5;cpt++){if(cpt==0&&$(".voucher-"+(d-1)+" .address input:eq(0)").attr("type")=="checkbox"){offset=1}b[cpt]=$(".voucher-"+(d-1)+" .address input:eq("+(cpt+offset)+")").val();index=cpt+1;input=$(".voucher-"+(d)+" .address input:eq("+index+")").val(b[cpt])}$(input).change();return false});$("#voucher-basket form").off("submit");$("#voucher-basket form").on("submit",function(){var b=$(this).hasClass("verified");var c=$("#wrap").attr("class");$(".voucher-basket button").addClass("loading");$("body").append('<div class="loader lg"><span class="wrapper"><span>Loading</span></span></div>').addClass("loadingJS");frm=this;if(b){return true}if(basketCount=="0"){alert("Please add a voucher to your basket to proceed.");$(".voucher-basket button").removeClass("loading");$(".loader").remove();$("body").removeClass("loadingJS");return false}b=true;message=[];$(".basket .voucher",this).each(function(){$("p.error",this).remove();delivery=$(".delivery li input",this).attr("name");delivery=$(".delivery li input[name='"+delivery+"']:checked",this).val();delivery=$(".delivery li input:checked",this).val();if(!delivery){b=false;message[0]="Please select a packaging option to proceed."}else{if(delivery!="email"&&delivery!="evoucher"){$(".address .required",this).each(function(){var d=$(this).val();if(!d){b=false;message[0]="Please add a delivery address"}})}}});if(message.length){if(template=="api"){$("body").append('<div class="overlay v2"><div class="loader oops"><p>'+message.join("\n")+'</p><p class="button"><a href="#">Okay</a></p></div></div>')}else{$(".basket-summary").prepend('<div class="error" style="color:#c00; text-align:right; font-size:16px">'+message.join("\n")+"</div>")}$(".customise").prepend('<div class="error">'+message.join("\n")+"</div>");$(".customise .error").fadeOut(8000).css({color:"#e00"});setTimeout(function(){$(".customise .error").remove();$(".basket-summary .error").remove()},5000)}message=[];if(!b){$(".voucher-basket button").removeClass("loading");$(".loader.lg").remove();$("body").removeClass("loadingJS");return false}storeBasketInSession(function(){$("#voucher-basket form").addClass("verified");$("#voucher-basket form").trigger("submit")});return false});$("#voucher-basket > .READMOREjs, #voucher-basket > .READMORECONTENTjs, #voucher-basket > .overlay").attr("id","count"+basketCount);$("#voucher-basket .count").html(basketCount);$("#voucher-basket .basket input, #voucher-basket .basket textarea, #voucher-basket	.valueSelector").off("change");$("#voucher-basket .basket input, #voucher-basket .basket textarea, #voucher-basket	.valueSelector").on("change",function(b){if(typeof refreshBasketTimeout!=="undefined"){clearTimeout(refreshBasketTimeout)}refreshBasketTimeout=setTimeout(function(){refreshBasket(null,true,"Updating")},20);return true});updateBasketTotals();function a(b){if($(".valueSelector").length==0){return}if(typeof($("").datepicker)=="undefined"&&b==undefined){return $.getScript("/onflyjs/jquery-ui-1.12.1.v2.min/jquery.multiselect",function(){setTimeout(function(){a(10)},50)})}if(typeof($(".valueSelector").selectmenu)=="undefined"){return $.getScript("/js/jquery.multiselect.js",function(){a(10)})}$(".valueSelector").selectmenu({classes:{"ui-selectmenu-menu":"valueSelector-drop"},change:function(c,d){setTimeout(function(){$(c.target).change()},10)},select:function(h,j){var e=$(h.currentTarget);var g=regex1=new RegExp(/(\d+)/);var c=j.item.element[0].parentElement;var k=Number($(c).attr("id").replace("ui-id-",""));var d=$("option.pop",c).val();var f=j.item.element[0].value;if(f==d){if($("#wrap").hasClass("page-vouchers")||$("#wrap").hasClass("page-basket")){$("#ui-id-"+k+"-button").append('<span class="pop">Most Popular</span>')}else{$("#ui-id-"+k+"-button").append('<span class="pop">Recommended</span>')}}else{$("#ui-id-"+k+"-button .pop").remove()}},option:"valueSelector-drop",create:function(e,f){var d=e.target;var c=$(d).parent();$.each($("option",d),function(){if($(this).hasClass("pop")){if($(".ui-selectmenu-text",c).html()==$(this).html()){if($("#wrap").hasClass("page-vouchers")||$("#wrap").hasClass("page-basket")){$(".ui-selectmenu-button",c).append('<span class="pop">Most Popular</span>')}else{$(".ui-selectmenu-button",c).append('<span class="pop">Recommended</span>')}}}i=i+1})}})}a();$(".valueSelect").off("click");$(".valueSelect").on("click",function(c){parent=c.currentTarget;var b=$(".valueSelector",parent).attr("id").replace("ui-id-","");var d=Number(b);b=$("#ui-id-"+d+"-menu .ui-menu-item-wrapper").attr("id");if(b==undefined){b=$("#ui-id-"+d+"-menu .ui-menu-item").attr("id").replace("ui-id-","")}if(b==undefined){b=d+1}else{b=Number(b.replace("ui-id-",""))}$.each($(".valueSelector option",parent),function(){if($(this).hasClass("pop")){if($('*[id="ui-id-'+b+'"] .pop').length==0){if($("#wrap").hasClass("page-vouchers")||$("#wrap").hasClass("page-basket")){$('*[id="ui-id-'+b+'"]').append('<span class="pop">Most Popular</span>')}else{$('*[id="ui-id-'+b+'"]').append('<span class="pop">Recommended</span>')}}}b=b+1})});$("#selectImage .tabs-container a").off("click");$("#selectImage .tabs-container a").on("click",function(){if(typeof voucherBrand=="undefined"){voucherBrand="geronigo"}var e=$(this).attr("rel");$("#selectImage .selected").removeClass("selected");$(this).parent().addClass("selected");$(".addBasket .selectVoucher a b").remove();$(".addBasket .selectVoucher a").append('<b style="background-image: url(/images/vouchers/'+voucherBrand+"/acts/md/"+e+'.jpg);"></b>');$(".addBasket .selectVoucher a").attr("rel","voucherImage_search-"+e+"");if($("#wrap").attr("class").indexOf("page-basket")==-0||$("#wrap").attr("class").indexOf("page-basket")==-0){$("#voucher-basket .voucher-"+basketRowID+" .imgs").empty().append('<span class="img" style="background-image: url(/images/vouchers/'+voucherBrand+"/acts/md/"+e+'.jpg);"></span>');$("#voucher-basket .voucher-"+basketRowID+" .icn").remove();$("#voucher-basket .voucher-"+basketRowID+" .box .w").prepend('<span class="icn" style="background-image: url(/images/delivery/all/md/'+voucherBrand+"/"+e+'.png);"></span>');$("#voucher-basket .voucher-"+basketRowID+" .folder .w").prepend('<span class="icn" style="background-image: url(/images/delivery/wallet/md/'+voucherBrand+"/"+e+'.png);"></span>');$("#voucher-basket .voucher-"+basketRowID+" .evoucher .w").prepend('<span class="icn" style="background-image: url(/images/vouchers/'+voucherBrand+"/acts/md/"+e+'.jpg);"></span>');$("#voucher-basket input.voucherImage"+basketRowID+"").val("/images/vouchers/"+voucherBrand+"/acts/md/"+e+".jpg");var c="";if(e!=null&&isNaN(Number(e))){reg=new RegExp(/^(\d+)/);var d=reg.exec(e);if(d!=null){if(!isNaN(Number(d[0]))){c=e.substr(d[0].length);e=d[0]}}else{c=e;e=""}}$("#voucher-basket .voucher-"+basketRowID+' input[name="voucher['+basketRowID+'][act]"]').val(e);$("#voucher-basket .voucher-"+basketRowID+' input[name="voucher['+basketRowID+'][type]"]').val(c);$("#voucher-basket .voucher-"+basketRowID+' input[name="voucher['+basketRowID+'][type]"]').change()}else{var b=$(".addBasket .basketLink").attr("rel").split(".jpg");$(".addBasket .basketLink").attr("rel",""+b[0]+".jpg++act:"+e+"")}close_ajax();return false})}function addIfBasketIsHere(a,e){if($("#voucher-basket").length){addBasket2(a)}else{if(e>15){return}if(e>=10&&e%10==0){var b="Basket";var c=basket;var d="/en/basket";loadpage(b,c,d,"","","basket")}setTimeout(function(){addIfBasketIsHere(a,e+1)},500)}}function addBasket2(z){var q=z.image;var y=z.voucherImage;var r=z.voucherBrand;var B=z.voucherName;var b=z.voucherType;var v=z.voucherDesc;var n=z.categoryTitle;var j=z.categoryDesc;var x=z.price;var u=z.charge;var k=z.voucherRecipient;var e=z.voucherMessage;var p=z.buttonClass;var A=z.rrPage;var a=z.rrCms;var t=z.quoteID;var o=z.thankyou;if(typeof(basketCount)!=="undefined"){basketCount+=1}else{if(typeof(basket)!=="undefined"&&typeof(basket.items)!=="undefined"){basketCount=Object.keys(basket.items)[Object.keys(basket.items).length-1]+1}else{basketCount=1}}var w=z.act;if(!w){var w=$('.checkout input[name="voucher[1][act]"]').val()}var d=$('.checkout input[name="voucher[1][cat]"]').val();if(y.indexOf(".jpg")<0&&y[0]=="/"){y=y+"/front.jpg"}if(p=="multi-activity"){var c=$("#voucher-promo .activity-selector ul li.current a").attr("rel");var h=c.split(",");var f=h[0];var q="//"+arr[1]+"/"+arr[2]+"/"+arr[3]+"/"+arr[4]+"/"+arr[5]+"/act-"+f+".jpg";var y=arr[5]+"/act-"+f+".jpg"}var g="";if(w!=null&&isNaN(Number(w))){reg=/^(\d+)/;var m=reg.exec(w);if(m!=null){if(!isNaN(Number(m[0]))){g=w.substr(m[0].length);w=m[0]}}else{g=w;w=""}}promocode="";var l="";if(B=="Mega Paintball Voucher"&&p=="promo-voucher"){promocode="PBMegaDeal";var l='<input type="hidden" value="PBMegaDeal" name="voucher['+basketCount+'][promocode]" />'}var s="";if(v==null||v=="null"){v=""}basketRow={value:x,charge:u,name:B,desc:v,image:y,brand:r,recipient:k,message:e,type:p,categoryTitle:n,categoryDesc:j,act:w,cat:d,type:g,quoteID:t,thankyou:o};if(promocode){basketRow.promocode=promocode}if(A){basketRow.rrPageID=A}if(a){basketRow.rrCmsID=a}if(typeof(basket)=="undefined"||typeof(basket.items)=="undefined"){basket={items:[]}}basket.items[basketCount]=basketRow;if(basketCount==1){$("#menu").addClass("basketSet")}refreshBasket(basket,"","Voucher Added");return false}function checkUpdateBasket(a){if(a==undefined){a=0}if(a>10){return}setTimeout(function(){if(basketCount!=$(".basket li.voucher").length){$(".basket ul.delivery li .selected").click()}else{updateBasketPrice(a+1)}},500)}function updateBasketPrice(a){if(a==undefined){a=0}if(a>10){return}setTimeout(function(){if($(".basket ul.delivery li .selected").length>0||basketCount!=$(".basket li.voucher").length){$(".basket ul.delivery li .selected").click()}else{updateBasketPrice(a+1)}},500);return false}function addBasket(e,f,d,j,b,n,a,l,h,k,c,g,m){basketInfo={image:e,voucherImage:f,voucherBrand:d,voucherName:j,voucherType:b,voucherDesc:n,categoryTitle:a,categoryDesc:l,price:h,charge:k,voucherRecipient:c,voucherMessage:g,buttonClass:m};return addBasket2(basketInfo)}function refreshBasket(d,b,e){if(d){params=d;if(!params||!params.items||Object.keys&&Object.keys(params.items).length==0){params="noitems="}}else{params=$("#voucher-basket form").serialize()}if(!b){if(e=="Voucher Added"){$("body").append('<div class="voucherAlert loader lg"><span class="wrapper"><span>'+e+"</span></span></div>")}else{$("body").append('<div class="loader lg"><span class="wrapper"><span>'+e+"</span></span></div>").addClass("loadingJS")}}var c="_nocache-"+randomString(10);var a="/en/index/plug-contentvoucherBasketFamilyTransition"+c;if(b){a=a+"_json-1"}$.post(a,params,function(f){if(!b){$(".voucher-basket .basket").empty()}$(".voucher-basket .basket").append(f);$(".loader").remove();updateBasketTotals();return});return}function updateBasketTotals(){$(".basket-summary").show();if(typeof(basketCount)=="undefined"){return}$("#menu .basketLink dfn").html(basketCount);if(basketCount>0){$(".viewBasket").show();$(".voucher-basket .charges").show();$(".voucher-basket .basket-total").removeClass("no-items")}else{$("#menu").removeClass("basketSet")}if(typeof(voucherTotal)=="undefined"||voucherTotal==""){voucherTotal=0}$(".voucher-basket .empty").hide();$(".voucher-basket .voucher-total span").empty().append((voucherTotal).toFixed(2));if(typeof(discountTotal)=="undefined"||discountTotal==0){discountTotal=0}$(".voucher-basket .voucher-discount span").empty().append((discountTotal).toFixed(2));$(".voucher-basket .voucher-discount").hide();if(discountTotal!=0){$(".voucher-basket .voucher-discount").show()}if(typeof(deliveryTotal)=="undefined"||deliveryTotal==""){deliveryTotal=0}if(typeof(wrappingTotal)=="undefined"||wrappingTotal==""){wrappingTotal=0}if(typeof(basketTotal)=="undefined"||basketTotal==""){basketTotal=0}$("#voucher-basket > .READMOREjs, #voucher-basket > .READMORECONTENTjs, #voucher-basket > .overlay").attr("id","count"+basketCount);$("#voucher-basket .count").html(basketCount);$(".voucher-basket .deliverycharge span").empty().append((deliveryTotal).toFixed(2));$(".voucher-basket .wrappingcharge span").empty().append((wrappingTotal).toFixed(2));$(".voucher-basket .basketTotal").val((basketTotal).toFixed(2));$(".voucher-basket .basket-total").show();$("#voucher-basket .total span").empty().append((basketTotal).toFixed(2))}function removeBasket(a){a=""+a;if(basket.items[a]){delete basket.items[a]}$(".voucher-"+a+" .remove").addClass("loading");refreshBasket(basket,"","Removing Voucher");if(basket.items.length==0){basketTotal=0;basketCount=0;voucherTotal=0;chargeTotal=0}}function storeBasketInSession(a){if(a){$.post("/en/action_query/vouchermodel/storeBasketInSession",$("#voucher-basket form").serialize(),function(){if(a){a()}})}else{$.post("/en/action_query/vouchermodel/storeBasketInSession",$("#voucher-basket form").serialize(),function(){if(a){a()}})}};
/*File: js/familyTransition/map.js*/
$(document).on("mouseenter",".map_google",function(){$("#search-map .priceBadge").hide()});$(document).on("mouseleave",".map_google",function(){$("#search-map .priceBadge").show()});$(function(){$(document).on("click",".APPLYFILTERSjs",function(){if(page=="venue"){window.location=this.href;return false}$("body").append('<div id="loading"></div>');if(build==1){console.log("Live Function bound to : .APPLYFILTERSjs")}$(".search-form input").focus();var a=this.href;apply_filters_prep(a)});$(document).on("click",".APPLYFILTERSSTOPjs",function(){if(page=="venue"){window.location=this.href;return false}if(build==1){console.log("Live Function bound to : .APPLYFILTERSSTOPjs")}var a=this.href;apply_filters_prep(a);$(".APPLYFILTERSSTOPjs").removeClass("current");$(this).addClass("current");return false})});function apply_filters_prep(a){if(build==1){console.log("Function : apply_filters_prep("+a+")")}var b=a.split("/");var d=b.pop();var c=d.split("_");var e=0;if(a.indexOf("oCat")>-1&&a.indexOf("oAct")<0){oAct="any"}if(a.indexOf("oAct")>-1&&!a.indexOf("oCat")<0){oCat=0}$.each(c,function(g,j){var k=j.split("-");if(k[1]){switch(k[0]){case"oAct":oAct=k[1];var h=true;if(oAct!="any"&&oAct!=0&&typeof f==undefined){oCat=0}return;case"oCat":oCat=k[1];var f=true;if(oCat!=0&&typeof h==undefined){oAct="any"}return;case"xoAct":xoAct=k[1];return;case"xfAct":xfAct=k[1];return;case"oTown":oTown=k[1];return;case"oAge":oAge=k[1];return;case"oBudget":oBudget=k[1];return;case"cntry":cntry=k[1];return;case"conti":conti=k[1];return;case"listNr":listNr=k[1];return;case"mapNr":mapNr=k[1];return;case"pdID":pdID=k[1];e=1;return;case"forID":forID=k[1];return;case"cdID":cdID=k[1];return;case"oExp":oExp=k[1];return;case"oGift":oGift=k[1];return;case"website":website=k[1];return}}});if(e==1){forID=0}apply_filters(a)}function apply_filters(g,d,f){if(build==1){console.log("Function : apply_filters("+g+")")}var e=0;var c=0;if($("#map_google").length){c=1}var b=new Array();var a=0;if(xoAct!=defxoAct){b[a]="_xoAct-"+xoAct;a=a+1}if(xfAct!=defxfAct){b[a]="_xfAct-"+xfAct;a=a+1}if(oAct!=defoAct){b[a]=("_oAct-"+oAct).replace(",","-");a=a+1}if(oCat!=defoCat){b[a]=("_oCat-"+oCat).replace(",","-");a=a+1}if(actFlag!=""){b[a]=("_actFlag-"+actFlag);a=a+1}if(oTown!=defoTown){if(oTown==undefined&&f!=undefined){oTown=f}b[a]=("_oTown-"+oTown).replace(",","-");a=a+1}if(oTown=="geo"&&defoTown=="geo"&&userlat!=""&&userlon!=""){b[a]=("_userlat-"+userlat);a=a+1;b[a]=("_userlon-"+userlon);a=a+1}if(oAge!=defoAge){b[a]="_oAge-"+oAge;a=a+1}if(oBudget!=defoBudget){b[a]="_oBudget-"+oBudget;a=a+1}if(cntry!=defcntry){b[a]="_cntry-"+cntry;a=a+1}if(conti!=defconti){b[a]="_conti-"+conti;a=a+1}if(listNr!=deflistNr){b[a]="_listNr-"+listNr;a=a+1}if(mapNr!=defmapNr){b[a]="_mapNr-"+mapNr;a=a+1}if(pdID!=defpdID&&pdID!=""){b[a]="_pdID-"+pdID;a=a+1}if(cdID!=defcdID){b[a]="_cdID-"+cdID;a=a+1}if(forID!=defforID){b[a]="_forID-"+forID;a=a+1}if(oGift!=defoGift){b[a]="_oGift-"+oGift;a=a+1}if(oExp!=defoExp){b[a]="_oExp-"+oExp;a=a+1}if(website!=defwebsite){b[a]="_website-"+website;a=a+1}if(d=="cntryZoom"){b[a]="_cntryZoom-1";a=a+1}if(iqREF!="0"){b[a]="_iq-"+iqREF;a=a+1}if(typeof(redemptioncode)!="undefined"){b[a]="_redemptioncode-"+redemptioncode;a=a+1}var h=b.join("");if(h.substring(0,1)=="_"){h=h.substring(1)}if(c==1){e=1;$.ajax({type:"GET",url:["/en/feeds/json/sbmod/venue_listJSON/",h+"_listNr-5000_mapNr-5000"].join(""),data:{strSearch:f},dataType:"json",success:function(i){var j=i;if($("#map_google").length){populate_map(j);console.log("not populating map")}$(".loader").remove();if(build==1){console.log("Action : Change activity titles to "+j.activity.activity_page_title+" and Town names to "+j.town.town)}$(".TOWNSEARCHNAMEjs").html(j.town.short_town);$(".ACTIVITYSEARCHTITLEjs").html(j.activity.activity_page_title);$(".GIFTSFORTITLEjs").html(j.activity.grouptype)}})}}function populate_map(e){if(typeof(google)=="undefined"||typeof(google.maps)=="undefined"){map_data=e;loadMapHS();return}if(build==1){console.log("Function : populate_map()")}var b=new google.maps.LatLng(e.town.lat,e.town.lon);var f=parseFloat(e.town.zoomDefault);var d=0;if(e.town.zoomDefault=="0"){var f=7;var d=1}var c=1;var a=[[e.town.lat,e.town.lon,f,d]];$.each(e.results,function(){if(!this.maplink&&this.link){this.maplink=this.link}if(this.maplink!=undefined){if(c<=e.settings.mapNr){var h="</span></a>";if(this.minPrice!==""&&this.minPrice!=="0.00"){h='<span class="map-price">From '+curr+""+this.minPrice+"</span></span></a>"}var g=[];g.push(h);g.push(this.lat);g.push(this.lon);if(this.maplink&&this.maplink.replace){g.push(this.maplink.replace(/\\\"/g,'"'));a.push(g)}c=c+1}}else{sbAlert("<p>You searched for venues using the following criteria</p><li>Minimum Age : "+oAge+" years</li><li>Max Budget per person : &pound;"+oBudget+"</li><p></p><p>Widen your search using the buttons in the corner of the map</p>","","No Results")}});loadMap(a)}if(typeof autocompleteVersion=="undefined"||typeof findValue=="undefined"){function findValue(a){resultID="0";if(a===null){return resultID=0}if(!!a.extra){var b=a.extra[0]}else{var b=a.selectValue}return resultID=b}function selectItem(a){findValue(a)}function selectAndSubmit(c,d,b){findValue(c);var a=$(b).data("index");oTown=lookupTown(a);apply_filters("","",$(b).val());$(b).parents("form").submit();$("input.townSearchBox").each(function(){if(d.input.attr("id")!=$(this).attr("id")){$(this).attr("value","")}})}function formatItem(a){return a[0]+" (id: "+a[1]+")"}function lookupTown(a){if(a=="pkgtownsearch"){var b=$("#pkgtownsearch")[0].autocompleter}else{var b=$("#townsearch"+a)[0].autocompleter}if(b!=""){searchVal=b.findValue();if(searchVal&&searchVal[0]){resultID=searchVal[0][1]}else{resultID=oTown}}else{resultID=oTown}return resultID}}$(document).ready(function(){initiateSearchBox()});function resetTownSearchIds(){var a=0;$("input.townSearchBox").each(function(){$(this).unbind("keydown").unbind("blur").unbind("focus");$(this).attr("id","townsearch"+a);$(this).data("index",a);a+=1})}function initiateSearchBox(){resetTownSearchIds();$("input.townSearchBox").each(function(){var a="#"+$(this).attr("id");$(a).find("input").autocomplete();$(a).unbind("keydown").unbind("blur").unbind("focus").autocomplete("/townsearch/"+tsConti+"/"+tsCntry,{delay:500,minChars:3,mustMatch:1,matchSubset:1,selectFirst:true,onItemSelect:function(b,c){selectAndSubmit(b,c,a)},onFindValue:findValue,autoFill:false,maxItemsToShow:10,onNoMatch:function(b,c){return false}})})}if(mapSet==1){$(document).ready(function(){apply_filters(cntryZoom)});function loadMap(j){var n={zoom:j[0][2],maxZoom:18,center:new google.maps.LatLng(j[0][0],j[0][1]),mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:false,streetViewControl:false,scrollwheel:false};var e=$("*[id=map_google]:visible");if(e.length>0){var d=new google.maps.Map(e[0],n)}var m=[{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]}];if(typeof(d)==="undefined"){return}d.setOptions({styles:m});var l={gridSize:50,maxZoom:15};var f=[];for(var h=1;h<j.length;h++){var g=new google.maps.Marker({position:new google.maps.LatLng(j[h][1],j[h][2]),map:d});(function(o,p){google.maps.event.addListener(o,"click",function(){infowindow=new google.maps.InfoWindow({content:j[p][3]+""+j[p][0]});infowindow.open(d,o)})})(g,h);f.push(g)}var k=new MarkerClusterer(d,f,l);if(j[0][3]==1){var c=new google.maps.LatLng(j[1][1],j[1][2]);var b=new google.maps.LatLng(j[6][1],j[6][2]);var a=new google.maps.LatLngBounds();a.extend(c);a.extend(b);d.fitBounds(a);zoomChangeBoundsListener=google.maps.event.addListenerOnce(d,"bounds_changed",function(i){if(this.getZoom()>11){this.setZoom(11)}})}}};
/*File: js/jquery.lazy.min.js*/
/*! jQuery & Zepto Lazy v1.7.10 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */
!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)||u;g===N&&h&&A.attr(l)&&A.attr(l,b(A.attr(l),h)),c[g]===e||A.attr(f)||A.attr(f,c[g]),g===N&&i&&!A.attr(E)?A.attr(E,i):g===N||!o||A.css(O)&&"none"!==A.css(O)||A.css(O,"url('"+o+"')")}return t}function s(t,e){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var o=e||i,u=!1,l=a.imageBase||"",f=a.srcsetAttribute,c=a.handledName,s=0;s<o.length;s++)if(t||e||A(o[s])){var g=n(o[s]),h=m(o[s]),b=g.attr(a.attribute),v=g.attr(a.imageBaseAttribute)||l,p=g.attr(a.loaderAttribute);g.data(c)||a.visibleOnly&&!g.is(":visible")||!((b||g.attr(f))&&(h===N&&(v+b!==g.attr(E)||g.attr(f)!==g.attr(F))||h!==N&&v+b!==g.css(O))||p)||(u=!0,g.data(c,!0),d(g,h,v,p))}u&&(i=n(i).filter(function(){return!n(this).data(c)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var u=a.attribute,l=a.srcsetAttribute,f=a.sizesAttribute,c=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(c);if(i){var g=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),g=n.noop};t.off(I).one(I,o).one(D,g),y(i,t,function(e){e?(t.off(D),g()):(t.off(I),o())})||t.trigger(I)}else{var h=n(new Image);h.one(I,o).one(D,function(){t.hide(),e===N?t.attr(C,h.attr(C)).attr(F,h.attr(F)).attr(E,h.attr(E)):t.css(O,"url('"+h.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(u+" "+l+" "+c+" "+a.imageBaseAttribute),f!==C&&t.removeAttr(f)),t.data(d,!0),y(T,t),h.remove(),p()});var m=(L&&A?A:t.attr(u))||"";h.attr(C,t.attr(f)).attr(F,t.attr(l)).attr(E,m?r+m:null),h.complete&&h.trigger(D)}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=h()+n>e.top&&-n<e.bottom,o=g()+n>e.left&&-n<e.right;return"vertical"===r?i:"horizontal"===r?o:i&&o}function g(){return w>=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;a<n;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,u){function l(){i=+new Date,e.call(r,o)}var f=+new Date-i;n&&clearTimeout(n),f>t||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l<f;l++)(o[t[l]]===e||n.isFunction(o[t[l]]))&&(o[t[l]]=i);for(var c=0,s=r.length;c<s;c++)u[r[c]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window);
/*File: js/jquery.lazy.youtube.min.js*/
/*! jQuery & Zepto Lazy - YouTube Plugin v1.5 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */
!function(t){t.lazy(["yt","youtube"],function(t,e){if("iframe"===t[0].tagName.toLowerCase()){var o=/1|true/.test(t.attr("data-nocookie"));t.attr("src","https://www.youtube"+(o?"-nocookie":"")+".com/embed/"+t.attr("data-src")+"?rel=0&amp;showinfo=0"),this.config("removeAttribute")&&t.removeAttr("data-src")}else e(!1)})}(window.jQuery||window.Zepto);
/*File: js/jquery.lazy.vimeo.min.js*/
/*! jQuery & Zepto Lazy - Vimeo Plugin v1.1 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */
!function(t){t.lazy("vimeo",function(t,e){"iframe"===t[0].tagName.toLowerCase()?(t.attr("src","https://player.vimeo.com/video/"+t.attr("data-src")),this.config("removeAttribute")&&t.removeAttr("data-src")):e(!1)})}(window.jQuery||window.Zepto);
/*File: js/attached_events_post.js*/
var _attached_events_timeout=null;var _attached_event_cancelled=null;function cancelEvents(){clearTimeout(_attached_events_timeout);_attached_event_cancelled=_attached_events_timeout;_attached_events_timeout=null}function setEventTimeout(){var a=100;if(_attached_events_timeout){cancelEvents();a=a+200}_attached_events_timeout=setTimeout(function(){attachedEvents();_attached_events_timeout=null},a)}$(document).ajaxSend(function(){if(_attached_events_timeout!=null){cancelEvents()}});$(document).ajaxComplete(function(){setEventTimeout()});$(document).ready(function(){setEventTimeout()});