if(!window.Silverlight)window.Silverlight={};Silverlight._silverlightCount=0;Silverlight.ua=null;Silverlight.available=false;Silverlight.fwlinkRoot="http://go.microsoft.com/fwlink/?LinkID=";Silverlight.detectUserAgent=function(){var l=window.navigator.userAgent;Silverlight.ua={OS:"Unsupported",Browser:"Unsupported"};if(l.indexOf("Windows NT")>=0)Silverlight.ua.OS="Windows";else if(l.indexOf("PPC Mac OS X")>=0)Silverlight.ua.OS="MacPPC";else if(l.indexOf("Intel Mac OS X")>=0)Silverlight.ua.OS="MacIntel";if(Silverlight.ua.OS!="Unsupported")if(l.indexOf("MSIE")>=0){if(navigator.userAgent.indexOf("Win64")==-1)if(parseInt(l.split("MSIE")[1])>=6)Silverlight.ua.Browser="MSIE"}else if(l.indexOf("Firefox")>=0){var I=l.split("Firefox/")[1].split("."),i=parseInt(I[0]);if(i>=2)Silverlight.ua.Browser="Firefox";else{var o=parseInt(I[1]);if(i==1&&o>=5)Silverlight.ua.Browser="Firefox"}}else if(l.indexOf("Safari")>=0)Silverlight.ua.Browser="Safari"};Silverlight.detectUserAgent();Silverlight.isInstalled=function(o){var l=false,I=null;try{var i=null;if(Silverlight.ua.Browser=="MSIE")i=new ActiveXObject("AgControl.AgControl");else if(navigator.plugins["Silverlight Plug-In"]){I=document.createElement("div");document.body.appendChild(I);if(Silverlight.ua.Browser=="Safari")I.innerHTML='<embed type="application/x-silverlight" />';else I.innerHTML='<object type="application/x-silverlight"  data="data:," />';i=I.childNodes[0]}document.body.innerHTML;if(i.IsVersionSupported(o))l=true;i=null;Silverlight.available=true}catch(e){l=false}if(I)document.body.removeChild(I);return l};Silverlight.createObject=function(o,O,C,v,V,x,z){var X={},a=v,c=V;a.source=o;X.parentElement=O;X.id=Silverlight.HtmlAttributeEncode(C);X.width=Silverlight.HtmlAttributeEncode(a.width);X.height=Silverlight.HtmlAttributeEncode(a.height);X.ignoreBrowserVer=Boolean(a.ignoreBrowserVer);X.inplaceInstallPrompt=Boolean(a.inplaceInstallPrompt);var I=a.version.split(".");X.shortVer=I[0]+"."+I[1];X.version=a.version;a.initParams=x;a.windowless=a.isWindowless;a.maxFramerate=a.framerate;for(var i in c)if(c[i]&&i!="onLoad"&&i!="onError"){a[i]=c[i];c[i]=null}delete a.width;delete a.height;delete a.id;delete a.onLoad;delete a.onError;delete a.ignoreBrowserVer;delete a.inplaceInstallPrompt;delete a.version;delete a.isWindowless;delete a.framerate;delete a.data;delete a.src;if(Silverlight.isInstalled(X.version)){if(Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener("onunload",Silverlight.__cleanup,false);else window.attachEvent("onunload",Silverlight.__cleanup);var l=Silverlight._silverlightCount++;a.onLoad="__slLoad"+l;a.onError="__slError"+l;window[a.onLoad]=function(i){if(c.onLoad)c.onLoad(document.getElementById(X.id),z,i)};window[a.onError]=function(i,I){if(c.onError)c.onError(i,I);else Silverlight.default_error_handler(i,I)};slPluginHTML=Silverlight.buildHTML(X,a)}else slPluginHTML=Silverlight.buildPromptHTML(X);if(X.parentElement)X.parentElement.innerHTML=slPluginHTML;else return slPluginHTML};Silverlight.supportedUserAgent=function(){var i=Silverlight.ua,I=i.OS=="Unsupported"||i.Browser=="Unsupported"||i.OS=="Windows"&&i.Browser=="Safari"||i.OS.indexOf("Mac")>=0&&i.Browser=="IE";return!I};Silverlight.buildHTML=function(C,V){var v=[],I,i,l,o,O;if(Silverlight.ua.Browser=="Safari"){v.push("<embed ");I="";i=" ";l='="';o='"';O=' type="application/x-silverlight"/>'+"<iframe style='visibility:hidden;height:0;width:0'/>"}else{v.push('<object type="application/x-silverlight" data="data:,"');I=">";i=' <param name="';l='" value="';o='" />';O="</object>"}v.push(' id="'+C.id+'" width="'+C.width+'" height="'+C.height+'" '+I);for(var c in V)if(V[c])v.push(i+Silverlight.HtmlAttributeEncode(c)+l+Silverlight.HtmlAttributeEncode(V[c])+o);v.push(O);return v.join("")};Silverlight.default_error_handler=function(l,O){var o,I=O.ErrorType;o=O.ErrorCode;var i="\nSilverlight error message     \n";i+="ErrorCode: "+o+"\n";i+="ErrorType: "+I+"       \n";i+="Message: "+O.ErrorMessage+"     \n";if(I=="ParserError"){i+="XamlFile: "+O.xamlFile+"     \n";i+="Line: "+O.lineNumber+"     \n";i+="Position: "+O.charPosition+"     \n"}else if(I=="RuntimeError"){if(O.lineNumber!=0){i+="Line: "+O.lineNumber+"     \n";i+="Position: "+O.charPosition+"     \n"}i+="MethodName: "+O.methodName+"     \n"}alert(i)};Silverlight.createObjectEx=function(l){var i=l,I=Silverlight.createObject(i.source,i.parentElement,i.id,i.properties,i.events,i.initParams,i.context);if(i.parentElement==null)return I};Silverlight.buildPromptHTML=function(w){var Z=null,I=Silverlight.fwlinkRoot,i=Silverlight.ua.OS,l="92822",o,O="Get Microsoft Silverlight",c="0x409";if(w.inplaceInstallPrompt){var C="98109",v;if(Silverlight.available){o="96189";v="96422"}else{o="96188";v="96422"}var V="93481",x="93483";if(i=="Windows"){l="92799";V="92803";x="92805"}else if(i=="MacIntel"){l="92808";V="92804";x="92806"}else if(i=="MacPPC"){l="92807";V="92815";x="92816"}var X='By clicking <b>"Get Microsoft Silverlight"</b> you accept the<br /><a title="Silverlight License Agreement" href="{2}" target="_top" style="text-decoration: underline; color: #96C5E1"><b>Silverlight license agreement</b></a>',z='Silverlight updates automatically, <a title="Silverlight Privacy Statement" href="{3}" target="_top" style="text-decoration: underline; color: #96C5E1"><b>learn more</b></a>';Z='<table border="0" cellpadding="0" cellspacing="0" width="206px"><tr><td><img style="display: block; cursor: pointer; border= 0;" title="'+O+'" alt="'+O+'" onclick="javascript:Silverlight.followFWLink({0});" src="{1}" /></td></tr><tr><td style="width: 206px; margin: 0px; background: #FFFFFF; color: #C7C7C7; text-align: left; border-left-style: solid; border-right-style: solid; padding-left: 6px; padding-right: 6px; padding-top: 3px; padding-bottom: 0px; border-width: 2px; border-color: #c7c7bd; font-family: Verdana; font-size: 55%">'+X+'</td></tr><tr><td><img src="{5}" style="border: 0; display: block" /></td></tr><tr><td style="width: 206px; margin: 0px; background: #D8EFF9; color: #C7C7C7; text-align: left; border-left-style: solid; border-right-style: solid; padding-left: 6px; padding-right: 6px; padding-top: 0px; padding-bottom: 2px; border-width: 2px; border-color: #c7c7bd; font-family: Verdana; font-size: 55%">'+z+'</td></tr><tr><td><img alt="" src="{4}" /></td></tr></table>';Z=Z.replace("{2}",I+V);Z=Z.replace("{3}",I+x);Z=Z.replace("{4}",I+v);Z=Z.replace("{5}",I+C)}else{if(Silverlight.available)o="94377";else o="92801";if(i=="Windows")l="92800";else if(i=="MacIntel")l="92812";else if(i=="MacPPC")l="92811";Z='<div style="display:block; width: 205px; height: 67px;"><img onclick="javascript:Silverlight.followFWLink({0});" style="border:0; cursor:pointer" src="{1}" title="'+O+'" alt="'+O+'"/></div>'}Z=Z.replace("{0}",l);Z=Z.replace("{1}",I+o+"&amp;clcid="+c);return Z};Silverlight.__cleanup=function(){for(var i=Silverlight._silverlightCount-1;i>=0;i--){window["__slLoad"+i]=null;window["__slError"+i]=null}if(window.removeEventListener)window.removeEventListener("unload",Silverlight.__cleanup,false);else window.detachEvent("onunload",Silverlight.__cleanup)};Silverlight.followFWLink=function(i){top.location=Silverlight.fwlinkRoot+String(i)};Silverlight.HtmlAttributeEncode=function(o){var l,I="";if(o==null)return null;for(var i=0;i<o.length;i++){l=o.charCodeAt(i);if(l>96&&l<123||l>64&&l<91||l>43&&l<58&&l!=47||l==95)I=I+String.fromCharCode(l);else I=I+"&#"+l+";"}return I}
