if(!window.Silverlight)window.Silverlight={};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(a==undefined)a=null;var b=false,d=null;try{d=null;var c=false;if(window.ActiveXObject)try{d=new ActiveXObject("AgControl.AgControl");if(a===null)b=true;else if(d.IsVersionSupported(a))b=true;d=null}catch(f){c=true}else c=true;if(c){var i=navigator.plugins["Silverlight Plug-In"];if(i)if(a===null)b=true;else{var j=i.description;if(j==="1.0.30226.2")j="2.0.30226.2";for(var g=j.split(".");g.length>3;)g.pop();for(;g.length<4;)g.push(0);for(var e=a.split(".");e.length>
4;)e.pop();var h,k;a=0;do{h=parseInt(e[a]);k=parseInt(g[a]);a++}while(a<e.length&&h===k);if(h<=k&&!isNaN(h))b=true}}}catch(l){b=false}return b};
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,3000)}};
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,f,i,j){var g={};c=c;f=f;g.version=c.version;c.source=a;g.alt=c.alt;if(i)c.initParams=i;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(g.version)){for(var e in f)if(f[e]){if(e=="onLoad"&&
typeof f[e]=="function"&&f[e].length!=1){var h=f[e];f[e]=function(k){return h(document.getElementById(d),j,k)}}a=Silverlight.__getHandlerName(f[e]);if(a!=null){c[e]=a;f[e]=null}else throw"typeof events."+e+" must be 'function' or 'string'";}slPluginHTML=Silverlight.buildHTML(c)}else slPluginHTML=Silverlight.buildPromptHTML(g);if(b)b.innerHTML=slPluginHTML;else return slPluginHTML};
Silverlight.buildHTML=function(a){var b=[];b.push('<object type="application/x-silverlight" data="data:application/x-silverlight,"');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){a=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.HtmlAttributeEncode=function(a){var b,d="";if(a==null)return null;for(var c=0;c<a.length;c++){b=a.charCodeAt(c);if(b>96&&b<123||b>64&&b<91||b>43&&b<58&&b!=47||b==95)d+=String.fromCharCode(b);else d=d+"&#"+b+";"}return d};
Silverlight.default_error_handler=function(a,b){var d=b.ErrorType;a=b.ErrorCode;var c="\nSilverlight error message     \n";c+="ErrorCode: "+a+"\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=Silverlight._silverlightCount++;b="__slEvent"+b;window[b]=a}else b=null;return b};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onRestartRequired=function(){};Silverlight.onUpgradeRequired=function(){};
Silverlight.onInstallRequired=function(){};
Silverlight.IsVersionAvailableOnError=function(a,b){a=false;try{if(b.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else if(b.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else if(b.ErrorCode==5014||b.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(b.getHost()))a=true}else a=true}catch(d){}return a};
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="3.0.50106",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(f){}return b};
