var ab2b_client_id = "2082"; if(!Array.prototype.forEach){Array.prototype.forEach=function(c){if(this===void 0||this===null||typeof c!=="function"){throw new TypeError()}var e=Object(this),a=e.length>>>0,b=arguments.length>=2?arguments[1]:void 0;for(var d=0;dN){throw new Error("Value for min"+R+" can not be greater than max"+R)}j(" Checking "+Q+" is in range "+P+"-"+N);if(ON){O=N;j(" Set "+Q+" to max value")}G[Q]=""+O}function K(){var O=B.origin,N=G.iframe.src.split("/").slice(0,3).join("/");if(v.checkOrigin){j(" Checking connection is from: "+N);if((""+O!=="null")&&(O!==N)){throw new Error("Unexpected message received from: "+O+" for "+G.iframe.id+". Message was: "+B.data+". This error can be disabled by adding the checkOrigin: false option.")}}return true}function C(){return a===(""+F).substr(0,b)}function E(){var N=G.type in {"true":1,"false":1};if(N){j(" Ignoring init message from meta parent page")}return N}function A(){var N=F.substr(F.indexOf(":")+t+6);j(" MessageCallback passed: {iframe: "+G.iframe.id+", message: "+N+"}");v.messageCallback({iframe:G.iframe,message:N});j(" --")}function D(){if(null===G.iframe){throw new Error("iFrame ("+G.id+") does not exist on "+f)}return true}function H(){switch(G.type){case"close":L(G.iframe);v.resizedCallback(G);break;case"message":A();break;case"reset":z(G);break;case"init":I();v.initCallback(G.iframe);ab2bifFireResizeScroll();break;default:I()}}var F=B.data,G={};if(C()){j(" Received: "+F);G=J();M("Height");M("Width");if(!E()&&D()&&K()){H();g=false}}}function o(){if(null===r){r={x:(window.pageXOffset!==undefined)?window.pageXOffset:document.documentElement.scrollLeft,y:(window.pageYOffset!==undefined)?window.pageYOffset:document.documentElement.scrollTop};j(" Get position: "+r.x+","+r.y)}}function h(){if(null!==r){window.scrollTo(r.x,r.y);j(" Set position: "+r.x+","+r.y);r=null}}function z(B){function A(){u(B);n("reset","reset",B.iframe)}j(" Size reset requested by "+("init"===B.type?"host page":"iFrame"));o();q(A,B,"init")}function u(B){function A(E,D,C){B.iframe.style[E]=B[E]+"px";j(" IFrame ("+B.iframe.id+") "+E+" set to "+B[E]+"px")}if(v.sizeHeight){A("height")}if(v.sizeWidth){A("width")}}function q(B,A,C){if(C!==A.type&&d){j(" Requesting animation frame");d(B)}else{B()}}function n(B,C,A){j("["+B+"] Sending msg to iframe ("+C+")");A.contentWindow.postMessage(a+C,"*")}function w(){function C(){function I(J){if((Infinity!==v[J])&&(0!==v[J])){D.style[J]=v[J]+"px";j(" Set "+J+" = "+v[J]+"px")}}I("maxHeight");I("minHeight");I("maxWidth");I("minWidth")}function A(I){if(""===I){D.id=I="iFrameResizer"+i++;j(" Added missing iframe ID: "+I)}return I}function H(){j(" IFrame scrolling "+(v.scrolling?"enabled":"disabled")+" for "+F);D.style.overflow=false===v.scrolling?"hidden":"auto";D.scrolling=false===v.scrolling?"no":"yes"}function E(){if(("number"===typeof(v.bodyMargin))||("0"===v.bodyMargin)){v.bodyMarginV1=v.bodyMargin;v.bodyMargin=""+v.bodyMargin+"px"}}function B(){return F+":"+v.bodyMarginV1+":"+v.sizeWidth+":"+v.log+":"+v.interval+":"+v.enablePublicMethods+":"+v.autoResize+":"+v.bodyMargin+":"+v.heightCalculationMethod+":"+v.bodyBackground+":"+v.bodyPadding+":"+v.tolerance}function G(I){p(D,"load",function(){var J=g;n("iFrame.onload",I,D);if(!J&&v.heightCalculationMethod in y){z({iframe:D,height:0,width:0,type:"init"})}});n("init",I,D)}var D=this,F=A(D.id);H();C();E();G(B())}function c(A){if("object"!==typeof A){throw new TypeError("Options is not an object.")}}function m(){function B(D){if("IFRAME"!==D.tagName){throw new TypeError("Expected