var request=new XMLHttpRequest;request.open("GET","svninfo.txt",!1),request.send();var svn=request.responseText,array=svn.split(" "),url=array[1].split("/"),version=url[url.length-2],revision=array[4];localStorage.setItem("version",version+" ("+revision+")");var request=new XMLHttpRequest;request.open("GET","config.xml?revision="+revision,!1),request.send(),parser=new DOMParser,xmlDoc=parser.parseFromString(request.responseText,"text/xml"),parser=new DOMParser,xmlDoc=parser.parseFromString(request.responseText,"text/xml");var envScheme=xmlDoc.getElementsByTagName("envScheme").item(0).textContent,envDomain=xmlDoc.getElementsByTagName("envDomain").item(0).textContent,envSubSuffix=xmlDoc.getElementsByTagName("envSubSuffix").item(0).textContent,vt4mobile=xmlDoc.getElementsByTagName("vt4mobile").item(0).textContent,vtApiSub=xmlDoc.getElementsByTagName("vtApiSub").item(0).textContent,vtApiPath=xmlDoc.getElementsByTagName("vtApiPath").item(0).textContent,vtApiProxyPath=xmlDoc.getElementsByTagName("vtApiProxyPath").item(0).textContent,paymentApiSub=xmlDoc.getElementsByTagName("paymentApiSub").item(0).textContent,paymentApiPath=xmlDoc.getElementsByTagName("paymentApiPath").item(0).textContent,paymentApiProxyPath=xmlDoc.getElementsByTagName("paymentApiProxyPath").item(0).textContent,accountApiSub=xmlDoc.getElementsByTagName("accountApiSub").item(0).textContent,accountApiPath=xmlDoc.getElementsByTagName("accountApiPath").item(0).textContent,accountApiProxyPath=xmlDoc.getElementsByTagName("accountApiProxyPath").item(0).textContent,billingApiSub=xmlDoc.getElementsByTagName("billingApiSub").item(0).textContent,billingApiPath=xmlDoc.getElementsByTagName("billingApiPath").item(0).textContent,billingApiProxyPath=xmlDoc.getElementsByTagName("billingApiProxyPath").item(0).textContent,htngProxyApiSub=xmlDoc.getElementsByTagName("htngProxyApiSub").item(0).textContent,htngProxyApiPath=xmlDoc.getElementsByTagName("htngProxyApiPath").item(0).textContent,htngProxyHtmlPath=xmlDoc.getElementsByTagName("htngProxyHtmlPath").item(0).textContent,coreApiSub=xmlDoc.getElementsByTagName("coreApiSub").item(0).textContent,coreApiPath=xmlDoc.getElementsByTagName("coreApiPath").item(0).textContent,coreApiProxyPath=xmlDoc.getElementsByTagName("coreApiProxyPath").item(0).textContent,ssoApiPath=xmlDoc.getElementsByTagName("ssoApiPath").item(0).textContent,appPath=xmlDoc.getElementsByTagName("appPath").item(0).textContent,appConfigurations=xmlDoc.getElementsByTagName("appConfigurations");if(appConfigurations[0]){var appConfig=appConfigurations[0].firstElementChild,ssoSubDomain=appConfig.getElementsByTagName("sso")[0].getElementsByTagName("subDomain")[0].textContent,ssoDomain=appConfig.getElementsByTagName("sso")[0].getElementsByTagName("domain")[0].textContent,ssoPath=appConfig.getElementsByTagName("sso")[0].getElementsByTagName("path")[0].textContent,host=window.location.host;[].forEach.call(appConfigurations[0].childNodes,function(e){if("undefined"!=typeof e.firstElementChild){var t=e.getElementsByTagName("domain")[0].textContent;host.indexOf(t)>=0&&(appConfig=t)}}),appConfig||alert("An environment configuration error occured. Please try again in a few minutes. If the problem persists please contact your administrator. ")}else alert("An environment configuration error occured. Please try again in a few minutes. If the problem persists please contact your administrator. ");var ssoUrl=envScheme+(ssoSubDomain?ssoSubDomain+".":"")+ssoDomain+ssoPath,vtApiUrl=envScheme+vtApiSub+envSubSuffix+"."+envDomain+vtApiPath,vt4mobile=vt4mobile,paymentApiUrl=envScheme+paymentApiSub+envSubSuffix+"."+envDomain+paymentApiPath,accountApiUrl=envScheme+accountApiSub+envSubSuffix+"."+envDomain+accountApiPath,billingApiUrl=envScheme+billingApiSub+envSubSuffix+"."+envDomain+billingApiPath,appPath=appPath,htngProxyUrl=envScheme+htngProxyApiSub+envSubSuffix+"."+envDomain+htngProxyApiPath,coreApiUrl=envScheme+coreApiSub+envSubSuffix+"."+envDomain+coreApiPath,coreApiSsoUrl=envScheme+coreApiSub+envSubSuffix+"."+envDomain+ssoApiPath,billingStatusUrl=envScheme+billingApiSub+envSubSuffix+"."+envDomain+"/billing/health/status",coreApiStatusUrl=envScheme+coreApiSub+envSubSuffix+"."+envDomain+"/security/health/status",accountApiStatusUrl=accountApiUrl+"/status";config={vtApiUrl:vtApiUrl,vt4webUrl:ssoUrl+"?clientid=2",vt4mobile:vt4mobile,fortressUrl:ssoUrl+"?clientid=3",paymentApiUrl:paymentApiUrl,accountApiUrl:accountApiUrl,billingApiUrl:billingApiUrl,ssoUrl:ssoUrl,appPath:appPath,iOS:/(iPad|iPhone|iPod)/g.test(navigator.userAgent),in4mUrl:ssoUrl+"?clientid=4",coreApiUrl:coreApiUrl,coreApiSsoUrl:coreApiSsoUrl};var xdomainSlaves={};xdomainSlaves[vtApiUrl.replace(vtApiPath,"")]=vtApiProxyPath+"/proxy.html",xdomainSlaves[paymentApiUrl.replace(paymentApiPath,"")]=paymentApiProxyPath+"/proxy.html",xdomainSlaves[accountApiUrl.replace(accountApiPath,"")]=accountApiProxyPath+"/proxy.html",xdomainSlaves[htngProxyUrl.replace(htngProxyApiPath,"")]=htngProxyHtmlPath+"/proxy.html",xdomainSlaves[billingApiUrl.replace(billingApiPath,"")]=billingApiProxyPath+"/proxy.html",xdomainSlaves[coreApiUrl.replace(coreApiPath,"")]=coreApiProxyPath+"/proxy.html",xdomain.slaves(xdomainSlaves),xdomain.on("timeout",function(){$("#progressHudOverlay").hide(),$("#services-unavailable").modal().toggle()}),window.CKEDITOR_BASEPATH="/assets/ckeditor/";