
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 11/28/2008 2:04:09 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 WebCoverFlow(v19799){ this.ClassName ="WebCoverFlow"; this.Version ="1.0.1000"; this.BuildNumber ="0"; this.MajorVersion ="1.0"; this.RequiredFrameworkVersion ="3.0.5000.1"; ISSilverlightControl.call(this,v19799);  this.WebResourceIdentifier ="A"; this.ScriptDirectory ="/CommonLibrary/WebAqua/V1_0_1000/"; this.ViewStateStorage ="PageCache"; this.AccessKey =""; this.Enabled =true; this.TabIndex =null; this.ToolTip =""; this.ClientID =v19799; this.ID =v19799; this.UniqueID =v19799; this.ImagesDirectory ="/CommonLibrary/Images/WebAqua/"; this.Width =800; this.Height =360; this.OriginalWidth =0; this.OriginalHeight =0; this.IsUnloaded =false;  this.IsLoading =true;  this.ColorTheme ="#FF000000"; this.ReflectionBackgroundColor ="#FF000000"; this.LayoutMode ="Auto"; this.CoverSize =200; this.AutoCoverSize =null; this.MaximumPreview =-1; this.StartUpPosition ="Center"; this.CustomStartIndex =0; this.EnableLoadOnDemand =false; this.PageSize =15; this.SlideShowLatency =1000; this.SlideShowRepeat =true; this.ReflectionOpacity =0.3; this.VideoMode ="Buffering"; this.BufferingTime =5; this.TitleShadowOffset =new ISPoint(); this.TitleShadowOffset.X =1; this.TitleShadowOffset.Y =1;  this.TitleShadow =false; this.TitleShadowOpacity =0.7; this.SubTitleShadowOffset =new ISPoint(); this.SubTitleShadowOffset.X =1; this.SubTitleShadowOffset.Y =1;  this.SubTitleShadow =false; this.SubTitleShadowOpacity =0.7;  this.TotalFocusItem =1;  this.Items =new ISArray();  this.ImagesSettings =new WebCoverFlowImagesSettings();  this.ClientSideEvents =new WebCoverFlowClientSideEvents();   this.TooltipSettings =new WebCoverFlowTooltipSettings(); this.TextSettings =new WebCoverFlowTextSettings(); this.BackgroundSettings =new WebCoverFlowBackgroundSettings(); this.BackgroundSettings.SimpleModeSettings.RadiusX =0;  this.BackgroundSettings.SimpleModeSettings.RadiusY =0;  this.BackgroundSettings.SimpleModeSettings.Opacity =1; this.BackgroundSettings.SimpleModeSettings.Stroke =0; this.BackgroundSettings.SimpleModeSettings.Fill.SolidColorBrush.Color ="Black";  this.LayoutSettings =new WebCoverFlowLayoutSettings(); this.TitleFontSettings =new ISFont(); this.TitleFontSettings.FontSize =16; this.TitleFontSettings.FontFamily ="Verdana"; this.SubTitleFontSettings =new ISFont(); this.SubTitleFontSettings.FontSize =12; this.SubTitleFontSettings.FontFamily ="Verdana"; this.VisualEffectSettings =new WebCoverFlowVisualEffectSettings();   this.GetElement =function() { return document.getElementById(this.Id +IS.FrameSuffix); };  this.OnUnload =function() { var v1ba74 =this.GetElement(); if (v1ba74) Listener.Unload(v1ba74);   this.IsUnloaded =true; };  this.OnInitialize =function() { if (this.Events.OnInitialize !="") { ISEvent.Raise(this.ClientSideEvents.OnInitialize,this.ID); } };   this.OnPropertiesInitialized =function() { if (this.Events !=null) { var v9c210; for(v9c210 in this.Events) { if (typeof(this.Events[v9c210])=="string") this.ClientSideEvents[v9c210] =this.Events[v9c210]; } } };   this.GetAutoCoverSize =function() { var v50620 =this.FrameObj.children[0].Content.WebCoverFlowBridge.Control; v50620.DetermineAutoCoverSize(); };   this.SetFlowIndex =function(v8b233,vd4e45) { var v50620 =this.FrameObj.children[0].Content.WebCoverFlowBridge.Control; v50620.SetFlowIndex(v8b233); };  this.Flow =function() { var v50620 =this.FrameObj.children[0].Content.WebCoverFlowBridge.Control;  v50620.Flow(); };  this.Collapse =function() { var v50620 =this.FrameObj.children[0].Content.WebCoverFlowBridge.Control; v50620.Collapse(); };  this.IsFullScreenMode =function() { var v50620 =this.FrameObj.children[0].Content.WebCoverFlowBridge.Control; v50620.IsFullScreen; };  this.RefreshUIElement =function() { this.Items.UpdateChanges();  this._Type =this.ClassName; IS.SetModifiedPropertiesToXml(this,this.XmlNode,true); for (var v8b233 =0 ; v8b233 <this.Items.length ; v8b233++) IS.SetModifiedPropertiesToXml(this.Items[v8b233],this.Items[v8b233].XmlNode,true);  this.FrameObj.children[0].Content.WebCoverFlowBridge.InitializeControl(this.ID);   var v8e652 =ISPosLib.getWidth(this.FrameObj); var vdee28 =ISPosLib.getHeight(this.FrameObj);  var vefb21 =this.XmlNode;  ISXml.SetAttribute(vefb21,"Width",v8e652 ); ISXml.SetAttribute(vefb21,"Height",vdee28 );  var v06e94 =ISXml.CreateNode(this.XmlDt,vefb21,"ClientSideEvents",""); ISXml.SetAttribute(v06e94,"OnInitialize",this.ClientSideEvents.OnInitialize); ISXml.SetAttribute(v06e94,"OnBeforeItemSelect",this.ClientSideEvents.OnBeforeItemSelect); ISXml.SetAttribute(v06e94,"OnAfterItemSelect",this.ClientSideEvents.OnAfterItemSelect); ISXml.SetAttribute(v06e94,"OnActiveItemClick",this.ClientSideEvents.OnActiveItemClick); ISXml.SetAttribute(v06e94,"OnFullScreenChanged",this.ClientSideEvents.OnFullScreenChanged); ISXml.SetAttribute(v06e94,"OnVideoFullScreenChanged",this.ClientSideEvents.OnVideoFullScreenChanged); ISXml.SetAttribute(v06e94,"OnVideoPlay",this.ClientSideEvents.OnVideoPlay); ISXml.SetAttribute(v06e94,"OnVideoPause",this.ClientSideEvents.OnVideoPause); ISXml.SetAttribute(v06e94,"OnVideoRollBack",this.ClientSideEvents.OnVideoRollBack);  var v79157 =vefb21.selectSingleNode("ImagesSettings"); ISXml.SetAttribute(v79157,"DefaultPicture",this.ResolveImagePath(this.ImagesDirectory,this.ImagesSettings.DefaultPicture)); ISXml.SetAttribute(v79157,"DefaultVideo",this.ResolveImagePath(this.ImagesDirectory,this.ImagesSettings.DefaultVideo));  this.FrameObj.children[0].Content.WebCoverFlowBridge.InitializeWebCoverFlow(this.XmlNode.xml);  }; }function WebCoverFlowItem(){ this._Type ="WebCoverFlowItem"; ISObject.call(this); this.Name ="";  this.Title =""; this.SubTitle ="";  this.MediaType ="Image";  this.Source =""; this.VideoSource ="";    this.SilverlightElement =null; this.FlowAnimation =null;  this.ImageCanvas =null; this.ImageElement =null; this.MediaElement =null;  this.ReflectionCanvas =null;  this.ReflectionElement =null; this.ReflectionMediaElement =null;  this.ImageLoaded =false; this.Prev =null; this.Next =null; this.Downloader =null;}function WebCoverFlowImagesSettings(){ this._Type ="WebCoverFlowImagesSettings"; ISObject.call(this);  this.DefaultPicture ="defaultPicture.png"; this.DefaultVideo ="defaultVideo.png";}function WebCoverFlowClientSideEvents(){ this._Type ="WebCoverFlowClientSideEvents"; ISObject.call(this);  this.OnInitialize =""; this.OnBeforeItemSelect =""; this.OnAfterItemSelect =""; this.OnActiveItemClick =""; this.OnFullScreenChanged =""; this.OnVideoFullScreenChanged =""; this.OnVideoPlay =""; this.OnVideoPause =""; this.OnVideoRollBack ="";}function WebCoverFlowBackgroundSettings(){ this._Type ="WebCoverFlowBackgroundSettings"; ISObject.call(this);  this.Mode ="Simple";  this.SimpleModeSettings =new WebCoverFlowSimpleBackgroundSettings();  this.ImageModeSettings =new WebCoverFlowImageBackgroundSettings(); this.CustomModeSettings =new WebCoverFlowCustomBackgroundSettings(); }function WebCoverFlowSimpleBackgroundSettings(){ this._Type ="WebCoverFlowSimpleBackgroundSettings"; ISObject.call(this);  this.Height =-1; this.Width =-1; this.Opacity =1.0; this.RadiusX =0.0; this.RadiusY =0.0; this.StrokeThickness =0.0; this.Fill =new ISBrushSettings(); this.OpacityMask =new ISBrushSettings(); this.Stroke =new ISBrushSettings(); }function WebCoverFlowImageBackgroundSettings(){ this._Type ="WebCoverFlowCustomBackgroundSettings"; ISObject.call(this);   this.ImageSource =""; this.StretchMode ="Fill"; this.Opacity =1; }function WebCoverFlowCustomBackgroundSettings(){ this._Type ="WebCoverFlowCustomBackgroundSettings"; ISObject.call(this);   this.XamlString =""; this.XamlUrl =""; }function WebCoverFlowLayoutSettings(){ this._Type ="WebCoverFlowLayoutSettings"; ISObject.call(this);   this.CoverFlowPadding =new ISPadding(); this.CoverFlowPadding.Top =20; this.CoverFlowPadding.Left =20; this.CoverFlowPadding.Right =20; this.CoverFlowPadding.Bottom =20;  this.TextInfoSpace =new WebCoverFlowTextInfoSpace(); this.ControlPanelSpace =new WebCoverFlowControlPanelSpace(); this.ItemSpace =40;}function WebCoverFlowTextInfoSpace(){ this._Type ="WebCoverFlowTextInfoSpace"; ISObject.call(this);  this.Visible =true; this.TitleSpace =20; this.SubTitleSpace =20;}function WebCoverFlowControlPanelSpace(){ this._Type ="WebCoverFlowTextInfoSpace"; ISObject.call(this);  this.Visible =true; this.ShowSlideShowButton =true; this.ShowFullScreenButton =true; this.ShowScrollBar =true; this.PanelSpace =32; this.PanelPosition =8; }function WebCoverFlowVisualEffectSettings(){ this._Type ="WebCoverFlowVisualEffectSettings"; ISObject.call(this);   this.PerspectiveMode ="Perspective"; this.Offset =0.8; this.PerspectiveDistance =1000; this.PerspectivePoint =0.7; this.PerspectiveTop =0.175; this.PerspectiveBottom =5; }function WebCoverFlowTooltipSettings(){ this._Type ="WebCoverFlowTooltipSettings"; ISObject.call(this);  this.Font =new ISFont();  this.Font.FontSize =11; this.Font.FontFamily ="Verdana";  this.TooltipShadowOffset =new ISPoint(); this.TooltipShadowOffset.X =1; this.TooltipShadowOffset.Y =1;  this.TooltipShadow =false; this.TooltipShadowOpacity =0.7; this.TooltipPosition =5; this.Visible =true;  this.BackgroundSettings =new WebCoverFlowBackgroundSettings();  this.BackgroundSettings.SimpleModeSettings.RadiusX =5;  this.BackgroundSettings.SimpleModeSettings.RadiusY =5;  this.BackgroundSettings.SimpleModeSettings.Opacity =0.3;  this.BackgroundSettings.SimpleModeSettings.Fill.SolidColorBrush.Color ="Black";}function WebCoverFlowTextSettings(){ this._Type ="WebCoverFlowTextSettings"; ISObject.call(this);  this.Play ="Start Slide Show"; this.Pause ="Stop Slide Show"; this.Rewind ="Go to First Item"; this.Next ="Next"; this.Prev ="Prev"; this.FastForward ="Go to Last Item"; this.FullScreen ="Full Screen"; this.FullScreenOut ="Exit Full Screen"; this.VideoPlay ="Play"; this.VideoPause ="Pause"; this.VideoGoToFirstFrame ="Go to First Frame"; this.VideoFullScreen ="Full Screen";  this.VideoFullScreenOut ="Exit Full Screen";}function InitWebCoverFlow(va6290){ var v12e54 =WebCoverFlowEngine.Create(va6290); v12e54.OnInitialize(); }function WebCoverFlowDestructor(){ var v75574 =delete WebCoverFlowEngine;}function LoadWebCoverFlow(v63c4,vd7c32){ var ve3310 =ISGetObject(v63c4.getHost().id);  var vd6134 =ve3310.XmlDt.childNodes[0]; var va2e46 =ISPosLib.getWidth(ve3310.FrameObj); var v7cf19 =ISPosLib.getHeight(ve3310.FrameObj);  ISXml.SetAttribute(vd6134,"Width",va2e46 ); ISXml.SetAttribute(vd6134,"Height",v7cf19 );  var v56910 =ISXml.CreateNode(ve3310.XmlDt,vd6134,"ClientSideEvents",""); ISXml.SetAttribute(v56910,"OnInitialize",ve3310.ClientSideEvents.OnInitialize); ISXml.SetAttribute(v56910,"OnBeforeItemSelect",ve3310.ClientSideEvents.OnBeforeItemSelect); ISXml.SetAttribute(v56910,"OnActiveItemClick",ve3310.ClientSideEvents.OnActiveItemClick); ISXml.SetAttribute(v56910,"OnAfterItemSelect",ve3310.ClientSideEvents.OnAfterItemSelect); ISXml.SetAttribute(v56910,"OnFullScreenChanged",ve3310.ClientSideEvents.OnFullScreenChanged); ISXml.SetAttribute(v56910,"OnVideoFullScreenChanged",ve3310.ClientSideEvents.OnVideoFullScreenChanged); ISXml.SetAttribute(v56910,"OnVideoPlay",ve3310.ClientSideEvents.OnVideoPlay); ISXml.SetAttribute(v56910,"OnVideoPause",ve3310.ClientSideEvents.OnVideoPause); ISXml.SetAttribute(v56910,"OnVideoRollBack",ve3310.ClientSideEvents.OnVideoRollBack);  var vab945 =vd6134.selectSingleNode("ImagesSettings"); ISXml.SetAttribute(vab945,"DefaultPicture",ve3310.ResolveImagePath(ve3310.ImagesDirectory,ve3310.ImagesSettings.DefaultPicture)); ISXml.SetAttribute(vab945,"DefaultVideo",ve3310.ResolveImagePath(ve3310.ImagesDirectory,ve3310.ImagesSettings.DefaultVideo));  try { v63c4.getHost().Content.WebCoverFlowBridge.InitializeControl(ve3310.ID); v63c4.getHost().Content.WebCoverFlowBridge.InitializeWebCoverFlow(ve3310.XmlDt.xml);   ISWebCoverFlowCollection[ISWebCoverFlowCollection.length] =ve3310; } catch(e) { } }function WebCoverFlowResizeContainer(vf2234,v2310){ var vd2759 =ISGetObject(vf2234); var v19c11 =vd2759.FrameObj; var v70f51 =v19c11.children[0]; var v4f249 =v70f51.Content.WebCoverFlowBridge;  if (v2310) { vd2759.OriginalHeight =v19c11.clientHeight; vd2759.OriginalWidth =v19c11.clientWidth; v4f249.SetWidth(v70f51.Content.actualWidth); v4f249.SetHeight(v70f51.Content.actualHeight);  } else { v4f249.SetWidth(vd2759.OriginalWidth); v4f249.SetHeight(vd2759.OriginalHeight);  }  }var WebCoverFlowEngine ={ Create: function(id) { var control =new WebCoverFlow(id);  WebCoverFlowEngine.AssignProperties(control);  WebCoverFlowEngine.CreateSilverlight(control); control.IsInit =true; return control; },  AssignProperties: function(control,isRuntime,parameters) { if (control ==null) return;  if (!control.IsInit) { var parentNode =null;  try { parentNode =ISXml.GetNode(control.XmlDt,"//WebCoverFlow"); } catch(exception) { }  if (parentNode ==null) parentNode =control.XmlDt.documentElement; if (parentNode !=null) { IS.SetPropertiesRecursive(control,parentNode);  } } },  CreateSilverlight: function(control) { var stringBuilder =new ISCoreSilverlightEngine.StringBuilder(); stringBuilder.Append("<object "); stringBuilder.Append("id='" +control.ID +"' "); stringBuilder.Append("data='data:application/x-silverlight,' "); stringBuilder.Append("type='application/x-silverlight-2' "); stringBuilder.Append("width='" +control.FrameObj.style.width +"' "); stringBuilder.Append("height='" +control.FrameObj.style.height +"' "); stringBuilder.Append(">");  stringBuilder.Append("<param "); stringBuilder.Append("name='source' ");  stringBuilder.Append("value='" +control.InternalXapResource +"' "); stringBuilder.Append("/>");  stringBuilder.Append("<param "); stringBuilder.Append("name='onload' "); stringBuilder.Append("value='LoadWebCoverFlow' "); stringBuilder.Append("/>");  if (control.ClientSideEvents.OnError !="") { stringBuilder.Append("<param "); stringBuilder.Append("name='onerror' "); stringBuilder.Append("value='" +control.ClientSideEvents.OnError +"' "); stringBuilder.Append("/>");  } stringBuilder.Append("<param "); stringBuilder.Append("name='windowless' "); stringBuilder.Append("value='false' "); stringBuilder.Append("/>");   stringBuilder.Append("<param "); stringBuilder.Append("name='background' "); stringBuilder.Append("value='transparent' "); stringBuilder.Append("/>");   stringBuilder.Append("<a ");
 stringBuilder.Append("href='http://go.microsoft.com/fwlink/?LinkID=115261' ");
 stringBuilder.Append("style='text-decoration: none;'>");  stringBuilder.Append("<img ");
 stringBuilder.Append("src='http://go.microsoft.com/fwlink/?LinkId=108181' ");
 stringBuilder.Append("alt='Get Microsoft Silverlight' "); stringBuilder.Append("style='border-style: none' "); stringBuilder.Append("/>"); stringBuilder.Append("</a>"); stringBuilder.Append("</object>");   control.FrameObj.innerHTML =stringBuilder.ToString();  },  ResizeAllCoverFlowTO: function() { window.setTimeout(WebCoverFlowEngine.ResizeAllCoverFlow,5); },  ResizeAllCoverFlow: function() { for (var i =0 ; i <ISWebCoverFlowCollection.length; i++) { var webCoverFlow =ISWebCoverFlowCollection[i];   var frameObj =webCoverFlow.FrameObj; var host =frameObj.children[0]; var bridge =host.Content.WebCoverFlowBridge;  bridge.SetWidth(host.Content.actualWidth); bridge.SetHeight(host.Content.actualHeight);  } }};window.attachEvent("onunload",WebCoverFlowDestructor);window.attachEvent("onresize",WebCoverFlowEngine.ResizeAllCoverFlowTO);var ISWebCoverFlowCollection =new Array();