if(!window.Silverlight){window.Silverlight={};Silverlight.disableAutoStartup=true}var PromptFinishInstall="",PromptInstall="",PromptUpgrade="",PromptFinishUpgrade="",PromptRestart="",PromptNotSupported="",RedirectNotSupported="";Silverlight._silverlightCount=0;Silverlight.__onSilverlightInstalledCalled=false;Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Silverlight.__installationEventFired=false;Silverlight.onGetSilverlight=null;Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};
Silverlight.isInstalled=function(a){if(window.ActiveXObject){var b=false;try{b=(new ActiveXObject("AgControl.AgControl")).isVersionSupported(a||"1.0")}catch(d){}return b}else{b=(navigator.plugins["Silverlight Plug-In"]||{}).description;if(!b)return false;a=(a||"0.0").split(".");b=b.replace(/^1.0.30226.2$/,"2.0.30226.2").split(".");for(var c=-1;a[++c];)if(a[c]*1!==b[c]*1)return a[c]*1<b[c]*1}};
Silverlight.WaitForInstallCompletion=function(){if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){try{navigator.plugins.refresh()}catch(a){}if(Silverlight.isInstalled(null)&&!Silverlight.__onSilverlightInstalledCalled){Silverlight.onSilverlightInstalled();Silverlight.__onSilverlightInstalledCalled=true}else setTimeout(Silverlight.WaitForInstallCompletion,3E3)}};
Silverlight.__startup=function(){navigator.plugins.refresh();Silverlight.isBrowserRestartRequired=Silverlight.isInstalled(null);if(Silverlight.isBrowserRestartRequired){if(window.navigator.mimeTypes){var a=navigator.mimeTypes["application/x-silverlight-2"],b=navigator.mimeTypes["application/x-silverlight-2-b2"],d=navigator.mimeTypes["application/x-silverlight-2-b1"],c=d;if(b)c=b;if(!a&&(d||b)){if(!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=
true}}else if(a&&c)if(a.enabledPlugin&&c.enabledPlugin)if(a.enabledPlugin.description!=c.enabledPlugin.description)if(!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}}}else{Silverlight.WaitForInstallCompletion();if(!Silverlight.__installationEventFired){Silverlight.onInstallRequired();Silverlight.__installationEventFired=true}}Silverlight.disableAutoStartup||(window.removeEventListener?window.removeEventListener("load",Silverlight.__startup,
false):window.detachEvent("onload",Silverlight.__startup))};Silverlight.disableAutoStartup||(window.addEventListener?window.addEventListener("load",Silverlight.__startup,false):window.attachEvent("onload",Silverlight.__startup));
Silverlight.createObject=function(a,b,d,c,e,g,j){var f={};f.version=c.version;c.source=a;f.alt=c.alt;if(g)c.initParams=g;if(c.isWindowless&&!c.windowless)c.windowless=c.isWindowless;if(c.framerate&&!c.maxFramerate)c.maxFramerate=c.framerate;if(d&&!c.id)c.id=d;delete c.ignoreBrowserVer;delete c.inplaceInstallPrompt;delete c.version;delete c.isWindowless;delete c.framerate;delete c.data;delete c.src;delete c.alt;if(Silverlight.isInstalled(f.version)){for(var h in e)if(e[h]){if(h=="onLoad"&&typeof e[h]==
"function"&&e[h].length!=1){var n=e[h];e[h]=function(k){return n(document.getElementById(d),j,k)}}a=Silverlight.__getHandlerName(e[h]);if(a!=null){c[h]=a;e[h]=null}else throw"typeof events."+h+" must be 'function' or 'string'";}slPluginHTML=Silverlight.buildHTML(c)}else slPluginHTML=Silverlight.buildPromptHTML(f);if(b)b.innerHTML=slPluginHTML;else return slPluginHTML};
Silverlight.buildHTML=function(a){var b=[];b.push('<object type="application/x-silverlight-2" data="data:application/x-silverlight-2,"');a.id!=null&&b.push(' id="'+Silverlight.HtmlAttributeEncode(a.id)+'"');a.width!=null&&b.push(' width="'+a.width+'"');a.height!=null&&b.push(' height="'+a.height+'"');b.push(" >");delete a.id;delete a.width;delete a.height;for(var d in a)a[d]&&b.push('<param name="'+Silverlight.HtmlAttributeEncode(d)+'" value="'+Silverlight.HtmlAttributeEncode(a[d])+'" />');b.push("</object>");
return b.join("")};Silverlight.createObjectEx=function(a){var b=Silverlight.createObject(a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null)return b};
Silverlight.buildPromptHTML=function(a){var b="",d=Silverlight.fwlinkRoot,c=a.version;if(a.alt)b=a.alt;else{c||(c="");b="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";b=b.replace("{1}",c);b=b.replace("{2}",d+"108181")}return b};
Silverlight.getSilverlight=function(a){Silverlight.onGetSilverlight&&Silverlight.onGetSilverlight();var b="";a=String(a).split(".");if(a.length>1){b=parseInt(a[0]);b=isNaN(b)||b<2?"1.0":a[0]+"."+a[1]}a="";if(b.match(/^\d+\056\d+$/))a="&v="+b;Silverlight.followFWLink("149156"+a)};Silverlight.followFWLink=function(a){top.location=Silverlight.fwlinkRoot+String(a)};Silverlight.specialChars=/[\x00-\x2b\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\xff]/g;
Silverlight.HtmlAttributeEncode=function(a){return a?a.replace(Silverlight.specialChars,function(b){return"&#"+b.charCodeAt(0)+";"}):a};
Silverlight.default_error_handler=function(a,b){var d=b.ErrorType,c="\nSilverlight error message     \n";c+="ErrorCode: "+b.ErrorCode+"\n";c+="ErrorType: "+d+"       \n";c+="Message: "+b.ErrorMessage+"     \n";if(d=="ParserError"){c+="XamlFile: "+b.xamlFile+"     \n";c+="Line: "+b.lineNumber+"     \n";c+="Position: "+b.charPosition+"     \n"}else if(d=="RuntimeError"){if(b.lineNumber!=0){c+="Line: "+b.lineNumber+"     \n";c+="Position: "+b.charPosition+"     \n"}c+="MethodName: "+b.methodName+"     \n"}alert(c)};
Silverlight.__cleanup=function(){for(var a=Silverlight._silverlightCount-1;a>=0;a--)window["__slEvent"+a]=null;Silverlight._silverlightCount=0;window.removeEventListener?window.removeEventListener("unload",Silverlight.__cleanup,false):window.detachEvent("onunload",Silverlight.__cleanup)};
Silverlight.__getHandlerName=function(a){var b="";if(typeof a=="string")b=a;else if(typeof a=="function"){if(Silverlight._silverlightCount==0)window.addEventListener?window.addEventListener("unload",Silverlight.__cleanup,false):window.attachEvent("onunload",Silverlight.__cleanup);b="__slEvent"+Silverlight._silverlightCount++;window[b]=a}else b=null;return b};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onInstallRequired=function(){};
Silverlight.IsVersionAvailableOnError=function(a,b){var d=false;try{if(b.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else if(b.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.__installationEventFired=false;Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else if(b.ErrorCode==5014||b.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(b.getHost()))d=true}else d=
true}catch(c){}return d};Silverlight.IsVersionAvailableOnLoad=function(a){var b=false;try{if(Silverlight.__verifySilverlight2UpgradeSuccess(a.getHost()))b=true}catch(d){}return b};
Silverlight.__verifySilverlight2UpgradeSuccess=function(a){var b=false,d=SLS.minSlVersion.split(".")[0]+"."+SLS.minSlVersion.split(".")[1]+"."+SLS.minSlVersion.split(".")[2],c=null;try{if(a.IsVersionSupported(d+".99")){c=Silverlight.onRequiredVersionAvailable;b=true}else c=a.IsVersionSupported(d+".0")?Silverlight.onRestartRequired:Silverlight.onUpgradeRequired;if(c&&!Silverlight.__installationEventFired){c();Silverlight.__installationEventFired=true}}catch(e){}return b};
Silverlight.detectSilverlightVersion=function(){var a=null,b;try{var d=null;try{d=new ActiveXObject("AgControl.AgControl")}catch(c){if(navigator.plugins["Silverlight Plug-In"]){a=document.createElement("div");document.body.appendChild(a);a.innerHTML='<embed type="application/x-silverlight" />';d=a.childNodes[0]}}if(d.Settings)try{b=d.Settings.version}catch(e){}var g=Array("4.0.60531.0","4.0.60310.0","4.0.60129.0","4.0.51204.0","4.0.50917.0","4.0.50826.0","4.0.50524.0","4.0.50401.0","4.0.50303.0","4.0.41108.0","3.0.50611.0","3.0.50106.0","3.0.40818.0","3.0.40723.0","3.0.40624.0","3.0.40307.0","2.0.40115.0","2.0.31005.0","2.0.30523.9","2.0.30523.8","2.0.30523.6","2.0.30226.2","1.0.30715.0","1.0.30401.0","1.0.30109.0","1.0.21115.0","1.1.20926.0","1.0.20816");if(!b)for(f in g)if(d.IsVersionSupported(g[f])){b=g[f];break}if(!b){g=function(k){for(var m="",l=0;l<k.length;++l){m+=k[l];if(l!=k.length-1)m+="."}return m};for(var j=[0,0,0,0],f=0;f<j.length;++f)for(var h=0;h<1E5;++h){j[f]=h;if(!d.IsVersionSupported(g(j))){j[f]=h-1;break}}b=g(j)}d=null}catch(n){}a&&document.body.removeChild(a);return b};
if(!window.SLS)window.SLS={};SLS.logCount=0;SLS.statusShowInstall="1";SLS.statusShowUpgrade="2";SLS.statusShowUnsupported="3";SLS.statusShowRestart="4";SLS.statusChooseInstall="5";SLS.statusChooseUpgrade="6";SLS.statusChooseReject="7";SLS.statusChooseAbandon="8";SLS.statusSuccessInstall="10";SLS.statusSuccessUpgrade="11";SLS.hqPlayerMsLogDelay=1250;SLS.hqPlayerErrorHandler=function(a,b){alert("Oops! An unexpected error occurred.\n\nSource: "+a+"\nDescription: "+b.description)};
SLS.entryFlowCookieName=function(){return SLS.appName+"entryFlow"};SLS.appIdCookieName=function(){return SLS.appName+"appId"};SLS.installFlowCookieName=function(){return SLS.appName+"installFlow"};
SLS.getClientState=function(){if(!SLS.clientState){var a={};a.uid=SLS.getUid();a.isLogEntryFlowCookieDefined=SLS.isCookieDefined(SLS.entryFlowCookieName(),"1");a.isLogInstallFlowCookieDefined=SLS.isCookieDefined(SLS.installFlowCookieName(),SLS.statusChooseInstall)|SLS.isCookieDefined(SLS.installFlowCookieName(),SLS.statusChooseUpgrade);a.isSlVersionInstalled=Silverlight.isInstalled(SLS.minSlVersion);a.isSlVersionSupported=Silverlight.supportedUserAgent(SLS.minSlVersion.substring(0,1).concat(".0"));
a.isSlUpgradeRequired=!a.isSlVersionInstalled&&Silverlight.isInstalled(null);SLS.clientState=a}return SLS.clientState};SLS.onPlayerPageBeforeUnload=function(){if(SLS.installState==SLS.statusShowInstall||SLS.installState==SLS.statusShowUpgrade)SLS.logInstallFlow(SLS.statusChooseAbandon);SLS.hqAppSessionId&&alert("logAppEvent");for(var a=new Date;new Date-a<SLS.hqPlayerMsLogDelay;);};SLS.isCookieDefined=function(a,b){var d=SLS.getCookieValue(a);return SLS.equals(d,b)};
SLS.getCookieValue=function(a,b){var d=document.cookie;if(d&&d.length>0){d=d.split(";");return SLS.getParamValue(d,a,b)}};SLS.getParamValue=function(a,b,d){b=b.toString();for(i=0;i<a.length;i++){var c=a[i].split("=");if(SLS.equals(SLS.trim(unescape(c[0])),b,d))return c[1]?unescape(c[1]):c[1]}};SLS.equals=function(a,b,d){return a==b?true:a==null||b==null||d?false:a.toLowerCase()==b.toLowerCase()};SLS.trim=function(a){return a.replace(/^\s+|\s+$/g,"")};
SLS.setCookie=function(a,b,d){if(d){d=new Date((new Date).getTime()+d*60*60*1E3);document.cookie=a+"="+b+";expires="+d.toGMTString()}else document.cookie=a+"="+b};SLS.clearCookie=function(a){document.cookie=a+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT"};SLS.getUid=function(){var a=SLS.getCookieValue(SLS.appIdCookieName());if(!a){a=guid();SLS.setCookie(SLS.appIdCookieName(),a)}return a};
SLS.getParamValue=function(a,b,d){for(i=0;i<a.length;i++){var c=a[i].split("=");if(SLS.equals(SLS.trim(unescape(c[0])),b,d))return c[1]?unescape(c[1]):c[1]}};SLS.appendScript=function(a,b){try{var d=document.createElement("script");d.id="script"+a;d.src=b;d.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(d)}catch(c){SLS.hqPlayerErrorHandler("SLS.appendScript",c)}};
SLS.removeScript=function(a){try{var b=document.getElementById("script"+a);document.getElementsByTagName("head")[0].removeChild(b)}catch(d){SLS.hqPlayerErrorHandler("SLS.removeScript",d)}};SLS.setAppSessionId=function(a){SLS.hqAppSessionId=a};
SLS.logEntryFlow=function(){try{var a=SLS.getClientState();if(!a.isLogEntryFlowCookieDefined){SLS.setCookie(SLS.entryFlowCookieName(),"1");if(SLS.logEntryflow){var b=a.uid,d=encodeURIComponent(document.referrer),c=SLS.logCount++,e=(new Date).getTime();SLS.appendScript(c,"http://silf.cloudapp.net/silf.aspx?e=e&u="+b+"&s="+(a.isSlVersionInstalled?2:a.isSlUpgradeRequired?1:0)+"&o="+(a.isSlVersionSupported?1:SLBrowser=="Chrome"&&OperatingSystem=="Windows"?1:0)+"&i="+c+"&t="+e+"&an="+SLS.appName+"&av="+
SLS.appVersion+"&r="+d)}}}catch(g){SLS.hqPlayerErrorHandler("SLS.logEntryFlow",g)}};
SLS.logInstallFlow=function(a){SLS.installState=a;try{if(a==SLS.statusChooseInstall||a==SLS.statusChooseUpgrade)SLS.setCookie(SLS.installFlowCookieName(),a,1);else if(a==SLS.statusSuccessInstall||a==SLS.statusSuccessUpgrade||a==SLS.statusChooseReject||a==SLS.statusChooseAbandon)SLS.clearCookie(SLS.installFlowCookieName());var b=SLS.getClientState();a==SLS.statusChooseReject||a==SLS.statusChooseAbandon||SLS.setCookie(SLS.appIdCookieName(),b.uid,24);if(SLS.logInstall){var d=b.uid,c=SLS.logCount++,e=
(new Date).getTime();SLS.appendScript(c,"http://silf.cloudapp.net/silf.aspx?e=i&u="+d+"&a="+a+"&i="+c+"&t="+e+"&an="+SLS.appName+"&av="+SLS.appVersion)}}catch(g){SLS.hqPlayerErrorHandler("SLS.logInstallFlow",g)}};function onLauncherPageLoad(){if(document.getElementById(SilverlightControlHost)){window.onbeforeunload=SLS.onPlayerPageBeforeUnload;SLS.logEntryFlow();Silverlight.__startup()}}
function onSilverlightError(a,b){b.ErrorCode==8001||b.ErrorCode==5014||(b.ErrorCode==8002?Silverlight.onRestartRequired():alert("Debug:  Error Code = "+b.ErrorCode))}
function onSilverlightLoad(a){Silverlight.IsVersionAvailableOnLoad(a);a=SLS.getClientState();if(a.isSlVersionInstalled)if(a.isLogInstallFlowCookieDefined){SLS.getCookieValue(SLS.installFlowCookieName())==SLS.statusChooseInstall&&SLS.logInstallFlow(SLS.statusSuccessInstall);SLS.getCookieValue(SLS.installFlowCookieName())==SLS.statusChooseUpgrade&&SLS.logInstallFlow(SLS.statusSuccessUpgrade)}}
function showSlateImageLoaded(a){a.onLoad="";p=document.getElementById("silfdiv");pclone=p.cloneNode(true);document.getElementById(SilverlightControlHost).replaceChild(pclone,p)}function showSlate(a){if(SLS.showSlates){document.getElementById(SilverlightControlHost).innerHTML="<div id='silfdiv'>"+a+"<div>";a=document.getElementById(SilverlightControlHost).getElementsByTagName("img");for(var b=0;b<a.length;b++){var d=a[b];a[b].onLoad=setTimeout(function(){showSlateImageLoaded(d)},3E3)}}}
Silverlight.onRestartRequired=function(){SLS.logInstallFlow(SLS.statusShowRestart);showSlate(PromptRestart)};Silverlight.onUpgradeRequired=function(){SLS.logInstallFlow(SLS.statusShowUpgrade);CheckSupported(PromptUpgrade)};Silverlight.onInstallRequired=function(){SLS.logInstallFlow(SLS.statusShowInstall);CheckSupported(PromptInstall)};
function UpgradeClicked(){SLS.logInstallFlow(SLS.statusChooseUpgrade);showSlate(PromptFinishUpgrade);SLBrowser=="Chrome"&&OperatingSystem=="Windows"&&SLS.minSlVersion.split(".")[0]=="3"?Silverlight.followFWLink("156091"):Silverlight.followFWLink("149156")}
function InstallClicked(){SLS.logInstallFlow(SLS.statusChooseInstall);showSlate(PromptFinishInstall);SLBrowser=="Chrome"&&OperatingSystem=="Windows"&&SLS.minSlVersion.split(".")[0]=="3"?Silverlight.followFWLink("156091"):Silverlight.followFWLink("149156")}
function CheckSupported(a){if(Silverlight.supportedUserAgent(SLS.minSlVersion.split(".")[0]+"."+SLS.minSlVersion.split(".")[1])){showSlate(a);return true}else if(SLBrowser=="Chrome"&&OperatingSystem=="Windows"){if(typeof PromptNotTested!="undefined"&&PromptNotTested!="")a=a.replace(/<!--warn--\>/i,PromptNotTested);showSlate(a);typeof WarningNotTested!="undefined"&&WarningNotTested!=""&&alert(WarningNotTested);return true}else{SLS.logInstallFlow(SLS.statusShowUnsupported);if(RedirectNotSupported!=
"")window.location=RedirectNotSupported;else showSlate(PromptNotSupported);return false}}var OperatingSystem,SLBrowser;
Silverlight.supportedUserAgent=function(a,b){try{var d=null;d=b?b:window.navigator.userAgent;var c={OS:"Unsupported",Browser:"Unsupported"};if(d.indexOf("Windows NT")>=0||d.indexOf("Mozilla/4.0 (compatible; MSIE 6.0)")>=0)c.OS="Windows";else if(d.indexOf("PPC Mac OS X")>=0)c.OS="MacPPC";else if(d.indexOf("Intel Mac OS X")>=0)c.OS="MacIntel";else if(d.indexOf("Linux")>=0)c.OS="Linux";OperatingSystem=c.OS;if(c.OS!="Unsupported")if(d.indexOf("MSIE")>=0){if(navigator.userAgent.indexOf("Win64")==-1)if(parseInt(d.split("MSIE")[1])>=
6)c.Browser="MSIE"}else if(d.indexOf("Firefox")>=0){var e=d.split("Firefox/")[1].split("."),g=parseInt(e[0]);if(g>=2)c.Browser="Firefox";else{var j=parseInt(e[1]);if(g==1&&j>=5)c.Browser="Firefox"}}else if(d.indexOf("Chrome")>=0)c.Browser="Chrome";else if(d.indexOf("Safari")>=0)c.Browser="Safari";SLBrowser=c.Browser;var f=!(c.OS=="Unsupported"||c.Browser=="Unsupported"||c.OS=="Windows"&&c.Browser=="Safari"||c.OS.indexOf("Mac")>=0&&c.Browser=="MSIE"||c.Browser=="Chrome"&&c.OS.indexOf("Mac")>=0||c.Browser==
"Chrome"&&c.OS=="Windows"&&a!="4.0");if(c.OS=="MacPPC"&&(a=="2.0"||a=="3.0"||a=="4.0"))return f&&c.OS!="MacPPC";if(c.OS!="Linux"&&(a=="1.0"||a=="2.0"))return f&&c.OS!="Linux";if(a=="1.0")return f&&d.indexOf("Windows NT 5.0")<0;return f}catch(h){return false}};function guid(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(a){var b=Math.random()*16|0;return(a=="a"?b:b&3|8).toString(16)}).toUpperCase()};
