function debounce(n,t,i){var r;return function(){function e(){i||n.apply(f,u),r=null}var f=this,u=arguments;r?clearTimeout(r):i&&n.apply(f,u),r=setTimeout(e,t||100)}}function pad(n,t){for(var i=n+"";i.length<t;)i="0"+i;return i}function IsEmail(n){var t=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;return t.test(n)}function bottomAlignImages(n,t){var i=function(n,t){var i=0;$(n).imagesLoaded(function(){$(n).each(function(n,t){$(t).height()>i&&(i=$(t).height())}),$(n).each(function(n,r){$(r).css(t,i-$(r).height())})})};i(n,t),$(window).smartresize(function(){i(n,t)})}function getHashParameter(n,t){var f=n.split("#"),i,r,u;if(f.length<2)return null;for(u=f[1].split("&"),i=0;i<u.length;i++)if(r=u[i].split("="),r[0]==t)return unescape(r[1]);return null}function getQueryParameter(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function pageBorder(){var i=$(window).height(),t=$(".site-container-main").height()||$(".wrapper").height(),n=$(".page-end").css({visibility:"visible",zIndex:"0"});t<i&&n.addClass("fixed-pos-border")}if(window.JSON||(window.JSON={}),function(){function i(n){return n<10?"0"+n:n}function s(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=h[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var c,l,h,a,v=n,o,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i)),typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return s(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,o=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,c=0;c<a;c+=1)o[c]=u(c,e)||"null";return h=o.length===0?"[]":n?"[\n"+n+o.join(",\n"+n)+"\n"+v+"]":"["+o.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,c=0;c<a;c+=1)l=t[c],typeof l=="string"&&(h=u(l,e),h&&o.push(s(l)+(n?": ":":")+h));else for(l in e)Object.hasOwnProperty.call(e,l)&&(h=u(l,e),h&&o.push(s(l)+(n?": ":":")+h));return h=o.length===0?"{}":n?"{\n"+n+o.join(",\n"+n)+"\n"+v+"}":"{"+o.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=window.JSON,e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof f.stringify!="function"&&(f.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,!f||typeof f=="function"||typeof f=="object"&&typeof f.length=="number")return u("",{"":i});throw new Error("JSON.stringify");}),typeof f.parse!="function"&&(f.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),e.lastIndex=0,e.test(text)&&(text=text.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}},typeof i.init!="undefined"&&i.init()}(window),function(n){"use strict";var r=n.document,f=n.setTimeout||f,e=n.clearTimeout||e,u=n.setInterval||u,i=n.History=n.History||{};if(typeof i.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");i.initHtml4=function(){if(typeof i.initHtml4.initialized!="undefined")return!1;i.initHtml4.initialized=!0,i.enabled=!0,i.savedHashes=[],i.isLastHash=function(n){var r=i.getHashByIndex(),t;return t=n===r,t},i.saveHash=function(n){return i.isLastHash(n)?!1:(i.savedHashes.push(n),!0)},i.getHashByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedHashes[i.savedHashes.length-1]:n<0?i.savedHashes[i.savedHashes.length+n]:i.savedHashes[n],t},i.discardedHashes={},i.discardedStates={},i.discardState=function(n,t,r){var f=i.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:t},i.discardedStates[f]=u,!0},i.discardHash=function(n,t,r){var u={discardedHash:n,backState:r,forwardState:t};return i.discardedHashes[n]=u,!0},i.discardedState=function(n){var r=i.getHashByState(n),t;return t=i.discardedStates[r]||!1,t},i.discardedHash=function(n){return i.discardedHashes[n]||!1},i.recycleState=function(n){var t=i.getHashByState(n);return i.discardedState(n)&&delete i.discardedStates[t],!0},i.emulated.hashChange&&(i.hashChangeInit=function(){i.checkerFunction=null;var o="",s,t,f,e;return i.isInternetExplorer()?(s="historyjs-iframe",t=r.createElement("iframe"),t.setAttribute("id",s),t.style.display="none",r.body.appendChild(t),t.contentWindow.document.open(),t.contentWindow.document.close(),f="",e=!1,i.checkerFunction=function(){if(e)return!1;e=!0;var u=i.getHash()||"",r=i.unescapeHash(t.contentWindow.document.location.hash)||"";return u!==o?(o=u,r!==u&&(f=r=u,t.contentWindow.document.open(),t.contentWindow.document.close(),t.contentWindow.document.location.hash=i.escapeHash(u)),i.Adapter.trigger(n,"hashchange")):r!==f&&(f=r,i.setHash(r,!1)),e=!1,!0}):i.checkerFunction=function(){var t=i.getHash();return t!==o&&(o=t,i.Adapter.trigger(n,"hashchange")),!0},i.intervalList.push(u(i.checkerFunction,i.options.hashChangeInterval)),!0},i.Adapter.onDomLoad(i.hashChangeInit)),i.emulated.pushState&&(i.onHashChange=function(t){var s=t&&t.newURL||r.location.href,f=i.getHashByUrl(s),u=null,o=null,h=null,e;return i.isLastHash(f)?(i.busy(!1),!1):(i.doubleCheckComplete(),i.saveHash(f),f&&i.isTraditionalAnchor(f)?(i.Adapter.trigger(n,"anchorchange"),i.busy(!1),!1):(u=i.extractState(i.getFullUrl(f||r.location.href,!1),!0),i.isLastSavedState(u)?(i.busy(!1),!1):(o=i.getHashByState(u),e=i.discardedState(u),e?(i.getHashByIndex(-2)===i.getHashByState(e.forwardState)?i.back(!1):i.forward(!1),!1):(i.pushState(u.data,u.title,u.url,!1),!0))))},i.Adapter.bind(n,"hashchange",i.onHashChange),i.pushState=function(t,u,f,e){if(i.getHashByUrl(f))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:e}),!1;i.busy(!0);var o=i.createStateObject(t,u,f),s=i.getHashByState(o),l=i.getState(!1),c=i.getHashByState(l),h=i.getHash();return i.storeState(o),i.expectedStateId=o.id,i.recycleState(o),i.setTitle(o),s===c?(i.busy(!1),!1):s!==h&&s!==i.getShortUrl(r.location.href)?(i.setHash(s,!1),!1):(i.saveState(o),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0)},i.replaceState=function(n,t,r,u){if(i.getHashByUrl(r))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(u!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:u}),!1;i.busy(!0);var f=i.createStateObject(n,t,r),o=i.getState(!1),e=i.getStateByIndex(-2);return i.discardState(o,f,e),i.pushState(f.data,f.title,f.url,!1),!0}),i.emulated.pushState&&i.getHash()&&!i.emulated.hashChange&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})},typeof i.init!="undefined"&&i.init()}(window),function(n,t){"use strict";var f=n.console||t,r=n.document,e=n.navigator,o=n.sessionStorage||!1,h=n.setTimeout,l=n.clearTimeout,c=n.setInterval,a=n.clearInterval,u=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;if(u.stringify=u.stringify||u.encode,u.parse=u.parse||u.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)},i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;if(i.initCore.initialized=!0,i.options=i.options||{},i.options.hashChangeInterval=i.options.hashChangeInterval||100,i.options.safariPollInterval=i.options.safariPollInterval||500,i.options.doubleCheckInterval=i.options.doubleCheckInterval||500,i.options.storeInterval=i.options.storeInterval||1e3,i.options.busyDelay=i.options.busyDelay||250,i.options.debug=i.options.debug||!1,i.options.initialTitle=i.options.initialTitle||r.title,i.intervalList=[],i.clearAllIntervals=function(){var t,n=i.intervalList;if(typeof n!="undefined"&&n!==null){for(t=0;t<n.length;t++)a(n[t]);i.intervalList=null}},i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)},i.log=function(){var s=typeof f!="undefined"&&typeof f.log!="undefined"&&typeof f.log.apply!="undefined",i=r.getElementById("log"),n,o,h,e,t;for(s?(e=Array.prototype.slice.call(arguments),n=e.shift(),typeof f.debug!="undefined"?f.debug.apply(f,[n,e]):f.log.apply(f,[n,e])):n="\n"+arguments[0]+"\n",o=1,h=arguments.length;o<h;++o){if(t=arguments[o],typeof t=="object"&&typeof u!="undefined")try{t=u.stringify(t)}catch(c){}n+="\n"+t+"\n"}return i?(i.value+=n+"\n-----\n",i.scrollTop=i.scrollHeight-i.clientHeight):s||v(n),!0},i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=r.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->")&&i[0];);return n>4?n:!1}()},i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated={pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(e.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(e.userAgent)),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in r)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=u.stringify(n),t=u.parse(i)):t={},t},i.getRootUrl=function(){var n=r.location.protocol+"//"+(r.location.hostname||r.location.host);return(r.location.port||!1)&&(n+=":"+r.location.port),n+="/",n},i.getBaseHref=function(){var t=r.getElementsByTagName("base"),i=null,n="";return t.length===1&&(i=t[0],n=i.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var t=i.getState(!1,!1),u=(t||{}).url||r.location.href,n;return n=u.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"}),n},i.getBasePageUrl=function(){return r.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var r=n,u=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(r=u==="/"?i.getRootUrl()+n.replace(/^\/+/,""):u==="#"?i.getPageUrl().replace(/#.*/,"")+n:u==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),r.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,u=i.getBaseUrl(),r=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(u,"")),t=t.replace(r,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},i.store={},i.idToState=i.idToState||{},i.stateToId=i.stateToId||{},i.urlToId=i.urlToId||{},i.storedStates=i.storedStates||[],i.savedStates=i.savedStates||[],i.normalizeStore=function(){i.store.idToState=i.store.idToState||{},i.store.urlToId=i.store.urlToId||{},i.store.stateToId=i.store.stateToId||{}},i.getState=function(n,t){typeof n=="undefined"&&(n=!0),typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=+new Date+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t,i.idToState[t]=n}return t},i.normalizeState=function(n){var t,u;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(i.unescapeString(n.url||r.location.href)),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,u=!i.isEmptyObject(t.data),(t.title||u)&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return u=i.normalizeState(u),u},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var f,r,t;return f=i.normalizeState(n),r={data:f.data,title:n.title,url:n.url},t=u.stringify(r),t},i.getStateId=function(n){var r,t;return r=i.normalizeState(n),t=r.id,t},i.getHashByState=function(n){var r,t;return r=i.normalizeState(n),t=r.hash,t},i.extractId=function(n){var i,t,r;return t=/(.*)\&_suid=([0-9]+)$/.exec(n),r=t?t[1]||n:n,i=t?String(t[2]||""):"",i||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var u=null,r,f;return t=t||!1,r=i.extractId(n),r&&(u=i.getStateById(r)),u||(f=i.getFullUrl(n),r=i.getIdByUrl(f)||!1,r&&(u=i.getStateById(r)),!u&&t&&!i.isTraditionalAnchor(n)&&(u=i.createStateObject(null,null,f))),u},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var r=!1,t;return t=i.extractState(n.url),r=t&&t.id!==n.id,r},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var u=!1,f,t,r;return i.savedStates.length&&(f=n.id,t=i.getLastSavedState(),r=t.id,u=f===r),u},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n]:i.savedStates[n],t},i.getHash=function(){return i.unescapeHash(r.location.hash)},i.unescapeString=function(t){for(var i=t,r;;){if(r=n.unescape(i),r===i)break;i=r}return i},i.unescapeHash=function(n){var t=i.normalizeHash(n);return t=i.unescapeString(t),t},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var f,u,e;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(f=i.escapeHash(n),i.busy(!0),u=i.extractState(n,!0),u&&!i.emulated.pushState?i.pushState(u.data,u.title,u.url,!1):r.location.hash!==f&&(i.bugs.setHash?(e=i.getPageUrl(),i.pushState(null,null,e+"#"+f,!1)):r.location.hash=f),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.escape(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=i.unescapeHash(t),t},i.setTitle=function(n){var u=n.title,t;u||(t=i.getStateByIndex(0),t&&t.url===n.url&&(u=t.title||i.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=u.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}return r.title=u,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){l(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(l(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var u=i.extractState(r.location.href),t;if(!i.isLastSavedState(u))return t=u,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else{if(!(n<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;r>=n;--r)i.back(t)}return i},i.emulated.pushState){var y=function(){};i.pushState=i.pushState||y,i.replaceState=i.replaceState||y}else i.onPopState=function(t,u){var o=!1,f=!1,s,e;return i.doubleCheckComplete(),s=i.getHash(),s?(e=i.extractState(s||r.location.href,!0),e?i.replaceState(e.data,e.title,e.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(o=i.Adapter.extractEventData("state",t,u)||!1,f=o?i.getStateById(o):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(r.location.href),f||(f=i.createStateObject(null,null,r.location.href)),i.expectedStateId=!1,i.isLastSavedState(f)?(i.busy(!1),!1):(i.storeState(f),i.saveState(f),i.setTitle(f),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0))},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(o){try{i.store=u.parse(o.getItem("History.store"))||{}}catch(p){i.store={}}i.normalizeStore()}else i.store={},i.normalizeStore();i.Adapter.bind(n,"beforeunload",i.clearAllIntervals),i.Adapter.bind(n,"unload",i.clearAllIntervals),i.saveState(i.storeState(i.extractState(r.location.href,!0))),o&&(i.onUnload=function(){var n,t;try{n=u.parse(o.getItem("History.store"))||{}}catch(r){n={}}n.idToState=n.idToState||{},n.urlToId=n.urlToId||{},n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n,i.normalizeStore(),o.setItem("History.store",u.stringify(n))},i.intervalList.push(c(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload)),i.emulated.pushState||(i.bugs.safariPoll&&i.intervalList.push(c(i.safariStatePoll,i.options.safariPollInterval)),(e.vendor==="Apple Computer, Inc."||(e.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash()&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})))},i.init()}(window),function(){"use strict";function t(){}function i(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}var n=t.prototype;n.getListeners=function(n){var i=this._getEvents(),r,t;if(typeof n=="object"){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r},n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i},n.getListenersAsObject=function(n){var i=this.getListeners(n),t;return i instanceof Array&&(t={},t[n]=i),t||i},n.addListener=function(n,t){var u=this.getListenersAsObject(n),f=typeof t=="object",r;for(r in u)u.hasOwnProperty(r)&&i(u[r],t)===-1&&u[r].push(f?t:{listener:t,once:!1});return this},n.on=n.addListener,n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})},n.once=n.addOnceListener,n.defineEvent=function(n){return this.getListeners(n),this},n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this},n.removeListener=function(n,t){var u=this.getListenersAsObject(n),f,r;for(r in u)u.hasOwnProperty(r)&&(f=i(u[r],t),f!==-1&&u[r].splice(f,1));return this},n.off=n.removeListener,n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)},n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)},n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if(typeof t!="object"||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&(typeof u=="function"?f.call(this,r,u):e.call(this,r,u));return this},n.removeEvent=function(n){var r=typeof n,t=this._getEvents(),i;if(r==="string")delete t[n];else if(r==="object")for(i in t)t.hasOwnProperty(i)&&n.test(i)&&delete t[i];else delete this._events;return this},n.emitEvent=function(n,t){var r=this.getListenersAsObject(n),f,u,i,e;for(i in r)if(r.hasOwnProperty(i))for(u=r[i].length;u--;)f=r[i][u],e=f.listener.apply(this,t||[]),(e===this._getOnceReturnValue()||f.once===!0)&&this.removeListener(n,r[i][u].listener);return this},n.trigger=n.emitEvent,n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)},n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this},n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},n._getEvents=function(){return this._events||(this._events={})},typeof define=="function"&&define.amd?define(function(){return t}):typeof module!="undefined"&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){"use strict";var i=document.documentElement,u=function(){},t,r;i.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:i.attachEvent&&(u=function(t,i,r){t[i+r]=r.handleEvent?function(){var t=n.event;t.target=t.target||t.srcElement,r.handleEvent.call(r,t)}:function(){var i=n.event;i.target=i.target||i.srcElement,r.call(t,i)},t.attachEvent("on"+i,t[i+r])}),t=function(){},i.removeEventListener?t=function(n,t,i){n.removeEventListener(t,i,!1)}:i.detachEvent&&(t=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=undefined}}),r={bind:u,unbind:t},typeof define=="function"&&define.amd?define(r):n.eventie=r}(this),function(n){"use strict";function u(n,t){for(var i in t)n[i]=t[i];return n}function o(n){return e.call(n)==="[object Array]"}function s(n){var i=[],t,r;if(o(n))i=n;else if(typeof n.length=="number")for(t=0,r=n.length;t<r;t++)i.push(n[t]);else i.push(n);return i}function i(n,i){function e(n,i,r){if(!(this instanceof e))return new e(n,i);if(typeof n=="string"&&(n=document.querySelectorAll(n)),this.elements=s(n),this.options=u({},this.options),typeof i=="function"?r=i:u(this.options,i),r)this.on("always",r);this.getImages(),t&&(this.jqDeferred=new t.Deferred);var f=this;setTimeout(function(){f.check()})}function o(n){this.img=n}e.prototype=new n,e.prototype.options={},e.prototype.getImages=function(){var i,e,n,r,t,f,u;for(this.images=[],i=0,e=this.elements.length;i<e;i++)for(n=this.elements[i],n.nodeName==="IMG"&&this.addImage(n),r=n.querySelectorAll("img"),t=0,f=r.length;t<f;t++)u=r[t],this.addImage(u)},e.prototype.addImage=function(n){var t=new o(n);this.images.push(t)},e.prototype.check=function(){function o(n,i){return u.options.debug&&f&&r.log("confirm",n,i),u.progress(n),e++,e===t&&u.complete(),!0}var u=this,e=0,t=this.images.length,n,i;if(this.hasAnyBroken=!1,!t){this.complete();return}for(n=0;n<t;n++){i=this.images[n];i.on("confirm",o);i.check()}},e.prototype.progress=function(n){this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,n),t.jqDeferred&&t.jqDeferred.notify(t,n)})},e.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0,n=this,setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var i=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[i](n)}})},t&&(t.fn.imagesLoaded=function(n,i){var r=new e(this,n,i);return r.jqDeferred.promise(t(this))});var h={};return o.prototype=new n,o.prototype.check=function(){var t=h[this.img.src],n;if(t){this.useCached(t);return}if(h[this.img.src]=this,this.img.complete&&this.img.naturalWidth!==undefined){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}n=this.proxyImage=new Image,i.bind(n,"load",this),i.bind(n,"error",this),n.src=this.img.src},o.prototype.useCached=function(n){if(n.isConfirmed)this.confirm(n.isLoaded,"cached was confirmed");else{var t=this;n.on("confirm",function(n){return t.confirm(n.isLoaded,"cache emitted confirmed"),!0})}},o.prototype.confirm=function(n,t){this.isConfirmed=!0,this.isLoaded=n,this.emit("confirm",this,t)},o.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},o.prototype.unbindProxyEvents=function(){i.unbind(this.proxyImage,"load",this),i.unbind(this.proxyImage,"error",this)},e}var t=n.jQuery,r=n.console,f=typeof r!="undefined",e=Object.prototype.toString;typeof define=="function"&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],i):n.imagesLoaded=i(n.EventEmitter,n.eventie)}(window),function(n,t){jQuery.fn[t]=function(n){return n?this.bind("scroll",debounce(n)):this.trigger(t)}}(jQuery,"smartscroll"),function(n,t){jQuery.fn[t]=function(n){return n?this.bind("resize",debounce(n)):this.trigger(t)}}(jQuery,"smartresize"),function(n){"use strict";n.fn.responsiveimages=function(){function i(t){t=="desktop"?n("[data-hdsrc]").each(function(t,i){n(i).attr("src",n(i).data("hdSrc"))}):t=="mobile"&&n("[data-hdsrc]").each(function(t,i){n(i).attr("src",n(i).data("mobSrc"))}),n("[data-hdsrc]").addClass("visible")}var r=function(){return n(".nav").css("position")=="fixed"?"desktop":"mobile"},t;n("img[data-hdsrc]").each(function(){var i=n(this).attr("src"),t=n(this).data("hdsrc");n(this).data({mobSrc:i,hdSrc:t})}),t=function(){i(r())},t(),n(window).smartresize(t)}}($),function(){var r="(.themacallan.com|"+location.host+")",u="(pdf|csv|rss|ics)$",i=unescape((window.googlePageview||location.pathname).replace(/(^\/)|(\/$)/g,"")),n=new RegExp(r,"ig"),t=new RegExp(u,"ig");if(window.dataLayer)$(document).on("click","a",function(){var r="";if(this.href.match(/(^javascript)|(^#)/)||!this.href)return!0;this.href.match(/mailto/ig)?r="mailto":this.href.match(t)?r="download":this.href.match(n)||(r="external"),r&&dataLayer.push({event:"_trackEvent",hitType:"event",eventCategory:"Links",eventAction:r,eventLabel:"TO: "+this.href.replace(/http[s]*:\/\//i,"")+"; FROM: "+i})})}(),navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)){var viewportmeta=document.querySelector('meta[name="viewport"]');viewportmeta&&(viewportmeta.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0",document.body.addEventListener("gesturestart",function(){viewportmeta.content="width=device-width, minimum-scale=0.25, maximum-scale=1.6"},!1))}(function(){for(var i=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(n){var u=+new Date,r=Math.max(0,16-(u-i)),f=window.setTimeout(function(){n(u+r)},r);return i=u+r,f}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})})(),function(n){function i(){}for(var r="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),t;t=r.pop();)n[t]=n[t]||i}(function(){try{return console.log(),window.console}catch(n){return window.console={}}}()),$(document).ready(function(){$.support.placeholder=!1;var n=document.createElement("input");"placeholder"in n&&($.support.placeholder=!0),$.support.placeholder||$("input[placeholder]").parents(".form-item").addClass("show-label"),pageBorder(),$(window).smartresize(pageBorder)}),function(n){n.fn.setPlaceholder=function(n){n=n||"hasPlaceholderText"}}(jQuery),window.EQTR=function(n,t){"use strict";function i(){return!!("ontouchstart"in window)||!!window.navigator.msMaxTouchPoints}function r(){var i=document.body||document.documentElement,t=i.style,n="transition";return typeof t[n]=="string"?!0:!1}return n.helpers={jsPath:"/assets/js/",imgPath:"/assets/images/",supportsPointer:!!window.navigator.msMaxTouchPoints,supportsTouch:i(),supportsCSSTransition:r(),screenView:function(){return t(".nav").css("position")==="fixed"?"desktop":"mobile"},ltIE8:function(){return t("html").hasClass("lt-ie8")},ltIE9:function(){return t("html").hasClass("lt-ie9")}},i()?t("html").addClass("supports-touch"):t("html").addClass("no-touch"),n.deviceWidth=function(){var n;return t(window).resize(function(){clearTimeout(n),n=setTimeout(function(){t(window).trigger("onResizeEnd")},300)}).width()},n}(window.EQTR||{},window.jQuery),function(n){function it(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=p),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(f);i||(i=new rt(this,t),r.data(f,i))})}function rt(it,rt){function ir(t){if(!nf()&&!(n(t.target).closest(rt.excludedElements,ft).length>0)){var u=t.originalEvent?t.originalEvent:t,f,e=r?u.touches[0]:u;if(et=b,r?ot=u.touches.length:t.preventDefault(),ht=0,ct=null,yt=null,st=0,kt=0,dt=0,vt=1,pt=0,lt=ku(),gi=dr(),ur(),!r||ot===rt.fingers||rt.fingers===c||ii()?(li(0,e),ki=bt(),ot==2&&(li(1,u.touches[1]),kt=dt=vi(lt[0].start,lt[1].start)),(rt.swipeStatus||rt.pinchStatus)&&(f=at(u,et))):f=!1,f===!1)return et=i,at(u,et),f;oi(!0)}}function nr(n){var u=n.originalEvent?n.originalEvent:n,h,l,f,o,s;et===t||et===i||hr()||(l=r?u.touches[0]:u,f=fr(l),ci=bt(),r&&(ot=u.touches.length),et=e,ot==2&&(kt==0?(li(1,u.touches[1]),kt=dt=vi(lt[0].start,lt[1].start)):(fr(u.touches[1]),dt=vi(lt[0].end,lt[1].end),yt=eu(lt[0].end,lt[1].end)),vt=fu(kt,dt),pt=Math.abs(kt-dt)),ot===rt.fingers||rt.fingers===c||!r||ii()?(ct=tu(f.start,f.end),gr(n,ct),ht=ou(f.start,f.end),st=sr(),su(ct,ht),(rt.swipeStatus||rt.pinchStatus)&&(h=at(u,et)),(!rt.triggerOnTouchEnd||rt.triggerOnTouchLeave)&&(o=!0,rt.triggerOnTouchLeave&&(s=iu(this),o=ru(f.end,s)),!rt.triggerOnTouchEnd&&o?et=pi(e):rt.triggerOnTouchLeave&&!o&&(et=pi(t)),(et==i||et==t)&&at(u,et))):(et=i,at(u,et)),h===!1&&(et=i,at(u,et)))}function rr(n){var u=n.originalEvent;if(r&&u.touches.length>0)return du(),!0;hr()&&(ot=bi),n.preventDefault(),ci=bt(),st=sr(),ai()?(et=i,at(u,et)):rt.triggerOnTouchEnd||rt.triggerOnTouchEnd==!1&&et===e?(et=t,at(u,et)):!rt.triggerOnTouchEnd&&cr()?(et=t,ni(u,et,w)):et===e&&(et=i,at(u,et)),oi(!1)}function gt(){ot=0,ci=0,ki=0,kt=0,dt=0,vt=1,ur(),oi(!1)}function tr(n){var i=n.originalEvent;rt.triggerOnTouchLeave&&(et=pi(t),at(i,et))}function kr(){ft.unbind(ri,ir),ft.unbind(si,gt),ft.unbind(wi,nr),ft.unbind(di,rr),ti&&ft.unbind(ti,tr),oi(!1)}function pi(n){var r=n,o=lr(),u=yr(),f=ai();return!o||f?r=i:u&&n==e&&(!rt.triggerOnTouchEnd||rt.triggerOnTouchLeave)?r=t:!u&&n==t&&rt.triggerOnTouchLeave&&(r=i),r}function at(n,u){var f=undefined;return gu()||pr()?f=ni(n,u,nt):(wu()||ii())&&f!==!1&&(f=ni(n,u,k)),lu()&&f!==!1?f=ni(n,u,g):pu()&&f!==!1?f=ni(n,u,tt):cu()&&f!==!1&&(f=ni(n,u,w)),u===i&&gt(n),u===t&&(r?n.touches.length==0&&gt(n):gt(n)),f}function ni(r,f,e){var c=undefined;if(e==nt){if(ft.trigger("swipeStatus",[f,ct||null,ht||0,st||0,ot]),rt.swipeStatus&&(c=rt.swipeStatus.call(ft,r,f,ct||null,ht||0,st||0,ot),c===!1))return!1;if(f==t&&vr()){if(ft.trigger("swipe",[ct,ht,st,ot]),rt.swipe&&(c=rt.swipe.call(ft,r,ct,ht,st,ot),c===!1))return!1;switch(ct){case u:ft.trigger("swipeLeft",[ct,ht,st,ot]),rt.swipeLeft&&(c=rt.swipeLeft.call(ft,r,ct,ht,st,ot));break;case o:ft.trigger("swipeRight",[ct,ht,st,ot]),rt.swipeRight&&(c=rt.swipeRight.call(ft,r,ct,ht,st,ot));break;case h:ft.trigger("swipeUp",[ct,ht,st,ot]),rt.swipeUp&&(c=rt.swipeUp.call(ft,r,ct,ht,st,ot));break;case s:ft.trigger("swipeDown",[ct,ht,st,ot]),rt.swipeDown&&(c=rt.swipeDown.call(ft,r,ct,ht,st,ot))}}}if(e==k){if(ft.trigger("pinchStatus",[f,yt||null,pt||0,st||0,ot,vt]),rt.pinchStatus&&(c=rt.pinchStatus.call(ft,r,f,yt||null,pt||0,st||0,ot,vt),c===!1))return!1;if(f==t&&ar())switch(yt){case v:ft.trigger("pinchIn",[yt||null,pt||0,st||0,ot,vt]),rt.pinchIn&&(c=rt.pinchIn.call(ft,r,yt||null,pt||0,st||0,ot,vt));break;case y:ft.trigger("pinchOut",[yt||null,pt||0,st||0,ot,vt]),rt.pinchOut&&(c=rt.pinchOut.call(ft,r,yt||null,pt||0,st||0,ot,vt))}}return e==w?(f===i||f===t)&&(clearTimeout(ui),yi()&&!vu()?(wt=bt(),ui=setTimeout(n.proxy(function(){wt=null,ft.trigger("tap",[r.target]),rt.tap&&(c=rt.tap.call(ft,r,r.target))},this),rt.doubleTapThreshold)):(wt=null,ft.trigger("tap",[r.target]),rt.tap&&(c=rt.tap.call(ft,r,r.target)))):e==g?(f===i||f===t)&&(clearTimeout(ui),wt=null,ft.trigger("doubletap",[r.target]),rt.doubleTap&&(c=rt.doubleTap.call(ft,r,r.target))):e==tt&&(f===i||f===t)&&(clearTimeout(ui),wt=null,ft.trigger("longtap",[r.target]),rt.longTap&&(c=rt.longTap.call(ft,r,r.target))),c}function yr(){var n=!0;return rt.threshold!==null&&(n=ht>=rt.threshold),n}function ai(){var n=!1;return rt.cancelThreshold!==null&&ct!==null&&(n=or(ct)-ht>=rt.cancelThreshold),n}function nu(){return rt.pinchThreshold!==null?pt>=rt.pinchThreshold:!0}function lr(){var n;return n=rt.maxTimeThreshold?st>=rt.maxTimeThreshold?!1:!0:!0}function gr(n,t){if(rt.allowPageScroll===p||ii())n.preventDefault();else{var i=rt.allowPageScroll===d;switch(t){case u:(rt.swipeLeft&&i||!i&&rt.allowPageScroll!=a)&&n.preventDefault();break;case o:(rt.swipeRight&&i||!i&&rt.allowPageScroll!=a)&&n.preventDefault();break;case h:(rt.swipeUp&&i||!i&&rt.allowPageScroll!=l)&&n.preventDefault();break;case s:(rt.swipeDown&&i||!i&&rt.allowPageScroll!=l)&&n.preventDefault()}}}function ar(){var i=wr(),t=br(),n=nu();return i&&t&&n}function ii(){return!!(rt.pinchStatus||rt.pinchIn||rt.pinchOut)}function wu(){return!!(ar()&&ii())}function vr(){var r=lr(),u=yr(),f=wr(),n=br(),t=ai();return!t&&n&&f&&u&&r}function pr(){return!!(rt.swipe||rt.swipeStatus||rt.swipeLeft||rt.swipeRight||rt.swipeUp||rt.swipeDown)}function gu(){return!!(vr()&&pr())}function wr(){return ot===rt.fingers||rt.fingers===c||!r}function br(){return lt[0].end.x!==0}function cr(){return!!rt.tap}function yi(){return!!rt.doubleTap}function au(){return!!rt.longTap}function er(){if(wt==null)return!1;var n=bt();return yi()&&n-wt<=rt.doubleTapThreshold}function vu(){return er()}function yu(){return(ot===1||!r)&&(isNaN(ht)||ht===0)}function hu(){return st>rt.longTapThreshold&&ht<ut}function cu(){return!!(yu()&&cr())}function lu(){return!!(er()&&yi())}function pu(){return!!(hu()&&au())}function du(){hi=bt(),bi=event.touches.length+1}function ur(){hi=0,bi=0}function hr(){var t=!1,n;return hi&&(n=bt()-hi,n<=rt.fingerReleaseThreshold&&(t=!0)),t}function nf(){return!!(ft.data(f+"_intouch")===!0)}function oi(n){n===!0?(ft.bind(wi,nr),ft.bind(di,rr),ti&&ft.bind(ti,tr)):(ft.unbind(wi,nr,!1),ft.unbind(di,rr,!1),ti&&ft.unbind(ti,tr,!1)),ft.data(f+"_intouch",n===!0)}function li(n,t){var i=t.identifier!==undefined?t.identifier:0;return lt[n].identifier=i,lt[n].start.x=lt[n].end.x=t.pageX||t.clientX,lt[n].start.y=lt[n].end.y=t.pageY||t.clientY,lt[n]}function fr(n){var i=n.identifier!==undefined?n.identifier:0,t=bu(i);return t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function bu(n){for(var t=0;t<lt.length;t++)if(lt[t].identifier==n)return lt[t]}function ku(){for(var t=[],n=0;n<=5;n++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function su(n,t){t=Math.max(t,or(n)),gi[n].distance=t}function or(n){return gi[n].distance}function dr(){var n={};return n[u]=ei(u),n[o]=ei(o),n[h]=ei(h),n[s]=ei(s),n}function ei(n){return{direction:n,distance:0}}function sr(){return ci-ki}function vi(n,t){var r=Math.abs(n.x-t.x),i=Math.abs(n.y-t.y);return Math.round(Math.sqrt(r*r+i*i))}function fu(n,t){var i=t/n*1;return i.toFixed(2)}function eu(){return vt<1?y:v}function ou(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function uu(n,t){var r=n.x-t.x,f=t.y-n.y,u=Math.atan2(f,r),i=Math.round(u*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function tu(n,t){var i=uu(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?o:i>45&&i<135?s:h}function bt(){var n=new Date;return n.getTime()}function iu(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function ru(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var fi=r||!rt.fallbackToMouseEvents,ri=fi?"touchstart":"mousedown",wi=fi?"touchmove":"mousemove",di=fi?"touchend":"mouseup",ti=fi?null:"mouseleave",si="touchcancel",ht=0,ct=null,st=0,kt=0,dt=0,vt=1,pt=0,yt=0,gi=null,ft=n(it),et="start",ot=0,lt=null,ki=0,ci=0,hi=0,bi=0,wt=0,ui=null;try{ft.bind(ri,ir),ft.bind(si,gt)}catch(tf){n.error("events not supported "+ri+","+si+" on jQuery.swipe")}this.enable=function(){return ft.bind(ri,ir),ft.bind(si,gt),ft},this.disable=function(){return kr(),ft},this.destroy=function(){return kr(),ft.data(f,null),ft},this.option=function(t,i){if(rt[t]!==undefined){if(i===undefined)return rt[t];rt[t]=i}else n.error("Option "+t+" does not exist on jQuery.swipe.options")}}var u="left",o="right",h="up",s="down",v="in",y="out",p="none",d="auto",nt="swipe",k="pinch",w="tap",g="doubletap",tt="longtap",a="horizontal",l="vertical",c="all",ut=10,b="start",e="move",t="end",i="cancel",r="ontouchstart"in window,f="TouchSwipe",ft={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"button, input, select, textarea, a, .noSwipe"};n.fn.swipe=function(t){var r=n(this),i=r.data(f);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(!i&&(typeof t=="object"||!t))return it.apply(this,arguments);return r},n.fn.swipe.defaults=ft,n.fn.swipe.phases={PHASE_START:b,PHASE_MOVE:e,PHASE_END:t,PHASE_CANCEL:i},n.fn.swipe.directions={LEFT:u,RIGHT:o,UP:h,DOWN:s,IN:v,OUT:y},n.fn.swipe.pageScroll={NONE:p,HORIZONTAL:a,VERTICAL:l,AUTO:d},n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:c}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){"use strict";var t=function(t,i){var o=!1,u=i,r=t,e=n(">ul",r),f=n(">ul>li",r),l=!1,v=function(){for(var t=0,n=0;n<f.length;n++)t+=f.eq(n).outerWidth(!0);return t},c=function(){r.outerWidth()>=v()?(n(".slider-nav",r).hide(),n(".swipe-gesture",r).hide(),n(".swipe-gesture",r).hide(),n(e).removeClass("show-seperator")):(u.showSeperator&&n(e).addClass("show-seperator"),n("img",f).imagesLoaded(function(){u.showSwipeGestureIcon&&!l&&EQTR.helpers.supportsTouch?n(".swipe-gesture",r).fadeIn():EQTR.helpers.supportsTouch&&u.showSwipeGestureIcon||f.length>0&&u.showNav&&n(".slider-nav",r).valign({style:"top"}).fadeIn()})),n(f).each(function(){n(".slide-copy",this).valign({style:"top"})})},a=function(){return o?!1:r.outerWidth()>=v()?!1:!0},s=function(){if(!a())return!1;l=!0,n(".swipe-gesture",r).fadeOut(),o=!0;var t=n(">li",e).eq(0);if(u.onChange)u.onChange(1);return t.animate({marginLeft:-t.outerWidth()},{duration:u.slides_speed,specialEasing:{marginLeft:"easeOutQuad"},complete:function(){t.css("margin-left",0),e.append(t),o=!1}}),!1},h=function(){if(!a())return!1;l=!0,n(".swipe-gesture",r).fadeOut(),o=!0;var t=n(">li",e).last();if(t.css("margin-left",-t.width()),e.prepend(t),u.onChange)u.onChange(-1);return t.animate({marginLeft:0},{duration:u.slides_speed,specialEasing:{marginLeft:"easeOutQuad"},complete:function(){o=!1}}),!1},p=function(){n(".next",r).click(function(){return s(),!1}),n(".prev",r).click(function(){return h(),!1}),r.swipe({tap:function(t,i){if(n(i).parent().hasClass("next"))s();else if(n(i).parent().hasClass("prev"))h();else if(n(i).closest("a").length){n(i).closest("a").trigger("click");var r=n(i).closest("a").attr("href");n(i).closest("a").attr("target")!="_blank"&&(window.location=r)}else n(i).parents(".limited-release").trigger("click")},swipeLeft:function(){return s(),!0},swipeRight:function(){return h(),!1},threshold:100,fingers:"all",excludedElements:[]}),n(window).resize(c)},y=function(){r.addClass("slider"),f.length>1&&(r.append(n("<a href='#' class='slider-nav next'><span></span></a>")),r.append(n("<a href='#' class='slider-nav prev'><span></span></a>")),r.append(n(document.createElement("div")).addClass("swipe-gesture"))),c(),n("img",r).attr("draggable",!1).imagesLoaded(function(){c()}),f.length>1&&n(f).last().addClass("last"),p()};y()};n.fn.slider=function(i){if(n(this).length===0)return!1;var r=n.extend({},n.fn.slider.defaults,i);return this.each(function(){return new t(n(this),r)})},n.fn.slider.defaults={slides_speed:500,showSwipeGestureIcon:!1,showNav:!0,showSeperator:!1}}($),function(n){"use strict";n.fn.lightbox=function(t){var i={items:[],lightbox:null,image:null,padding_large:150,padding_small:25,current:null,locked:!1,init:function(t){i.items=t,i.lightbox||(n("body").append('\t\t\t\t\t  <div id="lightbox" style="display:none;">\t\t\t\t\t  <a href="#" class="close">Close</a>\t\t\t\t\t  <div class="lightbox-nav">\t\t\t\t\t\t <a href="#" class="lightbox-previous">previous</a>\t\t\t\t\t\t <a href="#" class="lightbox-next">next</a>\t\t\t\t\t  </div>\t\t\t\t\t  </div>\t\t\t\t\t  '),i.lightbox=n("#lightbox")),i.items.length>1?(n(".lightbox-next",i.lightbox).show(),n(".lightbox-previous",i.lightbox).show()):(n(".lightbox-next",i.lightbox).hide(),n(".lightbox-previous",i.lightbox).hide()),i.bindEvents()},loadImage:function(){n("body").addClass("blurred"),n("img",i.lightbox).remove(),i.lightbox.fadeIn("fast").append('<span class="lightbox-loading"></span>');var t=n('<img src="'+n(i.current).attr("href")+'" draggable="false">');i.lightbox.append(t),i.image=n("img",i.lightbox).css("visibility","hidden"),n(i.image).imagesLoaded(function(){n(".lightbox-loading").remove(),i.resizeImage()})},resizeImage:function(){var f,e,u,t,r,o=n(window).width()>500&&n(window).height()>500?i.padding_large:i.padding_small;e=n(window).height()-o,u=n(window).outerWidth(!0)-o,i.image.width(""),i.image.height(""),t=i.image[0].height,r=i.image[0].width,r>u&&(f=u/r,r=u,t=Math.round(t*f)),t>e&&(f=e/t,t=e,r=Math.round(r*f)),i.image.width(r).height(t),i.image.css({top:(n(window).height()-i.image.outerHeight())/2+"px",left:(n(window).width()-i.image.outerWidth())/2+"px"}),i.image.css("visibility",""),i.locked=!1},getCurrentIndex:function(){return n.inArray(i.current,i.items)},next:function(){if(i.locked)return!1;i.locked=!0,i.getCurrentIndex()>=i.items.length-1?n(i.items[0]).click():n(i.items[i.getCurrentIndex()+1]).click()},previous:function(){if(i.locked)return!1;i.locked=!0,i.getCurrentIndex()<=0?n(i.items[i.items.length-1]).click():n(i.items[i.getCurrentIndex()-1]).click()},bindEvents:function(){n(i.items).click(function(t){var r=n(this)[0];t.preventDefault(),i.current=r,i.loadImage();n(document).on("keydown",function(n){n.keyCode===27&&i.close(),n.keyCode===39&&i.next(),n.keyCode===37&&i.previous()})});i.lightbox.on("click",function(n){this===n.target&&i.close()});n(i.lightbox).on("click",".lightbox-previous",function(){return i.previous(),!1});n(i.lightbox).on("click",".lightbox-next",function(){return i.next(),!1});n(i.lightbox).on("click",".close",function(){return i.close(),!1});n(window).resize(function(){i.image&&i.resizeImage()}),i.lightbox.swipe({swipeLeft:function(){i.next()},swipeRight:function(){i.previous()},threshold:50,fingers:"all",excludedElements:[]})},close:function(){n(document).off("keydown"),n("#lightbox").fadeOut("fast",function(){}),n("body").removeClass("blurred")}};n(this).length!==0&&(n.extend(i,t),i.init(this))}}(jQuery),function(n){"use strict";n.fn.backgroundCover=function(){var i=this,t=function(){n(i).each(function(t,i){var l=n(i).parent(),s,o,c,h;n(i).css({position:"absolute","max-width":"none",display:"block"}),n(i).parents().length<3&&n(i).css("zIndex","-1"),l.css({position:"relative",overflow:"hidden"});var f=l.outerWidth(),e=l.outerHeight(),r=n(i).attr("width"),u=n(i).attr("height");typeof r=="undefined"&&(r=i.width),typeof u=="undefined"&&(u=i.height),r<f&&(s=f/r,r=f,u=u*s),u<e&&(s=e/u,u=e,r=r*s),r>f&&u>e&&(c=f/r,h=e/u,c>h?(r=f,u=u*c):(u=e,r=r*h)),n(i).width(r).height(u),u>e?(o=(u-e)/2,n(i).css("top",-o)):n(i).css("top",""),r>f?(o=(r-f)/2,n(i).css("left",-o)):n(i).css("left","")})};t(),n(window).resize(function(){t()})}}(jQuery),function(n){"use strict";n.fn.videoplayer=function(t){var i={items:[],container:null,iframe:null,init:function(t){i.items=t,i.container||(n("body").append('<div id="vimeo" style="display:none;"><iframe frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen /><a href="#" class="close">Close</a></div>'),i.container=n("#vimeo"),i.iframe=n("iframe",i.container),i.bindEvents())},resize:function(){i.iframe.height(i.iframe.width()/16*9),i.iframe.valign({style:"marginTop"})},bindEvents:function(){n(i.items).click(function(t){var r=n(this).attr("href").split(/[\s/]+/);t.preventDefault(),i.container.show(),i.iframe.attr("src","http://player.vimeo.com/video/"+r[r.length-1]),i.resize()});n(i.container).on("click",".close",function(){return i.close(),!1});n(window).smartresize(i.resize);n(document).on("keydown",function(n){n.keyCode===27&&i.close()})},close:function(){n(document).off("keydown"),i.container.fadeOut("fast",function(){i.iframe.attr("src","")}),n("body").removeClass("blurred")}};if(n(this).length===0)return!1;n.extend(i,t),i.init(this)}}(jQuery),function(n){n.fn.valign=function(t){var i=n.extend({},n.fn.valign.defaultOptions,t);return this.each(function(){var t=n(this);t.css(i.style,"0");var e=t.parent(),o=t.outerHeight(),f=e.height(),r=(f-o)/2,u=i.style;t.css(u,Math.floor(r)).addClass("valign")})},n.fn.valign.defaultOptions={style:"paddingTop"}}(jQuery),function(n){n.fn.slidingPanel=function(t){return t=n.extend(n.fn.slidingPanel.defaults,t),this.each(function(){function c(){var h=function(){e.css({minHeight:n(window).height()+"px"}),EQTR.helpers.screenView()==="desktop"&&!EQTR.helpers.supportsTouch,EQTR.helpers.supportsTouch||i.css({minHeight:i.height()+"px"}),a.each(function(t){var i=n(this).position().top;l.push(i),n(this).attr("id","subcontent_"+t)})};h(),n(window).smartresize(h),t.each(function(t){var i=n(this).offset().top+100;r.push(i),n(this).css({zIndex:o}).attr("id","item_"+t),o--}),EQTR.helpers.supportsTouch||t.addClass("sliding-panel");n(window).on("scroll.slidingpanel",s);f(),n(window).smartresize(f),u.init()}function f(){EQTR.helpers.supportsTouch||n(".content-panel.other-collections").css({bottom:n(".page-end").height()}),n(".text",e).valign({style:"marginTop"})}function s(){var r=n(window).scrollTop(),i=h(r);EQTR.helpers.screenView()!=="desktop"||EQTR.helpers.supportsTouch||(t.eq(i).next().removeClass("moving-panel"),t.eq(i).addClass("moving-panel").prevAll().addClass("moving-panel")),u.update(i,r)}function h(n){for(var i,t=0;n>=r[t];)i=t,t++;return i}var i=n(this),t=n(".content-panel",i),e=n(".text-content",i),a=n(".additional-content",i),o=t.length,r=[],l=[],v=n("html").hasClass("lt-ie9"),y=window.History,u={init:function(){var u=[];if(n('<div class="page-nav"><ul></ul></div>').insertBefore(i),n(t).not(":first").not(":last").each(function(){var r=n(this).data("name"),t=n(".nav-text",this).text(),i=n(this).attr("id");u.push('<li class="'+r+'"><a href="#'+i+'" title="'+t+'"><span>'+t+"</span></a>")}),n(".page-nav ul").append(u.join("")),n(".page-nav").css({top:"50%",marginTop:-(n(".page-nav").outerHeight()/2)}),!v){function f(){var f=location.hash,u,i;for(n(".page-nav a.selected").removeClass("selected"),u=n('.page-nav a[href="'+f+'"]').addClass("selected").parent().index()+1,n(document).scrollTop(r[u]-100),i=0;i<u;i++)t.eq(i).addClass("moving-panel")}window.onhashchange=f,this.bindUIActions()}},bindUIActions:function(){n(".page-nav a").on("click",function(t){t.preventDefault();var u=n(this).parent().index()+1,i=n(this).attr("href");n("html,body").animate({scrollTop:r[u]-100},2e3,function(){n("html,body").clearQueue(),location.hash=i})})},update:function(i,r){if(typeof i!="undefined"){var u=t.eq(i).offset().top+(t.eq(i).height()-200);r>=u?(n(".page-nav a.selected").removeClass("selected"),n(".page-nav li:eq("+i+") a").addClass("selected")):(n(".page-nav li:eq("+i+") a").removeClass("selected"),n(".page-nav li:eq("+i+")").prev().find("a").addClass("selected"))}}};c()})},n.fn.slidingPanel.defaults={}}(jQuery),window.EQTR=function(n,t){"use strict";return n.addthisHelper={loadScript:function(){var t="http://s7.addthis.com/js/300/addthis_widget.js?domready=1#pubid=nopsolutions",n=document.createElement("script");n.src=t,document.body.appendChild(n)},shareConfig:function(n,t,i,r){var f,u;for(addthis.toolbox(n),f=n.find(addthis.links),u=0;u<f.length;u++)f[u].share.url=t,f[u].share.title=i,f[u].share.description=r}},n.shareicons={shareConfig:function(n,i,r,u){var l=t(".share-twitter",n),c=t(".share-facebook",n),v=t(".share-google",n),a=t(".share-pinterest",n),f;i=escape(i),r=escape(r),f=u.replace("http://"+window.location.host,""),u=escape("http://"+window.location.host+f);var e="https://twitter.com/intent/tweet?url="+i+"&text="+r,h="https://facebook.com/sharer.php?u="+i+"&t="+r,s="https://plus.google.com/share?url="+i+"&title="+r,o="http://pinterest.com/pin/create/button/?url="+i+"&description="+r+"&media="+u;l.attr("href",e),c.attr("href",h),v.attr("href",s),a.attr("href",o)}},n.shareLink=function(){t(".moment-content .share-link.share-facebook").on("click",function(){return window.open("https://www.facebook.com/sharer/sharer.php?u="+window.location,"facebook-share-dialog","width=626,height=436"),!1});t(".moment-content .share-link.share-google").on("click",function(){return window.open("https://plus.google.com/share?url="+window.location,"google-share-dialog","height=600,width=600"),!1});t(".moment-content .share-link.share-pinterest").on("click",function(){return window.open(t(this).attr("href"),"pinterest-share-dialog","height=600,width=600"),!1})},n.shoplinks=function(){var n=window.shopDomain+"Plugins/UmbracoContent/UmbracoContent/ShopStatusJson/";t.ajax({url:n,xhrFields:{withCredentials:!0}}).done(function(n){var i=t(".utility-nav ul");i.prepend('<li><a href="'+n.BasketUrl+'">Basket</a></li>'),i.prepend('<li><a href="'+n.MyAccountUrl+'">My Account</a></li>'),n.IsLoggedIn&&i.prepend('<li><a href="'+n.LogoutUrl+'">Logout</a></li>'),n.ItemCount>0&&(t("#topcartlink a").attr("href",n.BasketUrl),t("#topcartlink .cart-value").text(n.ItemCount),t("#topcartlink").fadeIn())})},n.googleMap={init:function(){var i,n;t("#map").length&&(i=location.hostname.match("themacallan.com")?"key=AIzaSyAdkt3CRgwW6yIRfWVyT8N7opYvZs0FYos&":"",t(".map-holder").height(t(".map-holder").parent().height()),n=document.createElement("script"),n.type="text/javascript",n.src="//maps.googleapis.com/maps/api/js?"+i+"sensor=false&callback=EQTR.googleMap.createmap",document.body.appendChild(n))},createmap:function(){var f=t('meta[name="ICBM"]').attr("content").split(","),l=f[0],a=f[1],e=t(".vcard .organization-unit").text(),i=t(".vcard .postal-code").text(),n=new google.maps.LatLng(l,a),h=t(".map-link").text(),y=new google.maps.MarkerImage(EQTR.helpers.imgPath+"macallan-map-marker.png",new google.maps.Size(53,113),new google.maps.Point(0,0),new google.maps.Point(23,82)),v=new google.maps.MarkerImage(EQTR.helpers.imgPath+"shadow-macallan-map-marker.png",new google.maps.Size(94,78),new google.maps.Point(0,0),new google.maps.Point(23,82)),c={zoom:8,scrollwheel:!0,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL},scaleControl:!0,center:n,mapTypeId:google.maps.MapTypeId.ROADMAP},r=new google.maps.Map(document.getElementById("map"),c),s='<div class="info-window"><h2>'+e+"</h2><p>"+t(".vcard .adr").html()+'</p><a target="_blank" class="directions-link" href="#">'+h+"</a></div>",o=new google.maps.InfoWindow({content:s}),u=new google.maps.Marker({position:n,map:r,title:e,icon:y,shadow:v});google.maps.event.addListener(u,"click",function(){o.open(r,u);var f="http://maps.google.com/maps?",n;n=f+"daddr="+i,t(".directions-link").attr("href",n),navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(r){var e=r.coords.latitude,u=r.coords.longitude;n=f+"saddr="+e+","+u+"&daddr="+i,t(".directions-link").attr("href",n)})})}},n.homepage=function(){if(!EQTR.helpers.supportsTouch){t(".brand").clone().appendTo(".feature-component .center-item .item-link"),t(".home-page .feature-component").each(function(){var i=t(this),r=t(".feature-component .feature-item",i);t(".item-link",i).hover(function(){n.fadePanelOut(t(".selected",i)),n.fadePanelIn(t(this))},function(){n.fadePanelOut(t(this))});i.on("mouseleave",function(){t(".feature-component .center-item .item-link").addClass("selected")})});var n={fadePanelIn:function(n){t(".feature-component .selected").removeClass("selected"),t(".wrapper",n).fadeTo(400,1,function(){n.addClass("selected")})},fadePanelOut:function(n){t(".wrapper",n).stop().removeAttr("style"),n.removeClass("selected")}}}},n.newslettersignup=function(){var n="error",u=function(t){return IsEmail(t.val())?(t.removeClass(n),!0):(t.addClass(n),!1)},i=function(t){return t.val().length===0?(t.addClass(n),!1):(t.removeClass(n),!0)},r=function(n,t,r){var o=u(n),e=i(t),f=i(r);return o&&e&&f};t('.utility-nav a[href="http://#newslettersignup"]').on("click",function(n){return n.preventDefault(),t(".newsletter-signup").fadeIn(),!1});t(document).on("click",".newsletter a",function(n){n.preventDefault(),t(".newsletter-signup").fadeIn()});t(".newsletter-signup .closeLink").click(function(){return t(".newsletter-signup").fadeOut(),!1}),t(".newsletter-signup form").submit(function(){var n=t(this),i=t("input[name='EmailAddress']",n),f=t("input[name='FirstName']",n),u=t("input[name='Surname']",n);return r(i,f,u)?(i.removeClass("error"),t.ajax({type:"POST",url:n.attr("action"),data:n.serialize(),success:function(r){r=="False"?i.addClass("error"):(n.hide(),t(".newsletter-signup .success").show())}}),!1):!1})},n.theStory=function(){var n,i;if(t(".story-page").length==0)return!1;if(t(".panels-container .other-collections").imagesLoaded(function(){t(".panels-container").slidingPanel()}),t(".panels-container .story-carousel li").each(function(n,i){t("img",i).imagesLoaded(function(){t("img",i).backgroundCover()})}),n=window.videos,n)for(i in n){var r=n[i].videoId,f=n[i].itemName,u=n[i].itemText;t(".text","."+f).after('<p class="cta"><a class="video-link" rel="vimeo" data-videoid="'+r+'" target="_blank" href="http://player.vimeo.com/video/'+r+'">'+u+"</a></p>")}},n.servings=function(){var n,f,i,e,r,u;if(t(".servings").length!=0){t(".servings .servingItem .ingredients").parent().wrapInner("<a href='#'></a>"),t(".servings .servingItem > a").hover(function(){t(this).closest(".servingItem").siblings().addClass("dialback")},function(){t(".servings .servingItem").removeClass("dialback")}),n=t(".recipe"),n.appendTo("body"),t(".servingItem img").imagesLoaded(function(){bottomAlignImages(".servingItem img","marginTop")}),f=function(){t(".recipeImage",n).imagesLoaded(function(){t(".recipe-switcher span",n).valign({style:"margin-top"}),bottomAlignImages(".recipe-switcher img","marginTop")})},t(window).resize(function(){f()}),i=function(i){var r;t(".recipe-details h4",n).text(t("h4",i).text()),t(".recipe-details .directions",n).html(t(".directions",i).html()),t(".recipe-details .ingredients",n).html(t(".ingredients",i).html()),t(".recipeImage img",n).attr("src",t(".servingImage img",i).data("expandedsrc")),r=i.data("recipeid"),t(".recipe-switcher li").removeClass("active"),t('.recipe-switcher li[data-recipeid="'+r+'"]').addClass("active"),f();var o=window.location.protocol+"//"+window.location.host+window.location.pathname+"#recipeid="+t(i).data("recipeid"),s=t(".recipe-details h4",n).text(),u=t(".recipe").find(".share-icons"),e=t(".recipeImage img",n).attr("src");EQTR.shareicons.shareConfig(u,o,s,e)},e=function(){return t(".brand, .wrapper, .page-end").show(),t(window).scrollTop(t(".serving-suggestions").offset().top),t(".recipe").hide(),!1},t(".servings .servingItem > a").click(function(){t(".recipe").show(),t(".brand, .wrapper, .page-end").hide();var n=t(this).parent(".servingItem");return i(n),!1}),t(".recipe .close").click(function(){return e(),!1});t(document).on("keydown",function(n){n.keyCode===27&&e()});r=getHashParameter(window.location.href,"recipeid"),r&&(u=t('.servings .servingItem[data-recipeid="'+r+'"]'),u.length>0&&(t(".recipe").show(),t(".brand, .wrapper, .page-end").hide(),i(u))),t(".recipe-switcher a").click(function(){var n=t(this).parent("li").data("recipeid");return i(t('.servings .servingItem[data-recipeid="'+n+'"]')),!1})}},n.whiskypage=function(){if(t(".whisky-page").length==0)return!1;var n=function(){t(".gallery").length==0&&EQTR.helpers.screenView()==="desktop"?t(".header .header-copy").css("marginTop","50px"):t(".header .header-copy").css("marginTop",""),t(".header .header-copy").valign({style:"paddingTop"})};t(".headerImage img").imagesLoaded(function(){n(),t(window).resize(n)})},n.bottles=function(){bottomAlignImages(".bottle-items img","marginTop"),t(window).resize(function(){bottomAlignImages(".bottle-items img","marginTop")})},n.gallery=function(){if(t(".gallery").length==0)return!1;if(t(".gallery ul a").lightbox(),t(".view-images").click(function(){t(".gallery ul a").eq(0).click()}),t(".whisky-page").length>0&&t(".gallery").length==0){var n=function(){t(".header .header-copy").css("paddingTop","0").css("paddingTop",t(".header").outerHeight()/2-t(".header .header-copy").height()/2),EQTR.helpers.screenView()=="mobile"?t(".header .header-copy").css("marginTop",0):t(".header .header-copy").css("marginTop",50)};n(),t(window).resize(n)}},n.otherCollections=function(){if(t(".other-collections").length==0)return!1;var n=function(){t(".other-collections .title").valign()};t(".other-collections .standard-item a").on("click",function(n){n.stopPropagation()});t(".other-collections").imagesLoaded(function(){n(),t(window).resize(n)});t(".other-collections .limited-release").on("mouseenter click",function(){t(".other-collections .sub-items").css({visibility:"hidden",display:"block"}),t(".other-collections .sub-items ul").valign(),t(".other-collections .sub-items").css({visibility:"visible",display:"none"}).fadeIn()});if(!EQTR.helpers.supportsTouch)t(".other-collections .limited-release").on("mouseleave",function(){t(".other-collections .sub-items").fadeOut()});t(".other-collections .limited-release a").on("click",function(n){t(this).parents(".sub-items").is(":visible")||n.preventDefault()})},n.showHide=function(){var n=function(){var n=t(this),i=n.data("toggletxt").split(","),f=i[0],e=i[1],r=function(){var i=n.data("toggletxt").split(","),r=i[0],f=i[1];t('<a href="#" class="toggle-link">'+r+"</a>").appendTo(".summary",n),u()},u=function(){t(".toggle-link",n).on("click",function(i){i.preventDefault(),t(this).hasClass("selected")?(t(this).removeClass("selected").text(f),t(".description",n).slideUp()):(t(this).addClass("selected").text(e),t(".description",n).slideDown())})};r()};t(".show-hide").each(n)},n.richtextPanels=function(){t('.richtext iframe[src*="youtube"]').each(function(){t(this).wrap('<div class="video-holder" />')})},n.setupSliders=function(){if(t(".carousel").slider(),t(".story-carousel").slider({showSwipeGestureIcon:!0}),t(".bottles .bottle-items").slider({slides_speed:300,showSeperator:!0,showSwipeGestureIcon:!0}),t(window).width()>=600&&t(".content-block-wrapper").slider({slides_speed:300}),t(".other-collections").slider({slides_speed:300,showSwipeGestureIcon:!0}),t(".servings").slider({showSwipeGestureIcon:!0,showSeperator:!0}),t(".carousel .altAlignImage").length>0){var n=function(){t(".carousel .altAlignImage img").imagesLoaded(function(n){t(n).each(function(n,i){var u,r,f;t(i).css("marginLeft",""),u=t(i).parent().width(),r=t(i).width(),r>u&&(f=(r-u)/2,t(i).css("marginLeft",-f))})})};n(),t(window).smartresize(n)}},n.enableDrinksBanner=function(){function n(){if(typeof warningEnabled!="undefined"&&warningEnabled){var n=t(window).outerHeight()/10;t(".page").css("padding-bottom",n+"px"),t("img",".drinking-warning").height(n+"px")}}t(window).smartresize(function(){n()}),n()},t(document).ready(function(){t(window).responsiveimages(),n.setupSliders(),n.homepage(),n.whiskypage(),n.bottles(),n.servings(),n.gallery(),n.theStory(),n.shoplinks(),n.otherCollections(),n.googleMap.init(),n.newslettersignup(),n.showHide(),n.richtextPanels(),n.addthisHelper.loadScript(),n.shareLink(),n.enableDrinksBanner(),t("a[rel=vimeo],a[title=vimeo]").videoplayer()}),n}(window.EQTR||{},window.jQuery),window.EQTR=function(n,t){"use strict";return n.moment=function(){function p(){var f,r=unescape(location.search.substring(1)),i,n,t,u;if(!r)return!1;for(i=r.split("&"),n=0;n<i.length;n++)t=i[n].split("="),t[0]=="filter"&&(u=t[0]+"="+t[1]);return u}function l(i){var u=t("<div/>"),f,e;u[0].innerHTML=i,f=t(".results .item",u).css("opacity",0),t(".paging a").attr("href",t(".paging a",u).attr("href")),e=t(".paging a",u).attr("href"),t(".results").append(f),f.appendTo(".results").delay(400).animate({opacity:1},function(){n.tagEachRow()}),r.tweetTiles(),r.articleTiles(),a(),o=typeof e=="undefined"?!0:!1,s=!1}function a(){t(".content-stream img[rel='background-cover']").each(function(n,i){t(i).imagesLoaded().done(function(){t(i).backgroundCover()})})}var f,e,i,y,r,v,w,n,h,o,c;if(t(".moment-page").length==0)return!1;var u=window.History,s=!1,b=t(".results .item");u.Adapter.bind(window,"statechange",function(){var n=u.getState(),s=n.id,r=n.url,f=n.data&&n.data.itemIndex,h=n.data&&n.data.filter,o;window.dataLayer&&(o=new RegExp(location.protocol+"://"+location.host,"i"),dataLayer.push({event:"_trackPageview",virtualPageUrl:r.replace(o,"")})),typeof f!="undefined"?(t(".selected-tile").removeClass("selected-tile"),b.eq(f).addClass("selected-tile"),e.start(),t.ajax(r).done(function(n){var e=t("<div/>"),u;e[0].innerHTML=n,u=e.find(".article").attr("id",s),i.removeArticle(),i.insertArticle(u,f,s,r)})):h?(i.removeArticle(),t(".results .item").fadeOut(function(){t(this).remove()}),t.ajax(r).done(l)):i.removeArticle()}),f={reset:function(n,t){EQTR.helpers.ltIE8()||DISQUS.reset({reload:!0,config:function(){this.page.identifier=n,this.page.url=t}})},setup:function(){if(!EQTR.helpers.ltIE9()){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="//"+disqus_shortname+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(n)}}},e={init:function(){t('<div class="loader"></div>').prependTo(".content-stream")},start:function(){t(".content-stream").addClass("loading")},stop:function(){t(".content-stream").removeClass("loading")}},e.init(),i=function(){return{init:function(){t(".moment-content").on("click",".close-btn",function(n){var r=t(this).attr("href"),i;EQTR.helpers.screenView()=="desktop"?(n.preventDefault(),u.pushState(null,document.title,r)):(i=p(),i&&t(this).attr("href",r+"?"+i))});if(t(".article").length){if(EQTR.helpers.screenView()=="mobile"){var n=location.protocol+"//"+location.hostname+location.pathname;t('.item[data-href="'+n+'"]').remove()}f.setup(),t(window).smartresize(function(){DISQUS&&f.reset(document.title,location.href)}),this.addCloseButton()}},insertArticle:function(r,u,o,s){var c,h=t(".results .item");c=h.eq(u).hasClass("row-end")?h.eq(u):h.eq(u).nextAll(".row-end").first(),r.insertAfter(c);var v=Math.ceil((u+1)/n.maxNumPerRow()),a=n.tileSize(),l=t(".content-stream").offset().top;r.slideDown(function(){e.stop(),typeof DISQUS!="undefined"?f.reset(o,s):f.setup();var h=s,c=t(".main-title",r).text(),n=t(".sub-title",r).text(),u=r.find(".share-icons");EQTR.shareicons.shareConfig(u,h,c,n),EQTR.richtextPanels(),i.addCloseButton(),t("html,body").animate({scrollTop:t(this).offset().top-50},400,function(){t("html,body").clearQueue()})})},removeArticle:function(){t(".article:visible").slideUp(function(){t(this).remove()})},addCloseButton:function(){t('<a class="close-btn bottom-btn" href="'+rootUrl+'"><span>Back to The Moment</span></a>').appendTo(".article .article-content"),t('<a class="close-btn top-btn" href="'+rootUrl+'"><span>Back to The Moment</span></a>').prependTo(".article .article-content")}}}(),i.init(),y=function(){var n=t(".moment-page .filter-list");return{init:function(){var i=t('<a class="search-icon" href="#">Filter by type</a>').insertBefore(n);this.bindEvents()},bindEvents:function(){t(".search-icon").on("click",function(i){i.preventDefault(),t(this).toggleClass("selected"),t(n).slideToggle()});t(".filter-list a").on("click",function(n){n.preventDefault();var i=t(this).attr("href");t(".filter-list .selected").removeClass("selected"),t(this).addClass("selected"),u.pushState({filter:!0},document.title,i),t(window).scrollTop(0)})}}}(),y.init(),r={pageIntro:function(){t(window).width()>=953?t(".page-intro .text-container ").valign({style:"margin-top"}):t(".page-intro .text-container ").removeAttr("style")},tweetTiles:function(){t(".tweet-tile .tweet-txt").valign()},articleTiles:function(){t(".article-tile .text").valign()}},t(".page-intro .image").imagesLoaded(function(){r.pageIntro()}),r.articleTiles(),v={init:function(){t(".results").on("click",".tweet-tile a",function(n){t(this).hasClass("animate-opacity")&&(t(this).is(":animated")||!t(this).hasClass("panel-focused"))&&n.preventDefault()});t(".results").on("click mouseenter",".tweet-tile",function(){EQTR.helpers.screenView()=="desktop"&&(t(this).addClass("active"),t(".animate-opacity",this).css({opacity:0}).animate({opacity:1},function(){t(this).addClass("panel-focused")}))});t(".results").on("mouseleave",".tweet-tile",function(){t(this).removeClass("active"),t(".panel-focused").removeAttr("style").removeClass("panel-focused")})}},v.init(),w={init:function(){t(".results").on("click",".article-tile .panel-focused",function(n){n.preventDefault();var r=t(this).parents(".item").data("href"),i=t(this).parents(".item").index();EQTR.helpers.screenView()=="desktop"&&u.pushState({itemIndex:i},document.title,r)});t(".results").on("click mouseenter",".article-tile",function(){EQTR.helpers.screenView()=="desktop"&&(t(".article-tile .item-content").stop().removeAttr("style"),t(".item.active").removeClass("active"),t(this).addClass("active"),t(".item-content",this).hasClass("panel-focused")||t(".item-content",this).css({display:"none",opacity:1,visibility:"visible"}).fadeIn(function(){t(this).addClass("panel-focused")}))});t(".results").on("click",".article-tile",function(n){var i=t(this).data("href"),r=t(".filter-list .selected");n.preventDefault(),EQTR.helpers.screenView()=="mobile"&&(r.length&&(i=i+"?"+p()),location.href=i)});t(".results .article-tile").on("click","a",function(n){EQTR.helpers.screenView()=="desktop"&&n.preventDefault()});t(".results").on("mouseleave",".article-tile",function(){t(this).removeClass("active"),t(".panel-focused").removeAttr("style").removeClass("panel-focused")})}},w.init(),n={maxNumPerRow:function(){var r=t(".content-stream .results").width(),i="325";return Math.ceil(r/i)},tileSize:function(){var n=t(".content-stream .results").width(),r="325";return n/Math.ceil(n/r)},tagEachRow:function(){var r;if(i=t(".results .item"),r=n.maxNumPerRow(),t(".content-stream .item.row-end").removeClass("row-end"),t(".content-stream .feature-item").length){var u=r*2-3,f=t(".results .item:lt("+u+")").not(".feature-item"),i=t(".results .item:gt("+(u-1)+")");f.last().addClass("row-end")}i.filter(function(n){return n&&(n+1)%r==0}).addClass("row-end"),i.last().addClass("row-end")}},h=function(){var i,u;return{setColumnSize:function(){var f=function(){var r,o,f,e;t("#style-tag").remove(),o=document.getElementsByTagName("head")[0],r=document.createElement("style"),r.setAttribute("type","text/css"),r.setAttribute("id","style-tag"),o.appendChild(r),EQTR.helpers.screenView()=="desktop"?(i=".item { width: "+n.tileSize()+"px!important; height: "+Math.floor(n.tileSize())+"px!important; }",u=".feature-item { width: "+n.tileSize()*2+"px!important; height: "+Math.floor((n.tileSize()-1)*2)+"px!important; }"):(f=t(".results").width(),e=f/2,i=t(window).width()>420?".item { width: "+e+"px!important; height: "+e+"px!important; }":".item { width: "+f+"px!important; height: "+f+"px!important; }",u=".feature-item { width: "+f+"px!important; height: "+f+"px!important; }"),n.tagEachRow(),r.styleSheet?r.styleSheet.cssText=i+u:r.appendChild(document.createTextNode(i+u)),t(".results").addClass("render-results")};f(),r.articleTiles(),a(),pageBorder()}}}(),h.setColumnSize(),o=!1,t(window).smartscroll(function(){s||o||t(this).scrollTop()+t(this).height()>=t(document).height()-325&&(s=!0,t(".moment-page .paging a").trigger("click",function(){}))}),c=function(){if(EQTR.helpers.screenView()=="desktop"){var n=t(".nav").outerHeight();t(".content-stream").css({paddingBottom:n})}else t(".content-stream").removeAttr("style")},c(),t(".moment-page .paging a").click(function(n){n.preventDefault();var i=t(this).attr("href");i&&t.ajax(i).done(l)}),t(window).smartresize(function(){r.pageIntro(),h.setColumnSize(),c()})},t(document).ready(function(){n.moment()}),n}(window.EQTR||{},window.jQuery),$(function(){function s(t){n.data("host")?$(".agegate form").attr("action",n.data("host")):$(".agegate form").attr("action",t)}function f(){var h=!0,f,s,e;(u.each(function(){return $this=$(this),$this.val()?void 0:(t($this.data("error")),h=!1,!1)}),h)&&(f=o($("#date-month").find("option:selected").html()+" "+$("#date-day").val()+", "+$("#date-year").val()),f>99?t("Please try entering your date of birth again"):f>=n.data("age")?(i=!1,s=$("html.shop").length!=0?"&":"/?",e=$(".agegate form").attr("action")+s+"countrySelected="+n.val(),$(".agegate form").attr("action",e),$(".agegate form").submit()):t("You are not of legal drinking age within your country"))}function t(n){var t=$(".date-select");t.siblings(".validation-error").length?t.siblings(".validation-error").html(n):t.after('<p class="validation-error">'+n+"</p>")}function o(n){var r=+new Date(n),i=Date.now()-r,t=new Date(i);return Math.abs(t.getUTCFullYear()-1970)}var i,r;if(Date.now=Date.now||function(){return+new Date},$(".agegate").length!==0){var e=[{Name:"Canada",DrinkingAge:18},{Name:"China",DrinkingAge:18},{Name:"France",DrinkingAge:18},{Name:"Germany",DrinkingAge:18},{Name:"Greece",DrinkingAge:18},{Name:"Italy",DrinkingAge:18},{Name:"Japan",DrinkingAge:20},{Name:"Mexico",DrinkingAge:18},{Name:"Russia",DrinkingAge:18},{Name:"Singapore",DrinkingAge:18},{Name:"South Korea",DrinkingAge:19},{Name:"Spain",DrinkingAge:18},{Name:"Taiwan",DrinkingAge:18},{Name:"United Kingdom",DrinkingAge:18},{Name:"United States",DrinkingAge:21},{Name:"-----------------------",DrinkingAge:18},{Name:"Afghanistan",DrinkingAge:18},{Name:"Albania",DrinkingAge:18},{Name:"Algeria",DrinkingAge:18},{Name:"Andorra",DrinkingAge:18},{Name:"Angola",DrinkingAge:18},{Name:"Antigua and Barbuda",DrinkingAge:18},{Name:"Argentina",DrinkingAge:18},{Name:"Armenia",DrinkingAge:18},{Name:"Australia",DrinkingAge:18},{Name:"Austria",DrinkingAge:18},{Name:"Azerbaijan",DrinkingAge:18},{Name:"Bahamas",DrinkingAge:18},{Name:"Bahrain",DrinkingAge:18},{Name:"Bangladesh",DrinkingAge:18},{Name:"Barbados",DrinkingAge:18},{Name:"Belarus",DrinkingAge:18},{Name:"Belgium",DrinkingAge:18},{Name:"Belize",DrinkingAge:18},{Name:"Benin",DrinkingAge:18},{Name:"Bermuda",DrinkingAge:18},{Name:"Bhutan",DrinkingAge:18},{Name:"Bolivia",DrinkingAge:18},{Name:"Bosnia and Herzegovina",DrinkingAge:18},{Name:"Botswana",DrinkingAge:18},{Name:"Brazil",DrinkingAge:18},{Name:"Brunei Darussalam",DrinkingAge:18},{Name:"Bulgaria",DrinkingAge:18},{Name:"Burkina Faso",DrinkingAge:18},{Name:"Burundi",DrinkingAge:18},{Name:"Cambodia",DrinkingAge:18},{Name:"Cameroon",DrinkingAge:18},{Name:"Cape Verde",DrinkingAge:18},{Name:"Central African Republic",DrinkingAge:18},{Name:"Chad",DrinkingAge:18},{Name:"Chile",DrinkingAge:18},{Name:"Colombia",DrinkingAge:18},{Name:"Comoros",DrinkingAge:18},{Name:"Congo",DrinkingAge:18},{Name:"Costa Rica",DrinkingAge:18},{Name:"Croatia",DrinkingAge:18},{Name:"Cuba",DrinkingAge:18},{Name:"Cyprus",DrinkingAge:18},{Name:"Czech Republic",DrinkingAge:18},{Name:"Denmark",DrinkingAge:18},{Name:"Djibouti",DrinkingAge:18},{Name:"Dominica",DrinkingAge:18},{Name:"Dominican Republic",DrinkingAge:18},{Name:"Dr Congo",DrinkingAge:18},{Name:"East Timor",DrinkingAge:18},{Name:"Ecuador",DrinkingAge:18},{Name:"Egypt",DrinkingAge:18},{Name:"El Salvador",DrinkingAge:18},{Name:"Equatorial Guinea",DrinkingAge:18},{Name:"Eritrea",DrinkingAge:18},{Name:"Estonia",DrinkingAge:18},{Name:"Ethiopia",DrinkingAge:18},{Name:"Fiji",DrinkingAge:18},{Name:"Finland",DrinkingAge:18},{Name:"Gabon",DrinkingAge:18},{Name:"Gambia",DrinkingAge:18},{Name:"Georgia",DrinkingAge:18},{Name:"Ghana",DrinkingAge:18},{Name:"Grenada",DrinkingAge:18},{Name:"Guatemala",DrinkingAge:18},{Name:"Guinea",DrinkingAge:18},{Name:"Guinea-Bissau",DrinkingAge:18},{Name:"Guyana",DrinkingAge:18},{Name:"Haiti",DrinkingAge:18},{Name:"Honduras",DrinkingAge:18},{Name:"Hong Kong",DrinkingAge:18},{Name:"Hungary",DrinkingAge:18},{Name:"Iceland",DrinkingAge:18},{Name:"India",DrinkingAge:18},{Name:"Indonesia",DrinkingAge:18},{Name:"Iran",DrinkingAge:18},{Name:"Iraq",DrinkingAge:18},{Name:"Ireland",DrinkingAge:18},{Name:"Israel",DrinkingAge:18},{Name:"Jamaica",DrinkingAge:18},{Name:"Jordan",DrinkingAge:18},{Name:"Kazakhstan",DrinkingAge:18},{Name:"Kenya",DrinkingAge:18},{Name:"Kiribati",DrinkingAge:18},{Name:"Korea, South",DrinkingAge:18},{Name:"Kuwait",DrinkingAge:18},{Name:"Kyrgyzstan",DrinkingAge:18},{Name:"Lao",DrinkingAge:18},{Name:"Latvia",DrinkingAge:18},{Name:"Lebanon",DrinkingAge:18},{Name:"Lesotho",DrinkingAge:18},{Name:"Liberia",DrinkingAge:18},{Name:"Libyan Arab Jamahiriya",DrinkingAge:18},{Name:"Liechtenstein",DrinkingAge:18},{Name:"Lithuania",DrinkingAge:18},{Name:"Luxembourg",DrinkingAge:18},{Name:"Macedonia",DrinkingAge:18},{Name:"Madagascar",DrinkingAge:18},{Name:"Malawi",DrinkingAge:18},{Name:"Malaysia",DrinkingAge:18},{Name:"Maldives",DrinkingAge:18},{Name:"Mali",DrinkingAge:18},{Name:"Malta",DrinkingAge:18},{Name:"Marshall Islands",DrinkingAge:18},{Name:"Mauritania",DrinkingAge:18},{Name:"Mauritius",DrinkingAge:18},{Name:"Micronesia",DrinkingAge:18},{Name:"Moldova, Republic Of",DrinkingAge:18},{Name:"Monaco",DrinkingAge:18},{Name:"Mongolia",DrinkingAge:18},{Name:"Morocco",DrinkingAge:18},{Name:"Mozambique",DrinkingAge:18},{Name:"Myanmar",DrinkingAge:18},{Name:"Namibia",DrinkingAge:18},{Name:"Nauru",DrinkingAge:18},{Name:"Nepal",DrinkingAge:18},{Name:"Netherlands",DrinkingAge:18},{Name:"New Zealand",DrinkingAge:18},{Name:"Nicaragua",DrinkingAge:18},{Name:"Niger",DrinkingAge:18},{Name:"Nigeria",DrinkingAge:18},{Name:"North Korea",DrinkingAge:18},{Name:"Norway",DrinkingAge:18},{Name:"Oman",DrinkingAge:18},{Name:"Pakistan",DrinkingAge:18},{Name:"Palau",DrinkingAge:18},{Name:"Panama",DrinkingAge:18},{Name:"Papua New Guinea",DrinkingAge:18},{Name:"Paraguay",DrinkingAge:18},{Name:"Peru",DrinkingAge:18},{Name:"Philippines",DrinkingAge:18},{Name:"Poland",DrinkingAge:18},{Name:"Portugal",DrinkingAge:18},{Name:"Qatar",DrinkingAge:18},{Name:"Romania",DrinkingAge:18},{Name:"Rwanda",DrinkingAge:18},{Name:"Saint Kitts and Nevis",DrinkingAge:18},{Name:"Saint Lucia",DrinkingAge:18},{Name:"Samoa",DrinkingAge:18},{Name:"San Marino",DrinkingAge:18},{Name:"Sao Tome And Principe",DrinkingAge:18},{Name:"Saudi Arabia",DrinkingAge:18},{Name:"Senegal",DrinkingAge:18},{Name:"Serbia and Montenegro",DrinkingAge:18},{Name:"Seychelles",DrinkingAge:18},{Name:"Sierra Leone",DrinkingAge:18},{Name:"Slovakia",DrinkingAge:18},{Name:"Slovenia",DrinkingAge:18},{Name:"Solomon Islands",DrinkingAge:18},{Name:"Somalia",DrinkingAge:18},{Name:"South Africa",DrinkingAge:18},{Name:"Sri Lanka",DrinkingAge:18},{Name:"Sudan",DrinkingAge:18},{Name:"Suriname",DrinkingAge:18},{Name:"Swaziland",DrinkingAge:18},{Name:"Sweden",DrinkingAge:18},{Name:"Switzerland",DrinkingAge:18},{Name:"Syrian Arab Republic",DrinkingAge:18},{Name:"Tajikistan",DrinkingAge:18},{Name:"Tanzania",DrinkingAge:18},{Name:"Thailand",DrinkingAge:18},{Name:"Togo",DrinkingAge:18},{Name:"Tonga",DrinkingAge:18},{Name:"Trinidad and Tobago",DrinkingAge:18},{Name:"Tunisia",DrinkingAge:18},{Name:"Turkey",DrinkingAge:18},{Name:"Turkmenistan",DrinkingAge:18},{Name:"Tuvalu",DrinkingAge:18},{Name:"Uganda",DrinkingAge:18},{Name:"Ukraine",DrinkingAge:18},{Name:"United Arab Emirates",DrinkingAge:18},{Name:"Uruguay",DrinkingAge:18},{Name:"Uzbekistan",DrinkingAge:18},{Name:"Vanuatu",DrinkingAge:18},{Name:"Venezuela",DrinkingAge:18},{Name:"Viet Nam",DrinkingAge:18},{Name:"Yemen",DrinkingAge:18},{Name:"Zambia",DrinkingAge:18},{Name:"Zimbabwe",DrinkingAge:18},{Name:"Other",DrinkingAge:18}],u=$("#date-day, #date-month, #date-year, #country-list, #language-list"),n=u.filter("#country-list");u.filter("#language-list").find("option:eq(0)").after('<option value="//'+document.domain+'">English</option>'),$.each(e,function(t,i){var r=i.Host?i.Host:"";n.append('<option data-age="'+i.DrinkingAge+'" data-host="'+r+'" value="'+i.Name+'">'+i.Name+"</option>")}),i=!0,$(".agegate form").submit(function(n){i&&(n.preventDefault(),f(n))}),$(".ageGateCta").click(function(n){n.preventDefault(),f(n)}),$("#language-list").change(function(){s($(this).val())}),$("#country-list").change(function(){var n=$(this),i=n.find('option[value="'+n.val()+'"]').data("age"),t=n.find('option[value="'+n.val()+'"]').data("host");n.data("age",i),n.data("host",t)}),r=function(){EQTR.deviceWidth()>500?$(".agegate").imagesLoaded(function(){$(".agegate-content-wrapper form").valign()}):$(".agegate-content-wrapper form").removeAttr("style")},r(),$(window).smartresize(r)}}),$(function(){function n(){var i,t,n;EQTR.helpers.screenView()==="desktop"?(i=$(".main-nav").outerWidth(!0)+$(".share-links").outerWidth(!0),t=$(window).width(),i>t?($("html").addClass("mediumsize-nav"),n=$(".share-links").height(),$(".nav").height(n)):($(".mediumsize-nav").removeClass("mediumsize-nav"),$(".nav").removeAttr("style"))):$(".nav").removeAttr("style")}function r(){if($(".footer .submenu").length){$(".footer .share-links").clone().appendTo(t),$('<p class="more-link"><a class="nestedlinks-anchor" href="#">More</a></p>').prependTo(".share-links",t);$(".more-link a").on("click",function(n){n.preventDefault()});i()}}function i(){function n(){$(".show-menu").fadeTo("slow",0,function(){$(this).removeAttr("style")}),$(".show-nested-links").removeClass("show-nested-links")}$(".folio-links").imagesLoaded(function(){$(".js .folio-links .title").valign()});var t;$(".nav .nestedlinks-anchor").on("mouseenter click",function(){var u,s;clearTimeout(t);var r=$(this),h=r.offset().left,f=$(".nav").height(),n=$(".footer .folio-links"),i={display:"none"};if(!r.hasClass("show-nested-links")){if(EQTR.helpers.supportsTouch&&$(this).parents("ul").hasClass("main-nav"))return!0;if(r.parents("ul").hasClass("main-nav"))EQTR.deviceWidth()>1128&&(u="50%",s=n.height(),n.css({marginLeft:-$(n).outerWidth()/2+"px"}),i.bottom=f,i.left=u,r.addClass("show-nested-links"),n.addClass("show-menu"));else{n=$(".footer .utility-nav");var e=n.outerWidth()/2,s=n.height(),o=$(".nav .share-links").outerWidth(!0)-$(".more-link").outerWidth(!0)/2-e+"px";i.bottom=f,i.right=o,i.left="auto",r.addClass("show-nested-links"),n.addClass("show-menu")}n.css(i).stop().fadeTo("slow",1)}});$(".nav .nestedlinks-anchor").on("mouseleave",function(){t=setTimeout(function(){n()},300)});$(document).on("touchstart",function(){$(".submenu").hasClass("show-menu")&&n()});$(".submenu a").on("touchstart",function(n){n.stopPropagation()});$(".submenu").on("mouseenter",function(){clearTimeout(t)}).on("mouseleave",function(t){var i=t.relatedTarget||t.toElement;$(i).hasClass("nestedlinks-anchor")||n()});$(".folio-links .limited-releases").on("mouseover",function(){$(".folio-links .links").fadeIn()});$(".folio-links .limited-releases").on("mouseleave",function(){$(".folio-links .links").fadeOut()});$(".nav-control a").on("click",function(n){n.preventDefault(),$(this).toggleClass("active"),$(".main-nav").slideToggle(function(){$(this).toggleClass("expanded").removeAttr("style")})})}var t=$(".nav .nav-container");r(),n(),$(window).smartresize(n)}),$(function(){$(".whisky-portfolio").each(function(){function i(n){$(n).animate({opacity:0},300,function(){$(this).parents().removeClass("active").end().removeAttr("style")})}function o(n){$(".sub-items",n).fadeOut("slow",function(){n.animate({width:e},function(){$(".sub-items",n).removeAttr("style"),n.removeClass("active expanded").removeAttr("style").find(".content-container").fadeIn(200).removeAttr("style")})})}var n=$(this),f=$(".item",n),e=f.outerWidth(),t=$('.item:not(".limited-release, .special-release")',n),u=$(".special-release",n),r;f.each(function(){var n=$(".title:eq(0)",this).clone();$(this).find(".summary .text").prepend(n)});t.on("mouseenter click",function(){EQTR.helpers.screenView()=="desktop"&&($(".item-heading",this).fadeOut(300),$(".limited-release .sub-items").stop(),EQTR.helpers.supportsPointer&&i(".active .summary,.active .aligner"),$(".summary",this).animate({opacity:1},300,function(){$(this).parent().addClass("active").removeAttr("style")}))});if(!EQTR.helpers.supportsPointer)t.on("mouseleave",function(){EQTR.helpers.screenView()=="desktop"&&($(".item-heading",this).stop().removeAttr("style"),$(".summary",this).animate({opacity:0},300,function(){$(this).parent().removeClass("active").end().removeAttr("style")}))});$(t).on("click",function(){if(EQTR.helpers.screenView()=="mobile"){var t=$(".item-link",this).attr("href");window.location=t}});$(".limited-release",n).on("mouseenter click",function(){EQTR.helpers.screenView()=="desktop"&&($(".item-heading",this).fadeOut(300),EQTR.helpers.supportsPointer&&i(".active .summary,.active .aligner"),$(".summary",this).animate({opacity:1},300,function(){$(this).parent().addClass("selected").removeAttr("style")}))});if(!EQTR.helpers.supportsPointer)$(".limited-release",n).on("mouseleave",function(){EQTR.helpers.screenView()=="desktop"&&($(".item-heading",this).stop().removeAttr("style"),$(".summary",this).animate({opacity:0},300,function(){$(".limited-release").removeClass("active").removeAttr("style"),$(".limited-release .content-container").removeAttr("style")}))});$(".limited-release").on("click",".selected",function(n){n.stopPropagation();var t=$(".limited-release");EQTR.helpers.screenView()==="desktop"&&$(this).removeClass("selected").fadeOut(200,function(){t.removeAttr("style").css({background:"#fff",opacity:"0"}).animate({width:"100%",opacity:"1"},function(){t.addClass("active")})})});$(u).on("mouseenter click",function(){EQTR.helpers.screenView()==="desktop"&&($(".sub-items",this).hasClass("active")||($(".item-heading",this).fadeOut(300),i(".active .summary,.active .aligner"),$(".aligner",this).animate({opacity:1},300,function(){$(this).parent().addClass("active")})))});if(!EQTR.helpers.supportsPointer)$(u).on("mouseleave",function(){EQTR.helpers.screenView()==="desktop"&&($(".item-heading",this).stop().removeAttr("style"),i(".active .aligner"))});$(".special-release .sub-item",n).on("click",function(){if($(this).parents(".sub-items").hasClass("active")||EQTR.helpers.screenView()==="mobile"){var t=$(".item-link",this).attr("href");window.location=t}});$(".limited-release .sub-item").on("click",function(){if($(this).parents(".item").hasClass("active")||EQTR.helpers.screenView()==="mobile"){var t=$(".item-link",this).attr("href");window.location=t}});$(".summary",t).on("click",function(){if($(this).parents(".item").hasClass("active")||EQTR.helpers.screenView()==="mobile"){var t=$(".item-link",this).attr("href");window.location=t}});$("a",t).on("click",function(n){n.preventDefault()});$("a",u).on("click",function(n){n.preventDefault()});$(".limited-release .sub-items").append('<a href="#" class="closebtn">Close</a>');$(".limited-release .closebtn").on("click",function(n){n.preventDefault(),o($(".limited-release"))});r=function(){$(".limited-release .summary .text").valign({style:"margin-top"}),$(".summary .text",t).valign({style:"margin-top"}),$(".item-heading .title",f).valign({style:"margin-top"})},n.imagesLoaded(r),$(window).smartresize(r)})}),function(){function u(){n.find("p").html("W = "+$(window).width()+"px<br/>H = "+$(window).height()+"px")}function i(){t?(n.hide(),$(window).unbind("resize.debug")):(n||(n=$('<div id="debug_deviceDimensions" style="position:fixed;top:0;left:0;border:1px solid #666;background:white;padding:5px;z-index:100000;font-family:courier new,monospace;font-size:12px;"><p style="color:black"></p><a style="text-decoration:underline;" target="responsive" href="/assets/js/responsive-tester.html?'+location.href+'">Responsive</a></div>'),$(function(){$("body").append(n)})),$(window).bind("resize.debug",u).resize(),n.show()),t=!t,r&&(localStorage.debugging=t)}function r(){try{return"localStorage"in window&&window.localStorage!==null}catch(n){return!1}}if(self==top){var t=!1,n=null;$(document).keyup(function(n){var t=n.keyCode||n.which;n.ctrlKey&&n.shiftKey&&t==88&&i()}),r()&&localStorage.debugging==="true"&&i()}}()