if(typeof __kernel_loaded=="undefined"||!__kernel_loaded){String._format=function(a,b){if(!String._formatRE)String._formatRE=/(\{[^\}^\{]+\})/g;return a.replace(String._formatRE,function(e,d){var c=parseInt(d.substr(1)),a=b[c+1];if(a===null||a===undefined)return "";return a.toString()})};String.format=function(a){return String._format(a,arguments)};Array.prototype.add=function(a){this[this.length]=a};Array.prototype.indexOf=function(c){var b=this.length;if(b)for(var a=0;a<b;a++)if(this[a]===c)return a;return -1};Array.prototype.contains=function(b){var a=this.indexOf(b);return a>=0};function $(a){return document.getElementById(a)}function $tag(b,a){return (b||document).getElementsByTagName(a)}if(!window.__usingCompat){window.FunctionHelper={};FunctionHelper.wrapMethod=FunctionHelper.wrapTopLevelMethod=function(c,b,a){return a};FunctionHelper.isSpecialMember=FunctionHelper.needsWrapping=function(){return false}}window.__classes={};window["__kernel_loaded"]=true}String.prototype._replace=String.prototype.replace;String.prototype.replace=function(a,b){if(a===null||a===undefined)return "";if(a.constructor==String){b=b||"";return this.split(a).join(b)}return String.prototype._replace.call(this,a,b)};String.prototype.trim=function(){return this.trimEnd().trimStart()};String.prototype.trimEnd=function(){return this.replace(/\s*$/,"")};String.prototype.trimStart=function(){return this.replace(/^\s*/,"")};String.prototype.isGuid=function(){return /^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/.test(this)};var Type=Function;Type.registerNamespace=function(b){if(window.__namespaces[b])return;var a=window,e=b.split("."),g=e.length;for(var d=0;d<g;d++){var f=e[d],c=a[f];if(!c)a[f]=c={};a=c}window.__namespaces[b]=a};window.__namespaces={};Type.getType=function(a){return window.__classes[a]};Type.prototype.createClass=function(b,a){Type.createStaticClass(this,b);this.prototype.constructor=this;if(a)this.extendFrom(a)};Type.createStaticClass=function(b,a){b.__typeName=a;window.__classes[a]=b};__classes["Type"]=Type;var Type=Function;function Type$callBase(d,c,a){var b=d.prototype[c];if(a!==undefined)return b.apply(this,a);return b.call(this)}Type.prototype.extendFrom=function(b){this.__baseType=b;this.prototype.callBase=Type$callBase;for(var a in b.prototype)if(!this.prototype[a])this.prototype[a]=b.prototype[a]};Type.prototype.isInstance=function(a){if(a===null||a===undefined)return false;if(this==Object||a instanceof this)return true;var c=null;try{c=a.constructor}catch(d){}if(this==Object||this==c)return true;var b=a.constructor.__baseType;while(b){if(b==this)return true;b=b.__baseType}return false};Type.__typeName="Type";Boolean.__typeName="Boolean";Object.__typeName="Object";Number.__typeName="Number";String.__typeName="String";Array.__typeName="Array";RegExp.__typeName="RegExp";Date.__typeName="Date";Error.__typeName="Error";var Control={};Control.onPreInvoke=Control.onPostInvoke=Control.onError=function(){};Control.create=function(a,b){a.elt=b;b["__"+a.constructor.__typeName]=a};Control.destroy=function(a){var b=a.elt;b["__"+a.constructor.__typeName]=a.elt=null;b=null;a.elt=null};Control.tryFindControl=function(a,d){var c=Type.getType(d);if(!c)return null;var b="__"+c.__typeName;while(a!=document.body){if(a[b])return a[b];a=a.parentNode}return null};Control.findControl=function(c,a){var b=Control.tryFindControl(c,a);return b};Control._invokeImpl=function(c,a,h,d,g){if(window.__usingCompat)window.event=window.__getEventObj(h);Control.onPreInvoke(c,a,d);var b=null;if(g){if(!event)return;var e=Control.findControl(event.srcElement,c);if(!e||!e[a])return;b=e[a](d)}else{var f=Type.getType(c);if(!f||!f[a])return;b=f[a](d)}Control.onPostInvoke(c,a,d,b);if(window.__usingCompat)return event&&event._returnValueSet?event.returnValue:b;return b};Control.invoke=function(b,a,c,d){return Control._invokeImpl(b,a,c,d,true)};Control.invokeStatic=function(b,a,c,d){return Control._invokeImpl(b,a,c,d,false)};Control.lookup=function(a,b){var a=Control.getAncestorByAttr(a,b);return a?a.getAttribute(b):null};Control.getAncestorByAttr=function(a,b){while(a&&a.getAttribute&&!a.getAttribute(b))a=a.parentElement;return a&&a.getAttribute?a:null};Type.createStaticClass(Control,"Control");if(window.__usingCompat){Control.invoke=FunctionHelper.wrapTopLevelMethod("Control","invoke",Control.invoke.__original);Control.invokeStatic=FunctionHelper.wrapTopLevelMethod("Control","invokeStatic",Control.invokeStatic.__original)}function Delegate(){}Delegate.Null=function(){};Delegate._create=function(a){var b=function(){if(a.length==2)return a[1].apply(a[0],arguments);else{for(var b=0;b<a.length;b+=2)a[b+1].apply(a[b],arguments);return null}};b.invoke=b;b._targets=a;return b};Delegate.create=function(b,a){if(!b){a.invoke=a;return a}return Delegate._create([b,a])};Delegate.combine=function(a,b){if(!a){if(!b._targets)return Delegate.create(null,b);return b}if(!b){if(!a._targets)return Delegate.create(null,a);return a}var c=a._targets?a._targets:[null,a],d=b._targets?b._targets:[null,b];return Delegate._create(c.concat(d))};Delegate.remove=function(c,a){if(!c||c===a)return null;if(!a)return c;var b=c._targets,f=null,e;if(a._targets){f=a._targets[0];e=a._targets[1]}else e=a;for(var d=0;d<b.length;d+=2)if(b[d]===f&&b[d+1]===e){if(b.length==2)return null;b.splice(d,2);return Delegate._create(b)}return c};__classes["Delegate"]=Delegate;var Events={};Events.init=function(a){a.__events={}};Events._attachEvent=function(a,b){this.__events[a]=Delegate.combine(this.__events[a],b);return this.__events[a]};Events._detachEvent=function(a,b){if(!this.__events[a])return;this.__events[a]=Delegate.remove(this.__events[a],b);if(!this.__events[a])delete this.__events[a]};Events._fireEvent=function(a,b){if(!this.__events[a])return;this.__events[a].apply(this,b)};Events.addEventing=function(b){var a=b.prototype;if(a){a.__events=null;a.attachEvent=Events._attachEvent;a.detachEvent=Events._detachEvent;a.fireEvent=Events._fireEvent}b.__events={};b.attachEvent=Events._attachEvent;b.detachEvent=Events._detachEvent;b.fireEvent=Events._fireEvent};__classes["Events"]=Events;Array.prototype.remove=function(b){var a=this.indexOf(b);if(a>=0){this.splice(a,1);return true}return false};function $addClass(b,a){if(!b.className.split(" ").contains(a)){b.className+=" "+a;return true}return false}function $removeClass(c,b){var a=c.className.split(" ");if(a.contains(b)){a.remove(b);c.className=a.join(" ");return true}return false}function $replaceClass(a,b,c){if($containsClass(a,b)){$removeClass(a,b);$addClass(a,c);return true}return false}function $updateClass(e,d,c){var b=e.className.split(" ");for(var a=d.length-1;a>=0;a--)if(!b.contains(d[a]))b.push(d[a]);for(var a=c.length-1;a>=0;a--)if(b.contains(c[a]))b.remove(c[a]);e.className=b.join(" ")}function $containsClass(c,a){var b=c.className.split(" ");return b.contains(a)}function $setDisplay(b,a){b.style.display=a?"block":"none"}if(window.__isSafari&&window.__scanUI)$setDisplay=function(b,a){b.style.display=a?"block":"none";window.__scanUI()};function $getDisplay(a){return a.currentStyle.display!="none"}function $callFocus(a){setTimeout(function(){try{a.focus()}catch(b){}},10)}function $getLocation(b,c){c=c||{};var d=c.x||0,e=c.y||0;for(var a=b;a&&a.tagName!="BODY";a=a.offsetParent){d+=a.offsetLeft;e+=a.offsetTop}function f(a,b){return this.left<=a&&a<=this.right&&this.top<=b&&b<=this.bottom}var g={left:d,top:e,right:d+(b?b.offsetWidth:0),bottom:e+(b?b.offsetHeight:0),containsPoint:f};return g}function $scrollIntoView(e,a){var b=parseInt(e.offsetTop),d=b+parseInt(e.offsetHeight),c=parseInt(a.scrollTop),f=c+parseInt(a.clientHeight);if(d-b>f-c)a.scrollTop=b;else{if(d>f)a.scrollTop=Math.max(d-a.clientHeight,0);if(b<c)a.scrollTop=b}}if(!window.XMLHttpRequest)window.XMLHttpRequest=function(){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return null}};var Network={};Network.EmptyFunction=function(){};Network.RequestStatus={New:0,Aborted:1,Executing:2,Completed:3,Error:4};Network.onRequestComplete=Network.onexception=Network.EmptyFunction;Network.makeCallback=function(c,b,a){return a};Network.initialize=function(b){var a=navigator.userAgent;Network._isIE=a.indexOf("MSIE")>=0;Network._isMoz=a.indexOf("Mozilla")>=0;Network._requests=[];Network.configuration=b};Network.createRequest=function(d,e,f){var b=Network._requests,a;for(var c=b.length-1;c>=0;c--){a=b[c];if(a.url==d)return a}a=new Network._Request(d,e,f);b.push(a);return a};Network._Request=function(c,a,b){this.url=c;this.callback=a;this.verb=b||"GET";this.status=Network.RequestStatus.New;this.postString=this.headers=this.context=null;this.headers={}};Network._Request.prototype.abort=function(){if(this.status==Network.RequestStatus.Aborted)return;var a=this.resource;if(a){a.onreadystatechange=Network.EmptyFunction;a.abort()}this.status=Network.RequestStatus.Aborted;Network._cleanUpRequest(this)};Network.hasOpenRequests=function(){return Network._requests.length>0};Network._cleanUpRequest=function(c){var b=Network._requests;for(var a=b.length-1;a>=0;a--)if(b[a]==c)b.splice(a,1)};Network._Request.prototype.send=function(d){this.context=d;if(this.status!=Network.RequestStatus.New)return;this.status=Network.RequestStatus.Executing;var c=this.resource=new XMLHttpRequest,a=this,e=function(){var b=a.resource;if(!b||!b["readyState"])return;a.httpReadyState=b.readyState;if(4==b.readyState){a.httpStatus=b.status;a.httpStatusText=b.statusText;a.httpResponseText=b.responseText;a.httpContentLength=Network.lastContentLength=b.getResponseHeader("Content-Length");a.status=Network.RequestStatus.Completed;delete a.resource;Network._cleanUpRequest(a);if(a.callback)a.callback();Network.onRequestComplete()}};c.onreadystatechange=Network.makeCallback("Network.Basic","callback",e);try{c.open(this.verb,this.url,true);if(this._isIE&&this.verb==="POST")c.setRequestHeader("Accept-encoding","gzip, deflate");if(this.headers)for(var b in this.headers){if(FunctionHelper.isSpecialMember(b))continue;c.setRequestHeader(b,this.headers[b])}if(this.postString||this._isMoz)this.resource.send(this.postString);else this.resource.send();return true}catch(f){this.resource.abort();delete this.resource;this.status=Network.RequestStatus.Error;Network._cleanUpRequest(a);Network.onRequestComplete();return false}};Network._fppPrevious=null;Network.FppParamType={String:"__string",Date:"__date",Array:"__array",oArray:"__oArray",Primitive:"__primitive",Object:"__object",Enum:"__enum",Custom:"__custom"};Network.onFppError=Network.onPreInvoke=Network.onexception=Network.EmptyFunction;Network.createFppMethod=function(d,c,e,b){var a=Network._fppPrevious;if(null!=a&&null!=a._request)a._request.abort();return Network._fppPrevious=new Network._FppMethod(d,c,e,b)};Network._FppMethod=function(c,b,d,a){this.className=c;this.methodName=b;this.callback=d;this.callbackError=a;this.context=null;this._request=null;this._isInvoked=false;this._params=[]};var _Network$_FppMethod$prototype=Network._FppMethod.prototype;_Network$_FppMethod$prototype._HTTP_HEADERS={"X-FPP-Command":"0","Content-Type":"application/x-www-form-urlencoded"};_Network$_FppMethod$prototype.addParameter=function(a,b){this._params.push({fppType:a,value:b})};_Network$_FppMethod$prototype.invoke=function(k){this.context=k;if(!Network.configuration)throw new Error("Network is not configured.");if(this._isInvoked)throw new Error("FppMethod object already used.");this._isInvoked=true;var h,i,g="",i,h,l,a=Network.configuration,e=this._params,f=e.length;if(0<f){var d=[],j=_Web$Network$FppProxy$TypeSystem.prototype.escape;for(var c=0;c<f;c++)d.push(j.call({type:e[c].fppType},e[c].value),",");d.pop();g=d.join("")}i=[a.RequestHandler,"?cnmn=",this.className,".",this.methodName,"&a=",escape(a.SessionId),"&au=",a.AuthUser,"&ptid=",a.PartnerId||"0"].join("");h=["cn=",this.className,"&mn=",this.methodName,"&d=",g,"&v=",a.FppVersion,"&",a.CanaryToken,"=",a.CanaryValue].join("");var b=this._request=Network.createRequest(i,_Network$_FppMethod$prototype._callback,"POST");b.headers=Network._FppMethod.prototype._HTTP_HEADERS;b.postString=h;Network.onPreInvoke(b);b.send(this)};_Network$_FppMethod$prototype._callback=function(){var request=this,fppMethod=request.context;if(4!=request.httpReadyState)return;Network._fppPrevious=null;var pkg={ErrorCode:0,Context:fppMethod.context,Proxy:request,Error:null};try{if(null==request.httpStatusText||""==request.httpStatusText)pkg.ErrorCode=-5;else if(200!=request.httpStatus&&500!=request.httpStatus)pkg.ErrorCode=-7}catch(a){pkg.ErrorCode=-5}if(0!=pkg.ErrorCode){Network._FppMethod._raiseError(fppMethod,pkg);return}var oFppPkg;try{oFppPkg=eval(request.httpResponseText)}catch(a){pkg.ErrorCode=-6;pkg.Error=a;try{pkg.HttpResponseText=request.httpResponseText}catch(b){}Network._FppMethod._raiseError(fppMethod,pkg);return}if(0==oFppPkg.Status){if(fppMethod.callback){var arrArgs=oFppPkg.OutRefParams;arrArgs.unshift(fppMethod.context);arrArgs.unshift(oFppPkg.Value);fppMethod.callback.apply(null,arrArgs)}}else{pkg.ErrorCode=oFppPkg.Status;pkg.Error=oFppPkg.Error;Network._FppMethod._raiseError(fppMethod,pkg)}};Network._FppMethod._raiseError=function(a,c){var b=a.callbackError||Network.onFppError;b(a,c)};var Web={},_Web$Network=Web.Network={},_Web$Network$FppProxy=_Web$Network.FppProxy=function(a){this._namespace=a};_Web$Network$FppProxy.escape=function(b){if(null==b)return b;var a="";if(0==Network.configuration.Version){a=b.toString();a=encodeURIComponent(a.replace(/([\{|\}\[|\]\,\\])/g,"\\$1"))}else{a=['"',b.toString(),'"'].join("");a=encodeURIComponent(a.replace(/([\{|\}\[|\]\,\\:])/g,"\\$1"))}return a};_Web$Network$FppProxy.arrayToString=function(c){if(!c)return "";var a=["["],d=c.length;for(var b=0;b<d;b++)a.push(_Web$Network$FppProxy.objToStringImpl(c[b]),",");if(b>0)a.pop();a.push("]");return a.join("")};_Web$Network$FppProxy.objToStringImpl=function(a){var b=[];if(a==null||typeof a=="undefined")b.push("null");else switch(a.constructor){case String:b.push(_Web$Network$FppProxy.escape(a));break;case Array:b.push(_Web$Network$FppProxy.arrayToString(a));break;case Object:if(true==a.__isFppObject)b.push(a.toString());else b.push(_Web$Network$FppProxy.objToString(a));break;default:b.push(a.toString())}return b.join("")};_Web$Network$FppProxy.objToString=function(c){var a=["{"];for(var b in c)a.push(_Web$Network$FppProxy.escape(b),":",_Web$Network$FppProxy.objToStringImpl(c[b]),",");a.pop();a.push("}");return a.join("")};var _Web$Network$FppProxy$TypeSystem=_Web$Network$FppProxy.TypeSystem=function(b,a){if(a){this.name=a;this.type=b}else{this.name=b;this.type=Network.FppParamType.Custom}return this};_Web$Network$FppProxy$TypeSystem.prototype.toString=function(){return this.name};_Web$Network$FppProxy$TypeSystem.prototype.escape=function(a){if(null==a||"undefined"==typeof a)return "null";switch(this.type){case "__string":return _Web$Network$FppProxy.escape(a);case "__date":return _Web$Network$FppProxy.dateToISO8601(a);case "__array":return _Web$Network$FppProxy.arrayToString(a,false);case "__oArray":case "__object":return _Web$Network$FppProxy.objToStringImpl(a);case "__primitive":case "__enum":return a;default:return a.__isFppObject==true?a:_Web$Network$FppProxy.objToString(a)}};Web.Flags={};Web.Flags.create=function(){var b={},c=arguments.length;for(var a=0;a<c;a+=2)b[arguments[a]]=arguments[a+1];return b};_Web$Network$FppProxy.prototype._inflateClass=function(c,a){function b(){var d=a.length,b={};for(var c=0;c<d;c++)b[a[c]]=arguments[c];b.toString=function(){var c=[];c.push("{");for(var e=0;e<d;e++)c.push(a[e].escape(b[a[e]]),",");if(0<d)c.pop();c.push("}");return c.join("")};b.__isFppObject=true;return b}return b};_Web$Network$FppProxy.prototype.registerFppClass=function(a,b){this[a]=this._inflateClass(a,b)};_Web$Network$FppProxy["__string"]=function(a){return new _Web$Network$FppProxy$TypeSystem("__string",a)};_Web$Network$FppProxy["__date"]=function(a){return new _Web$Network$FppProxy$TypeSystem("__date",a)};_Web$Network$FppProxy["__array"]=function(a){return new _Web$Network$FppProxy$TypeSystem("__array",a)};_Web$Network$FppProxy["__oArray"]=function(a){return new _Web$Network$FppProxy$TypeSystem("__oArray",a)};_Web$Network$FppProxy["__primitive"]=function(a){return new _Web$Network$FppProxy$TypeSystem("__primitive",a)};_Web$Network$FppProxy["__object"]=function(a){return new _Web$Network$FppProxy$TypeSystem("__object",a)};_Web$Network$FppProxy["__enum"]=function(a){return new _Web$Network$FppProxy$TypeSystem("__enum",a)};_Web$Network$FppProxy["__custom"]=function(a,b){return new _Web$Network$FppProxy$TypeSystem(a,b)};_Web$Network.Type={XMLPost:0};_Web$Network$FppProxy.prototype.registerFppMethod=function(name,params,mn,tm,g,ns){var paramsLen=params.length,dynamic=["new Function("],paramBody=[];for(var i=0;i<paramsLen;i++){dynamic.push('"',params[i].name,'",');paramBody.push('f.addParameter(\\"',params[i].type,'\\",',params[i].name,");")}dynamic.push('"cb","ctx","cbError",');dynamic.push('"');dynamic.push('var f = Network.createFppMethod(\\"',ns,'\\",\\"',mn,'\\",cb,cbError);');dynamic.push(paramBody.join(""));dynamic.push("f.invoke(ctx);");dynamic.push('")');this[name]=eval(dynamic.join(""))};if(!window.Resize)window.Resize={};Resize._em2PxRatio=13.267;Resize.calibrate=function(){if($("EM2PX"))Resize._em2PxRatio=$("EM2PX").offsetWidth/parseFloat($("EM2PX").style.width)};Resize.convertToPx=function(a){return a*Resize._em2PxRatio};Resize.convertToEm=function(a){return a/Resize._em2PxRatio};Resize.convertToEmIfNecessary=function(b){var a=parseFloat(b)||0;return (b+"").indexOf("em")<0?Resize.convertToEm(a):a};Resize._OnEMChange=function(){Resize.calibrate()};Resize.OnLoad=function(){if(Resize._loaded)return;Resize.calibrate();Resize._loaded=true};if(window.Type)Type.createStaticClass(Resize,"Resize");var __ua=window.navigator.userAgent,isIE6=__ua.indexOf("MSIE")>=0&&__ua.indexOf("6.0")>=0;if(!isIE6){window.attachEvent("onload",function(){Resize.OnLoad()});window.setTimeout(function(){Resize.OnLoad()},100)}var Tracking={};Tracking.addPS=function(c,b){if(typeof b=="undefined"||b==null)b="";var g=["3rdPartyCleargif","OfficeLiveCleargif","cleargif"];for(var e=g.length-1;e>=0;e--){var a=document.getElementById(g[e]);if(a){a.removeAttribute("src");var d="",f=(new Date).getTime();switch(a.id){case "3rdPartyCleargif":a.src=a.getAttribute("name");break;case "OfficeLiveCleargif":d=String.format("{0}&cb={1}",c?c:"0",f);a.src=a.getAttribute("name")+d;break;case "cleargif":d=String.format("{0}&cb={1}{2}",c?c:"0",f,b);a.src=a.getAttribute("name")+d}}}};Type.createStaticClass(Tracking,"Tracking");if(!window.FireAnt)window.FireAnt={};FireAnt.Debug={};FireAnt.attachWatson=true;FireAnt.Debug.initialize=function(){FireAnt.Debug.onJsError=FireAnt.Debug.addData=function(){};function a(c,b,k){var d=[],e=[],j=true;try{b=b?b.toString():"NO_URL_AVAILABLE"}catch(l){b="INVALID_URL_STRING"}try{c=c?c.toString():"unknown error"}catch(l){c="uncaught exception - INVALID_MESSAGE_STRING"}var f,a;try{f=window.__lastKnownException?window.__stack[0]:arguments.callee.caller}catch(l){f=function(){}}try{a=f&&f.toString?f.toString():"GLOBAL_CODE";if(a.length>=256)a=a.substr(0,256)+"..."}catch(l){a="INVALID_FUNCTION_BODY"}var i=c.indexOf("uncaught exception")==0||b.length==0||b.indexOf("mail.aspx")<0&&b.indexOf("ApplicationMain")<0||b.endsWith(".js")||b.indexOf("javascript:")==0||a=="[object Object]"||a.indexOf("FSCommand")>=0||a.indexOf("ebScriptWin")>=0||a.indexOf("flash")>=0||a.indexOf("dart")>=0,g=a=="[object Object]"?c:FireAnt.Debug._getMethodName(f)||a;if(i)g="[Silent Error] "+g;var h="can't get location.hostname";try{h=location.hostname}catch(l){try{h=h+"; document.domain = "+document.domain}catch(m){}}d.push(["<b>date</b>="+new Date,"<b>Browser</b>="+navigator.userAgent,"<b>Host</b>="+h,"<b>msg</b>="+g,"<b>error</b> = "+c,"<b>url</b>="+b,"<b>line</b>="+k].join("<br>"));e.push(["Exception Details:","msg  = "+g,"url  = "+b,"line = "+k,"user-agent = "+navigator.userAgent,"calling-function = "+a,"browser-message = "+c].join("<br>\r\n"));try{FireAnt.Debug.addData(d,e)}catch(l){d.push(String.format("<b>Adding of metadata failed</b> - {0}<br>",l.message));e.push(String.format("Adding of metadata failed - {0}<br>\r\n",l.message))}d.push('<br><br><b>Callstack:</b><pre style="font-size:10pt;margin:0px;">');e.push("<br>\r\n<br>\r\nCallstack:<br>\r\n");try{j=FireAnt._buildStackTrace(f,d,e)}catch(l){d.push(String.format("<b>Building of Stack Trace Failed</b> - {0}<br>",l.message));e.push(String.format("Building of Stack Trace Failed - {0}<br>\r\n",l.message))}try{d.push("</pre>");if(j)FireAnt.Debug.onJsError({isSilent:i,message:c,usermsg:d.join("<br>"),trace:e.join("<br>\r\n")})}catch(l){try{FireAnt.Debug.catastrophicFailure(l.message)}catch(m){window.status=m.message}}return true}if(FireAnt.attachWatson)window.onerror=a};FireAnt.Debug.catastrophicFailure=function(b){var a=String.format("Catastrophic Failure During Error Reporting:<br>\r\n{0}",b);HM.ReportError(a)};FireAnt.Debug._expandArguments=function(i,h){var b=[],f=i.split(",");if(f[0]){var g=f.length;for(var d=0;d<g;d++){if(d>0)b.push(", ");var a=h[d];b.push(f[d].trim()+":");if(a==null){a="null";b.push(a)}else if(typeof a=="undefined"){a="undefined";b.push(a)}else if(typeof a=="string"){if(a.length>36)a=a.substr(0,36)+"...";b.push("'"+a+"'")}else if(typeof a=="function"){var c=FireAnt.Debug._getMethodName(a);if(!c){c=a.toString();c.substr(0,c.indexOf("("))}b.push(c)}else if(typeof a=="object")if(typeof a.toString=="function"&&!Browser.isSF3)b.push(a.toString());else b.push("object");else if(typeof a=="boolean")b.push(a?"true":"false");else{var e=a.toString();if(e.length>36)e=e.substr(0,36)+"...";b.push(e)}}}return b.join("")};FireAnt.Debug._getMethodName=function(c){if(!c)return null;if(c.__debugName)return c.__debugName;for(var d in window.__classes){var b=window.__classes[d];for(var a in b){if(FunctionHelper.isSpecialMember(a))continue;if(typeof b[a]=="function"&&b[a].__original===c||b[a]===c)return b[a].__debugName||d+"."+a}if(b.prototype){b=b.prototype;for(var a in b){if(FunctionHelper.isSpecialMember(a))continue;if(typeof b[a]=="function"&&b[a].__original===c||b[a]===c)return b[a].__debugName||d+"."+a}}}return null};FireAnt._buildStackTrace=function(i,j,f){var a=i,c=0;while(a&&c<10){var b=a.toString(),e=FireAnt.Debug._getMethodName(a)||b.substring("function ".length,b.indexOf("(")),h=b.indexOf("(")+1,g=b.indexOf(")"),d=FireAnt.Debug._expandArguments(b.substring(h,g),a.arguments);j.push("<b>"+e+"</b>("+d+")");f.push(e+"("+d+")");a=a.caller;c++}return c>0?true:false};Network.reportError=function(a){HM.ReportError(a)};Network.onFppError=function(g,a){if(g.methodName=="ReportError")return;var d="can't get location.hostname";try{d=location.hostname}catch(o){try{d=d+"; document.domain = "+document.domain}catch(p){}}var l="can't get url";try{l=location.href}catch(o){}var k="cant get user agent";try{k=navigator.userAgent}catch(o){}var i="";try{var e=a.Error;if(e){var j=[e.toString()];for(var h in e)j.push(h+" : "+e[h]);i=j.join(",<br>\r\n")}}catch(o){}var m=a.HttpResponseText||"",c=String.format("Exception Details:<br>\r\nmsg = [Silent Error] {0} {1} {2}.{3}<br>\r\nuseragent = {4}<br>\r\nhostname = {5}<br>\r\nurl = {6}<br>\r\nDetails = {7}<br>\r\nHTTP response text = {8}<br>\r\n{9}","{0}",a.ErrorCode,g.className,g.methodName,k,d,l,i,m,"{1}"),b=Res.strings.browserJSError,n=Infopane.ErrorPri.High;switch(a.ErrorCode){case HM.FppStatus.ERR_HTTP_CONNECT_FAILURE:b=Res.strings.noconnectivity;Network.reportError(String.format(c,"FPP Connection Failure"));break;case HM.FppStatus.ERR_HTTP_TIMEOUT:b=Res.strings.fppTimeout;Network.reportError(String.format(c,"FPP Time Out"));break;case HM.FppStatus.ERR_FPP_PROTOCOL:case HM.FppStatus.ERR_HTTP_PARSE_FAILURE:case HM.FppStatus.ERR_HTTP_MISCONFIGURATION:Network.reportError(String.format(c,"FPP Internal Error",String.format("Status:{0}<br>\r\nStatus Text:{1}<br>\r\n",a.Proxy.httpStatus,a.Proxy.httpStatusText)));b=Res.strings.fppInternalErr;break;case HM.FppStatus.ERR_SERVER_UNCAUGHT:case HM.FppStatus.ERR_APP_SPECIFIC:if(a.Error.ErrorObj.IsBlocking)Infopane.showBlocking(a.Error.ErrorObj.Message);else{var f=Infopane.getInstance();f.setContent(a.Error.ErrorObj.Message);$addClass(f.child,"BorderNoTop");f.attachEvent("onclick",function(){if("A"==event.srcElement.tagName)Infopane.hide()});f.show()}return;default:throw new Error(String.format(c,"Unrecognized FPP Error Code"));}b=decodeURIComponent(b);Infopane.show(b,{pri:Infopane.ErrorPri.High})};function Infopane(a){Control.create(this,a);Events.init(this);this._onclickHandler=Delegate.create(this,this._onclick);this.elt.attachEvent("onclick",this._onclickHandler);this.child=this.elt.children[0]?this.elt.children[0].children[0]:null;if(this.child){this._pri=this.child.getAttribute("pri")||this._scanForPri(this.child)||"Low";if("Low"==this._pri&&!$containsClass(this.child,"ErrorPriLow"))$addClass(this.child,"ErrorPriLow")}}__p=Infopane.prototype={userdata:null,child:null};__p.dispose=function(){this.elt.detachEvent("onclick",this._onclickHandler);this.child=null;Control.destroy(this)};__p._scanForPri=function(a){if($containsClass(a,"ErrorPriLow"))return "Low";if($containsClass(a,"ErrorPriMedium"))return "Medium";if($containsClass(a,"ErrorPriHigh"))return "High";return null};__p._onclick=function(){this.fireEvent("onclick",[this,{}])};__p.show=function(){$setDisplay(this.elt,true);Resize._ipaneResize()};__p.hide=function(){var a=this.elt,b=a.children[a.children[0].tagName=="S"?1:0].children[0];if(!b||!$containsClass(b,"Sticky"))$setDisplay(a,false);Resize._ipaneResize()};__p.setPriority=function(a){if(!$replaceClass(this.child,"ErrorPri"+this._pri,"ErrorPri"+a))$addClass(this.child,"ErrorPri"+a);this._pri=a;this.child.setAttribute("pri",a)};__p.setContent=function(a){this.elt.innerHTML=a;this.child=this.elt.children[0]?this.elt.children[0].children[0]:null};Infopane._instance=null;Infopane.ErrorPri={Low:"Low",Medium:"Medium",High:"High"};Infopane.getInstance=function(a){if(!Infopane._instance&&(a===undefined||a))Infopane.initialize();return Infopane._instance};Infopane.show=function(c,b){b=b||{};var a=Infopane.getInstance(true);a.setContent(String.format($("tmpl_infopane").innerHTML,c||""));a.setPriority(b.pri||Infopane.ErrorPri.Low);a.show();return a};Infopane.hide=function(){if(Infopane._instance)Infopane._instance.hide()};Infopane.showBlocking=function(a){alert(a)};Infopane.initialize=function(){Infopane._instance=new Infopane($("infoPaneContainer"))};Infopane.cleanup=function(){if(Infopane._instance){Infopane._instance.dispose();Infopane._instance=null}};Events.addEventing(Infopane);Infopane.createClass("Infopane");var LoadingIndicator={_elt:null,_HTML:"<span>{0}</span>",_timeoutObj:null,waitTime:1000,cursorWaitTime:200};LoadingIndicator._showImpl=function(){var a=document.createElement("div");document.body.appendChild(a);LoadingIndicator._elt=a;a.className="LoadingIndicator BorderBox BoldText";LoadingIndicator._position(a);a.style.zIndex=1;a.style.bottom="0em";a.style[Loc.LEFT]="0em";a.innerHTML=Page.decode(Res.strings.loading);$setDisplay(a,true)};LoadingIndicator.show=function(){LoadingIndicator.hide();LoadingIndicator._cursorTimeoutObj=setTimeout(function(){LoadingIndicator._showProgressCursor(true)},LoadingIndicator.cursorWaitTime);LoadingIndicator._timeoutObj=setTimeout(LoadingIndicator._showImpl,LoadingIndicator.waitTime)};LoadingIndicator._showProgressCursor=function(a){document.body.style.cursor=a?"progress":"auto"};LoadingIndicator._position=function(a){a.style.position="fixed"};LoadingIndicator.hide=function(){clearTimeout(LoadingIndicator._cursorTimeoutObj);LoadingIndicator._cursorTimeoutObj=null;LoadingIndicator._showProgressCursor(false);clearTimeout(LoadingIndicator._timeoutObj);LoadingIndicator._timeoutObj=null;if(LoadingIndicator._elt){$setDisplay(LoadingIndicator._elt,false);document.body.removeChild(LoadingIndicator._elt)}LoadingIndicator._elt=null};if(Browser.isIE6){LoadingIndicator._reposition=function(){this.style.bottom="0px";this.style.bottom="0em"};LoadingIndicator._position=function LoadingIndicator$IE6$_position(a){a.style.position="absolute";LoadingIndicator._handler=Delegate.create(a,LoadingIndicator._reposition);window.attachEvent("onscroll",LoadingIndicator._handler)};var oldHide=LoadingIndicator.hide;LoadingIndicator.hide=function(){oldHide.call(this);if(LoadingIndicator._handler)window.detachEvent("onscroll",LoadingIndicator._handler)}}Type.createStaticClass(LoadingIndicator,"LoadingIndicator");if(typeof PerfRecorder!="undefined"&&PerfRecorder){PerfRecorder._rollDice=function(a){if(0==a)return false;else if(1==a)return true;else return Math.random()<=1/a};PerfRecorder._assembleGT1Param=function PerfRecorder$_assembleGT1Param(c){var d=Cookie.getCookieValues(PerfRecorder.config.cookieName),g=Cookie.getCookieValues("wlidperf"),e=PerfRecorder._calculateTime(d),a=PerfRecorder._getStartTimerPageName(d),f=(true==PerfRecorder._isAjaxCall?"":a+":")+c;if(!PerfRecorder._isAjaxCall&&""==a||e<=0||(c==null||c==""))return "";var b=String.format(PerfRecorder._assemblyString(),Cookie.getCookieValues("ANON")["A"],g["latency"],g["throughput"],PerfRecorder._getCluster(),PerfRecorder.config.market,f,e,PerfRecorder.config.delimiter,PerfRecorder._getAuxillaryData(d,a,e),document.documentElement.clientHeight,document.documentElement.clientWidth,typeof InboxPage!="undefined"&&InboxPage&&!InboxPage.isReadingPaneOn&&InboxPage.readingPane.isFullView&&$("readingPaneContainer")?$("readingPaneContainer").scrollWidth:"NA",window.screen.width,window.screen.height);if(PerfRecorder._isForPltDetection(f))b=b+PerfRecorder._getPltMode();return b};PerfRecorder._getAuxillaryData=function(d,e,a){var c="",b=0;if(PerfRecorder._payload>0){if(a>0)b=Math.round(PerfRecorder._payload/1024*8/a);c=String.format(PerfRecorder._assemblyAuxString(),PerfRecorder.config.delimiter,Math.round(PerfRecorder._payload/1024*10)/10,b);PerfRecorder._payload=0}if("S"==e){if(a>0)b=Math.round(d["p"]/1024*8/a);c=String.format(PerfRecorder._assemblyAuxString(),PerfRecorder.config.delimiter,Math.round(d["p"]/1024*10)/10,b)}return c};PerfRecorder._isForPltDetection=function(c){var a=PerfRecorder.config.pltTransList.split(",");if(a&&a.length>0)for(var b=a.length-1;b>=0;b--)if(a[b].indexOf(c)>=0)return true;return false};PerfRecorder._getPltMode=function(){try{var b="";if(navigator.userAgent.indexOf("MSIE")>=0){var a=null==PerfRecorder._requestObj?(PerfRecorder._requestObj=new ActiveXObject("Microsoft.XMLHTTP")):PerfRecorder._requestObj;if(null!=a){var c=(new Date).getTime();a.open("GET",PerfRecorder.config.pltImg,false);a.onreadystatechange=function(){if(4==a.readyState&&200==a.status){var e=(new Date).getTime()-c,d=a.getResponseHeader("Date")==""?"2":"1";b=String.format(PerfRecorder._assemblyPltString(),PerfRecorder.config.delimiter,d,e>0&&d=="1"?e:"NA")}};a.send()}}return b}catch(d){return ""}};PerfRecorder._assemblyString=function(){return PerfRecorder.config.reportMode==1?PerfRecorder._IdssStr:PerfRecorder._OmnitureStr};PerfRecorder._assemblyAuxString=function(){return PerfRecorder.config.reportMode==1?PerfRecorder._IdssAuxStr:PerfRecorder._OmnitureAuxStr};PerfRecorder._assemblyPltString=function(){return PerfRecorder.config.reportMode==1?PerfRecorder._IdssPltFlagStr:PerfRecorder._OmniturePltFlagStr};PerfRecorder._getStartTimerPageName=function(a){return PerfRecorder._isAjaxCall?PerfRecorder._startPageName:a["FR"]};PerfRecorder._getStartTimerDate=function(a){return PerfRecorder._isAjaxCall?PerfRecorder._startTime:a["ST"]};PerfRecorder._calculateTime=function(d){var a=PerfRecorder.page.timeStamp,c=PerfRecorder._getStartTimerDate(d);if(PerfRecorder._isAjaxCall)a=(new Date).getTime();var b=a-c;return b>0?Math.round(b/1000*10)/10:0};PerfRecorder._ensureInt=function(a){return isNaN(parseInt(a))?0:parseInt(a)};PerfRecorder._getCluster=function(){var a="";try{a=document.location.hostname.substr(0,document.location.hostname.indexOf("."))}catch(b){a=document.domain}return a};PerfRecorder._isWinner=function(){return Cookie.getCookieValues(PerfRecorder.config.cookieName)["hmt"]=="1"};PerfRecorder._setStartTimer=function(b,c){var a=Cookie.getCookieValues(PerfRecorder.config.cookieName);a["FR"]=b;a["ST"]=(new Date).getTime();a["p"]=c;Cookie.setCookieValues(PerfRecorder.config.cookieName,a,Cookie.SessionCookie,PerfRecorder.config.privateDomain)};PerfRecorder._isQualifiedRequest=function(){var b=Cookie.getCookieValues(PerfRecorder.config.cookieName),c=PerfRecorder._ensureInt(b["LTT"]),a=((new Date).getTime()-c)/1000/60;if(PerfRecorder._isWinner())if(PerfRecorder._ensureInt(b["RC"])<PerfRecorder._ensureInt(PerfRecorder.config.transactionLimit)&&a<PerfRecorder.config.maxSessionDuration)return true;else{PerfRecorder._killPRCookie();return false}else{if(a>PerfRecorder.config.maxSessionDuration)PerfRecorder._killPRCookie();return false}};PerfRecorder._setLoser=function(){var a={};a["hmt"]=0;a["LTT"]=(new Date).getTime();Cookie.setCookieValues(PerfRecorder.config.cookieName,a,Cookie.SessionCookie,PerfRecorder.config.privateDomain);PerfRecorder.GT1Param="";PerfRecorder._startTime=0;PerfRecorder._resetPassportPersistantCookie(Cookie.getCookieValues("wlidperf"))};PerfRecorder._setWinner=function(){var b=Cookie.getCookieValues("wlidperf"),c=b["FR"],d=b["ST"],a={};a["hmt"]=1;a["FR"]=c?c:"";a["ST"]=d?d:"";a["RC"]=0;a["LTT"]=(new Date).getTime();Cookie.setCookieValues(PerfRecorder.config.cookieName,a,Cookie.SessionCookie,PerfRecorder.config.privateDomain);PerfRecorder._resetPassportPersistantCookie(b)};PerfRecorder._resetPassportPersistantCookie=function(b){var d=b["latency"],c=b["throughput"],a={};a["latency"]=d;a["throughput"]=c;Cookie.setCookieValues("wlidperf",a,Cookie.getPermanentExpirationDate(),PerfRecorder.config.sharedDomain)};PerfRecorder._killPRCookie=function(){PerfRecorder.GT1Param="";PerfRecorder._startTime=0;Cookie.setCookieValues(PerfRecorder.config.cookieName,{},Cookie.SessionCookie,PerfRecorder.config.privateDomain)};PerfRecorder._isUserInit=function(){var a=Cookie.getCookieValues(PerfRecorder.config.cookieName);if(typeof a["hmt"]=="undefined"||!(a["hmt"]==0||a["hmt"]==1))PerfRecorder._initUser();return true};PerfRecorder._initUser=function(){if(PerfRecorder.config.allowInstrumentation&&PerfRecorder._rollDice(PerfRecorder.config.sampleFrequency))PerfRecorder._setWinner();else PerfRecorder._setLoser()};PerfRecorder.startTimer=function(a,b,c){if(!PerfRecorder.config.allowInstrumentation){PerfRecorder._killPRCookie();return}if(PerfRecorder._isUserInit()&&PerfRecorder._isWinner())if(a){PerfRecorder._isAjaxCall=true;PerfRecorder._startTime=(new Date).getTime()}else PerfRecorder._setStartTimer(b,c)};PerfRecorder.stopTimer=function(c,b){if(!PerfRecorder.config.allowInstrumentation){PerfRecorder._killPRCookie();return}if(PerfRecorder._isUserInit()&&PerfRecorder._isQualifiedRequest()){if(b)PerfRecorder._payload=b;PerfRecorder.GT1Param=PerfRecorder._assembleGT1Param(c);var a=Cookie.getCookieValues(PerfRecorder.config.cookieName),d=PerfRecorder._ensureInt(a["RC"])+1;a["FR"]="";a["ST"]="";a["RC"]=d;a["LTT"]=(new Date).getTime();Cookie.setCookieValues(PerfRecorder.config.cookieName,a,Cookie.SessionCookie,PerfRecorder.config.privateDomain)}};PerfRecorder.stopPageTimer=function(){PerfRecorder._isAjaxCall=false;PerfRecorder.stopTimer(PerfRecorder.page.landingPageName)};PerfRecorder.sendTransaction=function(){if(PerfRecorder.config.allowInstrumentation&&PerfRecorder.config.sendTransactionsByImage){var a=$("3rdPartyOmniture");if(a){var b=!(typeof PerfRecorder.GT1Param=="undefined"||PerfRecorder.GT1Param==null||PerfRecorder.GT1Param=="");if(b){var c=String.format("{0}{1}?{2}",a.getAttribute("name"),(new Date).getTime(),PerfRecorder.GT1Param);a.removeAttribute("src");a.src=c}}}};PerfRecorder.getPerfPayload=function(){return PerfRecorder.config.allowInstrumentation&&!PerfRecorder.config.sendTransactionsByImage&&!(typeof PerfRecorder.GT1Param=="undefined"||PerfRecorder.GT1Param==null||PerfRecorder.GT1Param=="")?PerfRecorder.config.delimiter+"GT1="+PerfRecorder.GT1Param:""};PerfRecorder.GT1Param="";PerfRecorder._startTime=1;PerfRecorder._startPageName="";PerfRecorder._isAjaxCall=false;PerfRecorder._currentView="";PerfRecorder._payload=0;PerfRecorder._requestObj=null;PerfRecorder._IdssStr="ANON={0}{7}NL={1}{7}TP={2}{7}CL={3}{7}MA={4}{7}TR={5}{7}PLT={6}{7}bh={9}{7}bw={10}{7}c5={10}x{9}{7}c6={11}{7}s={12}x{13}{8}";PerfRecorder._OmnitureStr="c1={0}{7}c10={1}{7}c9={2}{7}server={3}{7}c2={4}{7}pageName={5}{7}c3={6}{7}bh={9}{7}bw={10}{7}ce=UTF-8{7}c5={10}x{9}{7}c6={11}{7}s={12}x{13}{8}";PerfRecorder._OmnitureAuxStr="{0}c8={1}{0}c11={2}";PerfRecorder._IdssAuxStr="{0}SZ={1}{0}TPRS={2}";PerfRecorder._OmniturePltFlagStr="{0}c4={1}{0}c13={2}";PerfRecorder._IdssPltFlagStr="{0}PLM={1}{0}NET={2}"}var Cookie={};Cookie.getCookie=function(e){var d=document.cookie.split(";"),g=d.length;for(var c=0;c<g;c++){var a=d[c],b=a.indexOf("=");if(b!=-1){var f=a.substring(0,b).trim();if(f==e)return a.substring(b+1,a.length).trim()}}return null};Cookie.getCookieValues=function(f){var a=Cookie.getCookie(f),b=null,e={};if(a&&a.length>0){if(a.indexOf("&")>=0)b=a.split("&");else if(a.indexOf("=")>=0)b=[a];if(b)for(var c=0;c<b.length;c++){var d=b[c].split("=");e[d[0]]=d[1]}}return e};Cookie.setCookieValues=function(g,d,e,a,f){var b=[];for(var c in d){if(FunctionHelper.isSpecialMember(c))continue;b.push(escape(c),"=",escape(d[c]),"&")}if(b.length>0)b.pop();a=a||App.config.cookieDomain;document.cookie=String.format("{0}={1};{2}path={3};{4}",g,b.join(""),a?"domain="+a+";":"",f?f:"/",e?"expires="+e.toUTCString()+";":"")};Cookie.getPermanentExpirationDate=function(){var a=new Date;return new Date(a.getUTCFullYear()+1,a.getUTCMonth(),a.getUTCDay())};Cookie.SessionCookie=undefined;Page.reauth=function(a,b){if(a.length>0)document.cookie=newRPSCookie;Page.fppCfg.CanaryValue=Cookie.getCookie(b)};function Reauth(){$setDisplay($("divInfoPane"),true)}Page.submit=function(c,a){var d=$("ToolbarActionItem"),b=$(Page.FORM_ID);if(a&&a.length>0)b.action=a;if(c)d.value=c;b.submit()};Page.doInfoPanePost=function(a){var c=$("InfoPaneActionItem"),b=$(Page.FORM_ID);c.value=a;b.submit()};Page.blockEnter=function(){var a=event.keyCode,b=event.returnValue;if((a==3||a==13)&&b!=1)return false;return true};Page.initialize=function(){$("mt").value=Cookie.getCookie("mt");if(Page.FORM_ID){var a=$(Page.FORM_ID);a._submit=a.submit;a.submit=function(){if(a.onsubmit&&a.onsubmit()==false)return;setTimeout(function(){try{a._submit()}catch(b){}},0)}}window.attachEvent("onload",Page._window_onload)};Page._window_onload=function(){window.detachEvent("onload",Page._window_onload);setTimeout(Page._initialResize,200);PerfRecorder.stopPageTimer();Tracking.addPS(PS,PerfRecorder.getPerfPayload());PerfRecorder.sendTransaction();setTimeout(Page.fireAds,1000);var a=$("uxp_ftr_link_feedback");if(a)a.attachEvent("onclick",function(){Page.addFeedbackData(a)})};Page._initialResize=function(){Resize._headerResize();Resize._ipaneResize();if(Page.oninitresize!=null)Page.oninitresize()};Page.decode=function(a){return decodeURIComponent(a)+""};Resize._mainContentResize=function(){Resize._ipaneResize()};Resize._resizeToolbar=function(h,i,g){h.style.height="";var k=h.offsetHeight,c=null,e=0;for(var a=i.children.length-1;a>=0;a--){if(i.children[a].currentStyle.display=="none")continue;c=i.children[a];var d=c.currentStyle;e=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.marginTop)+parseInt(d.marginBottom);break}if(c){var f=c.offsetHeight,j=c.offsetTop,b=f+j;if(e>0&&f>0)b+=e*Math.ceil(j/f);b=b<k?"":Resize.convertToEm(b)+"em";h.style.height=b;for(var a=g.length-1;a>=0;a--)if(g[a])g[a].style.top=b}};Resize._headerResize=function(){try{Resize._mainContentResize();$("Middle").style.top=Resize.convertToEm($("HeaderContainer").offsetHeight)+"em"}catch(a){return}};Resize._ipaneResize=function(){try{var b="",a=$("infoPaneContainer"),c=$("IAPWrapper"),d=$("toolbarContainer");Resize._resizeToolbar(d,d.children[0],[$("infoPaneContainer"),$("ManagedContentWrapper"),$("IAPWrapper")]);if($getDisplay(a)){b=Resize.convertToEm(a.offsetTop+a.offsetHeight+2)+"em";$("ManagedContentWrapper").style.top=b;if(c)c.style.top=b}else $removeClass($("contentRight"),"HasInfoPaneAbove")}catch(e){return}};Page.showMessage=function(e,c,d,b,f){var g=c!=null&&c.length>0,h=d!=null&&d.length>0;if(g||h){var i=b!=null&&b.length>0,a=confirm(e)?c:d;if(a!=null&&a.length>0)if(i)if(b=="_blank")window.setTimeout("window.open('"+a+"', '"+b+"').focus()",200);else window.open(a,b);else if(f)Page.doInfoPanePost(a);else Page.submit(a)}else alert(e)};registerNamespace=function(e){var a=window,d=e.split("."),f=d.length;for(var c=0;c<f;c++){var b=d[c];if(!a[b])a[b]={};a=a[b]}};function RefreshAds(){var a=InboxPage.Ads;if(++a.actionCt>=App.config.adsMinActions){var b=new Date,c=(b-a.lastRefreshTime)/1000;if(App.config.adsMinInterval<c){a.lastRefreshTime=new Date;a.actionCt=0;try{dapMgr.trackEvent(eventType.click)}catch(d){}}}try{InboxPage.resetSkyscraperScroll(false)}catch(d){}}function SearchInbox(){try{window.location.href="InboxLight.aspx?SearchEmailKeyWord="+encodeURIComponent($("productSearchTerms").value)+"&n="+Page.queryString.nonce}catch(a){}return false}Page.fireAds=function(){if(typeof g_adsToFire!="undefined"){var c=g_adsToFire.length;if(c>0)for(var b=0;b<c;b++){var a=g_adsToFire[b];if(typeof dapMgr!="undefined"){try{dapMgr.enableACB(a[0],a[4])}catch(d){}try{dapMgr.renderAd(a[0],a[1],a[2],a[3])}catch(d){}}}}};Page.pageComplete=function(){if(App.config.profiling){var a=$tag(document,"body");if(a&&a.length>0)a[0].setAttribute("pageFunctional","pageFunctional")}};Page.getLayout=function(){return document.body.getAttribute("layout")};Page.postWithFolderCache=function(i,j,k){var e=$("folderList"),d=$(i);if(e!=null&&d){var a="",f=d.getAttribute("maxFolders"),b=$tag(e,"LI");if(f!=null&&b.length<=f){for(var c=b.length-1;c>=0;c--){var g=$tag(b[c],"A"),h=g.length>0?g[0].title:"";if(-1!=h.indexOf(":"))break;a=String.format("{0}/{1}/{2}:{3}",b[c].id,b[c].getAttribute("count"),h,a)}a=a.substring(0,a.length-1);d.value=a}}this.submit(j,k)};Type.createStaticClass(Page,"Page");Page.initialize();function DoHelp(a){if(!(typeof a==="string"))if(typeof g_helpKey==="string")a=g_helpKey;else a="PIM_WhatsNew";try{LaunchHelp(g_helpBaseUrl,g_helpPaneProject,g_helpPaneMarket,"HelpPane.aspx","keyword",a,false,"b1","","","")}catch(b){}}HM=new Web.Network.FppProxy("HM");HM.FppStatus=Web.Flags.create("SUCCESS",0,"ERR_HTTP_MISCONFIGURATION",-7,"ERR_HTTP_PARSE_FAILURE",-6,"ERR_HTTP_CONNECT_FAILURE",-5,"ERR_HTTP_TIMEOUT",-4,"ERR_SERVER_UNCAUGHT",-3,"ERR_APP_SPECIFIC",-2,"ERR_FPP_PROTOCOL",-1);HM.registerFppClass("FppReturnPackage",[Web.Network.FppProxy.__enum("Status"),Web.Network.FppProxy.__object("Value"),Web.Network.FppProxy.__oArray("OutRefParams"),Web.Network.FppProxy.__custom(HM.FppError,"Error"),Web.Network.FppProxy.__object("ProfilingInfo")]);HM.registerFppClass("FppError",[Web.Network.FppProxy.__string("ErrorCode"),Web.Network.FppProxy.__string("Message"),Web.Network.FppProxy.__object("ErrorObj"),Web.Network.FppProxy.__string("StackTrace")]);HM.registerFppMethod("ReportError",[Web.Network.FppProxy.__string("message")],"ReportError",Web.Network.Type.XMLPost,"abortable","Microsoft.Msn.Hotmail.Ui.Fpp.MailBox");HM.registerFppClass("HmSimpleMsg",[Web.Network.FppProxy.__primitive("IsBlocking"),Web.Network.FppProxy.__primitive("YesCode"),Web.Network.FppProxy.__primitive("NoCode"),Web.Network.FppProxy.__string("Message")]);Loader={};Loader.load=function(k,h,p,e){var d=[],j=0,f=document.getElementsByTagName("HEAD")[0],i=h.length,l=k.length,n=i+l,c=[],b=null!=e;if(b)var r=e;var a;for(a=0;a<l;++a)q(k[a]);for(a=0;a<i;++a)o(h[a]);if(b)r=null;function g(){++j;if(j==n){if(!b)if(Browser.isIE)m();p()}}function m(){var b=d.length,a;for(a=0;a<b;++a)f.appendChild(d[a]);d=null}function q(c){var a=document.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=c;a.onreadystatechange=b;f.appendChild(a);if(!Browser.isIE)a.readyState="complete";function b(){if(a.readyState==="loaded"||a.readyState==="complete"){a.onreadystatechange=null;a=null;g()}}b()}function o(i){if(b){var a=e;c.push(i);if(1==c.length)j()}else{var a=document.createElement("script");a.type="text/javascript";if(Browser.isIE){d.push(a);a.onreadystatechange=h;a.src=i}else{a.onload=a.onerror=h;a.readyState="complete";a.src=i;f.appendChild(a)}}function j(){var b=c[0];if(Browser.isIE)a.onreadystatechange=h;else{a.onload=a.onerror=h;a.readyState="complete"}a.src=b}function h(){if("loaded"===a.readyState||"complete"===a.readyState){if(b)c=c.splice(1,c.length-1);if(Browser.isIE)a.onreadystatechange=null;else a.onload=a.onerror=null;if(!b)a=null;g();if(b)if(c.length>0)j()}}}};FlyoutFooterMenu={};FlyoutFooterMenu.initialize=function(){var a=$("uxp_ftr_control"),f=a.parentNode.parentNode;this.miniFooter=$("miniFooter");if(!this.miniFooter)return;var e=a.parentNode.innerHTML;f.removeChild(a.parentNode);this.completeFooter=document.createElement("DIV");this.completeFooter.innerHTML=e;this.completeFooter.className="FlyoutFooter";this.completeFooter.style.display="none";var c=document.createElement("DIV");c.className="Shadow";this.completeFooter.appendChild(c);document.body.appendChild(this.completeFooter);if(Page.getLayout()=="BottomUnmanaged"){var h=$("HeaderContainer"),i=$("contentLeft"),g=$("miniFooter").parentElement;this.completeFooter.style.top=h.offsetHeight+i.offsetHeight-g.offsetHeight+"px"}this._focusHandler=Delegate.create(this,this._focusOut);this.completeFooter.attachEvent("onfocusout",this._focusHandler);var b=document.createElement("LI");b.className="Chevron";b.innerHTML='<a href="javascript:;" onclick="FlyoutFooterMenu.hide();"><img src="./clear.gif" class="collapse_left");</a>';var d=$tag($("uxp_ftr_left"),"UL")[0];d.insertBefore(b,$tag(d,"LI")[0])};FlyoutFooterMenu.show=function(){if(this.completeFooter){this.completeFooter.style.display="";$callFocus($tag(this.completeFooter,"A")[0])}};FlyoutFooterMenu.hide=function(){if(FlyoutFooterMenu.completeFooter)FlyoutFooterMenu.completeFooter.style.display="none"};FlyoutFooterMenu._focusOut=function(){if(!this.completeFooter.contains(event.toElement)&&this.completeFooter!=event.toElement)FlyoutFooterMenu.hide()};FlyoutFooterMenu.dipose=function(){this.completeFooter.detachEvent("onfocusout",this._focusHandler);this._focusHandler=null;this.completeFooter=null};FlyoutFooterMenu.onclick=function(a){if(a=="flyout")FlyoutFooterMenu.show()};Type.createStaticClass(FlyoutFooterMenu,"FlyoutFooterMenu");FlyoutFooterMenu.initialize();Page.addFeedbackData=function(b){var a=[""];try{a=["&w="+document.documentElement.clientWidth,"&h="+document.documentElement.clientHeight,typeof InboxPage!="undefined"&&InboxPage?"&rp="+InboxPage.Config.readingPane.location:""]}catch(c){a=[""]}b.href+=a.join("")}