// Copyright (c) Microsoft Corporation. All rights reserved.
if(!window.Microsoft){window.Microsoft={__namespace:true};}
if(!window.Microsoft.Live){window.Microsoft.Live={__namespace:true};}
if(!window.Microsoft.Live.Core){window.Microsoft.Live.Core={__namespace:true};}
Microsoft.Live.Core.Loader=function(){this._detectBrowsers();this._detectFlash();this._detectSecureConnection();this._addDocumentReadyListener();this._resolveMarket();this._resolveDirection();this._runtimeCheck();}
Microsoft.Live.Core.Loader.prototype={_loadInitiated:false,_paused:false,_processing:false,_processScheduled:false,_loadRequests:[],_readyRequests:[],_errorRequests:[],_domRequests:[],_onLoad:null,_documentReady:false,_browser:{},_iframeResources:[],_settingRegEx:/(\{[^\}^\{]+\})/g,_startTime:(new Date()).getTime(),_loadTime:null,_validRuntime:true,_resources:{"Empty1":{filename:"{messenger.baseScriptUrl}/Empty.js?1",type:"script",browsers:function(b,s){return b["ie"]&&s["httpsApplication"];},dependencies:[]},"Empty2":{filename:"{messenger.baseScriptUrl}/Empty.js?2",type:"script",browsers:function(b,s){return b["ie"]&&s["httpsApplication"];},dependencies:[]}},_settings:{environment:"production",direction:"ltr",configuration:"release",market:"en-us",resourceMarket:"en",customSettings:"",httpsApplication:false,httpsScope:"content",compatibility:{microsoftAjaxPropertyNames:true}},_supportedMarkets:["ar","ar-ploc-sa","bg","cs","da","de","de-ploc-de","el","en","es","et","fi","fr","he","hr","hu","it","ja","ja-ploc-jp","ko","lt","lv","nb-no","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","uk","zh-cn","zh-hk","zh-tw"],addScript:function(scriptName,url,dependencies){this._addFeature(scriptName,"script",url,dependencies);},addStyleSheet:function(styleSheetName,url,dependencies){this._addFeature(styleSheetName,"stylesheet",url,dependencies);},isFlashInstalled:function(version){return version<=this._browser.flashVersion;},get_settings:function(){return this._settings;},get_onLoad:function(){return this._onLoad;},get_onLoadRegistered:function(){return(this._onLoad!=null);},get_documentReady:function(){return this._documentReady;},get_scriptsLoadTime:function(){return this._loadTime;},getIframeContainer:function(resourceId){var resource=this._resources[resourceId];if(resource&&resource.containerId){for(var index=this._iframeResources.length-1;index>=0;index--){if(this._iframeResources[index].containerId==resource.containerId){return this._iframeResources[index].frameContainer;}}} return null;},initialize:function(settings){if(!settings||!this._validRuntime){return;} this._serializeSettings(settings);if(settings.environment&&settings.environment!="production"){for(var setting in this._settings){var settingItem=this._settings[setting];if(!settingItem){continue;} var environmentSettings=settingItem[settings.environment];if(environmentSettings){for(var envSetting in environmentSettings){settingItem[envSetting]=environmentSettings[envSetting];}}}} for(var newSetting in settings){var subkeys=newSetting.split('.');var qualifier=subkeys.pop();var subSetting=this._getSubSetting(subkeys);if(!subSetting||typeof(subSetting[qualifier])=="undefined"){throw new Error("Invalid setting: "+newSetting);} switch(newSetting){case"market":this._tryUpdateMarket(settings[newSetting]);break;case"direction":this._tryUpdateDirection(settings[newSetting]);break;default:subSetting[qualifier]=settings[newSetting];break;}} for(var setting in this._settings){if(this._settings[setting].updateSettings){this._settings[setting].updateSettings(this._settings,this._resources);}}},load:function(features,callback){if(!this._validRuntime){return;} if(typeof(features)=="string"){features=[features];} if(!features||features.length<=0){throw new Error("No features provided");} var resources=[];for(var i=0;i<features.length;i++){if(features[i].indexOf('_')>=0){throw new Error("Feature '%1' does not exist".replace("%1",features[i]));} var resource=this._normalizeName(features[i]);if(!this._resources[resource]){throw new Error("Feature '%1' does not exist".replace("%1",resource));} if(this._resources[resource].httpOnly&&this._settings.httpsApplication){throw new Error("Feature '%1' is not supported in an HTTPS environment".replace("%1",resource));} resources.push(resource);} this._loadInitiated=true;this._loadRequests.push({"resources":resources,"callback":callback});this._process();},onReady:function(callback){if(!callback){throw new Error("No callback provided");} if(this._loadInitiated&&(this._loadRequests.length==0)){this._invokeCallback(callback);return;} this._readyRequests.push({"callback":callback});},onError:function(callback){if(!callback){throw new Error("No callback provided");} this._errorRequests.push({"callback":callback});},onLoad:function(callback){if(!callback){throw new Error("No callback provided");} this._onLoad=callback;},fireOnLoad:function(){if(this._onLoad){this._onLoad();}},onDocumentReady:function(callback){if(!callback){throw new Error("No callback provided");} if(this._documentReady){this._invokeCallback(callback);return;} this._domRequests.push({"callback":callback});},pause:function(){this._paused=true;},resume:function(){this._paused=false;this._process();},onResourceAvailable:function(resourceName,callback){var resource=this._resources[resourceName];if(!resource){return;} resource.readyState="available";resource.onAvailableCallback=callback||null;},_getResourceName:function(resource){for(var resourceName in this._resources){if(this._resources[resourceName]===resource){return resourceName.replace(/_/g,".");}} return null;},_addFeature:function(featureName,featureType,url,dependencies){if(!featureName||featureName.length==0){throw new Error("featureName must not be empty");} if(featureName.indexOf('_')>=0){throw new Error("featureName cannot contain '_'");} if(!url||url.length==0){throw new Error("fileName must not be empty");} featureName=this._normalizeName(featureName);if(this._resources[featureName]){throw new Error("Feature already exists");} var normalized=[];if(dependencies){if(!this._isArray(dependencies)){throw new Error("dependencies must be an array of strings");} for(var i=0;i<dependencies.length;i++){normalized.push(this._normalizeName(dependencies[i]));}} this._resources[featureName]={"url":url,"type":featureType,"dependencies":normalized};},_addManifest:function(manifestName,resources,settings){if(!this._validRuntime){return;} if(resources){var baseDependencies=["Empty1","Empty2"];for(var resourceName in resources){if(this._resources[resourceName]){throw new Error("Resource '%1' already exists".replace("%1",resourceName));} var resource=resources[resourceName];var dependencies=resource.dependencies;dependencies.push.apply(dependencies,baseDependencies);this._resources[resourceName]=resource;}} if(settings){this._settings[manifestName]=settings;if(settings.updateSettings){settings.updateSettings(this._settings,this._resources,null);}}},_normalizeName:function(name){return name.toLowerCase().replace(/\./g,"_");},_process:function(){if(this._paused){return;} if(this._processing){this._processScheduled=true;return;} this._processing=true;for(var i=0;i<this._loadRequests.length;i++){var loadRequest=this._loadRequests[i];var pending={async:0,sync:0};for(var j=0;j<loadRequest.resources.length;j++){this._loadResources(this._resources[loadRequest.resources[j]],pending);} var pendingCount=pending.async+pending.sync;if((pendingCount==0)&&!this._loadTime){this._loadTime=(new Date()).getTime()-this._startTime;} if((pendingCount==0)&&this._documentReady){if(loadRequest.callback){this._invokeCallback(loadRequest.callback);} this._loadRequests.splice(i--,1);}} if(this._loadRequests.length==0){while(this._readyRequests.length>0){var readyRequest=this._readyRequests.shift();this._invokeCallback(readyRequest.callback);}} this._processing=false;if(this._processScheduled){this._processScheduled=false;this._process();}},_loadResources:function(resource,pending){switch(resource.readyState){case"loaded":break;case"loading":if(resource.async){pending.async++;} else{pending.sync++;} break;case"available":this._loadResourceDependencies(resource,pending);if((pending.async==0)&&(pending.sync==0)){if(resource.onAvailableCallback&&!resource.onAvailableCallbackCalled){resource.onAvailableCallbackCalled=true;resource.onAvailableCallback.call();} resource.readyState="loaded";} else{pending.async++;} break;default:this._loadResourceDependencies(resource,pending);if(resource.async){if(pending.sync==0){this._loadResource(resource);pending.async++;}} else{if((pending.async==0)&&(pending.sync==0)){this._loadResource(resource);pending.sync++;}} break;}},_loadResourceDependencies:function(resource,pending){for(var i=0;i<resource.dependencies.length;i++){var depPending={async:0,sync:0};this._loadResources(this._resources[resource.dependencies[i]],depPending);pending.async+=depPending.async;pending.sync+=depPending.sync;}},_loadResource:function(resource){resource.readyState="loading";if(!resource.filename&&!resource.url){this._onResourceLoaded(resource);return;} if(!this._browserRequires(resource)){this._onResourceLoaded(resource);return;} switch(resource.type){case"script":this._loadScript(resource);break;case"stylesheet":this._loadStyleSheet(resource);break;case"channeliframe":case"storageiframe":this._loadIFrame(resource);break;}},_shouldUseHttps:function(resourceType){if(this._settings.httpsApplication){if(this._settings.httpsScope=="all"){return true;} if(this._settings.httpsScope=="content"){switch(resourceType){case"content":case"script":case"stylesheet":return true;}} if(resourceType=="storageiframe"){if(this._shouldProxyLocalStorage()){return true;}}} return false;},_shouldProxyLocalStorage:function(){var isHtml5StorageSupported=!!(window.localStorage||window.globalStorage||window.sessionStorage);return!!(this._settings.httpsApplication&&window.postMessage&&isHtml5StorageSupported&&!this._browser.ie);},_browserRequires:function(resource){if(resource.browsers){return resource.browsers(this._browser,this._settings);} return true;},_loadScript:function(resource){if(resource.isLoaded){this._onResourceLoaded(resource);return;} var loader=this;var element=document.createElement("SCRIPT");if(this._browser.ie){element.attachEvent("onreadystatechange",function(e){loader._onScriptLoad(e,resource);});} else{element.readyState="complete";element.addEventListener("load",function(e){loader._onScriptLoad(e,resource);},false);element.addEventListener("error",function(e){loader._onScriptLoad(e,resource);},false);} if(resource.async){element.setAttribute("async","async");} element.type="text/javascript";element.src=this._getResourceUrl(resource);document.getElementsByTagName("HEAD")[0].appendChild(element);},_canPreloadIframe:function(resource){switch(resource.type){case"channeliframe":case"storageiframe":if(window.postMessage){return true;} if(this.isFlashInstalled(8)&&!this._settings.channel.flashDisabled){return true;} var domain=document.domain.toLowerCase();if(domain=="live.com"||domain=="live-int.com"){return true;} return false;default:return true;}},_loadIFrame:function(resource){if(!resource.containerId||!resource.filename||!this._canPreloadIframe(resource)){this._onResourceLoaded(resource);return;} var url=this._getResourceUrl(resource);var frameContainer=document.getElementById(resource.containerId);if(!frameContainer){var controlElement=document.createElement("div");controlElement.id=resource.containerId;controlElement.style.height="1pt";controlElement.style.width="1pt";controlElement.style.position="absolute";controlElement.style.top="-100px";frameContainer=controlElement;} var iframe=document.createElement("iframe");iframe.frameBorder="0";iframe.style.width="100%";iframe.style.height="100%";iframe.src=url;iframe.id=resource.frameId;frameContainer.appendChild(iframe);resource.frameContainer=frameContainer;this._iframeResources.push(resource);this._appendIFrameResources();this._onResourceLoaded(resource);},_loadStyleSheet:function(resource){var element=document.createElement("LINK");element.type="text/css";element.rel="stylesheet";element.media="screen";element.href=this._getResourceUrl(resource);this._appendChild(document.getElementsByTagName("HEAD")[0],element);this._onResourceLoaded(resource);},_lookupSettings:function(setting,url){var key=setting.substring(1,setting.length-1);var subkeys=key.split('.');if(subkeys[0]=="resource"){return setting;} var qualifier=subkeys.pop();var subSetting=this._getSubSetting(subkeys);if(subSetting){var settingVal=subSetting[qualifier];if(this._isArray(settingVal)){return this._hashSelect(settingVal,url)} if(typeof(settingVal)==="function"){return settingVal.call(this);} if(settingVal||typeof(settingVal)=="boolean"||typeof(settingVal)=="number"){return subSetting[qualifier];}} return"";},_isArray:function(value){return(value)&&(Object.prototype.toString.apply(value)==="[object Array]");},_hashSelect:function(list,url){var lastIndex=url.lastIndexOf('/');if(lastIndex<0){lastIndex=0;} else{lastIndex++;} var hash=this._computeFastHash(url.substring(lastIndex));return list[hash%list.length];},_computeFastHash:function(str){if(!str||!str.length){return 0;} var hash=5381;for(var i=0,len=str.length;i<len;i++){hash=((hash<<5)+hash)+str.charCodeAt(i);} if(hash<0){hash*=-1;} return hash;},_getSubSetting:function(subkeys){var setting=this._settings;if(!subkeys.length){return setting;} for(var i=0;i<subkeys.length;i++){setting=setting[subkeys[i]];if(!setting){return null;}} return setting;},_getSecureUrl:function(url){if(url.indexOf("http:")==0){return url.replace("http:","https:");} return url;},_getResourceUrl:function(resource){var url;if(resource.url){url=resource.url;} else{url=this._getUrlFromSettings(resource.filename);} if(this._shouldUseHttps(resource.type)){url=this._getSecureUrl(url);} return url;},_getUrl:function(filename,resourceType){var url=this._getUrlFromSettings(filename);if(this._shouldUseHttps(resourceType)){url=this._getSecureUrl(url);} return url;},_getUrlFromSettings:function(filename){var url=filename;var l=this;url=url.replace(this._settingRegEx,function(setting){return l._lookupSettings(setting,filename);});url=url.replace(this._settingRegEx,function(setting){return l._lookupSettings(setting,filename);});url=url.replace(/\/\//g,"/").replace(/:\//g,"://");return url;},_onScriptLoad:function(e,resource){if(resource.readyState=="loaded"){return;} var element=e.srcElement||e.currentTarget;if(!element.readyState){element=e.currentTarget;} if((element.readyState!="complete")&&(element.readyState!="loaded")){return;} var failure=((e.type=="error")||(resource.async&&resource.readyState!="available"));if(failure){if(!this._retryLoadResource(resource)){this._onResourceFailed(resource);} return;} else if(resource.async){this._onResourceAvailable(resource);} else{this._onResourceLoaded(resource);}},_onResourceLoaded:function(resource){resource.readyState="loaded";this._process();},_onResourceAvailable:function(resource){this._process();},_retryLoadResource:function(resource){if(resource.loadFailCount===undefined){resource.loadFailCount=0;} resource.loadFailCount++;if(resource.loadFailCount<3){this._loadResource(resource);return true;} else{return false;}},_onResourceFailed:function(resource){var name=this._getResourceName(resource);for(var i=0;i<this._errorRequests.length;i++){var callback=this._errorRequests[i].callback;this._invokeCallback(function(){callback(name);});}},_normalizeMarket:function(market){market=market||"";market=market.toLowerCase();if(this._getResourceMarket(market)){return market;} return null;},_getResourceMarket:function(market,markets){markets=markets||this._supportedMarkets;if(this._supportsMarket(market,markets)){return market;} var idx=market.lastIndexOf("-");if(idx<0){return null;} market=market.substr(0,idx);if(this._supportsMarket(market,markets)){return market;} return null;},_supportsMarket:function(market,markets){var low=0;var high=markets.length-1;while(low<=high){var i=Math.floor((low+high)/2);var curr=markets[i];if(curr<market){low=i+1;continue;} if(curr>market){high=i-1;continue;} return true;} return false;},_resolveDirection:function(){var direction=null;var elements=document.getElementsByTagName("html");if(elements&&elements.length>0){direction=elements[0].getAttribute("dir");} if(direction){this.initialize({"direction":direction});}},_tryUpdateDirection:function(direction){direction=direction||"";direction=direction.toLowerCase();switch(direction){case"ltr":case"rtl":this._settings.direction=direction;return true;} return false;},_resolveMarket:function(){var market=null;var elements=document.getElementsByTagName("html");var element=(elements&&elements.length>0)?elements[0]:null;if(element){market=element.getAttribute("lang");if(market){this.initialize({"market":market});} market=element.getAttribute("xml:lang");if(market){this.initialize({"market":market});}}},_tryUpdateMarket:function(market){market=this._normalizeMarket(market);if(market){this._settings.market=market;this._settings.resourceMarket=this._getResourceMarket(market);return true;} return false;},_detectBrowsers:function(){var ua=navigator.userAgent.toLowerCase();this._browser={"firefox":/firefox/.test(ua),"firefox1.5":/firefox\/1\.5/.test(ua),"firefox2":/firefox\/2/.test(ua),"firefox3":/firefox\/3/.test(ua),"ie":/msie/.test(ua)&&!/opera/.test(ua),"ie6":/msie 6/.test(ua)&&!/opera/.test(ua),"ie7":/msie 7/.test(ua)&&!/opera/.test(ua),"ie8":/trident\/4/.test(ua)&&(document.documentMode==8)&&!/opera/.test(ua),"ie8compat":/trident\/4/.test(ua)&&(document.documentMode<=7)&&!/opera/.test(ua),"ie9":/trident\/4/.test(ua)&&(document.documentMode==9)&&!/opera/.test(ua),"opera":/opera/.test(ua),"webkit":/webkit/.test(ua)};},_detectSecureConnection:function(){if(document.location.protocol.toLowerCase()=="https:"){this.initialize({"httpsApplication":true,"httpsScope":"all"});}},_detectFlash:function(){var version=0;try{if(this._browser.ie){var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var fullVersion=axo.GetVariable("$version");var tempArray=fullVersion.split(" ");var tempString=tempArray[1];var versionArray=tempString.split(",");version=versionArray[0];} else if(navigator.plugins&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var description=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=description.split(" ");var tempArrayMajor=descArray[2].split(".");version=tempArrayMajor[0];}}} catch(e){} this._browser.flashVersion=version;this._browser.flash=(version>=8);},_addDocumentReadyListener:function(){var loader=this;if(document.body){switch(document.readyState){case"complete":this._onDocumentReady();return;case"loaded":if(this._browser.webkit){this._onDocumentReady();return;} break;case"interactive":case undefined:if(this._browser.firefox){this._onDocumentReady();return;} break;}} if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){loader._onDocumentReady();},false);document.addEventListener("load",function(){loader._onDocumentReady();},false);} else if(window.attachEvent){window.attachEvent("onload",function(){loader._onDocumentReady();});} if(this._browser.ie){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);loader._onDocumentReady();}});var topLevel=false;try{topLevel=window.frameElement==null;} catch(e){} if(topLevel&&document.documentElement.doScroll){this._doScrollCheck();}}},_doScrollCheck:function(){if(this._documentReady){return;} try{document.documentElement.doScroll("left");} catch(e){var loader=this;setTimeout(function(){loader._doScrollCheck();},1);return;} this._onDocumentReady();},_invokeCallback:function(callback){window.setTimeout(callback,1);},_onDocumentReady:function(){if(this._documentReady==false){this._documentReady=true;this._appendIFrameResources();while(this._domRequests.length>0){var domRequest=this._domRequests.shift();this._invokeCallback(domRequest.callback);} this._process();}},_appendChild:function(parent,child){var callback=function(){parent.appendChild(child);};if(this._browser.ie&&!this._documentReady){this._invokeCallback(callback);} else{callback();}},_appendIFrameResources:function(){if(this._documentReady){var resources=this._iframeResources;for(var i=resources.length-1;i>=0;i--){if(resources[i].hasParent!==true){resources[i].hasParent=true;this._appendChild(document.body,resources[i].frameContainer);}}}},_serializeSettings:function(settings){if(!settings){return;} var serialized=this._settings["customSettings"];for(var key in settings){var separator=(serialized.length==0)?"":"&";var prefix;var value=settings[key];switch(typeof(value)){case"boolean":prefix="cb";break;case"number":prefix="cn";break;default:prefix="cs";break;} serialized+=separator+prefix+":"+key+"="+encodeURIComponent(value);} this._settings["customSettings"]=serialized;},_runtimeCheck:function(){for(var ext in Object.prototype){this._validRuntime=false;break;}}}
Microsoft.Live.Core.Loader=new Microsoft.Live.Core.Loader();Microsoft.Live.Core.Loader._addManifest("microsoftAjax",{"microsoft_ajax_core":{async:true,filename:"{microsoftAjax.baseScriptUrl}/MicrosoftAjaxCore.js",type:"script",isLoaded:!!(window.Type&&window.Type.registerClass&&window.Sys&&window.Sys.Debug),dependencies:[]},"microsoft_ajax_compat":{async:true,filename:"{microsoftAjax.baseScriptUrl}/MicrosoftAjaxCompat.js",type:"script",browsers:function(b){return!b["ie"];},dependencies:[]},"microsoft_ajax_extensions":{type:"script",dependencies:["microsoft_ajax_core","microsoft_ajax_compat"]},"microsoft_ajax_base":{async:true,filename:"{microsoftAjax.baseScriptUrl}/MicrosoftAjaxBase.js",type:"script",isLoaded:!!(window.Sys&&window.Sys.UI),dependencies:["microsoft_ajax_core"]},"microsoft_ajax_componentmodel":{type:"script",dependencies:["microsoft_ajax_base"]},"microsoft_ajax_serialization":{type:"script",dependencies:["microsoft_ajax_base"]},"microsoft_ajax_templates":{async:true,filename:"{microsoftAjax.baseScriptUrl}/MicrosoftAjaxTemplates.js",type:"script",isLoaded:!!(window.Sys&&window.Sys.UI&&window.Sys.UI.Template),dependencies:["microsoft_ajax_base"]},"microsoft_ajax_globalization":{async:true,filename:"{microsoftAjax.baseLocalizedScriptUrl}/MicrosoftAjaxGlobalization.js",type:"script",isLoaded:!!(Number._parse),dependencies:["microsoft_ajax_core"]},"microsoft_ajax_history":{async:true,filename:"{microsoftAjax.baseScriptUrl}/MicrosoftAjaxHistory.js",type:"script",isLoaded:!!(window.Sys&&window.Sys.Application&&window.Sys.Application.get_stateString),dependencies:["microsoft_ajax_componentmodel","microsoft_ajax_serialization"]},"json_parser":{async:true,filename:"{microsoftAjax.baseScriptUrl}/json2.js",type:"script",isLoaded:!!(window.JSON),dependencies:[]}},{"version":"3.0.31118","market":"en","resourcePath":["http://secure.wlxrs.com/_D/F$Live.SiteContent.MicrosoftAjax","http://secure.shared.live.com/_D/F$Live.SiteContent.MicrosoftAjax"],"baseScriptUrl":"{microsoftAjax.resourcePath}/{microsoftAjax.version}/{configuration}","baseLocalizedScriptUrl":"{microsoftAjax.resourcePath}/{microsoftAjax.version}/{configuration}/{microsoftAjax.market}","int":{"resourcePath":["http://js.wlxrs-int.com/_D/F$Live.SiteContent.MicrosoftAjax","http://js2.wlxrs-int.com/_D/F$Live.SiteContent.MicrosoftAjax"]},"f1":{"resourcePath":["http://js.f1.wlxrs-int.com/_D/F$Live.SiteContent.MicrosoftAjax","http://js2.f1.wlxrs-int.com/_D/F$Live.SiteContent.MicrosoftAjax"]},updateSettings:function(loaderSettings,resources){var settings=loaderSettings.microsoftAjax;var market=loaderSettings.market;if(market){var loader=Microsoft.Live.Core.Loader;var markets=["ar","ar-ae","ar-bh","ar-dz","ar-eg","ar-iq","ar-jo","ar-kw","ar-lb","ar-ly","ar-ma","ar-om","ar-ploc-sa","ar-qa","ar-sy","ar-tn","ar-ye","bg","cs","da","de","de-at","de-ch","de-ploc-de","el","en","en-au","en-ca","en-gb","en-ie","en-in","en-my","en-nz","en-ph","en-sg","en-za","es","es-ar","es-bo","es-cl","es-co","es-cr","es-do","es-ec","es-gt","es-hn","es-mx","es-ni","es-pa","es-pe","es-pr","es-py","es-sv","es-us","es-uy","es-ve","et","fi","fr","fr-be","fr-ca","fr-ch","he","hr","hu","it","ja","ja-ploc-jp","ko","lt","lv","nb-no","nl","nl-be","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","uk","zh-cn","zh-hk","zh-tw"];settings.market=loader._getResourceMarket(market,markets)||"en";}}});Microsoft.Live.Core.Loader._addManifest("liveconnect",null,{"localizedMarket":"","resourcePath":"/_D/F$Live.SiteContent.PROD.Connect/15.1.5426/","version":"15.0.5426.1","shortversion":"15.1.5426","JssdkOfferNamespace":"","JssdkIsTestEnvironment":false,"JssdkSecureDomain":"secure.wlxrs.com","JssdkDomainsJavaScript":['js.wlxrs.com','js2.wlxrs.com'],"JssdkDomainsImage":['img.wlxrs.com','img2.wlxrs.com'],"JssdkDomainsCss":['css.wlxrs.com'],"JssdkAuthChannelDomain":"xd.live.com","JssdkAuthChannelPath":"/4.0/","JssdkSrsResourceGroup":"Live.SiteContent.PROD.Connect","JssdkEdgeJs":"/_D/F$Live.SiteContent.PROD.Connect/15.1.5426/","JssdkEdgeImg":"/_D/F$Live.SiteContent.PROD.Connect/15.1.5426/images/","JssdkEdgeCss":"/_D/F$Live.SiteContent.PROD.Connect/15.1.5426/","JssdkImagePathForCss":"//secure.wlxrs.com/_D/F$Live.SiteContent.PROD.Connect/15.1.5426/images/","JssdkImagePathForHtml":"https://secure.wlxrs.com/_D/F$Live.SiteContent.PROD.Connect/15.1.5426/images/","JssdkCloudMoeBaseUri":"https://apis.live.net/","JssdkCloudMoeRootServiceDocPath":"v4.0/","JssdkCloudMoeChannelSourcesPath":"js/v1/","JssdkConsentUri":"https://consent.live.com/connect.aspx","JssdkLivePcTestBaseUri":"http://live.com/",getConfiguration:function(){return Microsoft.Live.Core.Loader._settings.configuration;},getIsLiveUser:function(channelUrl){var settings=Microsoft.Live.Core.Loader._settings['liveconnect'];var secure=settings._isSecure();var baseUri="http://"+settings['JssdkAuthChannelDomain']+settings['JssdkAuthChannelPath']+'host.html?isLiveUser=true&channel='+escape(channelUrl);if(secure){return baseUri.replace(/https?:/,"https:");} return settings._makeFrame(baseUri);},getScriptBase:function(resource){var settings=Microsoft.Live.Core.Loader._settings['liveconnect'];return settings._getBaseUrl("JssdkEdgeJs","JssdkDomainsJavaScript",resource);},getCssBase:function(resource){var settings=Microsoft.Live.Core.Loader._settings['liveconnect'];return settings._getBaseUrl("JssdkEdgeCss","JssdkDomainsCss",resource);},getServiceUrl:function(manifestName,settingName){var settings=Microsoft.Live.Core.Loader._settings;var secure=settings[manifestName]._isSecure();var url=settings[manifestName][settingName];var protocol="http:";if(secure){protocol="https:";} return url.replace(/https?:/,protocol);},_getRandomId:function(){var min=1000;var max=100000;return Math.floor(Math.random()*(max-min+1))+min;},_makeFrame:function(url){var settings=Microsoft.Live.Core.Loader._settings['liveconnect'];var iframe=document.createElement("IFRAME");iframe.id=settings._getRandomId();iframe.src=url;iframe.style.display='none';var body=document.getElementsByTagName("body")[0]||document.documentElement;body.insertBefore(iframe,body.firstChild);return iframe.id;},_isSecure:function(){var secure;if((this!=undefined)&&(this._secureConnection!=undefined)){secure=this._secureConnection;} else{secure=document.location.protocol.toLowerCase()=="https:";} return secure;},updateSettings:function(loaderSettings,resources){var settings=loaderSettings.liveconnect;var loader=Microsoft.Live.Core.Loader;var localizedMarkets=["ar","ar-ploc-sa","bg","cs","da","de","de-ploc-de","el","en","es","et","fi","fr","he","hr","hu","it","ja","ja-ploc-jp","ko","lt","lv","nb-no","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","te","th","tr","uk","zh-cn","zh-hk","zh-tw"];if(loaderSettings.resourceMarket){for(var i=0;i<localizedMarkets.length;i++){if(loaderSettings.resourceMarket==localizedMarkets[i]){this.localizedMarket=loaderSettings.resourceMarket;break;}}}},_getBaseUrl:function(settingName,domainsName,resource){var settings=Microsoft.Live.Core.Loader._settings['liveconnect'];var secure=settings._isSecure();if(secure){var baseUri="https://"+settings['JssdkSecureDomain']+settings[settingName];return baseUri;} var rotationDomains=settings[domainsName];var domainIdx=0;if(resource&&resource.domainIdx){domainIdx=resource.domainIdx;} else{var url;if(resource&&resource.filename){url=settings[settingName]+resource.filename;} else{url=settings[settingName];} var hash=Microsoft.Live.Core.Loader._computeFastHash(url);domainIdx=hash%rotationDomains.length;} var domain=rotationDomains[domainIdx];var baseUri="http://"+domain+settings[settingName];return baseUri;}});;Microsoft.Live.Core.Loader._addManifest("liveconnect_debug",null,{"debug":".debug","configuration":"debug"});Microsoft.Live.Core.Loader._addManifest("default_debug",null,{"debug":".debug"});Microsoft.Live.Core.Loader._addManifest("liveconnect",{"mscorlib":{type:"script",dependencies:["microsoft_ajax_compat","microsoft_ajax_extensions","json_parser"]},"channels_core":{type:"script",dependencies:["microsoft_live_core_channel"]},"microsoft_live_core_hostchannel":{filename:"{liveconnect.getScriptBase}/microsoft.live.core.hostchannel{liveconnect_debug.debug}.js",async:true,type:"script",dependencies:["mscorlib","microsoft_ajax_core","microsoft_ajax_base","channels_core","microsoft_live"]},"microsoft_live":{async:true,filename:"{liveconnect.getScriptBase}/microsoft.live{liveconnect_debug.debug}.js",type:"script",dependencies:["microsoft_ajax_base"]},"microsoft_live_core_hostchannel":{filename:"{liveconnect.getScriptBase}/microsoft.live.core.hostchannel{liveconnect_debug.debug}.js",async:true,type:"script",dependencies:["mscorlib","microsoft_ajax_core","microsoft_ajax_serialization","channels_core"]},"microsoft_live_core_scanner_tags_registry":{type:"script",dependencies:["microsoft_live_core_scanner_tags_registry_live","microsoft_live_core_scanner_tags_registry_msgr"]},"microsoft_live_core_scanner_tags_registry_live":{async:true,filename:"{liveconnect.getScriptBase}/scanner.tags.liveconnect{liveconnect_debug.debug}.js",type:"script",dependencies:["microsoft_live_ui"]},"microsoft_live_core_clientchannel":{filename:"{liveconnect.getScriptBase}/microsoft.live.core.clientchannel{liveconnect_debug.debug}.js",async:true,type:"script",dependencies:["mscorlib","channels_core"]},"microsoft_live_services":{filename:"{liveconnect.getScriptBase}/microsoft.live.services{liveconnect_debug.debug}.js",async:true,type:"script",dependencies:["microsoft_live","microsoft_live_core_clientchannel","microsoft_ajax_core","microsoft_ajax_base"]}},null);Microsoft.Live.Core.Loader._addManifest("default",null,{"getScriptBase":"{liveconnect.getScriptBase}"});;Microsoft.Live.Core.Loader._addManifest("liveconnect",{"microsoft_live_ui_primitives_styles":{async:true,filename:"{liveconnect.getCssBase}/microsoft.live.ui.primitives.css",type:"stylesheet",dependencies:[]},"microsoft_live_ui_styles":{async:true,filename:"{liveconnect.getCssBase}/microsoft.live.ui.css",type:"stylesheet",dependencies:[]},"microsoft_live_ui_primitives_res":{async:true,filename:"{liveconnect.getScriptBase}/microsoft.live.ui.primitives.res.{liveconnect.localizedMarket}{liveconnect_debug.debug}.js",type:"script",dependencies:["mscorlib"]},"microsoft_live_ui_primitives":{async:true,filename:"{liveconnect.getScriptBase}/microsoft.live.ui.primitives{liveconnect_debug.debug}.js",type:"script",dependencies:["microsoft_live_ui_primitives_res","microsoft_ajax_base","microsoft_ajax_core","microsoft_ajax_templates","mscorlib"]},"microsoft_live_ui":{async:true,filename:"{liveconnect.getScriptBase}/microsoft.live.ui{liveconnect_debug.debug}.js",type:"script",dependencies:["microsoft_live","microsoft_live_ui_primitives_res","microsoft_ajax_base","microsoft_ajax_core","microsoft_ajax_templates"]}},null);Microsoft.Live.Core.Loader._addManifest("channel",{"microsoft_live_core_channel":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Core.Channel.js",type:"script",dependencies:["microsoft_live_core_channel_downlevel","json_parser","microsoft_ajax_extensions"]},"microsoft_live_core_channel_downlevel":{async:true,filename:"{messenger.baseScriptUrl}/channel.js",type:"script",browsers:function(b,s){return!window.postMessage&&(!b.flash||s.channel.flashDisabled);},dependencies:[]}},{"uniqueIdUrl":"http://{messenger.serviceHostName}/actions/getuniqueids","flashDisabled":false,getUniqueIdUrl:function(){return Microsoft.Live.Core.Loader._getUrl(this.uniqueIdUrl,"service");}});Microsoft.Live.Core.Loader._addManifest("messenger",{"scriptsharp_compat":{type:"script",dependencies:["microsoft_ajax_core"]},"scriptsharp":{type:"script",dependencies:["scriptsharp_compat"]},"messenger_iframe":{type:"channeliframe",dependencies:[],containerId:"MsgrContainer1",frameId:"ifm"+Math.floor(Math.random()*1024*1024),filename:"{messenger.baseContentUrl}/Messenger.html"+"#domain={messenger.domain}"+"&loaderPath={messenger.loaderPath}{messenger.loaderName}"+"&{customSettings}"+"&{messenger.messengerChannelTypeQualifier}"},"storage_iframe":{type:"storageiframe",dependencies:[],containerId:"MsgrStorageContainer1",frameId:"ifm"+Math.floor(Math.random()*1024*1024),filename:"{messenger.baseContentUrl}/LocalStorage.html"+"#domain={messenger.domain}"+"&loaderPath={messenger.loaderPath}{messenger.loaderName}"+"&channelNames={messenger.storageChannelNames}"+"&{customSettings}"+"&{messenger.storageChannelTypeQualifier}"},"messenger_common":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Common.js",type:"script",dependencies:["microsoft_ajax_extensions","json_parser","microsoft_live_core_channel"]},"messenger_core":{async:true,filename:"{messenger.baseLocalizedScriptUrl}/Microsoft.Live.Messenger.js",type:"script",dependencies:["messenger_common","messenger_services_loader","messenger_iframe","storage_iframe","core_localstorage"]},"messenger_connect":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Connect.js",type:"script",dependencies:["messenger_core"]},"messenger_pubsub":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.PubSub.Client.js",type:"script",dependencies:["messenger_core","messenger_pubsub_common","messenger_pubsub_service"]},"messenger_pubsub_service":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.PubSub.Service.js",type:"script",dependencies:["messenger_pubsub_common"]},"messenger_pubsub_common":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.PubSub.Common.js",type:"script",dependencies:["messenger_common"]},"messenger_extended":{type:"script",dependencies:["messenger_core","messenger_services_core","messenger_services_chat"]},"messenger_services_loader":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Services.Loader.js",type:"script",dependencies:["messenger_common","core_localstorage"]},"messenger_services_core":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Services.Core.js",type:"script",dependencies:["messenger_common"]},"messenger_services_addressbook":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Services.AddressBook.js",type:"script",dependencies:["messenger_common"]},"messenger_services_chat":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Services.Chat.js",type:"script",dependencies:["messenger_common"]},"messenger_services_configuration":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Services.Configuration.js",type:"script",dependencies:["messenger_common"]},"messenger_services_expressionprofile":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Services.ExpressionProfile.js",type:"script",dependencies:["messenger_common"]},"messenger_services_identity":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Messenger.Services.Identity.js",type:"script",dependencies:["messenger_common"]},"core_localstorage":{type:"script",dependencies:["core_localstorage_ie","core_localstorage_ff","core_localstorage_plugins","core_localstorage_userdata","core_localstorage_webkit"]},"core_localstorage_ie":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Core.LocalStorage.IE.js",type:"script",browsers:function(b){return b["ie"]&&window.sessionStorage;},dependencies:["messenger_common"]},"core_localstorage_userdata":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Core.LocalStorage.UserData.js",type:"script",browsers:function(b,s){var shouldLoad=(!s.httpsApplication||!b["flash"])&&b["ie"]&&!window.sessionStorage;return shouldLoad;},dependencies:["messenger_common"]},"core_localstorage_ff":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Core.LocalStorage.FF.js",type:"script",browsers:function(b){return b["firefox"]&&window.globalStorage},dependencies:["messenger_common"]},"core_localstorage_plugins":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Core.LocalStorage.Plugins.js",type:"script",browsers:function(b,s){var shouldLoad=((s.httpsApplication&&b["flash"])||!b["ie"])&&!window.localStorage&&!window.globalStorage&&!window.sessionStorage;return shouldLoad;},dependencies:["messenger_common"]},"core_localstorage_webkit":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Core.LocalStorage.WebKit.js",type:"script",browsers:function(b){return(b["webkit"]||b["opera"])&&window.localStorage;},dependencies:["messenger_common"]}});Microsoft.Live.Core.Loader._addManifest("messenger",{"microsoft_live_core_scanner_tags_registry_msgr":{async:true,filename:"{messenger.baseScriptUrl}/Scanner.Tags.Messenger.js",type:"script",dependencies:["microsoft_live_ui"]},"mesh":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.Mesh.Framework.js",type:"script",dependencies:["microsoft_ajax_extensions"]},"messenger_ui_core":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.UI.Messenger.Core.js",type:"script",dependencies:["microsoft_ajax_extensions","messenger_core","mesh"]},"messenger_ui_databinding":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.UI.Messenger.DataBinding.js",type:"script",dependencies:["microsoft_ajax_templates","messenger_core"]},"messenger_ui_primitives":{async:true,filename:"{messenger.baseLocalizedScriptUrl}/Microsoft.Live.UI.Messenger.Primitives.js",type:"script",dependencies:["mesh"]},"messenger_ui_controls":{async:true,filename:"{messenger.baseLocalizedScriptUrl}/Microsoft.Live.UI.Messenger.Controls.js",type:"script",dependencies:["microsoft_ajax_globalization","messenger_ui_primitives","messenger_ui_core"]},"messenger_ui_model":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.UI.Messenger.js",type:"script",dependencies:["messenger_ui_controls","microsoft_ajax_componentmodel"]},"messenger_ui":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.UI.Messenger.Tags.js",type:"script",dependencies:["microsoft_live_core_scanner_tags_registry","messenger_ui_model","microsoft_ajax_templates"]},"messenger_ui_chat":{async:true,filename:"{messenger.baseLocalizedScriptUrl}/Microsoft.Live.UI.Messenger.Chat.js",type:"script",dependencies:["messenger_pubsub","messenger_ui_controls","microsoft_ajax_componentmodel"]},"messenger_ui_chatframe":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.UI.Messenger.ChatFrameControl.js",type:"script",dependencies:["microsoft_ajax_componentmodel"]},"messenger_ui_styles_core":{type:"stylesheet",dependencies:["messenger_ui_styles_core_ie6","messenger_ui_styles_core_ie7","messenger_ui_styles_core_ie8","messenger_ui_styles_core_ie9","messenger_ui_styles_core_webkit","messenger_ui_styles_core_other"]},"messenger_ui_styles_core_ie6":{filename:"{messenger.baseStyleSheetUrl}/core.ie6.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie6"];},dependencies:[]},"messenger_ui_styles_core_ie7":{filename:"{messenger.baseStyleSheetUrl}/core.ie7.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie7"]||b["ie8compat"];},dependencies:[]},"messenger_ui_styles_core_ie8":{filename:"{messenger.baseStyleSheetUrl}/core.ie8.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie8"];},dependencies:[]},"messenger_ui_styles_core_ie9":{filename:"{messenger.baseStyleSheetUrl}/core.other.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie9"];},dependencies:[]},"messenger_ui_styles_core_webkit":{filename:"{messenger.baseStyleSheetUrl}/core.webkit.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["webkit"];},dependencies:[]},"messenger_ui_styles_core_other":{filename:"{messenger.baseStyleSheetUrl}/core.other.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return!b["ie"]&&!b["webkit"];},dependencies:[]},"messenger_ui_styles_chat_light":{type:"stylesheet",dependencies:["messenger_ui_styles_core","messenger_ui_styles_chat_light_ie6","messenger_ui_styles_chat_light_ie7","messenger_ui_styles_chat_light_ie8","messenger_ui_styles_chat_light_other"]},"messenger_ui_styles_chat_light_ie6":{filename:"{messenger.baseStyleSheetUrl}/chat.light.ie6.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie6"]},dependencies:[]},"messenger_ui_styles_chat_light_ie7":{filename:"{messenger.baseStyleSheetUrl}/chat.light.ie7.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie7"]||b["ie8compat"]},dependencies:[]},"messenger_ui_styles_chat_light_ie8":{filename:"{messenger.baseStyleSheetUrl}/chat.light.ie8.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie8"]},dependencies:[]},"messenger_ui_styles_chat_light_other":{filename:"{messenger.baseStyleSheetUrl}/chat.light.other.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return!b["ie"]},dependencies:[]},"messenger_ui_styles_chat_dark":{type:"stylesheet",dependencies:["messenger_ui_styles_core","messenger_ui_styles_chat_dark_ie6","messenger_ui_styles_chat_dark_ie7","messenger_ui_styles_chat_dark_ie8","messenger_ui_styles_chat_dark_other"]},"messenger_ui_styles_chat_dark_ie6":{filename:"{messenger.baseStyleSheetUrl}/chat.dark.ie6.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie6"]},dependencies:[]},"messenger_ui_styles_chat_dark_ie7":{filename:"{messenger.baseStyleSheetUrl}/chat.dark.ie7.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie7"]||b["ie8compat"]},dependencies:[]},"messenger_ui_styles_chat_dark_ie8":{filename:"{messenger.baseStyleSheetUrl}/chat.dark.ie8.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return b["ie8"]},dependencies:[]},"messenger_ui_styles_chat_dark_other":{filename:"{messenger.baseStyleSheetUrl}/chat.dark.other.{messenger.localizedMarket}.css",type:"stylesheet",browsers:function(b){return!b["ie"]},dependencies:[]}});Microsoft.Live.Core.Loader._addManifest("messenger",null,{"version":"4.0.56102","versionOverride":"4.0.56102","loaderPath":"{messenger.resourcePath}/{messenger.version}/","loaderName":"loader.js","localizedMarket":"other","resourcePath":["http://secure.wlxrs.com/_D/F$Live.SiteContent.Messenger","http://secure.shared.live.com/_D/F$Live.SiteContent.Messenger"],"imageResourcePath":["http://secure.wlxrs.com/_D/F$Live.SiteContent.Messenger","http://secure.shared.live.com/_D/F$Live.SiteContent.Messenger"],"styleResourcePath":"http://secure.wlxrs.com/_D/F$Live.SiteContent.Messenger","audioResourcePath":"http://secure.wlxrs.com/_D/F$Live.SiteContent.Messenger","applicationPath":"http://secure.shared.live.com/_D/F$Live.SiteContent.Messenger","applicationHostName":"settings.messenger.live.com","consentHostName":"consent.messenger.services.live.com","baseScriptUrl":"{messenger.resourcePath}/{messenger.version}/{configuration}","baseLocalizedScriptUrl":"{messenger.resourcePath}/{messenger.version}/{configuration}/{resourceMarket}","baseStyleSheetUrl":"{messenger.styleResourcePath}/{messenger.version}/resources/styles/{direction}","baseContentUrl":"{messenger.applicationPath}/{messenger.versionOverride}","messengerChannelTypeQualifier":"","storageChannelTypeQualifier":"","storageChannelNames":"","serviceHostName":"geo.messenger.services.live.com","pubSubHostName":"beta.messenger.services.live.com","localStorageDisabled":false,"sameDomainEndpointsAsLocalEnabled":false,"testReportingEnabled":false,"signInControlState":"","onDemandContactsEnabled":false,"dogfood":{"serviceHostName":"beta.messenger.services.live.com"},updateSettings:function(loaderSettings,resources){var settings=loaderSettings.messenger;var loader=Microsoft.Live.Core.Loader;var localizedStyleMarkets=["ar","ar-ploc-sa","ja","ja-ploc-jp","he","ko","th","zh-hk","zh-tw"];if(loaderSettings.resourceMarket){for(var i=0;i<localizedStyleMarkets.length;i++){if(loaderSettings.resourceMarket==localizedStyleMarkets[i]){this.localizedMarket=loaderSettings.resourceMarket;break;}}} settings.domain=encodeURIComponent(document.location.hostname.toLowerCase());if(!window.postMessage){settings.messengerChannelTypeQualifier="WLIFMi="+resources["messenger_iframe"].frameId;settings.storageChannelTypeQualifier="WLIFMi="+resources["storage_iframe"].frameId;} settings.storageChannelNames="DefaultLocalStorageChannel";if(loader._shouldProxyLocalStorage()){settings.storageChannelNames+=";MessengerStorageChannel";}},_join:function(){return Array.prototype.join.call(arguments,"/");},getLoaderUrl:function(){return Microsoft.Live.Core.Loader._getUrl(this.loaderPath+this.loaderName,"script");},getResourceUrl:function(relativePath,resourceType){if(!relativePath){relativePath="";} var loader=Microsoft.Live.Core.Loader;var settings=loader._settings.messenger;var configuration=loader._settings.configuration;var path=settings.resourcePath;if(relativePath.match(/(\.jpg|\.gif|\.png)$/gi)){path=settings.imageResourcePath;} else if(relativePath.match(/(\.mp3|\.wav)$/gi)){path=settings.audioResourcePath;} else if(relativePath.match(/(\.html)$/gi)){path=settings.applicationPath;} var url;if(!loader._isArray(path)){url=path;} else{var hash=loader._computeFastHash(relativePath);url=path[hash%path.length];} if(relativePath.charAt(0)=='/'){relativePath=relativePath.substring(1);} if((relativePath.match(/(\.js)$/gi)||relativePath.length==0)&&configuration){url=this._join(url,settings.version,configuration,relativePath);} else if(relativePath.match(/(\.html)$/gi)){url=this._join(url,settings.versionOverride,relativePath);} else{url=this._join(url,settings.version,relativePath);} if(resourceType==null){if(url.match(/(\.html)$/gi)){resourceType="service";} else{resourceType="content";}} if(loader._shouldUseHttps(resourceType)){url=loader._getSecureUrl(url);} return url;},getDistinctDomainResourcePaths:function(relativePath){var loader=Microsoft.Live.Core.Loader;var settings=loader._settings.messenger;var paths=[];var resourcePaths=[];resourcePaths.push(settings.resourcePath);resourcePaths.push(settings.imageResourcePath);resourcePaths.push(settings.audioResourcePath);resourcePaths.push(settings.styleResourcePath);for(var i=0;i<resourcePaths.length;i++){var resourcePath=resourcePaths[i];if(loader._isArray(resourcePath)){for(var j=0;j<resourcePath.length;j++){paths.push(resourcePath[j]);}} else{paths.push(resourcePath);}} for(var i=0;i<paths.length;i++){var url=this._join(paths[i],settings.version,relativePath);if(loader._settings.httpsApplication){url=loader._getSecureUrl(url);} paths[i]=url;} return paths;}});Microsoft.Live.Core.Loader.initialize({"messenger.loaderName":"loader.js"});(function(){var callback=window.Microsoft_Live_Core_Loader_onAvailable;if(callback&&typeof(callback)=="function"){callback(Microsoft.Live.Core.Loader);}})();
