document.location.hostname.toLowerCase()=="www.morningstarprofessional.fr"&&document.location.replace(document.location.href.replace(/www\.morningstarprofessional\.fr/i,"www.morningstarpro.fr"));document.location.hostname.toLowerCase()=="www.multiratings.com"&&document.location.replace(document.location.href.replace(/www\.multiratings\.com/i,"www.morningstarpro.fr"));document.location.hostname.toLowerCase()=="195.47.237.110"&&document.location.replace(document.location.href.replace(/195\.47\.237\.110/i,"www.morningstarpro.fr"));var MSMRJS={};MSMRJS.Document={};MSMRJS.Document.Url={};MSMRJS.Document.Url.Parameters={};MSMRJS.Document.Properties={};MSMRJS.Document.Placeholders={};MSMRJS.Document.Templates={};MSMRJS.Factory={};MSMRJS.Utilities={};MSMRJS.Utilities.DOM={};MSMRJS.Utilities.DOM.Functions={};MSMRJS.Utilities.String={};MSMRJS.Utilities.String.Functions={};MSMRJS.Prototypes={};MSMRJS.Settings={};MSMRJS.Settings.Locations={};MSMRJS.Settings.Escape={};MSMRJS.Settings.Escape.Handlers={};MSMRJS.Settings.Escape.Functions={};MSMRJS.Utilities.DOM.Functions.Events={};MSMRJS.SiteMap={Root:{Pages:{Home:{Name:{"en-GB":"Home","fr-FR":"Accueil"}}}}};Date.prototype.ToShortDateTimeStringInPageLanguage=function(){var a=this.ToShortDateStringInPageLanguage();a+=" ";a+=this.ToShortTimeStringInPageLanguage();return a};Date.prototype.ToLongDateTimeStringInPageLanguage=function(){var a=this.ToShortDateStringInPageLanguage();a+=" ";a+=this.ToLongTimeStringInPageLanguage();return a};Date.prototype.ToLongTimeStringInPageLanguage=function(){var c=this.getHours().toString(),a=this.getMinutes().toString(),b=this.getSeconds().toString();if(c.length<2)c="0"+c;if(a.length<2)a="0"+a;if(b.length<2)b="0"+b;return c+":"+a+":"+b};Date.prototype.ToShortTimeStringInPageLanguage=function(){var b=this.getHours().toString(),a=this.getMinutes().toString(),c=this.getSeconds().toString();if(b.length<2)b="0"+b;if(a.length<2)a="0"+a;return b+":"+a};Date.prototype.ToShortDateStringInPageLanguage=function(){return this.ToShortDateString(MSMRJS.Document.Url.Parameters.Language)};Date.prototype.ToShortDateString=function(e){var f=this.getFullYear().toString(),d=this.getMonth()+1,b=d.toString(),c=this.getDate().toString();if(b.length==1)b="0"+b;if(c.length==1)c="0"+c;var a="";switch(e){case"fr-FR":a="dd/MM/yyyy";break;case"en-US":case"en-GB":a="MM/dd/yyyy";break;default:a="yyyy/MM/dd"}a=a.replace(/yyyy/,f);a=a.replace(/MM/,b);a=a.replace(/dd/,c);return a};MSMRJS.SiteMap.PageRequiresAuthentication=function(b,c){var a=null;if(b==null)a=this.FindPage(MSMRJS.Document.Url.Parameters.Page,c);else if(b instanceof String)a=this.FindPage(pageIdentifier,c);else a=b;if(a!=null)if(a.Authentication)if(a.Authentication.RequireAuthentication==true)return true;return false};MSMRJS.SiteMap.PageRequiresAuthenticationAndUserIsNotLoggedIn=function(b,c){var a=MSMRJS.SiteMap.PageRequiresAuthentication(b,c);return!a?false:MSMRJS.Settings.Session.User.Identity.Email==""?true:false};MSMRJS.SiteMap.PageRequiresAuthenticationAndUserIsLoggedIn=function(b,c){var a=MSMRJS.SiteMap.PageRequiresAuthentication(b,c);return!a?false:MSMRJS.Settings.Session.User.Identity.Email!=""?true:false};MSMRJS.SiteMap.FindPage=function(d,a){if(a==null)a=this.Root;if(a.Pages)for(var c in a.Pages){var e=a.Pages[c];if(c==d)return e;else{var b=this.FindPage(d,e);if(b!=null)return b}}return null};MSMRJS.SiteMap.ResolveRelationships=function(d){var a=d;if(a==null)a=this.Root;var c=a;if(!c.Relationships)c.Relationships={};if(a.Pages)for(strPageIndetifier in a.Pages){var b=a.Pages[strPageIndetifier];if(!b.Relationships)b.Relationships={};MSMRJS.SiteMap.ResolveRelationships(b);b.Relationships.Parent=a;if(c!=null){c.Relationships.Next=b;b.Relationships.Previous=c}c=b}};MSMRJS.Utilities.DOM.Functions.Sessions={};MSMRJS.Utilities.DOM.Functions.Sessions.StoreSessionId=function(a){if(window.localStorage)window.localStorage.setItem("MSMRSessionId",a);else document.cookie="MSMRSessionId="+a};MSMRJS.Utilities.DOM.Functions.Sessions.RemoveSessionId=function(){if(window.localStorage)window.localStorage.removeItem("MSMRSessionId");else{var a=this.RetrieveSessionId();if(a!="")document.cookie="MSMRSessionId="+a+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}};MSMRJS.Utilities.DOM.Functions.Sessions.RetrieveSessionId=function(){var a="";if(window.localStorage){if(window.localStorage.MSMRSessionId)a=window.localStorage.getItem("MSMRSessionId")}else{var b=document.cookie.indexOf("MSMRSessionId=");if(b!=-1){a=document.cookie.substr(b+14,26);a=a.replace(/[^A-F0-9]/g,"");a=a}}if(a==null|a=="undefined")a="";return a};MSMRJS.Prototypes.Settings={};MSMRJS.Prototypes.Settings.Browser=function(){var a=new String(window.navigator.userAgent);this.MainVersion=-1;this.Flags={};this.Flags.IsIE=false;this.Flags.IsIE6=false;this.Flags.IsIE7=false;this.Flags.IsIE8=false;this.Flags.IsIE9=false;this.Flags.IsIE10=false;this.Flags.IsGecko=false;this.Flags.IsWebkit=false;this.Flags.IsAndroid=false;if(document.all)if(a.indexOf("MSIE")!=-1){this.Flags.IsIE=true;if(a.indexOf("MSIE 6.")!=-1){this.Flags.IsIE6=true;this.MainVersion=6}if(a.indexOf("MSIE 7.")!=-1){this.Flags.IsIE7=true;this.MainVersion=7}if(a.indexOf("MSIE 8.")!=-1){this.Flags.IsIE8=true;this.MainVersion=8}if(a.indexOf("MSIE 9.")!=-1){this.Flags.IsIE9=true;this.MainVersion=9}if(a.indexOf("MSIE 10.")!=-1){this.Flags.IsIE10=true;this.MainVersion=10}}if(a.indexOf("Gecko")!=-1){this.Flags.IsGecko=true;var b=a.indexOf("Firefox/");if(b!=-1){b=b+8;for(var e="",c=b;c<a.length;c++){var f=a.charAt(c),d=false;switch(f){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=true}if(d)e+=f;else break}this.MainVersion=new Number(e)}}if(a.indexOf("Android")!=-1)this.Flags.IsAndroid=true;if(a.indexOf("KHTML")!=-1){this.Flags.IsWebkit=true;this.Flags.IsGecko=false}};MSMRJS.Prototypes.Settings.Browser.prototype={Flags:{IsIE:false,IsIE6:false,IsIE7:false,IsIE8:false,IsIE9:false,IsIE10:false,IsGecko:false,IsWebKit:false,IsAndroid:false}};MSMRJS.Settings.Browser=new MSMRJS.Prototypes.Settings.Browser;if(MSMRJS.Settings.Browser.Flags.IsIE6){MSMRJS.Workarounds={};MSMRJS.Workarounds.InternetExplorer={};MSMRJS.Workarounds.InternetExplorer.IE6Specific={};MSMRJS.Workarounds.InternetExplorer.IE6Specific.XmlHttpRequests=[]}MSMRJS.Utilities.DOM.Functions.Events.AddEventListenerTo=function(a,c,b,d){if(a.addEventListener)a.addEventListener(c,b,d);else a.attachEvent&&a.attachEvent("on"+c,b)};MSMRJS.Utilities.DOM.Functions.Events.GetTarget=function(a){return a.target?a.target:a.srcElement?a.srcElement:null};MSMRJS.Utilities.DOM.Functions.RemoveChildren=function(a){if(a.childNodes)for(var b=a.childNodes.length-1;b>=0;b--)a.removeChild(a.childNodes[b])};MSMRJS.Utilities.DOM.Functions.FindElementByTagNameAndClassName=function(c,b){var a=this.FindElementsByTagNameAndClassName(c,b,1);return a.length==1?a[0]:null};MSMRJS.Utilities.DOM.Functions.FindElementsByTagNameAndClassName=function(b,a,c){return MSMRJS.Utilities.DOM.Functions.FindDescendantsByTagNameAndClassName(document,b,a,c)};MSMRJS.Utilities.DOM.Functions.FindDescendantsByTagNameAndClassName=function(h,f,i,c){if(c==null)c=-1;var g=new RegExp("\\b"+i+"\\b"),b=[],a=[];try{a=h.getElementsByTagName(f)}catch(j){a=document.getElementsByTagName(f)}if(a!=null)for(var e=0;e<a.length;e++){var d=a[e];if(d.className)if(g.test(d.className)){b[b.length]=d;if(c!=-1)if(b.length==c)break}}return b};MSMRJS.Factory.Ajax={};if(!MSMRJS.Prototypes.Ajax)MSMRJS.Prototypes.Ajax={};MSMRJS.Prototypes.Ajax.RequestInfo=function(){this.Url="";this.DOMHttpRequest=null};MSMRJS.Prototypes.Ajax.RequestInfo.prototype={Url:"",DOMHttpRequest:null,ResponseTextNotificationHandler:function(a){a.Response.Status==499;a.Response.Status==500;a.Response.Status==200},ApplicationContext:null,Send:function(b){if(this.DOMHttpRequest!=null)try{this.DOMHttpRequest.send(b)}catch(c){var a=new MSMRJS.Prototypes.Ajax.InvocationInfo;a.Request=this;a.Response.Status=499;a.Response.Error=c;this.ResponseTextNotificationHandler(a)}}};MSMRJS.Prototypes.Ajax.ResponseInfo=function(){this.ResponseText="";this.Error=null};MSMRJS.Prototypes.Ajax.ResponseInfo.prototype={ResponseText:"",Error:Error.prototype,Status:-999,ReadyState:-999};MSMRJS.Prototypes.Ajax.InvocationInfo=function(){this.Request=new MSMRJS.Prototypes.Ajax.RequestInfo;this.Response=new MSMRJS.Prototypes.Ajax.ResponseInfo};MSMRJS.Prototypes.Ajax.InvocationInfo.prototype={Request:MSMRJS.Prototypes.Ajax.RequestInfo.prototype,Response:MSMRJS.Prototypes.Ajax.ResponseInfo.prototype};MSMRJS.Factory.Ajax.CreateRequestInfo=function(g,e,c,d){var b=new MSMRJS.Prototypes.Ajax.RequestInfo;if(c!=null)b.ApplicationContext=c;if(d!=null)b.ResponseTextNotificationHandler=d;b.Url=e;var f=function(){var h=new String("undefined"),d=a.readyState,c=-999,f="",e=new MSMRJS.Prototypes.Ajax.InvocationInfo;try{if(d==null)d=a.readyState;var g=false;if(window.XDomainRequest)if(a instanceof XDomainRequest)g=true;if(d==null|new String(d)==h)d=-999;if(g){f=a.responseText;if(f!=null)c=200;else c=500}else if(d==4|g){c=a.status;if(c==null|new String(c)==h)c=-999;if(MSMRJS.Settings.Browser.Flags.IsIE6|MSMRJS.Settings.Browser.Flags.IsIE7|MSMRJS.Settings.Browser.Flags.IsIE8)c=a.status;switch(c){case 500:break;case 200:case 304:default:f=a.responseText}}}catch(i){e.Response.Error=i}e.Request=b;e.Response.Status=c;e.Response.ReadyState=d;e.Response.ResponseText=f;b.ResponseTextNotificationHandler(e)},a=MSMRJS.Factory.Ajax.CreateXmlHttpRequest(g,e,f);b.DOMHttpRequest=a;return b};MSMRJS.Factory.Ajax.CreateXmlHttpRequest=function(f,b,h){var a=null,d=true;if(!window.XDomainRequest)d=false;else if(window.navigator.userAgent.indexOf("MSIE")!=-1)if(b.indexOf("https://")==0|b.indexOf("http://")==0){var g=-1;g=b.indexOf(MSMRJS.Settings.Locations.Current.HostName);if(g==7|g==8)d=false}else d=false;if(d){a=new XDomainRequest;a.open(f,b);a.onload=h}else if(window.XMLHttpRequest){a=new window.XMLHttpRequest;a.open(f,b,true);a.onreadystatechange=h}else{var e="";try{a=new ActiveXObject("MSXML2.XMLHTTP.6.0")}catch(i){e+='Failed creating ActiveXObject("MSXML2.XMLHTTP.6.0")\n'+i.message+"\n"}if(a==null)try{a=new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(i){e+='Failed creating ActiveXObject("MSXML2.XMLHTTP.3.0")\n'+i.message+"\n"}if(a==null)try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(i){e+='Failed creating ActiveXObject("Microsoft.XMLHTTP")\n'+i.message+"\n"}if(a==null)alert(e);else try{a.open(f,b,true);a.onreadystatechange=h}catch(i){alert("Failed opening url \u201c"+b+"\u201d on request \n"+i.message)}}if(a!=null){var c={};c.Request={};c.Request.Method=f;c.Request.Uri=b;c.Request.IsXDomainRequest=d;if(MSMRJS.Settings.Browser.Flags.IsIE6)MSMRJS.Workarounds.InternetExplorer.IE6Specific.XmlHttpRequests[MSMRJS.Workarounds.InternetExplorer.IE6Specific.XmlHttpRequests.length]=c;else a.MSMRJS=c}else alert("XDomainRequest and XMLHttpRequest aren't supported.");return a};MSMRJS.Settings.Debugging={Scripts:{EchoLoadingStatus:true}};MSMRJS.Document.PeriodicalChecks={};MSMRJS.Document.PeriodicalChecks.Intervals={};MSMRJS.Document.PeriodicalChecks.Timeouts={};MSMRJS.Document.Properties.Head={};MSMRJS.Document.Templates.Body={};MSMRJS.Document.Templates={};MSMRJS.Document.Properties.Head={};MSMRJS.Document.Templates.Body={};MSMRJS.Document.Properties.Head.Styles={};MSMRJS.Document.Properties.Head.Scripts={};MSMRJS.Document.Properties.Head.Scripts.Notifications={};MSMRJS.Document.Placeholders.Head={};MSMRJS.Document.Placeholders.Head.HeadElement=document.getElementsByTagName("HEAD")[0];MSMRJS.Document.Placeholders.Head.TitleElement=document.getElementsByTagName("TITLE")[0];MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress={};MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable={};MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans={};MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableElement=null;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableBodyElement=null;MSMRJS.Document.Properties.Head.Scripts.Notifications.HideLoadingImage=function(){var a=document.getElementById("MSMRSTLoading");if(a!=null)if(a.className=="MSMRSTLoading")a.style.display="none"};MSMRJS.Document.Properties.Head.Scripts.Notifications.GetNotificationTable=function(){if(MSMRJS.Settings.Debugging.Scripts.EchoLoadingStatus)if(MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableElement==null){MSMRJS.Document.Properties.Head.Scripts.Notifications.HideLoadingImage();MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Update();var g=MSMRJS.Utilities.DOM.Functions.FindElementByTagNameAndClassName("DIV","MSMRSTPageContentsBody");if(g!=null){var b=document.createElement("table"),i=document.createElement("thead"),h=document.createElement("tbody"),a=document.createElement("tr"),d=document.createElement("td"),f=document.createElement("td");b.className="MSMRSTDebugNotificationTable";d.style.paddingLeft="5px";d.appendChild(document.createTextNode("script"));f.appendChild(document.createTextNode("status"));a.appendChild(d);a.appendChild(f);i.appendChild(a);b.appendChild(i);b.appendChild(h);g.appendChild(b);MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableElement=b;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableBodyElement=h;for(var e=0;e<a.childNodes.length;e++){var c=a.childNodes[e];c.style.fontWeight="bold";c.style.fontSize="7.5pt";c.style.fontFamily="Verdana";c.style.paddingBottom="5px"}}}return MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable};MSMRJS.Document.Properties.Head.Scripts.Notifications.CouldNotInstanciate=function(f){if(MSMRJS.Settings.Debugging.Scripts.EchoLoadingStatus){var d=document.createElement("tr"),c=document.createElement("td"),e=document.createElement("td"),a=document.createElement("span"),b=document.createElement("span");b.appendChild(document.createTextNode(f));b.style.fontFamily="monospace";c.appendChild(document.createTextNode("Error"));c.style.color="#FF0000";a.appendChild(document.createTextNode("Could not instanciate class "));a.appendChild(b);a.appendChild(document.createTextNode("."));e.appendChild(a);d.appendChild(c);d.appendChild(e);MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableBodyElement.appendChild(d)}};MSMRJS.Document.Properties.Head.Scripts.Notifications.FactoryMethodNotImplemented=function(p,o,g){if(MSMRJS.Settings.Debugging.Scripts.EchoLoadingStatus){var q=MSMRJS.Document.Properties.Head.Scripts.Notifications.GetNotificationTable();if(q.TableBodyElement!=null){var n=document.createElement("tr"),d=document.createElement("td"),k=document.createElement("td"),c=document.createElement("div"),a=document.createElement("div"),b=document.createElement("span"),f=document.createElement("span"),j=document.createElement("span"),h=document.createElement("span"),l=document.createElement("span"),m=document.createElement("span");a.style.whiteSpace="pre";a.style.fontFamily="monospace";f.style.color="#0000FF";j.style.color="#0000FF";h.style.color="#0000FF";l.style.color="#006666";m.style.fontWeight="bold";d.style.paddingLeft="5px";d.style.paddingTop="10px";k.style.paddingTop="10px";d.appendChild(document.createTextNode("Warning"));c.appendChild(document.createTextNode("Missing implementation : "));b.appendChild(document.createTextNode(p));b.appendChild(document.createTextNode("."));b.appendChild(document.createTextNode(o));a.appendChild(b);a.appendChild(document.createTextNode(" = "));f.appendChild(document.createTextNode("function"));a.appendChild(f);a.appendChild(document.createTextNode("() { \n\t"));j.appendChild(document.createTextNode("var "));a.appendChild(j);a.appendChild(document.createTextNode(' elReturn = document.createElement("'));m.appendChild(document.createTextNode("div"));a.appendChild(m);a.appendChild(document.createTextNode('");\n\t'));l.appendChild(document.createTextNode("// populate contents any way you like."));a.appendChild(l);a.appendChild(document.createTextNode("\n\t"));h.appendChild(document.createTextNode("return"));a.appendChild(h);a.appendChild(document.createTextNode(" elReturn;\n};"));c.appendChild(a);if(g!=null){var e=document.createElement("p");e.appendChild(document.createTextNode("Perhaps you are missing a reference to file: "));var i=document.createElement("a");i.href=g;i.appendChild(document.createTextNode(g));e.appendChild(i);e.appendChild(document.createTextNode("."));c.appendChild(e)}k.appendChild(c);n.appendChild(d);n.appendChild(k);MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableBodyElement.appendChild(n)}}};MSMRJS.Document.Properties.Head.Scripts.Notifications.Instanciated=function(){};MSMRJS.Document.Properties.Head.Scripts.Notifications.MustLoad=function(b){if(MSMRJS.Settings.Debugging.Scripts.EchoLoadingStatus){var l=MSMRJS.Document.Properties.Head.Scripts.Notifications.GetNotificationTable();if(l.TableBodyElement!=null){var j=document.createElement("tr"),c=document.createElement("td"),k=document.createElement("td"),i=document.createElement("span"),h=document.createElement("a"),d=b.SourceUri.split("/"),g=d[d.length-1];c.style.whiteSpace="nowrap";c.style.paddingRight="5px";g=g.replace(/\.js$/,"");var f=function(){var a=document.createElement("span");a.style.display="inline-block";a.style.width="130px";a.style.paddingLeft="5px";a.style.marginRight="5px";return a};if(b.ParentSequence.Name!=""){var a=f();a.appendChild(document.createTextNode(b.ParentSequence.Name));a.style.width="50px";switch(b.ParentSequence.Name){case"site":a.style.backgroundColor="#EAEAEA";break;case"page":a.style.backgroundColor="#D3D4D3"}c.appendChild(a)}if(d.length>1)if(d[d.length-2].indexOf("level-")==0){var e=d[d.length-2],m=e.substr(6,1),a=f();e=e.replace(/(level)-/g,"$1 ");e=e.replace(/([0-9])-/g,"$1 : ");a.appendChild(document.createTextNode(e));c.appendChild(a);switch(m){case"0":a.style.backgroundColor="#F2F2F2";break;case"1":a.style.backgroundColor="#EAEAEA";break;case"2":a.style.backgroundColor="#EAEAEA";break;case"3":a.style.backgroundColor="#DFDFDF";break;case"4":a.style.backgroundColor="#D3D4D3";break;case"5":a.style.backgroundColor="#D3D4D3"}}if(MSMRJS.Settings.Locations.Static.HostName!=""&b.SourceUri.indexOf(MSMRJS.Settings.Locations.Static.HostName)==-1|MSMRJS.Settings.Locations.Api.HostName!=""&b.SourceUri.indexOf(MSMRJS.Settings.Locations.Api.HostName)!=-1){var a=f();a.appendChild(document.createTextNode("api"));c.appendChild(a);a.style.backgroundColor="#EFF3FF"}else if(b.SourceUri.indexOf("frw.morningstar.com")!=-1){var a=f();a.appendChild(document.createTextNode("frw"));c.appendChild(a);a.style.backgroundColor="#FFF3E1"}h.href=b.SourceUri;h.appendChild(document.createTextNode(g));c.appendChild(h);i.appendChild(document.createTextNode("required"));k.appendChild(i);j.appendChild(c);j.appendChild(k);MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.TableBodyElement.appendChild(j);MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[b.SourceUri]=i}}};MSMRJS.Document.Properties.Head.Scripts.Notifications.LoadStart=function(a){if(MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[a.SourceUri]){var b=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[a.SourceUri];MSMRJS.Utilities.DOM.Functions.RemoveChildren(b);b.appendChild(document.createTextNode("loading..."))}};MSMRJS.Document.Properties.Head.Scripts.Notifications.Message=function(a,b){if(MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[a.SourceUri]){var c=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[a.SourceUri];c.appendChild(document.createTextNode(b))}};MSMRJS.Document.Properties.Head.Scripts.Notifications.Error=function(d){var a=null,f=false;if(MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[d.SourceUri])a=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[d.SourceUri];else{a=document.createElement("span");f=true}MSMRJS.Utilities.DOM.Functions.RemoveChildren(a);a.style.color="#FF0000";a.appendChild(document.createTextNode("error"));if(f==true){var c=MSMRJS.Utilities.DOM.Functions.FindElementByTagNameAndClassName("DIV","MSMRSTPageContentsBody");if(c!=null){var b=document.createElement("a"),g=d.SourceUri;a.appendChild(document.createTextNode(" loading script "));b.href=g;b.appendChild(document.createTextNode(g));a.appendChild(b);c.appendChild(document.createElement("br"));c.appendChild(a);for(var h=[a,b],e=0;e<h.length;e++){var i=h[e];i.style.fontFamily="verdana";i.style.fontSize="7.5pt"}}}};MSMRJS.Document.Properties.Head.Scripts.Notifications.Loaded=function(a){if(MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[a.SourceUri]){var b=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationTable.ScriptStatusSpans[a.SourceUri];MSMRJS.Utilities.DOM.Functions.RemoveChildren(b);b.appendChild(document.createTextNode("OK"))}MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfLoadedScripts++;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Update()};MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Container=null;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.GetContainer=function(){var a=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Container;if(a==null){a=document.createElement("div");MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Container=a;var e=document.createElement("div"),d=document.createElement("div"),c=document.createElement("span"),b=document.createElement("span");a.MSMRJS={};a.MSMRJS.DOMElements={};a.MSMRJS.DOMElements.Percentage=e;a.MSMRJS.DOMElements.Done=c;a.MSMRJS.DOMElements.Remaining=b;a.MSMRJS.DOMElements.Done.style.width="0%";a.MSMRJS.DOMElements.Remaining.style.width="100%";d.appendChild(c);d.appendChild(b);a.appendChild(e);a.appendChild(d);var f=MSMRJS.Utilities.DOM.Functions.FindElementByTagNameAndClassName("DIV","MSMRSTPageContentsBody");f!=null&&f.appendChild(a);a.className="MSMRSTScriptLoadProgress";e.className="MSMRSTScriptLoadProgressPercentage";d.className="MSMRSTScriptLoadProgressBar";c.className="MSMRSTScriptLoadProgressBarDone";b.className="MSMRSTScriptLoadProgressBarRemaining";c.appendChild(document.createElement("br"));b.appendChild(document.createElement("br"))}return a};MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Update=function(){var b=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.GetPercentages(),a=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.GetContainer();MSMRJS.Utilities.DOM.Functions.RemoveChildren(a.MSMRJS.DOMElements.Percentage);a.MSMRJS.DOMElements.Percentage.appendChild(document.createTextNode(b.Percent.Done.toString()+"%"));a.MSMRJS.DOMElements.Percentage.style.marginRight=b.Measurements.Remaining;a.MSMRJS.DOMElements.Remaining.style.width=b.Measurements.Remaining;a.MSMRJS.DOMElements.Done.style.width=b.Measurements.Done};MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters={};MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.EstimatedNumberOfPageDependantScripts=20;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts=0;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfLoadedScripts=0;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.GetPercentages=function(){var a={Raw:{Done:0,Remaining:0},Percent:{Done:0,Remaining:0},Measurements:{Done:"0%",Remaining:"100%"}};if(MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts!=0)a.Raw.Done=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfLoadedScripts/MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts;a.Raw.Remaining=1-a.Raw.Done;a.Percent.Done=a.Raw.Done*100;a.Percent.Remaining=a.Raw.Remaining*100;a.Measurements.Done=a.Percent.Done.toString()+"%";a.Measurements.Remaining=a.Percent.Remaining.toString()+"%";a.Percent.Done=Math.floor(a.Percent.Done);a.Percent.Remaining=Math.floor(a.Percent.Remaining);return a};MSMRJS.Prototypes.Styling={};MSMRJS.Prototypes.Styling.StyleLoadSequence=function(){this.Items=[]};MSMRJS.Prototypes.Styling.StyleLoadSequence.prototype={Items:[],Add:function(a){this.Items[this.Items.length]=new MSMRJS.Prototypes.Styling.Stylesheet(a)},Load:function(){for(var a=0;a<this.Items.length;a++)this.Items[a].Load()}};MSMRJS.Prototypes.Styling.Stylesheet=function(a){this.SourceUri=a};MSMRJS.Prototypes.Styling.Stylesheet.prototype={IsLoaded:false,SourceUri:"",Element:null,Load:function(){if(!this.IsLoaded){var a=document.createElement("link");this.Element=a;a.MSMRJS={};a.MSMRJS.Stylesheet=this;a.rel="stylesheet";a.type="text/css";a.href=MSMRJS.Settings.Escape.Functions.ReplaceUrlVariables(this.SourceUri);MSMRJS.Document.Placeholders.Head.HeadElement.appendChild(a);this.IsLoaded=true}}};MSMRJS.Prototypes.Scripting={};MSMRJS.Prototypes.Scripting.ScriptLoadSequence=function(a){this.Items=[];this.Name=a;this.NextSequence=null};MSMRJS.Prototypes.Scripting.ScriptLoadSequence.prototype={Items:[],Name:"",NextSequence:MSMRJS.Prototypes.Scripting.ScriptLoadSequence.prototype,SimultaneousLoading:false,AddPackagedApplicationBase:function(){MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts+MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.EstimatedNumberOfPageDependantScripts;var d=this.NextSequence,a=new MSMRJS.Prototypes.Scripting.ScriptLoadSequence("site"),b=new MSMRJS.Prototypes.Scripting.ScriptLoadSequence("site"),c=new MSMRJS.Prototypes.Scripting.ScriptLoadSequence("site");if(MSMRJS.Settings.Browser.Flags.IsGecko|MSMRJS.Settings.Browser.Flags.IsIE){this.SimultaneousLoading=true;a.SimultaneousLoading=true;b.SimultaneousLoading=true;c.SimultaneousLoading=true}this.AddScript("${StaticRoot}${Minified}js/level-0-base/base.js");this.AddScript("${StaticRoot}${Minified}js/level-3-site/sitemap.js");this.AddScript("${StaticRoot}${Minified}js/level-3-site/pagedependencies.js");a.AddScript("${StaticRoot}${Minified}js/level-1-controls/forms.js");a.AddScript("${StaticRoot}${Minified}js/level-1-controls/display.js");a.AddScript("${StaticRoot}${Minified}js/level-1-controls/navigation.js");a.AddScript("${StaticRoot}${Minified}js/level-1-controls/corporatelinks.js");a.AddScript("${StaticRoot}${Minified}js/level-1-controls/ads.js");a.OnAfterLoad=function(){MSMRJS.Document.PopulateNavigationAfterLoadingScriptsAsync();MSMRJS.Document.PopulateFooterAsync()};b.AddScript("${StaticRoot}${Minified}js/level-1-controls/user.js");b.AddScript("${StaticRoot}${Minified}js/level-2-combinations/ads.settings.js");b.OnAfterLoad=function(){MSMRJS.Document.PopulateAdsAsync()};c.AddScript("${ApiRoot}users/${Page}${Language}${SessionId}notificationlist.js");c.AddScript("${ApiRoot}users/${ScreenDimensions}${SessionId}session.js");c.OnAfterLoad=function(){};this.NextSequence=a;a.NextSequence=b;b.NextSequence=c;if(d!=null)c.NextSequence=d},AddArrayOfArrays:function(c,f){var g=[],b=[];b[0]=this;for(var a=1;a<c.length;a++)b[a]=new MSMRJS.Prototypes.Scripting.ScriptLoadSequence("arbitrary_"+a.toString());for(var a=0;a<c.length;a++){var d=b[a];if(MSMRJS.Settings.Browser.Flags.IsGecko|MSMRJS.Settings.Browser.Flags.IsIE)d.SimultaneousLoading=true;for(var e=0;e<c[a].length;e++)d.AddScript(c[a][e]);if(a>0)b[a-1].NextSequence=d}if(f!=null)b[b.length-1].OnLoad=f},AddPageSpecifics:function(){var f=MSMRJS.Document.Url.Parameters.Page,g=[],b=[];b[0]=this;if(MSMRJS.SiteMap.PageRequiresAuthenticationAndUserIsNotLoggedIn()==false|MSMRJS.Settings.Browser.Flags.IsWebkit&MSMRJS.Settings.Locations.Current.IsIWT())if(this[f]){var c=this[f];if(c!=null&new String(c)!=new String("undefined")){for(var a=1;a<c.length;a++)b[a]=new MSMRJS.Prototypes.Scripting.ScriptLoadSequence("page");for(var a=0;a<c.length;a++){var d=b[a];if(MSMRJS.Settings.Browser.Flags.IsGecko|MSMRJS.Settings.Browser.Flags.IsIE)d.SimultaneousLoading=true;for(var e=0;e<c[a].length;e++)d.AddScript(c[a][e]);if(a>0)b[a-1].NextSequence=d}}}MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts=MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts-MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.EstimatedNumberOfPageDependantScripts;b[b.length-1].OnLoad=MSMRJS.Document.PopulateContentsAfterLoadingScripts},Add:function(b){for(var a in b)this[a]=b[a]},AddScript:function(b){var a=new MSMRJS.Prototypes.Scripting.Script(b);if(this.Items.length!=0)this.Items[this.Items.length-1].NextScriptToLoad=a;a.ParentSequence=this;this.Items[this.Items.length]=a;MSMRJS.Document.Properties.Head.Scripts.Notifications.NotificationProgress.Counters.NumberOfRequiredScripts++},AppendToHead:function(){if(self!=top){var d="Frame and iFrame content integration is forbidden.",b=MSMRJS.Utilities.DOM.Functions.FindElementByTagNameAndClassName("DIV","MSMRSTPageContentsBody");if(b!=null){MSMRJS.Utilities.DOM.Functions.RemoveChildren(b);b.appendChild(document.createTextNode(d));b.style.color="red";b.style.fontFamily="Verdana";b.style.fontSize="8pt"}else alert(d);return}this.OnBeforeAppendToHead();if(this.Items.length==0)this.OnLoad();else{for(var a=0;a<this.Items.length;a++){var c=this.Items[a];c.SourceUri=MSMRJS.Settings.Escape.Functions.ReplaceUrlVariables(c.SourceUri);MSMRJS.Document.Properties.Head.Scripts.Notifications.MustLoad(c)}var e=true,h=false,f=false;if(document.all){h=true;e=false}if(window.navigator.userAgent.indexOf("AppleWebKit")!=-1){f=true;e=false}if(f|MSMRJS.Settings.Browser.Flags.IsIE6){this.OnAllSourcesDownloaded=function(){MSMRJS.Document.Properties.Head.Scripts.CurrentDowloadSequence=this;for(var f="\n\nMSMRJS.Document.Properties.Head.Scripts.CurrentDowloadSequence.OnLoad();",a="",c=0;c<this.Items.length;c++){var h=this.Items[c];a+="\n";a+=h.SourceCode}a+="\n";a+=f;var b=document.createElement("script");b.type="text/javascript";try{b.appendChild(document.createTextNode(a))}catch(j){var d=MSMRJS.Utilities.DOM.Functions.FindElementByTagNameAndClassName("DIV","MSMRSTInternetExplorerScripts");if(d!=null){var g='<input type="hidden" /><script defer="defer" type="text/javascript">\n'+a+"\n<\/script>",e=document.createElement("div");d.appendChild(e);try{e.innerHTML=g}catch(i){alert("IE workaround for loading concatenated script had failed. Error message is \u201c"+j.Message+"\u201d")}}else alert('you\'d need a <div class="MSMRSTInternetExplorerScripts" /> in order to allow a workaround for loading scripts on legacy IE platforms')}MSMRJS.Document.Placeholders.Head.HeadElement.appendChild(b)};for(var a=0;a<1;a++){var g=this.Items[a];g.DownloadSource()}}else if(this.SimultaneousLoading)for(var a=0;a<this.Items.length;a++)this.Items[a].AppendToHead();else for(var a=0;a<this.Items.length&a<1;a++)this.Items[a].AppendToHead()}},OnBeforeAppendToHead:function(){},OnLoad:function(){this.NextSequence!=null&&this.NextSequence.AppendToHead();this.OnAfterLoad()},OnAfterLoad:function(){},NotifySourceDownloadInfo:function(a,b){MSMRJS.Document.Properties.Head.Scripts.Notifications.Message(a,b)},NotifySourceDownloadError:function(a){MSMRJS.Document.Properties.Head.Scripts.Notifications.Error(a)},NotifyScriptWithSourceAttributeHasBeenLoaded:function(a){MSMRJS.Document.Properties.Head.Scripts.Notifications.Loaded(a);if(a.ParentSequence.SimultaneousLoading){for(var c=true,b=0;b<a.ParentSequence.Items.length;b++)if(a.ParentSequence.Items[b].IsLoaded==false){c=false;break}c&&a.ParentSequence.OnLoad()}else if(a.NextScriptToLoad!=null)a.NextScriptToLoad.AppendToHead();else a.ParentSequence.OnLoad()},NotifySourceDownloaded:function(c){MSMRJS.Document.Properties.Head.Scripts.Notifications.Loaded(c);for(var b=true,a=0;a<this.Items.length;a++)if(this.Items[a].SourceCode==null){b=false;break}b&&this.OnAllSourcesDownloaded()},OnAllSourcesDownloaded:function(){alert("all sources downloaded")}};MSMRJS.Prototypes.Scripting.Script=function(a){this.SourceUri=a;this.IsLoaded=false;this.ParentSequence=null;MSMRJS.Document.Properties.Head.Scripts.Notifications.Instanciated(this)};MSMRJS.Prototypes.Scripting.Script.prototype={ParentSequence:MSMRJS.Prototypes.Scripting.ScriptLoadSequence.prototype,SourceUri:"",ScriptElement:null,IsLoaded:false,NextScriptToLoad:null,SourceCode:null,DownloadInitiated:false,DownloadSource:function(){if(this.DownloadInitiated==true){MSMRJS.Document.Properties.Head.Scripts.Notifications.Message(this," blocked re-download attempt");return}this.DownloadInitiated=true;MSMRJS.Document.Properties.Head.Scripts.Notifications.LoadStart(this);var c=function(a){if(a.Response.Status==499){a.Request.ApplicationContext.Script.ParentSequence.NotifySourceDownloadError(a.Request.ApplicationContext.Script);if(a.Response.Error!=null)MSMRJS.Document.Properties.Head.Scripts.Notifications.Message(a.Request.ApplicationContext.Script,a.Response.Error.message);else MSMRJS.Document.Properties.Head.Scripts.Notifications.Message(a.Request.ApplicationContext.Script,"client error")}if(a.Response.Status==500){a.Request.ApplicationContext.Script.ParentSequence.NotifySourceDownloadError(a.Request.ApplicationContext.Script);MSMRJS.Document.Properties.Head.Scripts.Notifications.Message(a.Request.ApplicationContext.Script,": 500 internal server error")}if(a.Response.Status!=499&a.Response.Status!=500&a.Response.Status!=200&a.Response.Status!=304)MSMRJS.Settings.Browser.Flags.IsAndroid&&MSMRJS.Document.Properties.Head.Scripts.Notifications.Message(a.Request.ApplicationContext.Script,", response status is "+a.Response.Status.toString()+" while response text length is "+a.Response.ResponseText.length.toString());if(a.Response.Status==200|a.Response.Status==304){a.Request.ApplicationContext.Script.SourceCode=a.Response.ResponseText;a.Request.ApplicationContext.Script.IsLoaded=true;a.Request.ApplicationContext.Script.ParentSequence.NotifySourceDownloaded(a.Request.ApplicationContext.Script);a.Request.ApplicationContext.Script.NextScriptToLoad!=null&&a.Request.ApplicationContext.Script.NextScriptToLoad.DownloadSource()}},a={};a.Script=this;var b=MSMRJS.Factory.Ajax.CreateRequestInfo("GET",this.SourceUri,a,c);try{b.DOMHttpRequest.overrideMimeType("text/plain")}catch(d){}b.Send()},AppendToHead:function(){if(this.ScriptElement==null){MSMRJS.Document.Properties.Head.Scripts.Notifications.LoadStart(this);this.ScriptElement=document.createElement("script");this.ScriptElement.MSMRJS={};this.ScriptElement.MSMRJS.Script=this;if(document.all){MSMRJS.Utilities.DOM.Functions.Events.AddEventListenerTo(this.ScriptElement,"readystatechange",this.OnLoad,false);MSMRJS.Utilities.DOM.Functions.Events.AddEventListenerTo(this.ScriptElement,"error",this.OnLoadError,false)}else{MSMRJS.Utilities.DOM.Functions.Events.AddEventListenerTo(this.ScriptElement,"error",this.OnLoadError,false);MSMRJS.Utilities.DOM.Functions.Events.AddEventListenerTo(this.ScriptElement,"load",this.OnLoad,false)}this.ScriptElement.type="text/javascript";this.ScriptElement.src=this.SourceUri;MSMRJS.Document.Placeholders.Head.HeadElement.appendChild(this.ScriptElement)}},OnLoadError:function(b){var a=MSMRJS.Utilities.DOM.Functions.Events.GetTarget(b);a.MSMRJS.Script.ParentSequence.NotifySourceDownloadError(a.MSMRJS.Script)},OnLoad:function(c){var b=true,a=MSMRJS.Utilities.DOM.Functions.Events.GetTarget(c);if(a.MSMRJS.Script.IsLoaded==true)b=false;else if(document.all){b=false;if("complete"===a.readyState|"loaded"===a.readyState){b=true;a.MSMRJS.Script.IsLoaded=true}}else a.MSMRJS.Script.IsLoaded=true;b&&a.MSMRJS.Script.ParentSequence.NotifyScriptWithSourceAttributeHasBeenLoaded(a.MSMRJS.Script)}};if(!MSMRJS.Prototypes.Locations)MSMRJS.Prototypes.Locations={};if(!MSMRJS.Factory.Locations)MSMRJS.Factory.Locations={};MSMRJS.Prototypes.Locations.Location=function(){};MSMRJS.Prototypes.Locations.Location.prototype={HostName:"",Minified:"",PathName:"",PageName:"",Port:"",Protocol:"http",HandleEscape:function(){var a="";if(this.HostName!=""){if(this.Protocol!="")a+=this.Protocol+"://";a+=this.HostName}if(this.Port!="")a+=":"+this.Port;if(this.PathName!="")a+="/"+this.PathName;if(a!="")a+="/";return a},IsIWT:function(){var a=false;if(this.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Dev.Workstation&this.Port=="83")a=true;if(this.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.QA.QA|this.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.RC.QA|this.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.RC.Prod|this.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.QA|this.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.Prod)a=true;return a}};MSMRJS.Settings.Locations.ServerNames={MSFRCustom:{Prod:{Dynamic:"frw.morningstar.com"}},MSPro:{Dev:{Workstation:"10.13.18.20"},QA:{Static:"eumrwebdev2.morningstar.com",Dynamic:"eumrwebdev1.morningstar.com"},Prod:{Static:"eumrwebprod2.morningstar.com",Dynamic:"eumrwebprod1.morningstar.com"},Beta:{Dynamic:"beta.morningstarprofessional.fr"},Live:{Static:"static.morningstarprofessional.fr",Dynamic:"www.morningstarprofessional.fr"},LiveAlternate:{Static:"static.morningstarpro.fr",Dynamic:"www.morningstarpro.fr"},LB:{Static:"10.49.50.109",Dynamic:"10.49.50.110"}},IWT:{Dev:{Workstation:"10.13.18.20"},QA:{QA:"eultqaext.morningstar.com"},RC:{QA:"eultrcqa.morningstar.com",Prod:"eultrc.morningstar.com"},Live:{QA:"ltqa.morningstar.com",Prod:"tools.morningstarpro.fr",Original:"lt.morningstar.com"}}};MSMRJS.Factory.Locations.Documentation={};MSMRJS.Factory.Locations.Documentation.Dev=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Dev.Workstation;a.Port="85";a.PathName="multiratings/docs";a.PageName="index.html";return a};MSMRJS.Factory.Locations.Documentation.QA=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Dynamic;a.Port="85";a.PathName="docs";a.PageName="index.html";return a};MSMRJS.Factory.Locations.Base={};MSMRJS.Factory.Locations.Base.Dev=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Dev.Workstation;a.Port="86";a.PathName="multiratings/docs/prototype";a.PageName="index.html";return a};MSMRJS.Factory.Locations.Base.QA=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Dynamic;a.PathName="multiratings/app";a.PageName="index.html";a.Port="86";return a};MSMRJS.Factory.Locations.Base.Prod=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Dynamic;a.PageName="index.html";return a};MSMRJS.Factory.Locations.Base.Beta=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Beta.Dynamic;a.PageName="index.html";return a};MSMRJS.Factory.Locations.Base.Live=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Dynamic;a.PageName="index.html";return a};MSMRJS.Factory.Locations.Base.LiveAlternate=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Dynamic;a.PageName="index.html";return a};MSMRJS.Factory.Locations.Base.LB=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Dynamic;a.PageName="index.html";return a};MSMRJS.Factory.Locations.Static={};MSMRJS.Factory.Locations.Static.Dev=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Dev.Workstation;a.PathName="multiratings/docs/prototype";a.Port="86";return a};MSMRJS.Factory.Locations.Static.QA=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Static;a.PathName="docs/prototype";a.Port="85";return a};MSMRJS.Factory.Locations.Static.Prod=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Static;a.Minified="min";return a};MSMRJS.Factory.Locations.Static.Live=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Static;a.Minified="min";return a};MSMRJS.Factory.Locations.Static.LiveAlternate=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Static;a.Minified="min";return a};MSMRJS.Factory.Locations.Static.LB=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Static;a.Minified="min";return a};MSMRJS.Factory.Locations.Api={};MSMRJS.Factory.Locations.Api.Dev=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Dev.Workstation;a.PathName="multiratings/app";a.Port="86";return a};MSMRJS.Factory.Locations.Api.QA=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Dynamic;a.PathName="multiratings/app";a.Port="86";return a};MSMRJS.Factory.Locations.Api.Prod=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Dynamic;a.PathName="includes";return a};MSMRJS.Factory.Locations.Api.Beta=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Beta.Dynamic;a.PathName="includes";return a};MSMRJS.Factory.Locations.Api.Live=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Dynamic;a.PathName="includes";return a};MSMRJS.Factory.Locations.Api.LiveAlternate=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Dynamic;a.PathName="includes";return a};MSMRJS.Factory.Locations.Api.LB=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Dynamic;a.PathName="includes";return a};MSMRJS.Factory.Locations.Images={};MSMRJS.Factory.Locations.Images.Dev=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Dev.Workstation;a.PathName="multiratings/docs/prototype/files";a.Port="86";return a};MSMRJS.Factory.Locations.Images.QA=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Static;a.PathName="docs/prototype/files";a.Port="85";return a};MSMRJS.Factory.Locations.Images.Prod=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Static;a.PathName="files";return a};MSMRJS.Factory.Locations.Images.Live=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Static;a.PathName="files";return a};MSMRJS.Factory.Locations.Images.LiveAlternate=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Static;a.PathName="files";return a};MSMRJS.Factory.Locations.Images.LB=function(){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Static;a.PathName="files";return a};MSMRJS.Factory.Locations.IWT={};MSMRJS.Factory.Locations.IWT.Default=function(b){var a=new MSMRJS.Prototypes.Locations.Location;a.HostName=b;a.PathName="i6wq0tnd7a";a.PageName="";return a};MSMRJS.Factory.Locations.IWT.LiveConfigOnLiveServer=function(){return MSMRJS.Factory.Locations.IWT.Default(MSMRJS.Settings.Locations.ServerNames.IWT.Live.Prod)};MSMRJS.Factory.Locations.IWT.QAConfigOnLiveServer=function(){return MSMRJS.Factory.Locations.IWT.Default(MSMRJS.Settings.Locations.ServerNames.IWT.Live.QA)};MSMRJS.Factory.Locations.IWT.LiveConfigOnReleaseCandidateServer=function(){return MSMRJS.Factory.Locations.IWT.Default(MSMRJS.Settings.Locations.ServerNames.IWT.RC.Prod)};MSMRJS.Factory.Locations.IWT.QAConfigOnReleaseCandidateServer=function(){return MSMRJS.Factory.Locations.IWT.Default(MSMRJS.Settings.Locations.ServerNames.IWT.RC.QA)};MSMRJS.Factory.Locations.IWT.QAConfigOnQAServer=function(){return MSMRJS.Factory.Locations.IWT.Default(MSMRJS.Settings.Locations.ServerNames.IWT.QA.QA)};MSMRJS.Factory.Locations.IWT.QAConfigOnDevServer=function(){var a=MSMRJS.Factory.Locations.IWT.Default(MSMRJS.Settings.Locations.ServerNames.IWT.Dev.Workstation);a.Port="83";return a};MSMRJS.Settings.Locations.Base=new MSMRJS.Prototypes.Locations.Location;MSMRJS.Settings.Locations.Static=new MSMRJS.Prototypes.Locations.Location;MSMRJS.Settings.Locations.Api=new MSMRJS.Prototypes.Locations.Location;MSMRJS.Settings.Locations.IWT=new MSMRJS.Prototypes.Locations.Location;MSMRJS.Settings.Locations.Images=new MSMRJS.Prototypes.Locations.Location;MSMRJS.Settings.Locations.Current=new MSMRJS.Prototypes.Locations.Location;MSMRJS.Settings.Locations.Current.Protocol=document.location.protocol;MSMRJS.Settings.Locations.Current.Protocol=MSMRJS.Settings.Locations.Current.Protocol.substr(0,MSMRJS.Settings.Locations.Current.Protocol.length-1);MSMRJS.Settings.Locations.Current.HostName=document.location.hostname;MSMRJS.Settings.Locations.Current.Port=document.location.port;MSMRJS.Settings.Locations.Current.PathName=document.location.pathname;if(MSMRJS.Settings.Locations.Current.PathName.length>0){if(MSMRJS.Settings.Locations.Current.PathName.substr(0,1)=="/")MSMRJS.Settings.Locations.Current.PathName=MSMRJS.Settings.Locations.Current.PathName.substr(1,MSMRJS.Settings.Locations.Current.PathName.length-1);MSMRJS.Settings.Locations.Current._pathNameItemIsPage=false;MSMRJS.Settings.Locations.Current._pathNameItemSelected=null;MSMRJS.Settings.Locations.Current._pathNameItems=MSMRJS.Settings.Locations.Current.PathName.split("/");MSMRJS.Settings.Locations.Current._pathNameItemIndex=0;for(MSMRJS.Settings.Locations.Current._pathNameItemIndex=0;MSMRJS.Settings.Locations.Current._pathNameItemIndex<MSMRJS.Settings.Locations.Current._pathNameItems.length;MSMRJS.Settings.Locations.Current._pathNameItemIndex++){MSMRJS.Settings.Locations.Current._pathNameItemSelected=MSMRJS.Settings.Locations.Current._pathNameItems[MSMRJS.Settings.Locations.Current._pathNameItemIndex];if(MSMRJS.Settings.Locations.Current._pathNameItemIndex==MSMRJS.Settings.Locations.Current._pathNameItems.length-1){MSMRJS.Settings.Locations.Current._pathNameItemIsPage=false;if(MSMRJS.Settings.Locations.Current._pathNameItemSelected.length>5){switch(MSMRJS.Settings.Locations.Current._pathNameItemSelected.substr(MSMRJS.Settings.Locations.Current._pathNameItemSelected.length-5,5)){case".html":case".aspx":MSMRJS.Settings.Locations.Current._pathNameItemIsPage=true}if(MSMRJS.Settings.Locations.Current._pathNameItemIsPage==true){MSMRJS.Settings.Locations.Current.PathName=MSMRJS.Settings.Locations.Current.PathName.substr(0,MSMRJS.Settings.Locations.Current.PathName.length-MSMRJS.Settings.Locations.Current._pathNameItemSelected.length);MSMRJS.Settings.Locations.Current.PageName=MSMRJS.Settings.Locations.Current._pathNameItemSelected}}}}if(MSMRJS.Settings.Locations.Current.PathName.substr(MSMRJS.Settings.Locations.Current.PathName.length-1,1)=="/")MSMRJS.Settings.Locations.Current.PathName=MSMRJS.Settings.Locations.Current.PathName.substr(0,MSMRJS.Settings.Locations.Current.PathName.length-1);try{delete MSMRJS.Settings.Locations.Current._pathNameItemSelected}catch(objError){}try{delete MSMRJS.Settings.Locations.Current._pathNameItems}catch(objError){}try{delete MSMRJS.Settings.Locations.Current._pathNameItemIndex}catch(objError){}}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Dev.Workstation){MSMRJS.Settings.Locations.Base=MSMRJS.Factory.Locations.Base.Dev();MSMRJS.Settings.Locations.Static=MSMRJS.Factory.Locations.Static.Dev();MSMRJS.Settings.Locations.Api=MSMRJS.Factory.Locations.Api.Dev();MSMRJS.Settings.Locations.Images=MSMRJS.Factory.Locations.Images.Dev();MSMRJS.Settings.Locations.IWT=MSMRJS.Factory.Locations.IWT.QAConfigOnDevServer()}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.QA.QA|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.RC.QA){MSMRJS.Settings.Locations.Base=MSMRJS.Factory.Locations.Base.QA();MSMRJS.Settings.Locations.Static=MSMRJS.Factory.Locations.Static.QA();MSMRJS.Settings.Locations.Api=MSMRJS.Factory.Locations.Api.QA();MSMRJS.Settings.Locations.Images=MSMRJS.Factory.Locations.Images.QA()}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Beta.Dynamic){MSMRJS.Settings.Locations.Base=MSMRJS.Factory.Locations.Base.Beta();MSMRJS.Settings.Locations.Static=MSMRJS.Factory.Locations.Static.Live();MSMRJS.Settings.Locations.Api=MSMRJS.Factory.Locations.Api.Beta();MSMRJS.Settings.Locations.Images=MSMRJS.Factory.Locations.Images.Live()}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Dynamic){MSMRJS.Settings.Locations.Base=MSMRJS.Factory.Locations.Base.Live();MSMRJS.Settings.Locations.Static=MSMRJS.Factory.Locations.Static.Live();MSMRJS.Settings.Locations.Api=MSMRJS.Factory.Locations.Api.Live();MSMRJS.Settings.Locations.Images=MSMRJS.Factory.Locations.Images.Live()}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.RC.Prod|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.Prod|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.Original|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.QA){MSMRJS.Settings.Locations.Base=MSMRJS.Factory.Locations.Base.LiveAlternate();MSMRJS.Settings.Locations.Static=MSMRJS.Factory.Locations.Static.LiveAlternate();MSMRJS.Settings.Locations.Api=MSMRJS.Factory.Locations.Api.LiveAlternate();MSMRJS.Settings.Locations.Images=MSMRJS.Factory.Locations.Images.LiveAlternate()}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Dynamic){MSMRJS.Settings.Locations.Base=MSMRJS.Factory.Locations.Base.Prod();MSMRJS.Settings.Locations.Static=MSMRJS.Factory.Locations.Static.Prod();MSMRJS.Settings.Locations.Api=MSMRJS.Factory.Locations.Api.Prod();MSMRJS.Settings.Locations.Images=MSMRJS.Factory.Locations.Images.Prod()}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Dynamic){MSMRJS.Settings.Locations.Base=MSMRJS.Factory.Locations.Base.LB();MSMRJS.Settings.Locations.Static=MSMRJS.Factory.Locations.Static.LB();MSMRJS.Settings.Locations.Api=MSMRJS.Factory.Locations.Api.LB();MSMRJS.Settings.Locations.Images=MSMRJS.Factory.Locations.Images.LB()}if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.QA.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.QA.QA)MSMRJS.Settings.Locations.IWT=MSMRJS.Factory.Locations.IWT.QAConfigOnQAServer();if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.RC.QA)MSMRJS.Settings.Locations.IWT=MSMRJS.Factory.Locations.IWT.QAConfigOnReleaseCandidateServer();if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.RC.Prod)MSMRJS.Settings.Locations.IWT=MSMRJS.Factory.Locations.IWT.LiveConfigOnReleaseCandidateServer();if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.QA)MSMRJS.Settings.Locations.IWT=MSMRJS.Factory.Locations.IWT.QAConfigOnLiveServer();if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Beta.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.Prod|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.Original)MSMRJS.Settings.Locations.IWT=MSMRJS.Factory.Locations.IWT.LiveConfigOnLiveServer();if(MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Live.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LiveAlternate.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.Prod.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Static|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.MSPro.LB.Dynamic|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.QA|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.Prod|MSMRJS.Settings.Locations.Current.HostName==MSMRJS.Settings.Locations.ServerNames.IWT.Live.Original)MSMRJS.Settings.Debugging.Scripts.EchoLoadingStatus=false;MSMRJS.Settings.Escape.Handlers.AppRoot=function(a){return MSMRJS.Settings.Locations.Base.HandleEscape(a)};MSMRJS.Settings.Escape.Handlers.StaticRoot=function(a){return MSMRJS.Settings.Locations.Static.HandleEscape(a)};MSMRJS.Settings.Escape.Handlers.ApiRoot=function(a){return MSMRJS.Settings.Locations.Api.HandleEscape(a)};MSMRJS.Settings.Escape.Handlers.IwtRoot=function(a){return MSMRJS.Settings.Locations.IWT.HandleEscape(a)};MSMRJS.Settings.Escape.Handlers.ImgRoot=function(a){return MSMRJS.Settings.Locations.Images.HandleEscape(a)};MSMRJS.Settings.Escape.Handlers.AppPage=function(b){var a=MSMRJS.Settings.Escape.Handlers.AppRoot(b);if(MSMRJS.Settings.Locations.Base.PageName!="")a+=MSMRJS.Settings.Locations.Base.PageName;return a};MSMRJS.Settings.Escape.Handlers.Page=function(b){var a="";if(b.Page)a=b.Page;if(a!="")a="pages/"+a+"/";return a};MSMRJS.Settings.Escape.Handlers.Language=function(b){var a="en-GB";if(b.Language)a=b.Language;return a+"/"};MSMRJS.Settings.Escape.Handlers.Country=function(a){var b="FRA";if(a.Country)b=a.Country;return b+"/"};MSMRJS.Settings.Escape.Handlers.ScreenDimensions=function(){return window.screen.width.toString()+"\u00d7"+window.screen.height.toString()+"\u00d7"+window.screen.colorDepth.toString()+"/"};MSMRJS.Settings.Escape.Handlers.Minified=function(){var a=MSMRJS.Settings.Locations.Static.Minified;if(a!="")a+="/";return a};MSMRJS.Settings.Escape.Handlers.CompanyId=function(b){var a="";if(b.CompanyId)if((new String(b.CompanyId)).length==10)a=b.CompanyId;if(b.Page=="OurNews")a="MR00001I0G";if(a!="")a="companies/"+a+"/";return a};MSMRJS.Settings.Escape.Handlers.ArticleEditMode=function(){var a="";if(MSMRJS.Settings.Session)if(MSMRJS.Settings.Session.User)if(MSMRJS.Settings.Session.User.Membership)if(MSMRJS.Settings.Session.User.Membership.Flags)if(MSMRJS.Settings.Session.User.Membership.Flags.IsAdministrator==true|MSMRJS.Settings.Session.User.Membership.Flags.IsContentAdministrator==true|MSMRJS.Settings.Session.User.Membership.Flags.IsContentSubmitter==true){var b=false;if(window.localStorage)if(MSMRJS.Document.Url.Parameters.Page!="ArticleEdit"){var c=window.localStorage.getItem("ContentSubmitterCache");if(c=="on")b=true}if(b==false)a="editmode/on/"}return a};MSMRJS.Settings.Escape.Handlers.SiteSpecificCompanyId=function(b){var a="";if(b.CompanyId)if(b.CompanyId.length==10)if(b.CompanyId.indexOf("MR")==0){var c=MSMRJS.Utilities.JavaScript.Functions.Numeric.Base36.FromBase36(b.CompanyId.substr(2,b.CompanyId.length-2));a=c.toString()}if(a!="")a="companies/"+a+"/";return a};MSMRJS.Settings.Escape.Handlers.UserId=function(b){var a="";if(b.UserId)if(!isNaN(new Number(b.UserId)))a=b.UserId;if(a!="")a="user/"+a+"/";return a};MSMRJS.Settings.Escape.Handlers.ArticleId=function(b){var a="";if(b.ArticleId)if(!isNaN(new Number(b.ArticleId)))a=b.ArticleId;if(a!="")a="articles/"+a+"/";return a};MSMRJS.Settings.Escape.Handlers.Cache=function(){var a="cache";if(MSMRJS.Settings)if(MSMRJS.Settings)if(MSMRJS.Settings.Session)if(MSMRJS.Settings.Session.User)if(MSMRJS.Settings.Session.User.Identity)if(MSMRJS.Settings.Session.User.Identity.Email)if(MSMRJS.Settings.Session.User.Identity.Email!="")if(MSMRJS.Settings.Session.User.Membership.Flags.IsContentSubmitter|MSMRJS.Settings.Session.User.Membership.Flags.IsAdministrator|MSMRJS.Settings.Session.User.Membership.Flags.IsContentAdministrator){var b=false;if(window.localStorage)if(MSMRJS.Document.Url.Parameters.Page!="ArticleEdit"){var c=window.localStorage.getItem("ContentSubmitterCache");if(c=="on")b=true}if(b==false)a="nocache"}if(a!="")a+="/";return a};MSMRJS.Settings.Escape.Handlers.SessionId=function(){var a=MSMRJS.Utilities.DOM.Functions.Sessions.RetrieveSessionId();if(a!="")a+="/";return a};MSMRJS.Settings.Escape.Functions.GetUrlParameters=function(b){var h={},f=b.indexOf("?"),d="";if(f!=-1)d=b.substring(f+1,b.length);if(d!="")for(var g=d.split("&"),e=0;e<g.length;e++){var a=g[e],c=a.indexOf("=");if(c!=-1){var j=unescape(a.substr(0,c)),i=unescape(a.substring(c+1,a.length));h[j]=i}}return h};MSMRJS.Settings.Escape.Functions.FindVariableSubstitutionPlaceholder=function(a){var b=null,c=-1;try{c=a.indexOf("${")}catch(e){alert("Original url string is "+a)}if(c!=-1){var d=a.indexOf("}",c+2);if(d!=-1){b={};b.PlaceholderName=a.substring(c+2,d);b.TextBeforePlaceholder=a.substr(0,c);b.TextAfterPlaceholder=a.substr(d+1);b.ReplaceWith=function(a){return this.TextBeforePlaceholder+a+this.TextAfterPlaceholder}}}return b};MSMRJS.Settings.Escape.Functions.ReplaceUrlVariables=function(c){var a=MSMRJS.Settings.Escape.Functions.FindVariableSubstitutionPlaceholder(c),b=c,e=MSMRJS.Document.Url.Parameters;while(a!=null){if(MSMRJS.Settings.Escape.Handlers[a.PlaceholderName]){var d=MSMRJS.Settings.Escape.Handlers[a.PlaceholderName];b=a.ReplaceWith(d(e))}else{alert("MSMRJS.Settings.Escape.Handlers."+a.PlaceholderName+'(parameters) { return new String("replacement"); } is not found.');return b}a=MSMRJS.Settings.Escape.Functions.FindVariableSubstitutionPlaceholder(b)}return b};MSMRJS.Document.Properties.Head.Styles.LoadSequence=new MSMRJS.Prototypes.Styling.StyleLoadSequence;MSMRJS.Document.Properties.Head.Styles.LoadSequence.LoadAll=function(){window.clearTimeout(MSMRJS.Document.PeriodicalChecks.Intervals.CssLoadSequence);MSMRJS.Document.Properties.Head.Styles.LoadSequence.Load()};MSMRJS.Document.Properties.Head.Styles.LoadSequence.LoadAsync=function(){MSMRJS.Document.PeriodicalChecks.Intervals.CssLoadSequence=window.setTimeout(MSMRJS.Document.Properties.Head.Styles.LoadSequence.LoadAll,20)};MSMRJS.Document.Properties.Head.Scripts.PageSpecific=new MSMRJS.Prototypes.Scripting.ScriptLoadSequence("page");MSMRJS.Document.Properties.Head.Scripts.PageSpecific.OnBeforeAppendToHead=function(){this.AddPageSpecifics()};MSMRJS.Document.Properties.Head.Scripts.LoadSequence=new MSMRJS.Prototypes.Scripting.ScriptLoadSequence("site");MSMRJS.Document.Properties.Head.Scripts.LoadSequence.NextSequence=MSMRJS.Document.Properties.Head.Scripts.PageSpecific;MSMRJS.Document.Populate=function(){MSMRJS.Document.Properties.Head.Styles.LoadSequence.LoadAsync();MSMRJS.Document.Properties.Head.Scripts.LoadSequence.AppendToHead();MSMRJS.Document.Properties.Head.Scripts.Notifications.HideLoadingImage()};MSMRJS.Document.PopulateAsync=function(){MSMRJS.Document.PeriodicalChecks.Timeouts.Populate=window.setTimeout(MSMRJS.Document.Populate,0)};MSMRJS.Document.Url.Parameters=MSMRJS.Settings.Escape.Functions.GetUrlParameters(document.location.href);if(MSMRJS.Document.Url.Parameters.MSMRTransferSessionId)MSMRJS.Document.Url.Parameters.MSMRTransferSessionId!=""&&MSMRJS.Utilities.DOM.Functions.Sessions.StoreSessionId(MSMRJS.Document.Url.Parameters.MSMRTransferSessionId);MSMRJS.Utilities.DOM.Functions.Events.AddEventListenerTo(window,"load",MSMRJS.Document.PopulateAsync,false)
