
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/15/2008 4:09:28 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(vf6d8){ ISControl.call(this,vf6d8);}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(vba424,v7c367) { var vc9928 =new SilverlightSourceData(); vc9928.Element =vba424; vc9928.FileName =v7c367;  this.Sources[this.Sources.length] =vc9928;  };  this.Clear =function() { this.Sources =new Array(); };  this.PerformDownload =function(v8f348,v74577) { v8f348.DownloadResourceCompleted =false;  this.Control =v8f348;  v8f348.HideElement(); this.CreateDownloadUI(v8f348,v74577);  this.DownloadProgress(); this.CreateDownloader(v8f348);  ISCoreSilverlightEngine.ResourceObject =this;   var vd4162 =this; if (IS.moz) window.setTimeout(function(){vd4162.DownloadSource();},1500); else vd4162.DownloadSource();  };   this.CreateDownloader =function(v8f348) { var v29e47 =v8f348.SilverlightHost; var v76853 =v29e47.createObject("downloader"); v76853.addEventListener("completed",this.OnSilverlightResourcesCompleted); v76853.addEventListener("downloadfailed",this.OnSilverlightDownloadFailed);  this.Downloader =v76853; };  this.CreateDownloadUI =function(v8f348,v74577) { var v29e47 =v8f348.SilverlightHost; var v80317 =ISCoreSilverlightEngine.CreateDownloadProgress(v8f348,v74577);  this.DownloadProgressElement =v80317[0]; this.TextblockElement =v80317[1];  };  this.DownloadProgress =function () { var v63c88 =this.TotalSourcesDownloaded /this.Sources.length *100; v63c88 =Math.round(v63c88); this.TextblockElement.Text =v63c88 +"% 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 vc9928 =this.Sources[this.TotalSourcesDownloaded++];  this.DownloadProgress();  this.DownloadedElement =vc9928.Element;   if (vc9928.FileName !=null &&vc9928.FileName !="") { this.Downloader.open("GET",vc9928.FileName);  this.Downloader.send(); this.CurrentData =vc9928;  } else { this.DownloadSource(); }  } else { var v8f348 =this.Control;  v8f348.ShowElement(); v8f348.OnAfterDownloadResource(); v8f348.SilverlightRootElement.children.remove(this.DownloadProgressElement); v8f348.DownloadResourceCompleted =true;  this.CurrentData =null;  if (!IS.moz) { this.Downloader.removeEventListener("completed",this.OnSilverlightResourcesCompleted); this.Downloader.removeEventListener("downloadfailed",this.OnSilverlightDownloadFailed); } } };  this.OnSilverlightResourcesCompleted =function(v34e63,v99486) { var v29e47 =v34e63.getHost(); var v0a463 =v29e47.id; var v8f348 =ISGetObject(v0a463);  v8f348.SilverlightResources.DownloadedElement.setSource(v34e63,"");  v8f348.SilverlightResources.DownloadSource();  };  this.OnSilverlightDownloadFailed =function(v34e63,v99486) { var v29e47 =v34e63.getHost(); var v0a463 =v29e47.id; var v8f348 =ISGetObject(v0a463); var v76853 =v8f348.SilverlightResources; alert("Error downloading resource '" +v76853.CurrentData.FileName +"'"); v76853.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(""); } }}