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(y){if(y==undefined){y=null}var z=false,n=null;try{var r=null,q=false;if(window.ActiveXObject){try{r=new ActiveXObject("AgControl.AgControl");
if(y===null){z=true}else{if(r.IsVersionSupported(y)){z=true}}r=null}catch(o){q=true}}else{q=true}if(q){var p=navigator.plugins["Silverlight Plug-In"];if(p){if(y===null){z=true}else{var s=p.description;if(s==="1.0.30226.2"){s="2.0.30226.2"}var x=s.split(".");while(x.length>3){x.pop()}while(x.length<4){x.push(0)}var v=y.split(".");while(v.length>4){v.pop()}var w,t,u=0;do{w=parseInt(v[u]);t=parseInt(x[u]);u++}while(u<v.length&&w===t);if(w<=t&&!isNaN(w)){z=true}}}}}catch(o){z=false}return z};Silverlight.WaitForInstallCompletion=function(){if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){try{navigator.plugins.refresh()
}catch(b){}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){Silverlight.WaitForInstallCompletion();if(!Silverlight.__installationEventFired){Silverlight.onInstallRequired();
Silverlight.__installationEventFired=true}}else{if(window.navigator.mimeTypes){var e=navigator.mimeTypes["application/x-silverlight-2"],h=navigator.mimeTypes["application/x-silverlight-2-b2"],g=navigator.mimeTypes["application/x-silverlight-2-b1"],f=g;if(h){f=h}if(!e&&(g||h)){if(!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}}else{if(e&&f){if(e.enabledPlugin&&f.enabledPlugin){if(e.enabledPlugin.description!=f.enabledPlugin.description){if(!Silverlight.__installationEventFired){Silverlight.onRestartRequired();
Silverlight.__installationEventFired=true}}}}}}}if(!Silverlight.disableAutoStartup){if(window.removeEventListener){window.removeEventListener("load",Silverlight.__startup,false)}else{window.detachEvent("onload",Silverlight.__startup)}}};if(!Silverlight.disableAutoStartup){if(window.addEventListener){window.addEventListener("load",Silverlight.__startup,false)}else{window.attachEvent("onload",Silverlight.__startup)}}Silverlight.createObject=function(n,u,v,p,o,s,q){var w={},z=p,x=o;w.version=z.version;z.source=n;
w.alt=z.alt;if(s){z.initParams=s}if(z.isWindowless&&!z.windowless){z.windowless=z.isWindowless}if(z.framerate&&!z.maxFramerate){z.maxFramerate=z.framerate}if(v&&!z.id){z.id=v}delete z.ignoreBrowserVer;delete z.inplaceInstallPrompt;delete z.version;delete z.isWindowless;delete z.framerate;delete z.data;delete z.src;delete z.alt;if(Silverlight.isInstalled(w.version)){for(var y in x){if(x[y]){if(y=="onLoad"&&typeof x[y]=="function"&&x[y].length!=1){var r=x[y];x[y]=function(b){return r(document.getElementById(v),q,b)
}}var t=Silverlight.__getHandlerName(x[y]);if(t!=null){z[y]=t;x[y]=null}else{throw"typeof events."+y+" must be 'function' or 'string'"}}}slPluginHTML=Silverlight.buildHTML(z)}else{slPluginHTML=Silverlight.buildPromptHTML(w)}if(u){u.innerHTML=slPluginHTML}else{return slPluginHTML}};Silverlight.buildHTML=function(e){var d=[];d.push('<object type="application/x-silverlight" data="data:application/x-silverlight,"');if(e.id!=null){d.push(' id="'+Silverlight.HtmlAttributeEncode(e.id)+'"')}if(e.width!=null){d.push(' width="'+e.width+'"')
}if(e.height!=null){d.push(' height="'+e.height+'"')}d.push(" >");delete e.id;delete e.width;delete e.height;for(var f in e){if(e[f]){d.push('<param name="'+Silverlight.HtmlAttributeEncode(f)+'" value="'+Silverlight.HtmlAttributeEncode(e[f])+'" />')}}d.push("</object>");return d.join("")};Silverlight.createObjectEx=function(d){var e=d,f=Silverlight.createObject(e.source,e.parentElement,e.id,e.properties,e.events,e.initParams,e.context);if(e.parentElement==null){return f}};Silverlight.buildPromptHTML=function(e){var f="",g=Silverlight.fwlinkRoot,h=e.version;
if(e.alt){f=e.alt}else{if(!h){h=""}f="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";f=f.replace("{1}",h);f=f.replace("{2}",g+"108181")}return f};Silverlight.getSilverlight=function(h){if(Silverlight.onGetSilverlight){Silverlight.onGetSilverlight()}var f="",g=String(h).split(".");if(g.length>1){var j=parseInt(g[0]);if(isNaN(j)||j<2){f="1.0"}else{f=g[0]+"."+g[1]}}var i="";if(f.match(/^\d+\056\d+$/)){i="&v="+f
}Silverlight.followFWLink("149156"+i)};Silverlight.followFWLink=function(b){top.location=Silverlight.fwlinkRoot+String(b)};Silverlight.HtmlAttributeEncode=function(h){var f,e="";if(h==null){return null}for(var g=0;g<h.length;g++){f=h.charCodeAt(g);if(f>96&&f<123||f>64&&f<91||f>43&&f<58&&f!=47||f==95){e=e+String.fromCharCode(f)}else{e=e+"&#"+f+";"}}return e};Silverlight.default_error_handler=function(h,f){var i,j=f.ErrorType;i=f.ErrorCode;var g="\nSilverlight error message     \n";g+="ErrorCode: "+i+"\n";g+="ErrorType: "+j+"       \n";
g+="Message: "+f.ErrorMessage+"     \n";if(j=="ParserError"){g+="XamlFile: "+f.xamlFile+"     \n";g+="Line: "+f.lineNumber+"     \n";g+="Position: "+f.charPosition+"     \n"}else{if(j=="RuntimeError"){if(f.lineNumber!=0){g+="Line: "+f.lineNumber+"     \n";g+="Position: "+f.charPosition+"     \n"}g+="MethodName: "+f.methodName+"     \n"}}alert(g)};Silverlight.__cleanup=function(){for(var b=Silverlight._silverlightCount-1;b>=0;b--){window["__slEvent"+b]=null}Silverlight._silverlightCount=0;if(window.removeEventListener){window.removeEventListener("unload",Silverlight.__cleanup,false)
}else{window.detachEvent("onunload",Silverlight.__cleanup)}};Silverlight.__getHandlerName=function(d){var e="";if(typeof d=="string"){e=d}else{if(typeof d=="function"){if(Silverlight._silverlightCount==0){if(window.addEventListener){window.addEventListener("unload",Silverlight.__cleanup,false)}else{window.attachEvent("onunload",Silverlight.__cleanup)}}var f=Silverlight._silverlightCount++;e="__slEvent"+f;window[e]=d}else{e=null}}return e};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onRestartRequired=function(){};
Silverlight.onUpgradeRequired=function(){};Silverlight.onInstallRequired=function(){};Silverlight.IsVersionAvailableOnError=function(g,f){var e=false;try{if(f.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else{if(f.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else{if(f.ErrorCode==5014||f.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(f.getHost())){e=true
}}else{e=true}}}}catch(h){}return e};Silverlight.IsVersionAvailableOnLoad=function(d){var e=false;try{if(Silverlight.__verifySilverlight2UpgradeSuccess(d.getHost())){e=true}}catch(f){}return e};Silverlight.__verifySilverlight2UpgradeSuccess=function(i){var j=false,f="3.0.40624",g=null;try{if(i.IsVersionSupported(f+".99")){g=Silverlight.onRequiredVersionAvailable;j=true}else{if(i.IsVersionSupported(f+".0")){g=Silverlight.onRestartRequired}else{g=Silverlight.onUpgradeRequired}}if(g&&!Silverlight.__installationEventFired){g();
Silverlight.__installationEventFired=true}}catch(h){}return j};
