if(!window.Msn)window.Msn={};if(!window.Msn.Silverlight)window.Msn.Silverlight={};Msn.Silverlight._silverlightCount=0;Msn.Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Msn.Silverlight.onGetSilverlight=null;Msn.Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};Msn.Silverlight.isInstalled=function(f){var d=null,a=false,k=d;try{var j=d;try{j=new ActiveXObject("AgControl.AgControl");if(f==d)a=true;else if(j.IsVersionSupported(f))a=true;j=d}catch(m){var l=navigator.plugins["Silverlight Plug-In"];if(l)if(f===null)a=true;else{var i=l.description;if(i==="1.0.30226.2")i="2.0.30226.2";var b=i.split(".");while(b.length>3)b.pop();while(b.length<4)b.push(0);var e=f.split(".");while(e.length>4)e.pop();var c,h,g=0;do{c=parseInt(e[g]);h=parseInt(b[g]);g++}while(g<e.length&&c===h);if(c<=h&&!isNaN(c))a=true}}}catch(m){a=false}if(k)document.body.removeChild(k);return a};Msn.Silverlight.WaitForInstallCompletion=function(){if(!Msn.Silverlight.isBrowserRestartRequired&&Msn.Silverlight.onSilverlightInstalled){try{navigator.plugins.refresh()}catch(a){}if(Msn.Silverlight.isInstalled(null))Msn.Silverlight.onSilverlightInstalled();else setTimeout(Msn.Silverlight.WaitForInstallCompletion,3000)}};Msn.Silverlight.startup=function(){Msn.Silverlight.isBrowserRestartRequired=Msn.Silverlight.isInstalled(null);if(!Msn.Silverlight.isBrowserRestartRequired)Msn.Silverlight.WaitForInstallCompletion();if(window.removeEventListener)window.removeEventListener("load",Msn.Silverlight.startup,false);else window.detachEvent("onload",Msn.Silverlight.startup)};Msn.Silverlight.createObject=function(i,q,j,h,o,p,l,n){var e=null,f={},a=o,c=p;f.version=a.version;a.source=q;f.alt=a.alt;if(l)a.initParams=l;if(a.isWindowless&&!a.windowless)a.windowless=a.isWindowless;if(a.framerate&&!a.maxFramerate)a.maxFramerate=a.framerate;if(h&&!a.id)a.id=h;delete a.ignoreBrowserVer;delete a.inplaceInstallPrompt;delete a.version;delete a.isWindowless;delete a.framerate;delete a.data;delete a.src;delete a.alt;var g=e,d=e;if(j)g=document.getElementById(j);if(i)d=document.getElementById(i);if(Msn.Silverlight.isInstalled(f.version)){for(var b in c)if(c[b]){if(b=="onLoad"&&typeof c[b]=="function"&&c[b].length!=1){var m=c[b];c[b]=function(a){return m(document.getElementById(h),n,a)}}var k=Msn.Silverlight.getHandlerName(c[b]);if(k!=e){a[b]=k;c[b]=e}else throw"typeof events."+b+" must be 'function' or 'string'";}slPluginHTML=Msn.Silverlight.buildHTML(a);if(g){g.innerHTML=slPluginHTML+"<iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>";if(d)d.style.display="none"}}else if(d)d.style.display=""};Msn.Silverlight.buildHTML=function(a){var b=[];b.push('<object type="application/x-silverlight-2" data="data:application/x-silverlight-2,"');if(a.id!=null)b.push(' id="'+a.id+'"');if(a.width!=null)b.push(' width="'+a.width+'"');if(a.height!=null)b.push(' height="'+a.height+'"');b.push(" >");delete a.id;delete a.width;delete a.height;for(var c in a)if(a[c])b.push('<param name="'+Msn.Silverlight.HtmlAttributeEncode(c)+'" value="'+Msn.Silverlight.HtmlAttributeEncode(a[c])+'" />');b.push("</object>");return b.join("")};Msn.Silverlight.createObjectEx=function(b){var a=b,c=Msn.Silverlight.createObject(a.downlevelElement,a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null)return c};Msn.Silverlight.buildPromptHTML=function(b){var a="",d=Msn.Silverlight.fwlinkRoot,c=b.version;if(b.alt)a=b.alt;else{if(!c)c="";a="<a href='javascript:Msn.Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";a=a.replace("{1}",c);a=a.replace("{2}",d+"108181")}return a};Msn.Silverlight.getSilverlight=function(e){if(Msn.Silverlight.onGetSilverlight)Msn.Silverlight.onGetSilverlight();var b="",a=String(e).split(".");if(a.length>1){var c=parseInt(a[0]);if(isNaN(c)||c<2)b="1.0";else b=a[0]+"."+a[1]}var d="";if(b.match(/^\d+\056\d+$/))d="&v="+b;Msn.Silverlight.followFWLink("114576"+d)};Msn.Silverlight.followFWLink=function(a){top.location=Msn.Silverlight.fwlinkRoot+String(a)};Msn.Silverlight.HtmlAttributeEncode=function(c){var a,b="";if(c==null)return null;for(var d=0;d<c.length;d++){a=c.charCodeAt(d);if(a>96&&a<123||a>64&&a<91||a>43&&a<58&&a!=47||a==95)b=b+String.fromCharCode(a);else b=b+"&#"+a+";"}return b};Msn.Silverlight.defaultErrorHandler=function(g,b){var e="Position: ",c="     \n",f,d=b.ErrorType;f=b.ErrorCode;var a="\nSilverlight error message     \n";a+="ErrorCode: "+f+"\n";a+="ErrorType: "+d+"       \n";a+="Message: "+b.ErrorMessage+c;if(d=="ParserError"){a+="XamlFile: "+b.xamlFile+c;a+="Line: "+b.lineNumber+c;a+=e+b.charPosition+c}else if(d=="RuntimeError"){if(b.lineNumber!=0){a+="Line: "+b.lineNumber+c;a+=e+b.charPosition+c}a+="MethodName: "+b.methodName+c}alert(a)};Msn.Silverlight.cleanup=function(){for(var a=Msn.Silverlight._silverlightCount-1;a>=0;a--)window["slEvent"+a]=null;Msn.Silverlight._silverlightCount=0;if(window.removeEventListener)window.removeEventListener("unload",Msn.Silverlight.cleanup,false);else window.detachEvent("onunload",Msn.Silverlight.cleanup)};Msn.Silverlight.getHandlerName=function(b){var c="onunload",a="";if(typeof b=="string")a=b;else if(typeof b=="function"){if(Msn.Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener(c,Msn.Silverlight.cleanup,false);else window.attachEvent(c,Msn.Silverlight.cleanup);var d=Msn.Silverlight._silverlightCount++;a="slEvent"+d;window[a]=b}else a=null;return a};