var NO_JQUERY={};!function(e,t,n){if(!("console"in e)){var a=e.console={};a.log=a.warn=a.error=a.debug=function(){}}t===NO_JQUERY&&(t={fn:{},extend:function(){for(var e=arguments[0],t=1,n=arguments.length;t=0},getElement:function(e){var n="querySelectorAll";0===e.indexOf("#")&&(n="getElementById",e=e.substr(1,e.length));var a=t[n](e);return a&&"querySelectorAll"===n?a[0]:a},elementHeight:function(e){var n=0,a=0;return t.all?(n=e.currentStyle.height,this.isNumeric(n)||(n=e.offsetHeight),n=parseInt(n,10),a=parseInt(e.currentStyle.marginTop,10)+parseInt(e.currentStyle.marginBottom,10)):(n=parseInt(t.defaultView.getComputedStyle(e,"").getPropertyValue("height"),10),a=parseInt(t.defaultView.getComputedStyle(e,"").getPropertyValue("margin-top"),10)+parseInt(t.defaultView.getComputedStyle(e,"").getPropertyValue("margin-bottom"),10)),n+a},hasClass:function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},addClass:function(e,t){e.classList?e.classList.add(t):this.hasClass(e,t)||(e.className+=" "+t)},removeClass:function(e,t){if(e.classList)e.classList.remove(t);else if(this.hasClass(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}},getParam:function(t,n){n=n||e.location.search;var a="[?&]"+t+"=([^&#]*)",s=new RegExp(a),r=s.exec(n);return null===r?"":decodeURIComponent(r[1].replace(/\+/g," "))},filterText:function(e){return e.replace(/[<>]/g,"")},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},setStyle:function(t,n){n.length>0&&(n="string"==typeof n?n:n.join(" "),n=e.SeamlessBase.filterText(n),t.styleSheet?t.styleSheet.cssText=n:t.innerHTML=n)},injectStyles:function(n){var a=this.getElement("style#injected-styles");if(a)e.SeamlessBase.setStyle(a,n);else{var s=t.createElement("style");s.setAttribute("type","text/css"),s.setAttribute("id","injected-styles"),e.SeamlessBase.setStyle(s,n);var r=t.head||t.getElementsByTagName("head")[0];r&&r.appendChild(s)}},injectAppendedStyles:function(e){var n=e.join(";"),a=t.head||t.getElementsByTagName("head")[0],s=t.createElement("style");s.type="text/css",s.styleSheet?s.styleSheet.cssText=n:s.appendChild(t.createTextNode(n)),a.appendChild(s)}}}(window,document),function(e){"use strict";e.SeamlessConnection=function(e,t){this.id=0,this.target=e,this.url=t,this.active=!1,this.queue=[]},e.SeamlessConnection.prototype.send=function(t){this.active&&this.target?(t=t||{},t.hasOwnProperty("data")||(t={data:t}),t.target=this.target,t.url=this.url||"index.html",t.type=t.type||"seamless_data",t.data=t.data||{},t.data.__id=this.id,e.pm(t)):this.queue.push(t)},e.SeamlessConnection.prototype.receive=function(t,n){"function"==typeof t&&(n=t,t="seamless_data");var a=this;e.pm.bind(t,function(e,t){return!(!e.__id||e.__id!==a.id)&&n(e,t)})},e.SeamlessConnection.prototype.setActive=function(e){if(this.active=e,this.queue.length>0){for(var t in this.queue)this.send(this.queue[t]);this.queue=[],this.queue.length=0}}}(window),function(e,t,n){"use strict";if(!e.hasOwnProperty("pm"))return void console.log("You must install the postmessage.js module to use seamless.js.");n.seamless=e.seamless={options:{url:"",container:"body",update:200,allowStyleInjection:!1,allowAppendedStyleInjection:!1,requireCookies:!1,cookieFallbackMsg:"Your browser requires this page to be opened in a separate window.",cookieFallbackLinkMsg:"Click Here",cookieFallbackAfterMsg:" to open in a separate window.",onUpdate:null,onConnect:null},connect:function(n){n=n||{};for(var a in n)this.options.hasOwnProperty(a)&&(this.options[a]=n[a]);n=this.options;var s=new e.SeamlessConnection(e.parent,n.url),r=!1;s.setActive(!0),n.requireCookies&&(t.cookie="cookieTest=1",-1===t.cookie.indexOf("cookieTest")&&function(e,t,n){r=!0,s.send({type:"seamless_error",data:{msg:e,linkText:t,afterText:n}})}(n.cookieFallbackMsg,n.cookieFallbackLinkMsg,n.cookieFallbackAfterMsg));var i=e.SeamlessBase.getParam("noiframe").toString();if("1"===i||"true"===i.toLowerCase())s.send({type:"seamless_noiframe",data:{href:e.location.href}});else{var o=!1,l=n.container,c=0,u=0,p=function(){if(!r){u&&clearTimeout(u);var t=e.SeamlessBase.elementHeight(e.SeamlessBase.getElement(l));if(!o&&c!==t){o=!0;var a={height:t};n.onUpdate&&n.onUpdate(a),s.send({type:"seamless_update",data:a,success:function(e){c=e.height,o=!1}})}u=setTimeout(p,n.update)}},f=function(e){r||(e=e||0,s.id||(s.send({type:"seamless_ready",data:{}}),e<50&&setTimeout(function(){f(++e)},200)))};e.pm.bind("seamless_styles",function(t){n.allowStyleInjection&&e.SeamlessBase.injectStyles(t),n.allowAppendedStyleInjection&&e.SeamlessBase.injectAppendedStyles(t),p()}),e.pm.bind("seamless_connect",function(a,r){s.id=a.id,n.onConnect&&n.onConnect(a);var i=t.body.getAttribute("style");return t.body.setAttribute("style","overflow:hidden;"+i),t.body.setAttribute("scroll","no"),n.allowStyleInjection&&e.SeamlessBase.injectStyles(a.styles),p(),a}),f()}return s}}}(window,document,"undefined"==typeof jQuery?{}:jQuery);