if(!window.Silverlight){window.Silverlight={}}Silverlight._silverlightCount=0;Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Silverlight.onGetSilverlight=null;Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};Silverlight.isInstalled=function(J){var L=false;var A=null;try{var F=null;try{F=new ActiveXObject("AgControl.AgControl");if(J==null){L=true}else{if(F.IsVersionSupported(J)){L=true}}F=null}catch(I){var G=navigator.plugins["Silverlight Plug-In"];if(G){if(J===null){L=true}else{var B=G.description;if(B==="1.0.30226.2"){B="2.0.30226.2"}var C=B.split(".");while(C.length>3){C.pop()}while(C.length<4){C.push(0)}var D=J.split(".");while(D.length>4){D.pop()}var K;var E;var H=0;do{K=parseInt(D[H]);E=parseInt(C[H]);H++}while(H<D.length&&K===E);if(K<=E&&!isNaN(K)){L=true}}}}}catch(I){L=false}if(A){document.body.removeChild(A)}return L};Silverlight.WaitForInstallCompletion=function(){if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){try{navigator.plugins.refresh()}catch(A){}if(Silverlight.isInstalled(null)){Silverlight.onSilverlightInstalled()}else{setTimeout(Silverlight.WaitForInstallCompletion,3000)}}};Silverlight.__startup=function(){Silverlight.isBrowserRestartRequired=Silverlight.isInstalled(null);if(!Silverlight.isBrowserRestartRequired){Silverlight.WaitForInstallCompletion()}if(window.removeEventListener){window.removeEventListener("load",Silverlight.__startup,false)}else{window.detachEvent("onload",Silverlight.__startup)}};if(window.addEventListener){window.addEventListener("load",Silverlight.__startup,false)}else{window.attachEvent("onload",Silverlight.__startup)}Silverlight.createObject=function(A,J,C,H,L,F,G){var M=new Object();var D=H;var K=L;M.version=D.version;D.source=A;M.alt=D.alt;if(F){D.initParams=F}if(D.isWindowless&&!D.windowless){D.windowless=D.isWindowless}if(D.framerate&&!D.maxFramerate){D.maxFramerate=D.framerate}if(C&&!D.id){D.id=C}delete D.ignoreBrowserVer;delete D.inplaceInstallPrompt;delete D.version;delete D.isWindowless;delete D.framerate;delete D.data;delete D.src;delete D.alt;if(Silverlight.isInstalled(M.version)){for(var B in K){if(K[B]){if(B=="onLoad"&&typeof K[B]=="function"&&K[B].length!=1){var I=K[B];K[B]=function(N){return I(document.getElementById(C),G,N)}}var E=Silverlight.__getHandlerName(K[B]);if(E!=null){D[B]=E;K[B]=null}else{throw"typeof events."+B+" must be 'function' or 'string'"}}}slPluginHTML=Silverlight.buildHTML(D)}else{slPluginHTML=Silverlight.buildPromptHTML(M)}if(J){J.innerHTML=slPluginHTML}else{return slPluginHTML}};Silverlight.buildHTML=function(C){var B=[];B.push('<object type="application/x-silverlight" data="data:application/x-silverlight,"');if(C.id!=null){B.push(' id="'+C.id+'"')}if(C.width!=null){B.push(' width="'+C.width+'"')}if(C.height!=null){B.push(' height="'+C.height+'"')}B.push(" >");delete C.id;delete C.width;delete C.height;for(var A in C){if(C[A]){B.push('<param name="'+Silverlight.HtmlAttributeEncode(A)+'" value="'+Silverlight.HtmlAttributeEncode(C[A])+'" />')}}B.push("</object>");return B.join("")};Silverlight.createObjectEx=function(C){var B=C;var A=Silverlight.createObject(B.source,B.parentElement,B.id,B.properties,B.events,B.initParams,B.context);if(B.parentElement==null){return A}};Silverlight.buildPromptHTML=function(B){var D="";var C=Silverlight.fwlinkRoot;var A=B.version;if(B.alt){D=B.alt}else{if(!A){A=""}D="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";D=D.replace("{1}",A);D=D.replace("{2}",C+"108181")}return D};Silverlight.getSilverlight=function(C){if(Silverlight.onGetSilverlight){Silverlight.onGetSilverlight()}var A="";var E=String(C).split(".");if(E.length>1){var D=parseInt(E[0]);if(isNaN(D)||D<2){A="1.0"}else{A=E[0]+"."+E[1]}}var B="";if(A.match(/^\d+\056\d+$/)){B="&v="+A}Silverlight.followFWLink("114576"+B)};Silverlight.followFWLink=function(A){top.location=Silverlight.fwlinkRoot+String(A)};Silverlight.HtmlAttributeEncode=function(B){var D;var C="";if(B==null){return null}for(var A=0;A<B.length;A++){D=B.charCodeAt(A);if(((D>96)&&(D<123))||((D>64)&&(D<91))||((D>43)&&(D<58)&&(D!=47))||(D==95)){C=C+String.fromCharCode(D)}else{C=C+"&#"+D+";"}}return C};Silverlight.default_error_handler=function(B,A){var C;var E=A.ErrorType;C=A.ErrorCode;var D="\nSilverlight error message     \n";D+="ErrorCode: "+C+"\n";D+="ErrorType: "+E+"       \n";D+="Message: "+A.ErrorMessage+"     \n";if(E=="ParserError"){D+="XamlFile: "+A.xamlFile+"     \n";D+="Line: "+A.lineNumber+"     \n";D+="Position: "+A.charPosition+"     \n"}else{if(E=="RuntimeError"){if(A.lineNumber!=0){D+="Line: "+A.lineNumber+"     \n";D+="Position: "+A.charPosition+"     \n"}D+="MethodName: "+A.methodName+"     \n"}}alert(D)};Silverlight.__cleanup=function(){for(var A=Silverlight._silverlightCount-1;A>=0;A--){window["__slEvent"+A]=null}Silverlight._silverlightCount=0;if(window.removeEventListener){window.removeEventListener("unload",Silverlight.__cleanup,false)}else{window.detachEvent("onunload",Silverlight.__cleanup)}};Silverlight.__getHandlerName=function(B){var A="";if(typeof B=="string"){A=B}else{if(typeof B=="function"){if(Silverlight._silverlightCount==0){if(window.addEventListener){window.addEventListener("onunload",Silverlight.__cleanup,false)}else{window.attachEvent("onunload",Silverlight.__cleanup)}}var C=Silverlight._silverlightCount++;A="__slEvent"+C;window[A]=B}else{A=null}}return A};if(!window.Silverlight){window.Silverlight={}}Silverlight.supportedUserAgent=function(G,I){try{var A=null;if(I){A=I}else{A=window.navigator.userAgent}var E={OS:"Unsupported",Browser:"Unsupported"};if(A.indexOf("Windows NT")>=0||A.indexOf("Mozilla/4.0 (compatible; MSIE 6.0)")>=0){E.OS="Windows"}else{if(A.indexOf("PPC Mac OS X")>=0){E.OS="MacPPC"}else{if(A.indexOf("Intel Mac OS X")>=0){E.OS="MacIntel"}}}if(E.OS!="Unsupported"){if(A.indexOf("MSIE")>=0){if(navigator.userAgent.indexOf("Win64")==-1){if(parseInt(A.split("MSIE")[1])>=6){E.Browser="MSIE"}}}else{if(A.indexOf("Firefox")>=0){var B=A.split("Firefox/")[1].split(".");var H=parseInt(B[0]);if(H>=2){E.Browser="Firefox"}else{var D=parseInt(B[1]);if((H==1)&&(D>=5)){E.Browser="Firefox"}}}else{if(A.indexOf("Safari")>=0){E.Browser="Safari"}}}}var C=(!(E.OS=="Unsupported"||E.Browser=="Unsupported"||(E.OS=="Windows"&&E.Browser=="Safari")||(E.OS.indexOf("Mac")>=0&&E.Browser=="MSIE")));if(G=="2.0"){return(C&&(E.OS!="MacPPC"))}else{if(G=="1.0"){return(C&&(A.indexOf("Windows NT 5.0")<0))}else{return(C)}}}catch(F){return false}};