'+'
';var bdy=doc.body;if(bdy){var iframes=div.getElementsByTagName("IFRAME");if(this.noChatFrame){this.v3Frame=window;this.initV3Frame();additionalTags();return}if(!this.isLegacy){if(iframes.length>0){var oDiv=document.getElementById("nuanMessagingFrame");if(!oDiv){oDiv=doc.createElement("div");oDiv.id="nuanMessagingFrame";oDiv.classList.add("nuance-chat-floating-container");bdy.appendChild(oDiv)}oDiv.appendChild(iframes[0]);v3Lander.modernSkin=true}}else for(var ix=iframes.length-1;ix>-1;--ix)bdy.appendChild(iframes[ix]);additionalTags()}v3Lander.fixV3IFrames(div);function additionalTags(){var divs=div.getElementsByTagName("DIV");for(var ix=divs.length-1;ix>-1;--ix)bdy.appendChild(divs[ix])}};function getEnvFromConfig(){var landerConfig=v3Lander.getOpenerV3LanderConfig()||v3LanderConfig.parent||window.v3LanderConfig;return landerConfig?landerConfig["env"]:null}function loadScript(name,useMediaServer,useClientDomain,async,errorCallback,useResolvePageWSDomain){var bdy=document.getElementsByTagName("BODY");if(bdy&&bdy[0]){var srctag=document.createElement("SC"+"RIPT");if(v3Lander.noJSHosting&&useClientDomain){v3LanderConfig.clientStaticUrl=v3Lander.getV3LanderConfigProperty("clientStaticUrl",v3Lander.staticClientURL);srctag.src=secureProtocol(window.v3LanderConfig.clientStaticUrl)+name}else if(useMediaServer)srctag.src=secureProtocol(window.v3LanderConfig.vanityDomain||v3Lander.mediaServer||v3Lander.vanityDomain)+name;else if(useResolvePageWSDomain)srctag.src=secureProtocol(v3Lander.resolvePageWSDomain)+name;else srctag.src=secureProtocol(window.v3LanderConfig.vanityDomain||v3Lander.vanityDomain)+name;srctag.onerror=function(){if("function"==typeof errorCallback)errorCallback()};srctag.async=false!==async;srctag.type="text/javascript";srctag.charset="utf-8";srctag.language="javascript";bdy[0].appendChild(srctag)}}v3Lander.requestPage=function requestPage(){this.resolvePage()};v3Lander.getPage=function getPage(){return this.page};v3Lander.getContentGroupIDs=function getContentGroupIDs(){return this.cgIDs};v3Lander.resolvePage=function resolvePage(){var urlPath="/launch/resolvePage?siteID="+this.siteID+"&url="+encodeURIComponent(document.URL)+"&codeVersion="+encodeURIComponent(this.codeVersion);if(!this.useResolvePageWSDomain)urlPath="/tagserver"+urlPath;var overriddenPageId=null;if(window.inqSiteID)overriddenPageId=window.inqSiteID;else if(window.parent&&window.parent.inqSiteID)overriddenPageId=window.parent.inqSiteID;if(overriddenPageId)urlPath+="&overridePageId="+encodeURIComponent(overriddenPageId);loadScript(urlPath,false,false,true,null,this.useResolvePageWSDomain)};v3Lander.applyPage=function applyPage(data){var contains=function(a,obj){for(var i=0;i
1){var c2cQueryData="{";var queryStringPairs=queryString.substring(1).split("&");for(var i=0;i=1||pair.length<=2)c2cQueryData+=(0==i?"":", ")+pair[0]+": "+(2==pair.length?'"'+unescape(pair[1])+'"':'""');c2cQueryData+="}";v3Lander.c2cQueryData=c2cQueryData}}};v3Lander.renderC2CDiv=function renderC2CDiv(){document.body.style.cssText="border-style: none; border-width: 0px;"+" margin: 0px; padding: 0px; overflow: hidden; overflow-x:hidden; overflow-y: hidden;";var c2cdiv=document.createElement("DIV");c2cdiv.id=window.name;document.body.appendChild(c2cdiv);v3Lander.embeddedDiv=c2cdiv;c2cdiv["setSource"]=v3Lander.setSource};v3Lander.onDomReady=function onDomReady(){if(v3Lander.domReady)return;v3Lander.domReady=true;if(-1!==window.location.href.indexOf("?C2C")){try{v3Lander.renderC2CDiv();v3Lander.parseC2CQueryString();v3Lander.registerDiv(200)}catch(e){}return}try{if(window!=window.parent&&!this.isAtHostedFileURL&&window.document.domain==window.parent.document.domain)if(this.allowTaggingInsideFrameSet){if(!window.frameElement)return}else return}catch(e){}if(!this.v3Frame)if(this.isBupMode||this.isRplMode)this.requestPage();else this.createV3Frame();else this.initV3Frame()};v3Lander.injectIntoParent=function injectIntoParent(){function whenLoaded(){win.v3Lander=window.v3Lander;instance.createV3Frame(win)}var instance=this;var win=top.top;var doc=win.document;if(!doc.readyState);else if("complete"===doc.readyState||"loaded"===doc.readyState)whenLoaded();else if(window.addEventListener)window.addEventListener("load",whenLoaded,true);else if(window.attachEvent)window.attachEvent("onload",whenLoaded)};v3Lander.setDomReadyTimeout=function setDomReadyTimeout(t){setTimeout((function(){v3Lander.onDomReady()}),t||0)};v3Lander.testReady=function testReady(){var WAIT_PERIOD=100;var skipDomReadyTest=v3Lander.skipDomReadyTest;if("undefined"!=typeof jQuery&&jQuery.isReady)v3Lander.setDomReadyTimeout(1);else if(skipDomReadyTest&&!v3Lander.v3Frame)v3Lander.setDomReadyTimeout(1);else if("undefined"==typeof document.readyState){if(document.addEventListener){document.addEventListener("load",v3Lander.setDomReadyTimeout,false);document.addEventListener("DOMContentLoaded",v3Lander.setDomReadyTimeout,false)}v3Lander.setDomReadyTimeout(WAIT_PERIOD)}else{var tridentVersion=navigator.userAgent.match(/Trident\/(\d+)/);var newIeVersion=tridentVersion&&2==tridentVersion.length&&parseInt(tridentVersion[1])>=6;if("complete"==document.readyState&&newIeVersion)v3Lander.setDomReadyTimeout();else if(document.addEventListener||newIeVersion&&document.attachEvent)if(/loaded|complete/.test(document.readyState))v3Lander.setDomReadyTimeout();else setTimeout(arguments.callee,100)}};if(v3Lander.isExitChat){v3Lander.prepareBeforeUnloadForEH=function prepareBeforeUnloadForEH(){if(!inqFrame.Inq.EC.isInitialized())window.onbeforeunload=function(evt){inqFrame.Inq.EH.fireBeforeUnloadEvent()}};v3Lander.prepareBeforeUnload=function prepareBeforeUnload(atxt,ctxt,cancelFcn,showImage,imageElement){window.onbeforeunload=function(evt){if(inqFrame.Inq.EH.isInitialized())inqFrame.Inq.EH.fireBeforeUnloadEvent();if(inqFrame.Inq.EC.update()){if(showImage){var positionX=(window.innerWidth-imageElement.width)/2;var positionY=(window.innerHeight-imageElement.height)/2;var style=inqFrame.frameElement.style;style["display"]="block";style["z-index"]="9999999";style["overflow"]="hidden";style["position"]="absolute";style["height"]=imageElement.height+"px";style["width"]=imageElement.width+"px";style["left"]=positionX+"px";style["top"]=positionY+"px";style["border-style"]="none";style["border-width"]="0px";inqFrame.Inq.CHM.isImagePosition=true}inqFrame.Inq.EC.fireBeforeExitConfirmationEvent();if(atxt&&navigator.userAgent.indexOf("Firefox")<0)alert(atxt);window.onbeforeunload=null;setTimeout(cancelFcn,200);return String(ctxt)}}}}v3Lander.start=function start(){try{this.assignDomain();v3Lander.v3Frame=window.frameElement&&window.frameElement.id===FRAME_ID}catch(e){v3Lander.v3Frame=false}if(v3Lander.isExitChat)if(this.isAtHostedFileURL)this.prepBBDetect();v3Lander.testReady()};v3Lander.establishHostedFileURL();if(window.location.href.indexOf("surveys/launchNativePostChatSurvey")>-1)v3Lander.isAtHostedFileURL=window.location.href.indexOf("hostedFileURL=true")>-1;else v3Lander.isAtHostedFileURL=window.location.href.indexOf(v3Lander.hostedFileURL)>-1;v3Lander.assignDomain();if(-1!=window.location.href.indexOf("?CLEAR")){var cookies=document.cookie.split(";");for(var i=0;i-1?cookie.substr(0,eqPos):cookie;document.cookie=cookieName+"=;Path=/;Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}}else if(-1!=window.location.href.indexOf("?BLNK"));else if(-1!=window.location.href.indexOf("?C2C"))v3Lander.testReady();else if(-1!=window.location.href.indexOf("?INJECT"))v3Lander.injectIntoParent();else if(-1!=window.location.href.indexOf("?RSC2C"))v3Lander.resizeAnscestorIframe();else if(-1!=window.location.href.indexOf("?POST2SERVER"))insertPostToServerTag();else if(!!window.name&&-1!=window.name.indexOf("||")&&v3Lander.isAtHostedFileURL){if(!v3Lander.disableXframeToIjsf&&"function"===typeof v3Lander.xframeToIjsf)if("?XFRM"==window.location.search){v3Lander.xframeToIjsf();window.close()}}else if(!window.v3LanderConfig.customLaunching)v3Lander.start();if(window===window.parent&&"undefined"!=typeof CEAPI_POST_CHAT_SURVEY_DATA&&null!=CEAPI_POST_CHAT_SURVEY_DATA)if(CEAPI_POST_CHAT_SURVEY_DATA.skinVersion)v3Lander.showLoaderAnim();else v3Lander.showLoader()})();