
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 10/23/2008 3:21:11 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
function ISSilverlightControl(v3d856){ ISControl.call(this,v3d856);}function ISBrushSettings(){ this._Type ="ISBrushSettings"; ISObject.call(this);  this.Mode ="SolidColorBrush"; this.SolidColorBrush =new ISSolidColorBrush(); this.LinearGradientBrush =new ISLinearGradientBrush(); this.RadialGradientBrush =new ISRadialGradientBrush(); }function ISBrush(){ this._Type ="ISBrush"; ISObject.call(this);  this.Opacity =1.0;}function ISSolidColorBrush(){ this._Type ="ISSolidColorBrush"; ISBrush.call(this);  this.Color ="#FFFFFFFF";}function ISLinearGradientBrush(){ this._Type ="ISSolidColorBrush"; ISBrush.call(this);  this.EndPoint =new ISPoint(); this.EndPoint.X =1; this.EndPoint.Y =0.5; this.GradientStops =""; this.SpreadMode ="Pad"; this.StartPoint =new ISPoint();  this.StartPoint.X =0; this.StartPoint.Y =0.5; }function ISPoint(){ this._Type ="ISPoint"; ISObject.call(this);  this.X =0.0; this.Y =0.0; }function ISRadialGradientBrush(){ this._Type ="ISRadialGradientBrush"; ISBrush.call(this);  this.Center =new ISPoint(); this.Center.X =0.5; this.Center.Y =0.5; this.GradientOrigin =new ISPoint(); this.GradientOrigin.X =0.5; this.GradientOrigin.Y =0.5; this.GradientStops =""; this.RadiusX =0.5; this.RadiusY =0.5; this.SpreadMode ="Pad"; }function ISFont(){ this._Type ="ISFont"; ISObject.call(this);  this.UseCustomFont =false; this.CustomFontFamily =""; this.FontSource ="";   this.FontFamily ="Verdana"; this.FontSize =10; this.FontStretch ="Normal"; this.FontStyle ="Normal"; this.FontWeight ="Normal"; this.TextDecorations ="None"; this.Foreground =new ISBrushSettings(); }function ISPadding(){ this._Type ="ISPadding"; ISObject.call(this);  this.All =-1; this.Top =0; this.Bottom =0; this.Left =0; this.RIght =0;}function DownloaderParameter(){ this.Direction ="Horizontal"; this.Position =64; this.Modifier =1; this.Width =400;}function SilverlightResources(){ this.Control =null; this.Downloader =null;  this.TotalSourcesDownloaded =0;  this.Sources =new Array();  this.TextBlockElement =null;  this.DownloadProgressElement =null; this.CurrentData =null;   this.Add =function(vfe97,v2ab58) { var v4ce27 =new SilverlightSourceData(); v4ce27.Element =vfe97; v4ce27.FileName =v2ab58;  this.Sources[this.Sources.length] =v4ce27;  };  this.Clear =function() { this.Sources =new Array(); };  this.PerformDownload =function(v7f168,v63468) { v7f168.DownloadResourceCompleted =false;  this.Control =v7f168;  v7f168.HideElement(); this.CreateDownloadUI(v7f168,v63468);  this.DownloadProgress(); this.CreateDownloader(v7f168);  ISCoreSilverlightEngine.ResourceObject =this;   var v81d13 =this; if (IS.moz) window.setTimeout(function(){v81d13.DownloadSource();},1500); else v81d13.DownloadSource();  };   this.CreateDownloader =function(v7f168) { var vaf154 =v7f168.SilverlightHost; var v33842 =vaf154.createObject("downloader"); v33842.addEventListener("completed",this.OnSilverlightResourcesCompleted); v33842.addEventListener("downloadfailed",this.OnSilverlightDownloadFailed);  this.Downloader =v33842; };  this.CreateDownloadUI =function(v7f168,v63468) { var vaf154 =v7f168.SilverlightHost; var v1ec33 =ISCoreSilverlightEngine.CreateDownloadProgress(v7f168,v63468);  this.DownloadProgressElement =v1ec33[0]; this.TextblockElement =v1ec33[1];  };  this.DownloadProgress =function () { var vd3620 =this.TotalSourcesDownloaded /this.Sources.length *100; vd3620 =Math.round(vd3620); this.TextblockElement.Text =vd3620 +"% Completed";   this.TextblockElement["Canvas.Top"] =(this.DownloadProgressElement.Height -this.TextblockElement.actualHeight)/2; this.TextblockElement["Canvas.Left"] =(this.DownloadProgressElement.Width -this.TextblockElement.actualWidth)/2;   };  this.Reset =function() { this.TotalSourcesDownloaded =0; this.Sources =new Array(); this.CurrentData =null; };  this.DownloadSource =function() { if (this.TotalSourcesDownloaded <this.Sources.length) { var v4ce27 =this.Sources[this.TotalSourcesDownloaded++];  this.DownloadProgress();  this.DownloadedElement =v4ce27.Element;   if (v4ce27.FileName !=null &&v4ce27.FileName !="") { this.Downloader.open("GET",v4ce27.FileName);  this.Downloader.send(); this.CurrentData =v4ce27;  } else { this.DownloadSource(); }  } else { var v7f168 =this.Control;  v7f168.ShowElement(); v7f168.OnAfterDownloadResource(); v7f168.SilverlightRootElement.children.remove(this.DownloadProgressElement); v7f168.DownloadResourceCompleted =true;  this.CurrentData =null;  if (!IS.moz) { this.Downloader.removeEventListener("completed",this.OnSilverlightResourcesCompleted); this.Downloader.removeEventListener("downloadfailed",this.OnSilverlightDownloadFailed); } } };  this.OnSilverlightResourcesCompleted =function(v3c947,v74d77) { var vaf154 =v3c947.getHost(); var vb3682 =vaf154.id; var v7f168 =ISGetObject(vb3682);  v7f168.SilverlightResources.DownloadedElement.setSource(v3c947,"");  v7f168.SilverlightResources.DownloadSource();  };  this.OnSilverlightDownloadFailed =function(v3c947,v74d77) { var vaf154 =v3c947.getHost(); var vb3682 =vaf154.id; var v7f168 =ISGetObject(vb3682); var v33842 =v7f168.SilverlightResources; alert("Error downloading resource '" +v33842.CurrentData.FileName +"'"); v33842.DownloadSource(); };}function SilverlightSourceData(){ this.Element =null; this.FileName =null;}var ISCoreSilverlightEngine ={ StringBuilder: function() { this.Data =new Array();  this.Append =function(data) { this.Data.push(data); };  this.Clear =function() { this.Data =null; this.Data =new Array(); };  this.ToString =function() { return this.Data.join(""); } }}