// 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._addDocumentReadyListener();this._resolveMarket();this._resolveDirection();this._detectSecureConnection();this._runtimeCheck();}
Microsoft.Live.Core.Loader.prototype={_loadInitiated:false,_paused:false,_processing:false,_processScheduled:false,_loadRequests:[],_readyRequests:[],_errorRequests:[],_domRequests:[],_documentReady:false,_browser:{},_iframeResources:[],_secureConnection:false,_settingRegEx:/(\{[^\}^\{]+\})/g,_startTime:(new Date()).getTime(),_loadTime:null,_validRuntime:true,_settings:{environment:"production",direction:"ltr",configuration:"retail",market:null,resourceMarket:null,customSettings:""},_supportedMarkets:["ar","ar-ploc-sa","bg","ca","cs","da","de","de-ploc-de","el","en","es","et","eu","fi","fr","gu","he","hi","hr","hu","id","it","ja","ja-ploc-jp","kn","ko","lt","lv","ml","mr","ms","nb-no","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sr-cyrl-cs","sv","ta","te","th","tr","uk","vi","zh-cn","zh-hk","zh-tw"],_resources:{"microsoft_ajax_core":{async:true,filename:"{messenger.baseScriptUrl}/MicrosoftAjaxCore.js",type:"script",isLoaded:!!(window.Type&&window.Type.registerClass&&window.Sys&&window.Sys.Debug),dependencies:[]},"microsoft_ajax_compat":{async:true,filename:"{messenger.baseScriptUrl}/MicrosoftAjaxCompat.js",type:"script",browsers:function(b){return!b["ie"];},dependencies:[]},"microsoft_ajax_extensions":{async:true,filename:"{messenger.baseScriptUrl}/MicrosoftAjaxExt.js",type:"script",dependencies:["microsoft_ajax_core","microsoft_ajax_compat"]},"microsoft_ajax_componentmodel":{async:true,filename:"{messenger.baseScriptUrl}/MicrosoftAjaxComponentModel.js",type:"script",isLoaded:!!(window.Sys&&window.Sys.Component),dependencies:["microsoft_ajax_core"]},"microsoft_ajax_serialization":{async:true,filename:"{messenger.baseScriptUrl}/MicrosoftAjaxSerialization.js",type:"script",isLoaded:!!(window.Sys&&window.Sys.Serialization),dependencies:["microsoft_ajax_core"]},"microsoft_ajax_templates":{async:true,filename:"{messenger.baseScriptUrl}/MicrosoftAjaxTemplates.js",type:"script",isLoaded:!!(window.Sys&&window.Sys.UI&&window.Sys.UI.Template),dependencies:["microsoft_ajax_componentmodel","microsoft_ajax_serialization"]},"microsoft_ajax_globalization":{async:true,filename:"{messenger.baseScriptUrl}/MicrosoftAjaxGlobalization.js",type:"script",isLoaded:!!(Number._parse),dependencies:["microsoft_ajax_core"]},"json_parser":{async:true,filename:"{messenger.baseScriptUrl}/json2.js",type:"script",isLoaded:!!(window.JSON),dependencies:[]}},addScript:function(scriptName,url,dependencies){this._addFeature(scriptName,"script",url,dependencies);},addStyleSheet:function(styleSheetName,url,dependencies){this._addFeature(styleSheetName,"stylesheet",url,dependencies);},get_settings:function(){return this._settings;},get_documentReady:function(){return this._documentReady;},set_documentReady:function(){},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._settings["customSettings"]=this._serializeSettings(this._settings["customSettings"],settings);if(this._loadInitiated){throw new Error("Cannot invoke initialize() after load() has been invoked");} 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];} break;}}} 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);} if(newSetting=="market"){this._tryUpdateMarket(settings[newSetting]);} else{subSetting[qualifier]=settings[newSetting];}} 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._secureConnection){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});},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){for(var resource in resources){if(this._resources[resource]){throw new Error("Resource '%1' already exists".replace("%1",resource));} this._resources[resource]=resources[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 pendingCount=0;for(var j=0;j<loadRequest.resources.length;j++){pendingCount+=this._loadResources(this._resources[loadRequest.resources[j]]);} 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){var pendingCount=0;switch(resource.readyState){case"loaded":break;case"loading":pendingCount=1;if(resource.async){pendingCount+=this._loadResourceDependencies(resource);} break;case"available":pendingCount=this._loadResourceDependencies(resource);if(pendingCount==0){if(resource.onAvailableCallback&&!resource.onAvailableCallbackCalled){resource.onAvailableCallbackCalled=true;resource.onAvailableCallback.call();} resource.readyState="loaded";} else{pendingCount++;} break;default:pendingCount=this._loadResourceDependencies(resource);if(pendingCount==0||resource.async){this._loadResource(resource);pendingCount++;} break;} return pendingCount;},_loadResourceDependencies:function(resource){var pendingCount=0;for(var i=0;i<resource.dependencies.length;i++){pendingCount+=this._loadResources(this._resources[resource.dependencies[i]]);} return pendingCount;},_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":this._loadChannelIFrame(resource);break;}},_browserRequires:function(resource){if(resource.browsers){return resource.browsers(this._browser);} 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(){loader._onScriptLoad(window.event,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);},_loadChannelIFrame:function(resource){if(!resource.containerId||!resource.filename){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(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;},_getResourceUrl:function(resource){if(resource.url){return resource.url;} return this._getUrl(resource.filename);},_getUrl: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(/:\//,"://");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;} if(e.type=="error"){this._onResourceFailed(resource);} else if(resource.async&&resource.readyState!="available"){this._onResourceFailed(resource);} else if(resource.async){this._onResourceAvailable(resource);} else{this._onResourceLoaded(resource);}},_onResourceLoaded:function(resource){resource.readyState="loaded";this._process();},_onResourceAvailable:function(resource){this._process();},_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){if(this._supportsMarket(market)){return market;} var idx=market.lastIndexOf("-");if(idx<0){return null;} market=market.substr(0,idx);if(this._supportsMarket(market)){return market;} return null;},_supportsMarket:function(market){var low=0;var high=this._supportedMarkets.length-1;while(low<=high){var i=Math.floor((low+high)/2);var curr=this._supportedMarkets[i];if(curr<market){low=i+1;continue;} if(curr>market){high=i-1;continue;} return true;} return false;},_resolveDirection:function(){var direction="ltr";var elements=document.getElementsByTagName("html");if(elements&&elements.length>0){direction=elements[0].getAttribute("dir")||"";} direction=direction.toLowerCase();switch(direction){case"ltr":case"rtl":this._settings.direction=direction;break;}},_resolveMarket:function(settings){var market="";if(settings){if(this._tryUpdateMarket(settings.market)){return;}} if(this._settings.market){return;} var elements=document.getElementsByTagName("html");var element=(elements&&elements.length>0)?elements[0]:null;if(element){market=element.getAttribute("xml:lang")||"";} if(this._tryUpdateMarket(market)){return;} if(element){market=element.getAttribute("lang")||"";} if(this._tryUpdateMarket(market)){return;} this._tryUpdateMarket("en-us");},_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),"opera":/opera/.test(ua),"webkit":/webkit/.test(ua)};},_detectSecureConnection:function(){this._secureConnection=document.location.protocol.toLowerCase()=="https:";},_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(serialized,settings){if(!settings){return serialized;} for(var setting in settings){var separator=(serialized.length==0)?"":"&";serialized+=separator+"cs:"+setting+"="+settings[setting];} return 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("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",isLoaded:!!(window.postMessage),dependencies:[]}},{"uniqueIdUrl":"http://{messenger.applicationHostName}/applications/uniqid2.aspx","flashUrl":"{messenger.resourcePath}/{messenger.version}/flashchannel.swf","flashDisabled":false,getUniqueIdUrl:function(){return Microsoft.Live.Core.Loader._getUrl(this.uniqueIdUrl);},getFlashUrl:function(){return Microsoft.Live.Core.Loader._getUrl(this.flashUrl);},getFlashDisabled:function(){return this.flashDisabled.toString()=="true";}});Microsoft.Live.Core.Loader._addManifest("messenger",{"scriptsharp_compat":{async:true,filename:"{messenger.baseScriptUrl}/sscompat.js",type:"script",browsers:function(b){return!b["ie"];},isLoaded:!!(window.ScriptLoader),dependencies:["microsoft_ajax_globalization"]},"scriptsharp":{async:true,filename:"{messenger.baseScriptUrl}/sscorlib.js",type:"script",isLoaded:!!(window.ScriptLoader),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}"+"&env={messenger.fileHostingServer}"+"&loaderPath={messenger.loaderPath}"+"&{customSettings}"+"{messenger.channelTypeQualifier}"},"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","core_localstorage"]},"messenger_extended":{dependencies:["messenger_core","messenger_services_core","messenger_services_chat"],type:"script"},"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){return b["ie"]&&!window.sessionStorage;},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){return!b["ie"]&&!window.localStorage&&!window.globalStorage&&!window.sessionStorage;},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"]&&window.localStorage;},dependencies:["messenger_common"]}});Microsoft.Live.Core.Loader._addManifest("messenger",{"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_templates"]},"messenger_ui":{async:true,filename:"{messenger.baseScriptUrl}/Microsoft.Live.UI.Messenger.Tags.js",type:"script",dependencies:["messenger_ui_model"]},"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_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_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:[]}});Microsoft.Live.Core.Loader._addManifest("messenger",null,{"version":"3.70.58051","versionOverride":"3.70.58051","localizedMarket":"other","resourcePath":["http://js.wlxrs.com/_D/F$Live.SiteContent.Messenger","http://js2.wlxrs.com/_D/F$Live.SiteContent.Messenger"],"imageResourcePath":["http://img.wlxrs.com/_D/F$Live.SiteContent.Messenger","http://img2.wlxrs.com/_D/F$Live.SiteContent.Messenger"],"styleResourcePath":"http://css.wlxrs.com/_D/F$Live.SiteContent.Messenger","audioResourcePath":"http://msc.wlxrs.com/_D/F$Live.SiteContent.Messenger","applicationPath":"http://shared.live.com/_D/F$Live.SiteContent.Messenger","applicationHostName":"settings.messenger.live.com","consentHostName":"consent.messenger.services.live.com","baseScriptUrl":"{messenger.resourcePath}/{messenger.version}","baseLocalizedScriptUrl":"{messenger.resourcePath}/{messenger.version}/{resourceMarket}","baseStyleSheetUrl":"{messenger.styleResourcePath}/{messenger.version}/resources/styles/{direction}","baseContentUrl":"{messenger.applicationPath}/{messenger.version}","channelTypeQualifier":"","serviceHostName":"messenger.services.live.com","localStorageDisabled":false,"testReportingEnabled":false,"fileHostingServer":"srs","signInControlState":"","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","gu","he","hi","ko","kn","ml","mr","ta","te","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.loaderPath=encodeURIComponent(this.getResourceUrl());settings.domain=encodeURIComponent(document.location.hostname.toLowerCase());if(!window.postMessage){settings.channelTypeQualifier="#&WLIFMi="+resources["messenger_iframe"].frameId;}},getResourceUrl:function(relativePath){if(!relativePath){relativePath="";} var settings=Microsoft.Live.Core.Loader._settings.messenger;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(!Microsoft.Live.Core.Loader._isArray(path)){url=path;} else{var hash=Microsoft.Live.Core.Loader._computeFastHash(relativePath);url=path[hash%path.length];} if(relativePath.charAt(0)=='/'){relativePath=relativePath.substring(1);} url=url+"/"+settings.version+"/"+relativePath;return url;}});
