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(_1){
if(_1==undefined){
_1=null;
}
var _2=false;
var _3=null;
try{
var _4=null;
var _5=false;
if(window.ActiveXObject){
try{
_4=new ActiveXObject("AgControl.AgControl");
if(_1===null){
_2=true;
}else{
if(_4.IsVersionSupported(_1)){
_2=true;
}
}
_4=null;
}
catch(e){
_5=true;
}
}else{
_5=true;
}
if(_5){
var _6=navigator.plugins["Silverlight Plug-In"];
if(_6){
if(_1===null){
_2=true;
}else{
var _7=_6.description;
if(_7==="1.0.30226.2"){
_7="2.0.30226.2";
}
var _8=_7.split(".");
while(_8.length>3){
_8.pop();
}
while(_8.length<4){
_8.push(0);
}
var _9=_1.split(".");
while(_9.length>4){
_9.pop();
}
var _a;
var _b;
var _c=0;
do{
_a=parseInt(_9[_c]);
_b=parseInt(_8[_c]);
_c++;
}while(_c<_9.length&&_a===_b);
if(_a<=_b&&!isNaN(_a)){
_2=true;
}
}
}
}
}
catch(e){
_2=false;
}
return _2;
};
Silverlight.WaitForInstallCompletion=function(){
if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){
try{
navigator.plugins.refresh();
}
catch(e){
}
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 _d=navigator.mimeTypes["application/x-silverlight-2"];
var _e=navigator.mimeTypes["application/x-silverlight-2-b2"];
var _f=navigator.mimeTypes["application/x-silverlight-2-b1"];
var _10=_f;
if(_e){
_10=_e;
}
if(!_d&&(_f||_e)){
if(!Silverlight.__installationEventFired){
Silverlight.onUpgradeRequired();
Silverlight.__installationEventFired=true;
}
}else{
if(_d&&_10){
if(_d.enabledPlugin&&_10.enabledPlugin){
if(_d.enabledPlugin.description!=_10.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(_11,_12,id,_14,_15,_16,_17){
var _18=new Object();
var _19=_14;
var _1a=_15;
_18.version=_19.version;
_19.source=_11;
_18.alt=_19.alt;
if(_16){
_19.initParams=_16;
}
if(_19.isWindowless&&!_19.windowless){
_19.windowless=_19.isWindowless;
}
if(_19.framerate&&!_19.maxFramerate){
_19.maxFramerate=_19.framerate;
}
if(id&&!_19.id){
_19.id=id;
}
delete _19.ignoreBrowserVer;
delete _19.inplaceInstallPrompt;
delete _19.version;
delete _19.isWindowless;
delete _19.framerate;
delete _19.data;
delete _19.src;
delete _19.alt;
if(Silverlight.isInstalled(_18.version)){
for(var _1b in _1a){
if(_1a[_1b]){
if(_1b=="onLoad"&&typeof _1a[_1b]=="function"&&_1a[_1b].length!=1){
var _1c=_1a[_1b];
_1a[_1b]=function(_1d){
return _1c(document.getElementById(id),_17,_1d);
};
}
var _1e=Silverlight.__getHandlerName(_1a[_1b]);
if(_1e!=null){
_19[_1b]=_1e;
_1a[_1b]=null;
}else{
throw "typeof events."+_1b+" must be 'function' or 'string'";
}
}
}
slPluginHTML=Silverlight.buildHTML(_19);
}else{
slPluginHTML=Silverlight.buildPromptHTML(_18);
}
if(_12){
_12.innerHTML=slPluginHTML;
}else{
return slPluginHTML;
}
};
Silverlight.buildHTML=function(_1f){
var _20=[];
_20.push("<object type=\"application/x-silverlight\" data=\"data:application/x-silverlight,\"");
if(_1f.id!=null){
_20.push(" id=\""+Silverlight.HtmlAttributeEncode(_1f.id)+"\"");
}
if(_1f.width!=null){
_20.push(" width=\""+_1f.width+"\"");
}
if(_1f.height!=null){
_20.push(" height=\""+_1f.height+"\"");
}
_20.push(" >");
delete _1f.id;
delete _1f.width;
delete _1f.height;
for(var _21 in _1f){
if(_1f[_21]){
_20.push("<param name=\""+Silverlight.HtmlAttributeEncode(_21)+"\" value=\""+Silverlight.HtmlAttributeEncode(_1f[_21])+"\" />");
}
}
_20.push("</object>");
return _20.join("");
};
Silverlight.createObjectEx=function(_22){
var _23=_22;
var _24=Silverlight.createObject(_23.source,_23.parentElement,_23.id,_23.properties,_23.events,_23.initParams,_23.context);
if(_23.parentElement==null){
return _24;
}
};
Silverlight.buildPromptHTML=function(_25){
var _26="";
var _27=Silverlight.fwlinkRoot;
var _28=_25.version;
if(_25.alt){
_26=_25.alt;
}else{
if(!_28){
_28="";
}
_26="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";
_26=_26.replace("{1}",_28);
_26=_26.replace("{2}",_27+"108181");
}
return _26;
};
Silverlight.getSilverlight=function(_29){
if(Silverlight.onGetSilverlight){
Silverlight.onGetSilverlight();
}
var _2a="";
var _2b=String(_29).split(".");
if(_2b.length>1){
var _2c=parseInt(_2b[0]);
if(isNaN(_2c)||_2c<2){
_2a="1.0";
}else{
_2a=_2b[0]+"."+_2b[1];
}
}
var _2d="";
if(_2a.match(/^\d+\056\d+$/)){
_2d="&v="+_2a;
}
Silverlight.followFWLink("114576"+_2d);
};
Silverlight.followFWLink=function(_2e){
top.location=Silverlight.fwlinkRoot+String(_2e);
};
Silverlight.HtmlAttributeEncode=function(_2f){
var c;
var _31="";
if(_2f==null){
return null;
}
for(var cnt=0;cnt<_2f.length;cnt++){
c=_2f.charCodeAt(cnt);
if(((c>96)&&(c<123))||((c>64)&&(c<91))||((c>43)&&(c<58)&&(c!=47))||(c==95)){
_31=_31+String.fromCharCode(c);
}else{
_31=_31+"&#"+c+";";
}
}
return _31;
};
Silverlight.default_error_handler=function(_33,_34){
var _35;
var _36=_34.ErrorType;
_35=_34.ErrorCode;
var _37="\nSilverlight error message     \n";
_37+="ErrorCode: "+_35+"\n";
_37+="ErrorType: "+_36+"       \n";
_37+="Message: "+_34.ErrorMessage+"     \n";
if(_36=="ParserError"){
_37+="XamlFile: "+_34.xamlFile+"     \n";
_37+="Line: "+_34.lineNumber+"     \n";
_37+="Position: "+_34.charPosition+"     \n";
}else{
if(_36=="RuntimeError"){
if(_34.lineNumber!=0){
_37+="Line: "+_34.lineNumber+"     \n";
_37+="Position: "+_34.charPosition+"     \n";
}
_37+="MethodName: "+_34.methodName+"     \n";
}
}
alert(_37);
};
Silverlight.__cleanup=function(){
for(var i=Silverlight._silverlightCount-1;i>=0;i--){
window["__slEvent"+i]=null;
}
Silverlight._silverlightCount=0;
if(window.removeEventListener){
window.removeEventListener("unload",Silverlight.__cleanup,false);
}else{
window.detachEvent("onunload",Silverlight.__cleanup);
}
};
Silverlight.__getHandlerName=function(_39){
var _3a="";
if(typeof _39=="string"){
_3a=_39;
}else{
if(typeof _39=="function"){
if(Silverlight._silverlightCount==0){
if(window.addEventListener){
window.addEventListener("onunload",Silverlight.__cleanup,false);
}else{
window.attachEvent("onunload",Silverlight.__cleanup);
}
}
var _3b=Silverlight._silverlightCount++;
_3a="__slEvent"+_3b;
window[_3a]=_39;
}else{
_3a=null;
}
}
return _3a;
};
Silverlight.onRequiredVersionAvailable=function(){
};
Silverlight.onRestartRequired=function(){
};
Silverlight.onUpgradeRequired=function(){
};
Silverlight.onInstallRequired=function(){
};
Silverlight.IsVersionAvailableOnError=function(_3c,_3d){
var _3e=false;
try{
if(_3d.ErrorCode==8001&&!Silverlight.__installationEventFired){
Silverlight.onUpgradeRequired();
Silverlight.__installationEventFired=true;
}else{
if(_3d.ErrorCode==8002&&!Silverlight.__installationEventFired){
Silverlight.onRestartRequired();
Silverlight.__installationEventFired=true;
}else{
if(_3d.ErrorCode==5014||_3d.ErrorCode==2106){
if(Silverlight.__verifySilverlight2UpgradeSuccess(_3d.getHost())){
_3e=true;
}
}else{
_3e=true;
}
}
}
}
catch(e){
}
return _3e;
};
Silverlight.IsVersionAvailableOnLoad=function(_3f){
var _40=false;
try{
if(Silverlight.__verifySilverlight2UpgradeSuccess(_3f.getHost())){
_40=true;
}
}
catch(e){
}
return _40;
};
Silverlight.__verifySilverlight2UpgradeSuccess=function(_41){
var _42=false;
var _43="2.0.31005";
var _44=null;
try{
if(_41.IsVersionSupported(_43+".99")){
_44=Silverlight.onRequiredVersionAvailable;
_42=true;
}else{
if(_41.IsVersionSupported(_43+".0")){
_44=Silverlight.onRestartRequired;
}else{
_44=Silverlight.onUpgradeRequired;
}
}
if(_44&&!Silverlight.__installationEventFired){
_44();
Silverlight.__installationEventFired=true;
}
}
catch(e){
}
return _42;
};

