
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/8/2009 8:47:40 AM
// 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 InitWebDesktopLoader(v9b422, v33e97, v08744, v8c47, vf5267) { var v91947 = document.getElementById(v9b422 + "_loader"); if (v91947) { if (v33e97 == "UseBuiltIn") { var v5bd8 = v91947.currentStyle; var v15692 = v91947.children[0]; var vaea42 = v15692.rows[1].cells[0].children[0]; var ve1745 = vaea42.children[0]; with (v15692.style) { color = v5bd8.color; fontFamily = v5bd8.fontFamily; fontSize = v5bd8.fontSize; } ve1745.style.filter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=30, FinishOpacity=100, Style=1, StartX=0,  FinishX=100, StartY=0, FinishY=0)"; ve1745.style.width = "0px"; ve1745.style.backgroundColor = vaea42.currentStyle.color; } v91947.mode = v33e97; v91947.transition = v08744; v91947.eventName = v8c47; v91947.loaderText = vf5267; if (document.readyState == "complete") { WebDesktopLoaderProgress(v9b422, 100); } else { var v23944 = new Array(); var v71f95 = document.getElementsByTagName("script"); var v91751 = eval(v9b422 + "_images"); if (IS.ie) { for (var v9011 = 0; v9011 < v71f95.length; v9011++) { if (v71f95[v9011].src != "") v23944[v23944.length] = v71f95[v9011]; } } for (var v9011 = 0; v9011 < v91751.length; v9011++) { var vd8242 = new Image(); vd8242.src = v91751[v9011]; vd8242.loadTry = 0; v23944[v23944.length] = vd8242; } wd9ac40.ResourcesList = v23944; v91947.totalResources = v23944.length; setTimeout(function() { WebDesktopLoaderTimer(v9b422, v91947); }, 50); } } } function WebDesktopLoaderTimer(vaef68, v6e124) { var v9d777 = wd9ac40.ResourcesList; var v3c776 = v6e124.totalResources; var v62729 = 0; var v8d110 = 0; var vba489 = 0; for (var v67a68 = 0; v67a68 < v9d777.length; v67a68++) { var v40c95 = v9d777[v67a68]; if (v40c95.marked) { v62729++; } else { if ((v40c95.tagName == "SCRIPT" && v40c95.readyState == "complete") || (v40c95.complete)) { v8d110++; v40c95.marked = true; } else if (v40c95.tagName == "IMG" && !v40c95.complete) { if (v40c95.loadTry == 5 && v40c95.fileSize == -1) { v8d110++; v40c95.marked = true; } else { v40c95.loadTry++; } } } } vba489 = Math.round(((v62729 + v8d110) / v3c776) * 100); if (IS.ie) { if (vba489 > 90) { if (document.readyState != "complete") { if (!v6e124.retryCount) v6e124.retryCount = 0; else v6e124.retryCount++; vba489 = 90 + v6e124.retryCount; if (vba489 > 97) vba489 = 97; } else vba489 = 100; } } WebDesktopLoaderProgress(vaef68, v6e124, vba489); if (vba489 < 100) v6e124.nextTimerID = setTimeout(function() { WebDesktopLoaderTimer(vaef68, v6e124); }, 50); } function WebDesktopLoaderProgress(v80924, vc5a4, v1e818) { if (vc5a4.mode == "UseBuiltIn") { var v88c68 = vc5a4.children[0]; var v6d724 = v88c68.rows[1].cells[0].children[0].children[0]; var v02f33 = v88c68.rows[0].cells[0]; var v02655 = vc5a4.loaderText; v02655 = v02655.replace("[completed]", v1e818); v02f33.innerText = v02655; if (IS.safari) v6d724.style.display = "-webkit-inline-box"; else if (IS.moz) v6d724.style.display = "-moz-inline-box"; v6d724.style.width = (v1e818 / 100) * 200; } ISEvent.Raise(vc5a4.eventName, v80924, v1e818); if (v1e818 > 99) { wd9ac40.ResourcesList = null; clearTimeout(vc5a4.nextTimerID); if (IS.ie) { setTimeout(function() { wd9ac40.m8ac27(vc5a4, vc5a4.transition); }, 500); } setTimeout(function() { vc5a4.removeNode(true); }, 1000); } else { } } function WebDesktopMenuStyles() { this._Type = "WebDesktopMenuStyles"; ISObject.call(this); this.Application = null; this.System = null; if (typeof (WebMenuStyles) == "function") { this.Application = new WebMenuStyles(); this.System = new WebMenuStyles(); } } function WebDesktopClientSideEvents() { this._Type = "WebDesktopClientSideEvents"; ISObject.call(this); this.OnInitialize = ""; this.OnShortcutCreated = ""; this.OnShortcutSelected = ""; this.OnShortcutBeforeLaunched = ""; this.OnShortcutAfterLaunched = ""; this.OnWindowCreating = ""; this.OnWindowCreated = ""; this.OnWindowMinimized = ""; this.OnWindowMaximized = ""; this.OnWindowRestored = ""; this.OnWindowBeforeClosed = ""; this.OnWindowAfterClosed = ""; this.OnWindowResized = ""; this.OnWindowMoved = ""; this.OnContextMenu = ""; this.OnWindowBeforeActivated = ""; this.OnWindowAfterActivated = ""; this.OnWindowDeactivated = ""; this.OnLoaderProgress = ""; this.OnWindowShown = ""; } function WebDesktopLoaderSettings() { this._Type = "WebDesktopLoaderSettings"; ISObject.call(this); this.Enabled = false; this.Mode = "UseBuiltIn"; this.OnReadyTransitionEffect = "None"; } function WebDesktopImagesSettings() { this._Type = "WebDesktopImagesSettings"; ISObject.call(this); this.InProgress = "is_progress-16.gif"; this.MinimizeActive = ""; this.MaximizeActive = ""; this.CloseActive = ""; this.RestoreActive = ""; this.ControlBox = "is_window-16.gif"; this.CaptionLeftActive = ""; this.CaptionCenterActive = ""; this.CaptionRightActive = ""; this.CaptionLeftInactive = ""; this.CaptionCenterInactive = ""; this.CaptionRightInactive = ""; this.MinimizeInactive = ""; this.MaximizeInactive = ""; this.RestoreInactive = ""; this.CloseInactive = ""; this.MinimizeOver = ""; this.MaximizeOver = ""; this.RestoreOver = ""; this.CloseOver = ""; this.MinimizeDown = ""; this.MaximizeDown = ""; this.RestoreDown = ""; this.CloseDown = ""; this.ButtonLeftInactive = ""; this.ButtonCenterInactive = ""; this.ButtonRightInactive = ""; this.ButtonLeftOver = ""; this.ButtonCenterOver = ""; this.ButtonRightOver = ""; this.ButtonLeftActive = ""; this.ButtonCenterActive = ""; this.ButtonRightActive = ""; } function WebDesktopManager(v1fb30) {
    this.ClassName = "WebDesktopManager"; this.Version = "1.0.2006"; this.BuildNumber = "0"; this.MajorVersion = "1.0"; this.RequiredFrameworkVersion = "2.0.5000.16"; ISControl.call(this, v1fb30); this.ScriptDirectory = "/CommonLibrary/WebDesktop/V3_0_7200/";
    this.ImagesDirectory = "/_LAYOUTS/CorasWorks.Central.Administration/Resources/Intersoft/Images/WebDesktop/"; this.FrameStyle = ""; this.Windows = new ISArray(); this.ShortcutIcons = new ISArray(); this.WindowArrangement = "Cascaded"; this.TaskBarVisible = true; this.TaskBarSettings = new WebDesktopTaskBarSettings(); this.ImagesSettings = new WebDesktopImagesSettings(); this.WindowSettings = new WebDesktopWindowSettings(); this.MenuStyles = new WebDesktopMenuStyles(); this.ShortcutIconsVisible = false; this.EnableAnimation = true; this.EnableKeyboardNavigation = true; this.ClientSideEvents = new WebDesktopClientSideEvents(); this.TextSettings = new WebDesktopTextSettings(); this.ShortcutSettings = new WebDesktopShortcutSettings(); this.TaskBarStyle = ""; this.TaskBarButtonStyle = null; this.ActiveWindowIndex = -1; this.EnableContextMenu = false; this.ShortcutStyle = null; this.ViewStateStorage = "PageCache"; this.AccessKey = ""; this.Enabled = false; this.TabIndex = null; this.ToolTip = ""; this.Visible = false; this.ClientID = this.ID = this.UniqueID = v1fb30; this.MaxZIndex = 0; this.IsInResizing = false; this.ActiveShortcutIndex = -1; this.ShortcutDisplayMode = "TextAndImage"; this.InteractiveObjects = new Array(); this.CreatedAtRuntime = false; this.SystemMenu = null; this.DesktopContextMenu = null; this.TaskBarLocked = false; this.LoaderStyle = null; this.LoaderSettings = new WebDesktopLoaderSettings(); this.CachedDesktopSize = null; this.WebResourceIdentifier = "D"; this.WindowInteractiveMode = "Physical"; this.ShadowModeAnimation = false; this.ShadowModeTransparency = false; this.AnimationStyle = "ShrinkExpand"; this.DockBottomHeight = 0; this.OnInitialize = function() { ISEvent.Raise(this.ClientSideEvents.OnInitialize, this.Id); this.Windows.ReindexPosition(); this.ShortcutIcons.ReindexPosition(); this.RemoveDynamicStyle(); wd9ac40.m56542(this); if (typeof (wd80959) == "object") wd80959.m78889(this.InteractiveObjects); }; this.ReBindingPostBackData = function() { this.Set("ActiveWindowIndex", this.ActiveWindowIndex, true); }; this.OnPropertiesInitialized = function() { if (this.Events != null) { var v93454; for (v93454 in this.Events) { if (typeof (this.Events[v93454]) == "string") this.ClientSideEvents[v93454] = this.Events[v93454]; } } var v04471 = document.getElementById(this.Id); if (v04471 == null) v04471 = document.getElementById(this.ServerUniqueID); v04471.value = "ISWebDesktopManager"; }; this.RemoveDynamicStyle = function() { var v3d555 = ["TaskBarButon", "Shortcut"]; var v4f926 = ["Caption", "CaptionButton", "Window", "CommandButton"]; for (var vbdd99 = 0; vbdd99 < v3d555.length; vbdd99++) { var v93d4 = this[v3d555[vbdd99] + "Style"]; if (v93d4) ISXml.RemoveNode(this.XmlNode, v3d555[vbdd99] + "Style"); } for (var vbdd99 = 0; vbdd99 < v4f926.length; vbdd99++) { var v93d4 = this.WindowSettings[v4f926[vbdd99] + "Style"]; if (v93d4) ISXml.RemoveNode(this.WindowSettings.XmlNode, v4f926[vbdd99] + "Style"); } }; this.GetMaxZIndex = function() { if (this.MaxZIndex == 0) { for (var vbdd99 = 0; vbdd99 < this.Windows.length; vbdd99++) { var vadb19 = this.Windows[vbdd99].GetWindowDivElement(); if (vadb19) { this.MaxZIndex = Math.max(this.MaxZIndex, vadb19.style.zIndex); } } } return this.MaxZIndex; }; this.GetIFrameWindow = function(v4de66) { return window.frames[v4de66]; }; this.GetAvailableColumn = function() { var v50c64 = 10; var v86699 = 0; var vd803 = -1; var v29e47 = this.GetDesktopSize(); for (var vbdd99 = 0; vbdd99 < this.ShortcutIcons.length; vbdd99++) { var vf7c53 = this.ShortcutIcons[vbdd99]; if (!vf7c53.RuntimeLocation.IsEmpty() && vf7c53.Location.IsEmpty()) { v50c64 = Math.max(v50c64, vf7c53.RuntimeLocation.X); } } vd803 = (v50c64 - 10) / 80; for (var vbdd99 = 0; vbdd99 < this.ShortcutIcons.length; vbdd99++) { var vf7c53 = this.ShortcutIcons[vbdd99]; if (!vf7c53.RuntimeLocation.IsEmpty() && vf7c53.RuntimeLocation.X == v50c64 && vf7c53.Location.IsEmpty()) { v86699 = Math.max(v86699, vf7c53.RuntimeLocation.Y); } } if (v86699 + (80 * 2) > v29e47.Height) { vd803++; } return vd803; }; this.GetAvailableRow = function(vd803) { var v50c64 = (vd803 * 80) + 10; var v86699 = 5; var v7c856 = -1; for (var vbdd99 = 0; vbdd99 < this.ShortcutIcons.length; vbdd99++) { var vf7c53 = this.ShortcutIcons[vbdd99]; if (!vf7c53.RuntimeLocation.IsEmpty() && vf7c53.RuntimeLocation.X == v50c64 && (this.ShortcutSettings.AllowAutoArrange || vf7c53.Location.IsEmpty())) { v86699 = Math.max(v86699, vf7c53.RuntimeLocation.Y + 80); } } v7c856 = (v86699 - 5) / 80; return v7c856; }; this.GetCssObject = function(v4de66) { return IS.GetCssObject(null, v4de66, true); }; this.TransferStyle = function(v4b050) { var vfcb23 = this.GetCssObject(v4b050.selectorText.substring(1)); if (!vfcb23) { var v93d4 = IS.GetRuntimeStyleSheetExact(); if (IS.ie || IS.safari) v93d4.addRule(v4b050.selectorText, v4b050.style.cssText); else v93d4.innerHTML += v4b050.selectorText + " { " + v4b050.style.cssText + " }\n"; return true; } return false; }; this.OnUnload = function() { wd9ac40.mf4412(this); }; this.CreateWindow = function() { return new WebDesktopWindow(); }; this.ShowDialogBox = function() { }; this.GetDocument = function() { var vc4494 = this.GetDesktopElement(); if (vc4494) { if (IS.ie) return vc4494.document; else return vc4494.ownerDocument; } else return document; }; this.GetContentWindow = function() { var vd8623 = this.GetDocument(); return vd8623.parentWindow; }; this.GetTaskBarElement = function() { return document.getElementById("dvTaskBar_" + this.Id); }; this.GetTaskBarWindowGroupElement = function() { var v5e584 = this.GetTaskBarElement(); if (!v5e584) return null; var v9a519 = v5e584.children[0]; for (var vbdd99 = 0; vbdd99 < v9a519.rows[0].cells.length; vbdd99++) { if (IS.GetAttr(v9a519.rows[0].cells[vbdd99], "type") == "WindowGroup") return v9a519.rows[0].cells[vbdd99]; } return null; }; this.GetTaskBarLeftTemplateElement = function() { var v5e584 = this.GetTaskBarElement(); if (!v5e584) return null; var v9a519 = v5e584.children[0]; for (var vbdd99 = 0; vbdd99 < v9a519.rows[0].cells.length; vbdd99++) { if (IS.GetAttr(v9a519.rows[0].cells[vbdd99], "type") == "Left") return v9a519.rows[0].cells[vbdd99]; } return null; }; this.GetTaskBarRightTemplateElement = function() { var v5e584 = this.GetTaskBarElement(); if (!v5e584) return null; var v9a519 = v5e584.children[0]; for (var vbdd99 = 0; vbdd99 < v9a519.rows[0].cells.length; vbdd99++) { if (IS.GetAttr(v9a519.rows[0].cells[vbdd99], "type") == "Right") return v9a519.rows[0].cells[vbdd99]; } return null; }; this.GetDesktopElement = function() { var vc4494 = document.getElementById("dvDesktop_" + this.Id); if (!vc4494 && this.CreatedAtRuntime) { if (document.forms.length > 0) vc4494 = document.forms[0]; else { if (IS.IsXHTMLDocType()) vc4494 = document.documentElement; else vc4494 = document.body; } } return vc4494; }; this.GetDesktopSize = function() { var vabd36 = new UnitSize(); if (this.CachedDesktopSize == null) { var vcae41 = null; if (!this.CreatedAtRuntime) vcae41 = this.GetDesktopElement(); else { if (IS.IsXHTMLDocType()) vcae41 = document.documentElement; else vcae41 = document.body; } vabd36.Width = vcae41.offsetWidth; vabd36.Height = vcae41.offsetHeight; if (vabd36.Height == 0) vabd36.Height = ISPosLib.getHeight(vcae41); this.CachedDesktopSize = vabd36; } else vabd36 = this.CachedDesktopSize; return vabd36; }; this.GetDesktopClientSize = function() { var vabd36 = new UnitSize(); var vcae41 = null; if (!this.CreatedAtRuntime) vcae41 = this.GetDesktopElement(); else { if (IS.IsXHTMLDocType()) vcae41 = document.documentElement; else vcae41 = document.body; } vabd36.Width = vcae41.clientWidth; vabd36.Height = vcae41.clientHeight; if (vabd36.Height == 0) vabd36.Height = ISPosLib.getHeight(vcae41); return vabd36; }; this.GetAvailableDesktopHeight = function(v85486) { return v85486 - this.DockBottomHeight; }; this.CascadeWindows = function(vb1b69, v73b95) { wd9ac40.me2733(this, vb1b69, v73b95); }; this.TileWindowsHorizontally = function(vb1b69, v73b95) { wd9ac40.m5ed24(this, vb1b69, "H", v73b95); }; this.TileWindowsVertically = function(vb1b69, v73b95) { wd9ac40.m5ed24(this, vb1b69, "V", v73b95); }; this.GetActiveWindow = function() { return this.Windows[this.ActiveWindowIndex]; }; this.GetActiveShortcut = function() { return this.ShortcutIcons[this.ActiveShortcutIndex]; }; this.GetWindow = function(v4de66) { var v7a097 = this.Windows.GetNamedItem(v4de66); if (!v7a097 && this.CreatedAtRuntime) { v7a097 = ISGetObject(v4de66.substring(3)); if (v7a097 && v7a097.GetType() == "WebDialogBox") v7a097 = v7a097.Window; } return v7a097; }; this.ResolveImagePath = function(ve3261) { return this._ResolveImagePath(this.ImagesDirectory, ve3261); }; this.GetTopMostWindowBefore = function(v7a097) { var v98f94 = null; var v69133 = 0; for (var vbdd99 = 0; vbdd99 < this.Windows.length; vbdd99++) { var v0662 = this.Windows[vbdd99]; if (v0662.WindowState != "Minimized" && !v0662.IsClosed && v0662.Initialized && v0662 != v7a097 && v0662.ClientVisible) { var vadb19 = v0662.GetWindowDivElement(); if (vadb19) { v69133 = Math.max(v69133, vadb19.style.zIndex); if (v69133 == vadb19.style.zIndex) { v98f94 = v0662; } } } } return v98f94; }; this.GetWindowListByZOrder = function() { var vdb055 = new Array(); var v7dc28 = new Array(); for (var vbdd99 = 0; vbdd99 < this.Windows.length; vbdd99++) vdb055[vdb055.length] = this.Windows[vbdd99].GetWindowDivElement().style.zIndex; vdb055.sort(wd9ac40.ma9637); vdb055.reverse(); for (var vbdd99 = 0; vbdd99 < vdb055.length; vbdd99++) { for (var vb4b76 = 0; vb4b76 < this.Windows.length; vb4b76++) { var v0662 = this.Windows[vb4b76]; var vadb19 = v0662.GetWindowDivElement(); if (vadb19.style.zIndex == vdb055[vbdd99]) v7dc28[v7dc28.length] = v0662; } } return v7dc28; }; this.SetNoActiveWindow = function() { var v0662 = this.GetActiveWindow(); if (v0662 && v0662.ClientVisible && !v0662.Closed) { var vfb420 = v0662.GetTaskBarButtonElement(); DynamicStyleEngine.SetToStyle(null, this.TaskBarButtonStyle, vfb420); } this.ActiveWindowIndex = -1; }; this.RearrangeShortcutIcons = function() { wd9ac40.m29950(this); }; this.ShowShortcutIcons = function() { for (var vbdd99 = 0; vbdd99 < this.ShortcutIcons.length; vbdd99++) { var v02131 = this.ShortcutIcons[vbdd99]; v02131.Show(); } this.ShortcutIconsVisible = true; }; this.HideShortcutIcons = function() { for (var vbdd99 = 0; vbdd99 < this.ShortcutIcons.length; vbdd99++) { var v02131 = this.ShortcutIcons[vbdd99]; v02131.Hide(); } this.ShortcutIconsVisible = false; }; this.ShowDesktop = function() { for (var vbdd99 = 0; vbdd99 < this.Windows.length; vbdd99++) { var v0662 = this.Windows[vbdd99]; if (v0662.WindowState != "Minimized" && !v0662.IsDialogBox) v0662.Minimize(); } this.SetNoActiveWindow(); }; this.SaveDesktopStateToXml = function() { this.Windows.UpdateChanges(); this.ShortcutIcons.UpdateChanges(); var vf3592 = ISXml.CreateXmlDocument(); var v93d4 = "<Desktop>"; v93d4 += this.Windows.XmlNode.xml; if (this.ShortcutIconsVisible) v93d4 += this.ShortcutIcons.XmlNode.xml; v93d4 += "</Desktop>"; ISXml.LoadXml(vf3592, v93d4); return v93d4; }; this.RegisterEvents = function(v12b97, vd1f13) { wd9ac40.mc1285(this, v12b97, vd1f13 ? v12b97.parent.name : null); }; this.GetNotificationControl = function() { for (var vbdd99 = 0; vbdd99 < IS.RuntimeObjects; vbdd99++) { var va5422 = IS.RuntimeObjects[vbdd99]; if (va5422 != null && va5422.GetType() == "WebNotification") return va5422; } return null; }; this.IsVistaAnimation = function() { return (this.EnableAnimation && this.AnimationStyle == "VistaStyleZoom"); }; this.GetVisibleWindows = function() { var vdb055 = new Array(); for (var vbdd99 = 0; vbdd99 < this.Windows.length; vbdd99++) { var v7a097 = this.Windows[vbdd99]; if (v7a097.ClientVisible && !v7a097.IsClosed) vdb055.push(v7a097); } return vdb055; }; this.OpenFromFishEye = function(v4b00) { wd9ac40.m38d64(this, v4b00); };
} function WebDesktopShortcut() { this._Type = "WebDesktopShortcut"; ISObject.call(this); this.Name = ""; this.Index = -1; this.DesktopManager = null; this.Text = ""; this.Image = ""; this.TargetURL = ""; this.WindowName = ""; this.Visible = true; this.Enabled = true; this.Location = new OffsetLocation(); this.RuntimeLocation = new OffsetLocation(); this.Collection = null; this.ToolTip = ""; this.TargetControlBoxImage = ""; this.InteractiveObject = null; this.OnPropertiesInitialized = function() { this.DesktopManager = this.Parent; this.Collection = this.DesktopManager.ShortcutIcons; if (ISXml.GetAttribute(this.XmlNode, "Location") != null) { var v28236 = ISXml.GetAttribute(this.XmlNode, "Location"); this.Location.Parse(v28236); } }; this.OnAdd = function() { wd9ac40.m08318(this); }; this.Initialize = function() { this.Rearrange(); if (this.DesktopManager.ShortcutSettings.Movable) { var vd6f32 = new ISInteractiveObject(); var v07c88 = this.GetElement(); var v92d94 = this.DesktopManager; vd6f32.DesktopManager = this.DesktopManager; vd6f32.Movable = true; vd6f32.DragElement = v07c88; vd6f32.FrameElement = v07c88; v92d94.InteractiveObjects[v92d94.InteractiveObjects.length] = vd6f32; this.InteractiveObject = vd6f32; this.Registered = true; v07c88.IsInteractiveObject = true; } }; this.GetElement = function() { return document.getElementById("dvSCI_" + this.DesktopManager.Id + "_" + this.Name); }; this.GetTextElement = function() { var v07c88 = this.GetElement(); return v07c88.children[1]; }; this.Rearrange = function() { var vf3c12 = this.Index; var ve218 = this.DesktopManager; var v97e90 = ve218.ShortcutSettings; var v07c88 = this.GetElement(); if (!this.Visible || !v07c88) return; if (v97e90.AllowAutoArrange || this.Location.IsEmpty()) { var v82180 = ve218.GetAvailableColumn(); var vfd85 = ve218.GetAvailableRow(v82180); var v82711 = 5 + (vfd85 * 80); this.RuntimeLocation.X = (v82180 * 80) + 10; this.RuntimeLocation.Y = v82711; } else { this.RuntimeLocation.X = this.Location.X; this.RuntimeLocation.Y = this.Location.Y; } v07c88.style.left = this.RuntimeLocation.X; v07c88.style.top = this.RuntimeLocation.Y; }; this.Select = function(v58f85) { if (this.Visible) { var vba910 = this.DesktopManager.GetActiveShortcut(); if (vba910) { var v37f99 = vba910.GetTextElement(); DynamicStyleEngine.SetToStyle(null, this.DesktopManager.ShortcutStyle, v37f99); } var v07c88 = this.GetTextElement(); DynamicStyleEngine.SetToActiveStyle(null, this.DesktopManager.ShortcutStyle, v07c88); this.DesktopManager.ActiveShortcutIndex = this.Index; if (v58f85) vdb277 = ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnShortcutSelected, this.DesktopManager.Id, this); } }; this.Open = function(v58f85) { var vdb277 = true; if (v58f85) vdb277 = ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnShortcutBeforeLaunched, this.DesktopManager.Id, this); if (vdb277) wd9ac40.me1467(this); ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnShortcutAfterLaunched, this.DesktopManager.Id, this); }; this.SetText = function(v45585) { var v07c88 = this.GetElement(); if (v07c88) v07c88.children[1].innerHTML = v45585; this.Text = v45585; }; this.Delete = function() { wd9ac40.m99421(this); }; this.Show = function() { var v07c88 = this.GetElement(); if (v07c88) v07c88.style.display = ""; }; this.Hide = function() { var v07c88 = this.GetElement(); if (v07c88) v07c88.style.display = "none"; }; } function WebDesktopShortcutSettings() { this._Type = "WebDesktopShortcutSettings"; ISObject.call(this); this.AllowAutoArrange = true; this.Movable = false; } function WebDesktopTaskBarSettings() { this._Type = "WebDesktopTaskBarSettings"; ISObject.call(this); this.Position = "Bottom"; this.Movable = false; this.Resizable = false; this.ShowWindows = true; this.WindowButtonWidth = 150; } function WebDesktopTextSettings() { this._Type = "WebDesktopTextSettings"; ISObject.call(this); this.InProgressText = "Loading content..."; this.MaximizeText = "Maximize"; this.MinimizeText = "Minimize"; this.RestoreText = "Restore Down"; this.CloseText = "Close"; this.BusyText = "Please wait while your request is being processed..."; this.LoadingText = "Loading desktop..."; } function WebDesktopWindow() { this._Type = "WebDesktopWindow"; ISObject.call(this); this.AllowMinimize = "Default"; this.AllowMaximize = "Default"; this.AllowResize = "Default"; this.AllowClose = "Default"; this.ControlBox = "Default"; this.Text = ""; this.TextAlignment = "Default"; this.CaptionDisplayMode = "Default"; this.ContentMode = "Default"; this.HeaderTemplate = null; this.ContentTemplate = null; this.ClientVisible = true; this.Size = new UnitSize(); this.MaximumSize = new UnitSize(); this.MinimumSize = new UnitSize(); this.Location = new OffsetLocation(); this.Name = ""; this.InProgressText = ""; this.BusyText = ""; this.ShowInTaskBar = true; this.ControlBoxImage = ""; this.ShortcutImage = ""; this.Index = -1; this.DesktopManager = null; this.ContentURL = ""; this.Collection = null; this.IsClosed = false; this.Initialized = false; this.IFrameLoaded = false; this.IFrameContentLoaded = false; this.WindowState = "Normal"; this.PreviousWindowState = "Normal"; this.InteractiveObject = null; this.CreatedAtRuntime = false; this.DialogBoxShown = false; this.CurrentDialogBox = null; this.BarsAccessKeyEnabled = true; this.IsBusy = false; this.StartupPositionInitialized = false; this.DialogBoxWindows = new ISArray(); this.OnAfterActivated = ""; this.OnAfterClosed = ""; this.OnPrepareClosed = ""; this.OnBeforeActivated = ""; this.OnBeforeClosed = ""; this.OnMaximized = ""; this.OnMinimized = ""; this.OnResized = ""; this.OnRestored = ""; this.EnableDropShadow = false; this.DropShadow = null; this.OnPropertiesInitialized = function() { this.DesktopManager = this.Parent; this.Collection = this.DesktopManager.Windows; if (ISXml.GetAttribute(this.XmlNode, "Size") != null) this.Size.Parse(ISXml.GetAttribute(this.XmlNode, "Size")); if (ISXml.GetAttribute(this.XmlNode, "MinimumSize") != null) this.MinimumSize.Parse(ISXml.GetAttribute(this.XmlNode, "MinimumSize")); if (ISXml.GetAttribute(this.XmlNode, "MaximumSize") != null) this.MaximumSize.Parse(ISXml.GetAttribute(this.XmlNode, "MaximumSize")); if (ISXml.GetAttribute(this.XmlNode, "Location") != null) this.Location.Parse(ISXml.GetAttribute(this.XmlNode, "Location")); }; this.GetDefault = function(v20441) { if (this[v20441] == "Default") return this.DesktopManager.WindowSettings[v20441]; else return this[v20441]; }; this.GetDefaultSize = function(v20441) { if (this[v20441].IsEmpty()) return this.DesktopManager.WindowSettings[v20441]; else return this[v20441]; }; this.__getter = function(v20441) { switch (v20441) { case "CaptionDisplayMode": case "ImageAlignment": case "ContentMode": case "AllowMinimize": case "AllowMaximize": case "AllowClose": case "AllowResize": case "ControlBox": case "TextAlignment": return this.GetDefault(v20441); break; case "ControlBoxImage": if (this[v20441] == "") return this.DesktopManager.ImagesSettings["ControlBox"]; else return this[v20441]; break; case "Size": case "MinimumSize": case "MaximumSize": return this.GetDefaultSize(v20441); case "BusyText": if (this[v20441] == "") return this.DesktopManager.TextSettings[v20441]; else return this[v20441]; } }; this.OnAdd = function() { wd9ac40.md1c32(this); }; this.OnUpdate = function(ve2a60) { if (!this.Location.IsEmpty()) ISXml.SetAttribute(ve2a60, "Location", this.Location.X + ", " + this.Location.Y); if (!this.IsClosed && !this.Size.IsEmpty()) ISXml.SetAttribute(ve2a60, "Size", this.Size.Width + ", " + this.Size.Height); }; this.ReInitialize = function() { wd9ac40.mf619(this); this.Initialize(true); }; this.Initialize = function(v2a796) { wd9ac40.mc0344(this); if (v2a796) return; var vba521 = this.DesktopManager; var v9f179 = this.GetWindowDivElement(); var vcb611 = this.GetCaptionBarTableElement(); var v18c65 = new ISInteractiveObject(); if (this.Get("AllowResize") == "Yes") v18c65.Resizable = true; v18c65.Window = this; v18c65.DesktopManager = vba521; v18c65.Movable = true; v18c65.DragElement = vcb611; v18c65.FrameElement = v9f179; v18c65.FrameElement.IsInteractiveObject = true; v18c65.Registered = true; vba521.InteractiveObjects[vba521.InteractiveObjects.length] = v18c65; this.InteractiveObject = v18c65; this.Initialized = true; }; this.UnregisterAccessKeys = function() { wd9ac40.m8d99(this); }; this.RegisterAccessKeys = function() { wd9ac40.mda588(this); }; this.GetWindowDivElement = function() { return document.getElementById("dvWnd_" + this.DesktopManager.Id + "_" + this.Name); }; this.GetCaptionBarCellElement = function() { var vbbc12 = this.GetWindowDivElement(); if (vbbc12) { var v93743 = vbbc12.children[0]; return v93743.rows[0].cells[0]; } return null; }; this.GetControlBoxElement = function() { var v4d615 = this.GetCaptionBarCellElement(); if (this.Get("ControlBox") == "Yes") { var v93743 = v4d615.children[0]; var v21021 = (this.DesktopManager.WindowSettings.ControlBoxPosition == "Left") ? 0 : 1; if (this.DesktopManager.WindowSettings.BorderType == "Simple") return v93743.rows[0].cells[v21021]; else return v93743.rows[0].cells[1].children[0].rows[0].cells[v21021]; } return null; }; this.GetCaptionBarTableElement = function() { if (this.DesktopManager.WindowSettings.BorderType == "Simple") { return this.GetCaptionBarCellElement().children[0]; } else if (this.DesktopManager.WindowSettings.BorderType == "ComplexImages") { var v37c23 = this.GetCaptionBarCellElement(); if (v37c23) { var v93743 = v37c23.children[0]; var v27339 = v93743.rows[0].cells[1]; return v27339.children[0]; } return null; } }; this.GetInProgressText = function() { if (this.InProgressText == "") return this.DesktopManager.TextSettings.InProgressText; else return this.InProgressText; }; this.GetContentDivElement = function() { var vbbc12 = this.GetWindowDivElement(); if (vbbc12) { var v93743 = vbbc12.children[0]; return v93743.rows[1].cells[0].children[0]; } return null; }; this.GetDesktopManager = function() { return this.DesktopManager; }; this.GetWindowOptionsCellElement = function() { var v14e71 = this.GetCaptionBarTableElement(); if (v14e71) { var vea919 = v14e71.rows[0]; if (this.DesktopManager.WindowSettings.WindowOptionsPosition == "Right") return vea919.cells[v14e71.rows[0].cells.length - 1]; else return vea919.cells[0]; } else return null; }; this.GetControlBoxCellElement = function() { if (this.Get("ControlBox") == "No") return null; var v14e71 = this.GetCaptionBarTableElement(); if (v14e71) { if (this.DesktopManager.WindowSettings.ControlBoxPosition == "Left") return v14e71.rows[0].cells[0]; else return v14e71.rows[0].cells[1].children[0]; } else return null; }; this.GetMaximizeButtonElement = function() { var v84843 = this.GetWindowOptionsCellElement(); for (var vcda46 = 0; vcda46 < v84843.children.length; vcda46++) { var vb1f77 = v84843.children[vcda46]; if (IS.GetAttr(vb1f77, "type") == "Max") return vb1f77; } return null; }; this.GetCloseButtonElement = function() { var v84843 = this.GetWindowOptionsCellElement(); for (var vcda46 = 0; vcda46 < v84843.children.length; vcda46++) { var vb1f77 = v84843.children[vcda46]; if (IS.GetAttr(vb1f77, "type") == "Close") return vb1f77; } return null; }; this.GetMinimizeButtonElement = function() { var v84843 = this.GetWindowOptionsCellElement(); for (var vcda46 = 0; vcda46 < v84843.children.length; vcda46++) { var vb1f77 = v84843.children[vcda46]; if (IS.GetAttr(vb1f77, "type") == "Min") return vb1f77; } return null; }; this.IsActiveWindow = function() { return (this.DesktopManager.ActiveWindowIndex == this.Index); }; this.GetTaskBarButtonElement = function() { var v5bc18 = this.DesktopManager; if (v5bc18.TaskBarVisible && v5bc18.TaskBarSettings.ShowWindows) { if (this.ShowInTaskBar && !this.IsClosed && this.Initialized) { var v8ee44 = this.DesktopManager.GetTaskBarWindowGroupElement(); if (v8ee44) { var v93743 = v8ee44.children[0].children[0]; for (var vcda46 = 0; vcda46 < v93743.rows[0].cells.length; vcda46++) { if (IS.GetAttr(v93743.rows[0].cells[vcda46], "name") == this.Name) return v93743.rows[0].cells[vcda46]; } } } } return null; }; this.GetTaskBarButtonImageElement = function() { var v91f20 = this.GetTaskBarButtonElement(); if (v91f20) return v91f20.children[0].children[0].children[0]; return null; }; this.GetTaskBarButtonTextElement = function() { var v91f20 = this.GetTaskBarButtonElement(); if (v91f20) return v91f20.children[0].children[0].childNodes[2]; return null; }; this.GetWindowIFrameElement = function() { var vab151 = this.GetContentDivElement(); if (!vab151) return null; var v32a35 = vab151.children[0]; if (v32a35.children[0].tagName == "IFRAME") return v32a35.children[0]; else return v32a35.children[1]; }; this.GetContentWindow = function() { var vb1f77 = this.GetWindowIFrameElement(); if (vb1f77) return vb1f77.contentWindow; }; this.MoveTo = function(vaca96, va6350) { wd9ac40.ma3b78(this, vaca96, va6350); }; this.MoveToCenterDesktop = function() { var v02d23 = this.DesktopManager.GetDesktopSize(); wd9ac40.ma3b78(this, (v02d23.Width - this.Size.Width) / 2, (v02d23.Height - this.Size.Height) / 2); }; this.MoveToCenterDesktopAbsolute = function() { var v02d23 = this.DesktopManager.GetDesktopClientSize(); wd9ac40.ma3b78(this, (v02d23.Width - this.Size.Width) / 2, (v02d23.Height - this.Size.Height) / 2); }; this.ResizeTo = function(va4f51, v8b929) { wd9ac40.mcde12(this, va4f51, v8b929); }; this.Minimize = function(vc1355, vdd679) { var v10233 = true; if (vc1355) { v10233 = wd9ac40.m51456(this.DesktopManager); if (v10233) v10233 = ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnWindowMinimized, this.DesktopManager.Id, this); } if (v10233) wd9ac40.m87883(this, vdd679); }; this.Maximize = function(vc1355, vdd679) { var v10233 = true; if (vc1355) v10233 = ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnWindowMaximized, this.DesktopManager.Id, this); if (v10233) wd9ac40.m4d627(this, vdd679); }; this.Restore = function(vc1355, vdd679) { var v10233 = true; if (vc1355) v10233 = ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnWindowRestored, this.DesktopManager.Id, this); if (v10233) wd9ac40.m48a95(this, vdd679); }; this.Close = function(vc1355) { var v10233 = true; if (vc1355) { v10233 = wd9ac40.m51456(this.DesktopManager); if (v10233) v10233 = ISEvent.Raise(this.OnBeforeClosed, this); } if (v10233) { if (vc1355) v10233 = ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnWindowBeforeClosed, this.DesktopManager.Id, this); } if (v10233) { wd9ac40.m73451(this); ISEvent.Raise(this.OnAfterClosed, this); if (vc1355) ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnWindowAfterClosed, this.DesktopManager.Id, this); wd9ac40.m29234(this); } }; this.Activate = function(v86282) { if (!this.IsActiveWindow()) { wd9ac40.mc6119(this.DesktopManager); this.BringToFront(); wd9ac40.m5e487(this, v86282); } }; this.ShowAndActivate = function() { this.Show(null, null, null, true); }; this.Show = function(v70765, vdc537, v7070, v34479) { var v3d381 = false; if (this.CreatedAtRuntime) { if (v70765 && this.DesktopManager.EnableAnimation && this.DesktopManager.AnimationStyle == "ShrinkExpand") { var v30f97 = new ISAnimatedObject(); var vbbc12 = this; var vc1596 = new UnitSize(); var v3ac73 = new OffsetLocation(); v3ac73.X = ISPosLib.getLeft(v70765); v3ac73.Y = ISPosLib.getTop(v70765); vc1596.Width = ISPosLib.getWidth(v70765); vc1596.Height = ISPosLib.getHeight(v70765); if (vdc537) v30f97.BorderColor = vdc537; v30f97.Type = "ShrinkExpand"; v30f97.AnimateLocation = true; v30f97.AnimateSize = true; v30f97.Element = this.GetWindowDivElement(); v30f97.CurrentSize = vc1596; v30f97.CurrentLocation = v3ac73; v30f97.TargetSize = this.Size; v30f97.TargetLocation = this.Location; v30f97.OnCompleted = function() { vbbc12.Show(); }; v30f97.Play(); v3d381 = true; } else { if (this.ShowInTaskBar) wd9ac40.mb3b92(this); if ((v7070 == true || !this.DesktopManager.IsVistaAnimation()) && this.ContentURL != "") this.LoadContent(); this.Activate(); } } else { if (!this.ClientVisible && this.DesktopManager.TaskBarVisible && this.ShowInTaskBar) wd9ac40.mb3b92(this); if ((v7070 == true || !this.DesktopManager.IsVistaAnimation()) && this.ContentURL != "" && this.Get("ContentMode") == "UseIFrame" && !this.IFrameContentLoaded) this.LoadContent(); } var v9f179 = this.GetWindowDivElement(); var v91f20 = this.GetTaskBarButtonElement(); var vcef83 = false; if (!v3d381 && !v7070) { if (this.DesktopManager.IsVistaAnimation()) { var v77878 = this.GetContentDivElement().children[0]; v77878.style.display = "none"; var v30f97 = new ISAnimatedObject(); var vbbc12 = this; v30f97.Type = "ZoomIn"; v30f97.AnimateLocation = false; v30f97.AnimateSize = false; v30f97.Element = v9f179; v30f97.MaxStep = 7; v30f97.OnCompleted = function() { wd9ac40.m4fe82(vbbc12, v34479); }; v30f97.Play(); v3d381 = true; } else { vcef83 = true; } } if (!vcef83 && v7070) vcef83 = true; if (vcef83) { v9f179.style.display = ""; if (IS.ie && IS.GetIEVersion < 7) this.EnableDropShadow = false; if (this.EnableDropShadow) { if (this.DropShadow == null) { this.DropShadow = new ISDropShadow(); this.DropShadow.Container = this.DesktopManager.GetDesktopElement(); if (this.DesktopManager.UseWebResourcesForClient) this.DropShadow.ImageFolder = IS.GetAppDomainPath() + "ISRes.axd?D/"; this.DropShadow.AttachTo(v9f179); } this.DropShadow.UpdatePosition(); this.DropShadow.Show(); } if (IsIE8StandardMode()) wd9ac40.m25117(this); ISEvent.Raise(this.DesktopManager.ClientSideEvents.OnWindowShown, this.DesktopManager.Id, this); } if (v91f20) v91f20.style.display = ""; if (!v3d381 && v34479) this.Activate(); this.ClientVisible = true; }; this.Hide = function() { var v9f179 = this.GetWindowDivElement(); var v91f20 = this.GetTaskBarButtonElement(); if (typeof (event) != "undefined" && event != null && this.DesktopManager.IsVistaAnimation() && this.WindowState != "Minimized") { if (this.Get("ContentMode") == "UseIFrame") { var v7bd22 = this.GetWindowIFrameElement(); v7bd22.style.display = "none"; } var v30f97 = new ISAnimatedObject(); var vbbc12 = this; v30f97.Type = "ZoomOut"; v30f97.AnimateLocation = false; v30f97.AnimateSize = false; v30f97.Element = v9f179; v30f97.OnCompleted = function() { wd9ac40.me3e49(vbbc12); }; v30f97.Play(); } else { v9f179.style.display = "none"; if (this.EnableDropShadow && this.DropShadow != null) this.DropShadow.Hide(); } if (v91f20) v91f20.style.display = "none"; this.ClientVisible = false; }; this.BringToFront = function() { var v9f179 = this.GetWindowDivElement(); if (v9f179) { var v1a145 = parseFloat(v9f179.style.zIndex); if (isNaN(v1a145)) v1a145 = 1; if (v1a145 < 102) v9f179.style.zIndex = 102; } }; this.SendToBack = function() { var v9f179 = this.GetWindowDivElement(); if (v9f179) { v9f179.style.zIndex = 100 - this.Collection.length; } }; this.GetCaptionBarTextCellElement = function() { var v40825 = this.GetCaptionBarTableElement(); if (v40825) { var v9e870 = 1; if (this.Get("ControlBox") == "No") v9e870 = 0; return v40825.rows[0].cells[v9e870]; } return null; }; this.SetCaption = function(vcd912) { var v4d615 = this.GetCaptionBarTextCellElement(); var v13f56 = this.GetTaskBarButtonTextElement(); var v40825 = this.GetCaptionBarTableElement(); if (v40825) { if (this.DesktopManager.WindowSettings.ControlBoxPosition == "Left") v4d615.innerHTML = vcd912; else v4d615.childNodes[1].nodeValue = " " + vcd912; } if (v13f56) v13f56.nodeValue = " " + vcd912; }; this.SetControlBoxImage = function(v53c96) { var vf1a30 = this.GetControlBoxElement(); if (vf1a30) vf1a30.children[0].src = v53c96; }; this.SetContentURL = function(vc3332) { if (this.Get("ContentMode") == "UseIFrame") { this.ContentURL = vc3332; this.IFrameLoaded = false; this.IFrameContentLoaded = false; if (this.DesktopManager.WindowSettings.IFrameShowLoader && IS.ie) { var v7bd22 = this.GetWindowIFrameElement(); v7bd22.style.display = "none"; } this.LoadContent(); } }; this.LoadContent = function() { if (this.Get("ContentMode") == "UseIFrame") { wd9ac40.m94745(this); } }; this.SaveLocationAndSize = function() { var v65999 = new OffsetLocation(); var v91248 = new UnitSize(); var v9f179 = this.GetWindowDivElement(); v65999.X = v9f179.style.posLeft; v65999.Y = v9f179.style.posTop; v91248.Width = v9f179.offsetWidth; v91248.Height = v9f179.offsetHeight; this.Location = v65999; this.Size = v91248; }; this.IsTargetSizeValid = function(va4f51, v8b929) { if (this.MinimumSize.IsEmpty() && this.MaximumSize.IsEmpty()) return true; if (!this.MinimumSize.IsEmpty()) { if (va4f51 < this.MinimumSize.Width || v8b929 < this.MinimumSize.Height) return false; } if (!this.MaximumSize.IsEmpty()) { if (va4f51 > this.MaximumSize.Width || v8b929 > this.MaximumSize.Height) return false; } return true; }; this.GetPreferredSize = function(va4f51, v8b929) { if (!va4f51 && !v8b929) { va4f51 = this.Size.Width; v8b929 = this.Size.Height; } var vb5055 = new UnitSize(); vb5055.Width = va4f51; vb5055.Height = v8b929; if (!this.MinimumSize.IsEmpty()) { if (va4f51 < this.MinimumSize.Width) vb5055.Width = this.MinimumSize.Width; if (v8b929 < this.MinimumSize.Height) vb5055.Height = this.MinimumSize.Height; } if (!this.MaximumSize.IsEmpty()) { if (va4f51 > this.MaximumSize.Width) vb5055.Width = this.MaximumSize.Width; if (v8b929 > this.MaximumSize.Height) vb5055.Height = this.MaximumSize.Height; } return vb5055; }; this.GetMinimizedLocation = function() { var vc3571 = this.Collection; var v9e870 = -1; var v9ea19 = new OffsetLocation(); for (var vcda46 = 0; vcda46 < vc3571.length; vcda46++) { var v63b71 = vc3571[vcda46]; if (v63b71.WindowState == "Minimized" && v63b71.GetTaskBarButtonElement() == null) { v9e870++; } } v9e870++; v9ea19.X = 5 + (v9e870 * 200); v9ea19.Y = this.DesktopManager.GetDesktopSize().Height - 35; return v9ea19; }; this.GetMinimizedSize = function() { var v91248 = new UnitSize(); v91248.Width = 150; v91248.Height = 25; return v91248; }; this.GetNextWindow = function() { var vc3571 = this.DesktopManager.GetWindowListByZOrder(); var v13237 = null; for (var vcda46 = 0; vcda46 < vc3571.length; vcda46++) { if (vc3571[vcda46] == this) { v13237 = vc3571[vcda46 + 1]; } } if (!v13237 && vc3571.length > 0) v13237 = vc3571[0]; return v13237; }; this.GetNextWindowExact = function() { var v51930 = ISGetActiveWindow(); var v9bb30 = this.DesktopManager.Windows[this.Index + 1]; if (!v9bb30) v9bb30 = this.DesktopManager.Windows[0]; if (v9bb30 && (!v9bb30.ClientVisible || v9bb30.IsClosed)) v9bb30 = v9bb30.GetNextWindowExact(); return v9bb30; }; this.GetPreviousWindow = function() { var vc3571 = this.DesktopManager.GetWindowListByZOrder(); var v66a25 = null; for (var vcda46 = 0; vcda46 < vc3571.length; vcda46++) { if (vc3571[vcda46] == this) { v66a25 = vc3571[vcda46 - 1]; } } if (!v66a25 && vc3571.length > 0) v66a25 = vc3571[vc3571.length - 1]; return v66a25; }; this.GetPreviousWindowExact = function() { var v51930 = ISGetActiveWindow(); var v9bb30 = this.DesktopManager.Windows[this.Index - 1]; if (!v9bb30) v9bb30 = this.DesktopManager.Windows[this.DesktopManager.Windows.length - 1]; if (v9bb30 && (!v9bb30.ClientVisible || v9bb30.IsClosed)) v9bb30 = v9bb30.GetPreviousWindowExact(); return v9bb30; }; this.InitializeLayout = function(v4b971, va1193) { wd9ac40.m35f16(this, v4b971, va1193); }; this.SetInlineContent = function(v19742) { var vab151 = this.GetContentDivElement(); vab151.innerHTML = v19742; }; this.GetHourGlassDiv = function() { var v32a35 = this.GetWindowDivElement(); if (v32a35) { var v83a85 = v32a35.children[v32a35.children.length - 1]; if (v83a85 && v83a85.tagName == "DIV" && v83a85.type == "BusyLayer") return v83a85; } return null; }; this.SetBusy = function() { var v32a35 = this.GetWindowDivElement(); if (v32a35) { var v14485 = this.GetHourGlassDiv(); if (!v14485) { var v8ce87 = 0; if (this.DesktopManager.WindowSettings.DimWindowWhenBusy) v8ce87 = 50; v14485 = document.createElement("DIV"); v14485.type = "BusyLayer"; v14485.style.cssText = "position:absolute; top:0px; left:0px; width:100%; height:100%; cursor:wait; z-index: 1;"; v14485.style.width = v32a35.offsetWidth; if (IS.ie) { v14485.style.filter = "Alpha(Opacity=" + v8ce87 + ")"; v14485.style.backgroundColor = "white"; } v14485.title = this.Get("BusyText"); v32a35.insertAdjacentElement("beforeEnd", v14485); } else { v14485.style.cursor = "wait"; v14485.style.display = ""; } this.InteractiveObject.OriginalResizable = this.InteractiveObject.Resizable; this.InteractiveObject.Resizable = false; this.IsBusy = true; } }; this.SetIdle = function() { if (this.IsBusy) { var v14485 = this.GetHourGlassDiv(); if (v14485) { v14485.style.cursor = "default"; v14485.style.display = "none"; } } this.InteractiveObject.Resizable = this.InteractiveObject.OriginalResizable; this.IsBusy = false; }; } function WebDesktopWindowSettings() { this._Type = "WebDesktopWindowSettings"; ISObject.call(this); this.AllowMinimize = "Yes"; this.AllowMaximize = "Yes"; this.AllowResize = "Yes"; this.AllowClose = "Yes"; this.ControlBox = "Yes"; this.TextAlignment = "Left"; this.WindowStyle = null; this.OuterBorderStyle = ""; this.CaptionStyle = null; this.CaptionDisplayMode = "Text"; this.ContentMode = "UseInlineContent"; this.CaptionButtonStyle = null; this.Size = new UnitSize(); this.MaximumSize = new UnitSize(); this.MinimumSize = new UnitSize(); this.BorderType = "Simple"; this.DropShadow = false; this.IFrameAllowTransparency = true; this.IFrameShowLoader = true; this.ContainerStyle = ""; this.CommandButtonStyle = null; this.CommandButtonBorderType = "Simple"; this.CommandBarPadding = 10; this.CommandButtonDisabledStyle = ""; this.CaptionButtonSpacing = 2; this.IgnoreIFramePadding = false; this.EnableFastWindowActivation = false; this.CachedStyles = new Array(); this.DimWindowWhenBusy = false; this.IFrameReadyTransitionEffect = "None"; this.WindowOptionsPosition = "Right"; this.ControlBoxPosition = "Left"; this.OnPropertiesInitialized = function() { if (ISXml.GetAttribute(this.XmlNode, "Size") != null) this.Size.Parse(ISXml.GetAttribute(this.XmlNode, "Size")); if (ISXml.GetAttribute(this.XmlNode, "MinimumSize") != null) this.MinimumSize.Parse(ISXml.GetAttribute(this.XmlNode, "MinimumSize")); if (ISXml.GetAttribute(this.XmlNode, "MaximumSize") != null) this.MaximumSize.Parse(ISXml.GetAttribute(this.XmlNode, "MaximumSize")); }; } function InitWebDesktopManager(ve8826) { var v82026 = wd9ac40.m45b48(ve8826); v82026.OnInitialize(); } function OnWebDMRSC(v79045, v46182) { var v01626 = v79045.name; var v52772 = ISGetObject(v46182); if (v52772) { var v7a375 = v52772.GetWindow(v01626); wd9ac40.m12a60(v7a375); } else setTimeout(function() { OnWebDMRSC(v79045, v46182); }, 10); } var wd9ac40 = { Initialized: false, ResourcesList: null, m45b48: function(vfee23) { var vc9423 = new WebDesktopManager(vfee23); wd9ac40.m5ac60(vc9423); wd9ac40.macf13(vc9423); wd9ac40.m9cd78(vc9423); wd9ac40.mb8f3(vc9423); wd9ac40.me2c6(vc9423); vc9423.IsInit = true; return vc9423; }, me2c6: function(vfc298) { if (vfc298.WindowSettings.BorderType == "ComplexImages") { var vf1459 = new Array(); var v14320 = vfc298.ImagesSettings; var v09e5 = 0; for (var p in v14320) { var va7951 = v14320[p]; if (typeof (va7951) == "string" && va7951 != "" && va7951 != v14320._Type) { var v58157 = vfc298.ResolveImagePath(va7951); vf1459[v09e5] = new Image(); vf1459[v09e5].src = v58157; v09e5++; } } } }, m5ac60: function(ve9b18) { if (ve9b18 == null) return; if (!ve9b18.IsInit) { var v49998 = null; if (typeof (IS_ReleaseType) != "undefined" && IS_ReleaseType == "Beta") { ve9b18.ScriptDirectory = "/CommonLibraryBeta/WebDesktop/V3_0_7200/"; ve9b18.ImagesDirectory = "/CommonLibraryBeta/Images/WebDesktop/"; } try { v49998 = ISXml.GetNode(ve9b18.XmlDt, "//WebDesktopManager"); } catch (e) { } if (v49998 == null) v49998 = ve9b18.XmlDt.documentElement; if (v49998 != null) { IS.SetPropertiesRecursive(ve9b18, v49998); ve9b18.TaskBarButtonStyle = DynamicStyleEngine.Assign(ISXml.GetNode(ve9b18.XmlDt, "//TaskBarButtonStyle")); ve9b18.ShortcutStyle = DynamicStyleEngine.Assign(ISXml.GetNode(ve9b18.XmlDt, "//ShortcutStyle")); var vbe040 = ["CaptionButtonStyle", "CaptionStyle", "WindowStyle", "CommandButtonStyle"]; var vb0638 = ["ItemStyle", "DisabledItemStyle", "CheckedItemStyle"]; DynamicStyleEngine.AssignFromArray(ve9b18.WindowSettings, ve9b18.WindowSettings.XmlNode, vbe040); if (ve9b18.EnableContextMenu) { DynamicStyleEngine.AssignFromArray(ve9b18.MenuStyles.Application, ve9b18.MenuStyles.Application.XmlNode, vb0638); DynamicStyleEngine.AssignFromArray(ve9b18.MenuStyles.System, ve9b18.MenuStyles.System.XmlNode, vb0638); } } } }, mf619: function(v70528) { var v91273 = v70528.GetWindowDivElement(); if (!v91273) return; var v74428 = v70528.GetWindowOptionsCellElement(); if (v91273) Listener.Unload(v91273); if (v74428) Listener.Unload(v74428); if (v70528.Get("ContentMode") == "UseInlineContent") { var v53b91 = v70528.GetContentDivElement(); if (v53b91) Listener.Unload(v53b91); } var v48d39 = v70528.GetCaptionBarTableElement(); if (v48d39) Listener.Unload(v48d39); var v1f577 = v70528.GetControlBoxCellElement(); if (v1f577) Listener.Unload(v1f577); var ve0665 = v70528.GetTaskBarButtonElement(); if (ve0665) Listener.Unload(ve0665); }, mf4412: function(vd9648) { var vf2564 = vd9648.FrameObj; var ve1a77 = vd9648.GetDesktopElement(); Listener.Unload(vf2564); Listener.Unload(ve1a77); Listener.Unload(document.body); var v28a94 = vd9648.GetTaskBarWindowGroupElement(); if (v28a94) Listener.Unload(v28a94); for (var va9984 = 0; va9984 < vd9648.Windows.length; va9984++) { var v56722 = vd9648.Windows[va9984]; wd9ac40.mf619(v56722); } window.detachEvent("onload", function() { wd9ac40.m79353(vd9648); }); if (IS.moz) window.detachEvent("onresize", function() { wd9ac40.m32c14(vd9648); }); }, mc0344: function(ve1a59) { var v00b3 = ve1a59.DesktopManager; var vd9c96 = ve1a59.GetWindowDivElement(); var v8f528 = ve1a59.GetWindowOptionsCellElement(); if (vd9c96) { Listener.Add(vd9c96, "onmousedown", wd9ac40.m8ff59, ve1a59); Listener.Add(vd9c96, "onmousemove", wd9ac40.m7bf58, ve1a59); Listener.Add(v8f528, "onmousedown", wd9ac40.m32e59, ve1a59); Listener.Add(v8f528, "onmouseup", wd9ac40.m32e59, ve1a59); Listener.Add(v8f528, "onmouseover", wd9ac40.m32e59, ve1a59); Listener.Add(v8f528, "onmouseout", wd9ac40.m32e59, ve1a59); if (ve1a59.Get("ContentMode") == "UseInlineContent") { var v6877 = ve1a59.GetContentDivElement(); Listener.Add(v6877, "onselectstart", function() { wd9ac40.m3c27(v00b3); }); Listener.Add(v6877, "onscroll", function() { wd9ac40.m43969(v00b3); }); } var v5bf21 = ve1a59.GetCaptionBarTableElement(); if (v5bf21) { Listener.Add(v5bf21, "ondblclick", function() { wd9ac40.m68b24(v00b3); }); Listener.Add(v5bf21, "oncontextmenu", function() { return wd9ac40.ma9019(v00b3); }); } var v60089 = ve1a59.GetControlBoxCellElement(); if (v60089) Listener.Add(v60089, "onclick", function() { wd9ac40.m70859(v00b3); }); } }, macf13: function(v83850) { var v27895 = v83850.FrameObj; var v45645 = v83850.GetDesktopElement(); Listener.Add(v27895, "onresize", function() { wd9ac40.m32c14(v83850); }); Listener.Add(v27895, "onselectstart", function() { wd9ac40.mac743(v83850); }); Listener.Add(v27895, "ondragstart", function() { event.cancelBubble = true; return false; }); Listener.Add(v45645, "onmousedown", function() { wd9ac40.m5a752(v83850); }); Listener.Add(v45645, "ondblclick", function() { wd9ac40.m5a752(v83850); }); Listener.Add(v45645, "onkeydown", function() { wd9ac40.m30463(v83850); }); Listener.Add(v45645, "oncontextmenu", function() { return wd9ac40.m7fb76(v83850); }); var v0ad32 = v83850.GetTaskBarWindowGroupElement(); if (v0ad32) { Listener.Add(v0ad32, "onmousedown", function() { wd9ac40.m92e89(v83850); }); Listener.Add(v0ad32, "onmouseup", function() { wd9ac40.m92e89(v83850); }); Listener.Add(v0ad32, "onmouseover", function() { wd9ac40.m92e89(v83850); }); Listener.Add(v0ad32, "onmouseout", function() { wd9ac40.m92e89(v83850); }); Listener.Add(v0ad32, "oncontextmenu", function() { return wd9ac40.m92e89(v83850); }); } for (var v63a52 = 0; v63a52 < v83850.Windows.length; v63a52++) { wd9ac40.mc0344(v83850.Windows[v63a52]); } window.attachEvent("onload", function() { wd9ac40.m79353(v83850); }); if (IS.moz) window.attachEvent("onresize", function() { wd9ac40.m32c14(v83850); }); }, m9cd78: function(v79789) { if (IS.moz) { var v6d534 = v79789.FrameObj; v6d534.tabindex = 0; v6d534.style.MozUserFocus = "normal"; for (var v54764 = 0; v54764 < v79789.Windows.length; v54764++) { var v34165 = v79789.Windows[v54764]; var vd8375 = v34165.GetWindowDivElement(); vd8375.style.overflow = "hidden"; } } }, m16064: function(vf6a0) { var vcbd89 = false; var v77f43 = null; if (vf6a0.WindowArrangement == "Cascaded") vf6a0.CascadeWindows(true); else if (vf6a0.WindowArrangement == "TiledHorizontally") vf6a0.TileWindowsHorizontally(true); else if (vf6a0.WindowArrangement == "TiledVertically") vf6a0.TileWindowsVertically(true); for (var v9f651 = 0; v9f651 < vf6a0.Windows.length; v9f651++) { var v03679 = vf6a0.Windows[v9f651]; if (v03679.ClientVisible) { if (v03679.WindowState == "Normal") v03679.Show(); else if (v03679.WindowState == "Maximized") { v03679.Show(); v03679.WindowState = "Normal"; v03679.Maximize(null, false); } else { v03679.Hide(); if (v9f651 == vf6a0.ActiveWindowIndex) { if (vf6a0.Windows[v9f651 + 1] != null && !vcbd89) { var v1ee87 = vf6a0.Windows[v9f651 + 1]; if (v1ee87.ClientVisible && v1ee87.WindowState != "Minimized") { vf6a0.ActiveWindowIndex = v9f651; vcbd89 = true; v77f43 = v1ee87; } } } } v03679.StartupPositionInitialized = true; } else v03679.Hide(); if (v03679.Get("ContentMode") == "UseIFrame") { var v98820 = v03679.GetContentDivElement(); v98820.style.overflow = "hidden"; v98820.style.overflowY = "hidden"; v98820.style.overflowX = "hidden"; } v03679.Initialized = true; } if (vf6a0.ActiveWindowIndex > -1 && vf6a0.Windows.length > vf6a0.ActiveWindowIndex && vf6a0.Windows[vf6a0.ActiveWindowIndex].ClientVisible && !v77f43) vf6a0.Windows[vf6a0.ActiveWindowIndex].Activate(); else { if (v77f43) v77f43.Activate(); else vf6a0.ActiveWindowIndex = -1; } wd9ac40.m0bf74(vf6a0); wd9ac40.m29950(vf6a0); wd9ac40.m7cd37(vf6a0); }, m56542: function(v68c39) { for (var vfd019 = 0; vfd019 < v68c39.Windows.length; vfd019++) { var ve1910 = v68c39.Windows[vfd019]; var v4fd88 = new ISInteractiveObject(); if (ve1910.Get("AllowResize") == "Yes") v4fd88.Resizable = true; v4fd88.Window = ve1910; v4fd88.DesktopManager = v68c39; v4fd88.Movable = true; v4fd88.DragElement = ve1910.GetCaptionBarTableElement(); v4fd88.FrameElement = ve1910.GetWindowDivElement(); v68c39.InteractiveObjects[v68c39.InteractiveObjects.length] = v4fd88; ve1910.InteractiveObject = v4fd88; } if (v68c39.ShortcutSettings.Movable) { for (var vfd019 = 0; vfd019 < v68c39.ShortcutIcons.length; vfd019++) { var vd3b30 = v68c39.ShortcutIcons[vfd019]; var v4fd88 = new ISInteractiveObject(); v4fd88.DesktopManager = v68c39; v4fd88.Movable = true; v4fd88.DragElement = vd3b30.GetElement(); v4fd88.FrameElement = vd3b30.GetElement(); v68c39.InteractiveObjects[v68c39.InteractiveObjects.length] = v4fd88; vd3b30.InteractiveObject = v4fd88; } } }, ma9637: function(v2aa39, v3d820) { return v2aa39 - v3d820; }, m0bf74: function(vc0514) { var v09511 = vc0514.GetTaskBarLeftTemplateElement(); var v6e759 = vc0514.GetTaskBarRightTemplateElement(); if (v09511) { v09511.style.width = v09511.scrollWidth; if (IS.moz && v09511.scrollWidth == 0 && v09511.children.length > 0) v09511.style.width = v09511.children[0].offsetWidth; } if (v6e759) { v6e759.style.width = v6e759.scrollWidth; if (IS.moz && v6e759.scrollWidth == 0 && v6e759.children.length > 0) v6e759.style.width = v6e759.children[0].offsetWidth; } }, mac743: function(vfb669) { var ve1c50 = event.srcElement; var vd7778 = ve1c50.tagName; var v72825 = true; switch (vd7778) { case "INPUT": case "SELECT": case "TEXTAREA": { v72825 = false; } } if (v72825) { event.cancelBubble = true; event.returnValue = false; } }, m43969: function(v3bc69) { if (IS.ie) { if (typeof (wd80959) == "object") { wd80959.IsMouseDown = false; } } }, m3c27: function(v32269) { if (typeof (wd80959) == "object") { if (wd80959.IsMouseDown && wd80959.LastValidObject) return true; } event.cancelBubble = true; return true; }, m68b24: function(v3f125) { var v48269 = event.srcElement; var v72488 = wd9ac40.ma0263(v3f125, v48269); if (v48269 && v48269.tagName == "INPUT") return; if (v72488) { var v29d92 = v72488.GetControlBoxElement(); if (v29d92 && v29d92.contains(v48269)) { if (v3f125.WindowSettings.ControlBoxPosition == "Left") { if (v72488.Get("AllowClose") == "Yes") { v72488.Close(); return; } } else { if (v29d92.children[0] == v48269 && v72488.Get("AllowClose") == "Yes") { v72488.Close(); return; } } } if (v72488.WindowState == "Normal" && v72488.Get("AllowMaximize") == "Yes") { v72488.Maximize(true, true); } else if (v72488.WindowState == "Maximized" || v72488.WindowState == "Minimized") { v72488.Restore(true, true); } } }, m30463: function(v62810, v02e14, v45d96, v3c751, v79861, v0b615) { var v1b861 = event; if (v02e14) { v1b861 = new Object(); v1b861.srcElement = v02e14; v1b861.keyCode = v45d96; v1b861.ctrlKey = v3c751; v1b861.altKey = v79861; v1b861.shiftKey = v0b615; } var ve2736 = v1b861.srcElement; var v45d96 = v1b861.keyCode; var v3be21 = false; if (!v62810.EnableKeyboardNavigation) return false; switch (v45d96) { case 49: { if (v1b861.ctrlKey) { var v59718 = true; var v2ce82 = null; var vb7262 = v62810.GetActiveWindow(); if (v1b861.shiftKey) v59718 = false; if (vb7262) { if (v59718) v2ce82 = vb7262.GetNextWindowExact(); else v2ce82 = vb7262.GetPreviousWindowExact(); } else { if (v62810.Windows.length > 0) v2ce82 = v62810.Windows[0]; } if (v2ce82) { v2ce82.Activate(); v3be21 = true; } } break; } case 67: { if (v1b861.ctrlKey && v1b861.altKey) { var vb7262 = v62810.GetActiveWindow(); if (vb7262 && vb7262.Get("AllowClose") == "Yes") { vb7262.Close(); v3be21 = true; } } break; } case ISKeyboardKey.LEFT: case ISKeyboardKey.RIGHT: case ISKeyboardKey.DOWN: case ISKeyboardKey.UP: { var vc0746 = wd9ac40.ma0b48(ve2736); if (vc0746) { var v89777 = wd9ac40.md1045(vc0746.id, v62810.Id); var v80181 = v62810.ShortcutIcons.GetNamedItem(v89777); var v5f818 = null; if (IS.moz) v80181 = v62810.ShortcutIcons[v62810.ActiveShortcutIndex]; if (v45d96 == ISKeyboardKey.LEFT || v45d96 == ISKeyboardKey.UP) { v5f818 = v62810.ShortcutIcons[v80181.Index - 1]; if (!v5f818 && v62810.ShortcutIcons.length > 0) v5f818 = v62810.ShortcutIcons[0]; } else if (v45d96 == ISKeyboardKey.RIGHT || v45d96 == ISKeyboardKey.DOWN) { v5f818 = v62810.ShortcutIcons[v80181.Index + 1]; if (!v5f818 && v62810.ShortcutIcons.length > 0) v5f818 = v62810.ShortcutIcons[v62810.ShortcutIcons.length - 1]; } if (v5f818 && v5f818.Visible) { v5f818.Select(true); if (IS.ie) v5f818.GetElement().focus(); v3be21 = true; } } break; } case ISKeyboardKey.ENTER: { var vc0746 = wd9ac40.ma0b48(ve2736); if (vc0746) { var v89777 = wd9ac40.md1045(vc0746.id, v62810.Id); var v80181 = v62810.ShortcutIcons.GetNamedItem(v89777); var v5f818 = null; if (IS.moz) v80181 = v62810.ShortcutIcons[v62810.ActiveShortcutIndex]; if (v80181 && v80181.Visible && v80181.Enabled) v80181.Open(true); } v3be21 = true; break; } } if (v3be21) { try { v1b861.keyCode = 0; } catch (e) { } v1b861.cancelBubble = true; v1b861.returnValue = false; } }, ma0b48: function(v29266) { if (v29266.tagName == "DIV") { if (v29266.id.indexOf("dvSCI") > -1) return v29266; } while (v29266.parentElement != null) { v29266 = v29266.parentElement; if (v29266.tagName == "DIV" && v29266.id.indexOf("dvSCI") > -1) { return v29266; } } return null; }, m5a752: function(vdc677) { var v4a52 = event.type; var v02b62 = event.srcElement; var vfe74; var v47295 = ""; if (v02b62.tagName == "DIV") { if (v02b62.id.indexOf("dvDesktop") > -1) { vfe74 = v02b62; v47295 = "Desktop"; } else if (v02b62.id.indexOf("dvSCI") > -1) { vfe74 = v02b62; v47295 = "Shortcut"; } } if (!vfe74) { while (v02b62.parentElement != null) { v02b62 = v02b62.parentElement; if (v02b62.tagName == "DIV" && v02b62.id.indexOf("dvSCI") > -1) { vfe74 = v02b62; v47295 = "Shortcut"; break; } } } if (vfe74) { if (v4a52 == "mousedown") { if (event.button == ISEvent.LEFT) { if (v47295 == "Desktop") { var v7985 = vdc677.GetActiveShortcut(); if (v7985) DynamicStyleEngine.SetToStyle(null, vdc677.ShortcutStyle, v7985.GetTextElement()); vdc677.ActiveShortcutIndex = -1; } else { var v50120 = wd9ac40.md1045(vfe74.id, vdc677.Id); var v9be74 = vdc677.ShortcutIcons.GetNamedItem(v50120); if (v9be74) v9be74.Select(true); } } } else if (v4a52 == "dblclick") { if (v47295 == "Shortcut") { var v50120 = wd9ac40.md1045(vfe74.id, vdc677.Id); var v9be74 = vdc677.ShortcutIcons.GetNamedItem(v50120); if (v9be74) v9be74.Open(true); } if (IS.moz) { event.cancelBubble = true; event.returnValue = false; } } } }, m32e59: function() { var vec977 = this; var v69a51 = event.srcElement; if (!vec977) return; var v94256 = vec977.GetMinimizeButtonElement(); var v9c260 = vec977.GetMaximizeButtonElement(); var v69a27 = vec977.GetCloseButtonElement(); var vf0b37 = [v94256, v9c260, v69a27]; for (var btnEl in vf0b37) { btnEl = vf0b37[btnEl]; if (btnEl) { if (btnEl == v69a51 || btnEl.contains(v69a51)) { wd9ac40.m45c60(vec977, event.type, btnEl); return; } } } }, m45c60: function(vb3b82, veaa7, v65745) { var v69c16 = vb3b82.DesktopManager; var v24270 = v69c16.WindowSettings; var v60b89 = v24270.BorderType; var va6384 = v69c16.ImagesSettings; if (veaa7 == "mouseover") { if (v60b89 == "Simple") DynamicStyleEngine.SetToOverStyle(null, v24270.CaptionButtonStyle, v65745); else if (v60b89 == "ComplexImages") { var vcf126 = v65745.children[0]; var va5355 = ""; if (IS.GetAttr(v65745, "type") == "Min") va5355 = v69c16.ResolveImagePath(va6384.MinimizeOver); else if (IS.GetAttr(v65745, "type") == "Max") { if (vb3b82.WindowState == "Maximized") va5355 = v69c16.ResolveImagePath(va6384.RestoreOver); else va5355 = v69c16.ResolveImagePath(va6384.MaximizeOver); } else va5355 = v69c16.ResolveImagePath(va6384.CloseOver); vcf126.src = va5355; } } else if (veaa7 == "mouseout" || veaa7 == "mouseup") { if (v60b89 == "Simple") DynamicStyleEngine.SetToStyle(null, v24270.CaptionButtonStyle, v65745); else if (v60b89 == "ComplexImages") { var vcf126 = v65745.children[0]; var va5355 = ""; if (vb3b82.IsActiveWindow() || (vb3b82.IsDialogBox)) { if (IS.GetAttr(v65745, "type") == "Min") va5355 = v69c16.ResolveImagePath(va6384.MinimizeActive); else if (IS.GetAttr(v65745, "type") == "Max") { if (vb3b82.WindowState == "Maximized") va5355 = v69c16.ResolveImagePath(va6384.RestoreActive); else va5355 = v69c16.ResolveImagePath(va6384.MaximizeActive); } else va5355 = v69c16.ResolveImagePath(va6384.CloseActive); } else { if (IS.GetAttr(v65745, "type") == "Min") va5355 = v69c16.ResolveImagePath(va6384.MinimizeInactive); else if (IS.GetAttr(v65745, "type") == "Max") { if (vb3b82.WindowState == "Maximized") va5355 = v69c16.ResolveImagePath(va6384.RestoreInactive); else va5355 = v69c16.ResolveImagePath(va6384.MaximizeInactive); } else va5355 = v69c16.ResolveImagePath(va6384.CloseInactive); } vcf126.src = va5355; } } else if (veaa7 == "mousedown") { if (v60b89 == "Simple") DynamicStyleEngine.SetToActiveStyle(null, v24270.CaptionButtonStyle, v65745); else if (v60b89 == "ComplexImages") { var vcf126 = v65745.children[0]; var va5355 = ""; if (IS.GetAttr(v65745, "type") == "Min") va5355 = v69c16.ResolveImagePath(va6384.MinimizeDown); else if (IS.GetAttr(v65745, "type") == "Max") { if (vb3b82.WindowState == "Maximized") va5355 = v69c16.ResolveImagePath(va6384.RestoreDown); else va5355 = v69c16.ResolveImagePath(va6384.MaximizeDown); } else va5355 = v69c16.ResolveImagePath(va6384.CloseDown); vcf126.src = va5355; } } if (veaa7 == "mouseup") { var v04b30 = IS.GetAttr(v65745, "type"); if (v04b30 == "Min") { if (vb3b82.WindowState != "Minimized") vb3b82.Minimize(true, true); else vb3b82.Restore(true, true); } else if (v04b30 == "Max") { if (vb3b82.WindowState != "Maximized") vb3b82.Maximize(true, true); else vb3b82.Restore(true, true); } else if (v04b30 == "Close") { if (!v65745.disabled) vb3b82.Close(true); } if (typeof (wd80959) == "object") wd80959.IsMouseDown = false; } if (IS.moz) { event.cancelBubble = true; event.returnValue = false; } }, m92e89: function(v6b376) { var vfa337 = event.srcElement; var va7b86 = wd9ac40.mb2a74(vfa337); if (va7b86 && IS.GetAttr(va7b86, "name") != "") { var v0f330 = event.type; var v09a96 = IS.GetAttr(va7b86, "name"); var v80714 = v6b376.GetWindow(v09a96); if (v80714 && v80714.DesktopManager) { if (v80714.DesktopManager.TaskBarLocked) return; } if (v0f330 == "mouseover") { if (!v80714.IsActiveWindow()) { var vaba84 = IS.GetCssObject(null, v6b376.TaskBarButtonStyle.Over); if (vaba84) { DynamicStyleEngine.SetToOverStyle(null, v6b376.TaskBarButtonStyle, va7b86); } } var v20571 = va7b86.children[0]; if (v20571.scrollWidth > v20571.offsetWidth) va7b86.title = v20571.innerText; else va7b86.title = ""; } else if (v0f330 == "mouseout") { if (!v80714.IsActiveWindow()) { DynamicStyleEngine.SetToStyle(null, v6b376.TaskBarButtonStyle, va7b86); } } else if (v0f330 == "mousedown") { if (!v80714.IsActiveWindow()) { DynamicStyleEngine.SetToActiveStyle(null, v6b376.TaskBarButtonStyle, va7b86); } } else if (v0f330 == "mouseup") { if (event.button == ISEvent.LEFT) { if (v80714.IsActiveWindow()) { v80714.Minimize(true, true); } else { wd9ac40.m3f723(v6b376, v80714); } } } else if (v0f330 == "contextmenu") { event.cancelBubble = true; event.returnValue = false; wd9ac40.m76437(v80714); return false; } } }, m32c14: function(v12696) { wd9ac40.mff593(v12696); wd9ac40.m29950(v12696); wd9ac40.m7cd37(v12696); wd9ac40.m24c86(v12696); v12696.CachedDesktopSize = null; }, m79353: function(vbbe32) { wd9ac40.m16064(vbbe32); if (IS.moz) { for (var v03c96 = 0; v03c96 < vbbe32.Windows.length; v03c96++) { var v3e415 = vbbe32.Windows[v03c96]; if (v3e415.Get("ContentMode") == "UseIFrame") { wd9ac40.mc1285(vbbe32, vbbe32.GetIFrameWindow(v3e415.Name)); } } } }, m8ff59: function(v10532) { if (!v10532 || typeof (v10532.IsActiveWindow) != "function") v10532 = this; if (!v10532.IsActiveWindow()) { var v06e32 = v10532.DesktopManager; if (v10532.IsDialogBox) v10532.DialogBox.Activate(); else wd9ac40.m3f723(v06e32, v10532); } }, m7bf58: function(v50351) { }, m27142: function(v94323, v45733, v53153) { if (v53153) v45733 = v53153; var v8c351 = window.frames[v45733]; if (v8c351) { var v7ad94 = v8c351.event; var v5ae16 = v94323.GetWindow(v45733); if (v5ae16 != null && !v5ae16.IsActiveWindow()) { wd9ac40.m8ff59(v5ae16); } } }, m6a678: function(v73a62, v20352, v6c687) { var v1e642 = window.frames[v20352]; if (v1e642) { var vaa543 = v1e642.event; var v70920 = v73a62.GetWindow(v20352); if (v70920) wd9ac40.m30463(v73a62, v70920.GetWindowDivElement(), vaa543.keyCode, vaa543.ctrlKey, vaa543.altKey, vaa543.shiftKey); } }, m45312: function(v51117, v5c431, vfca72) { if (vfca72) v5c431 = vfca72; var vf7c98 = window.frames[v5c431]; if (!vf7c98) return; if (typeof (wd80959) == "object") { var v8db22 = v51117.GetWindow(v5c431); if (IS.ie) wd80959.Event = vf7c98.event; else wd80959.Event = event; wd80959.m44732(); } }, m94011: function(v38737, v92741) { if (v38737 == null || v38737.ClassName == null) return false; var v95b37 = v38737.GetWindow(v92741); if (!v95b37) return; v95b37.IFrameContentLoaded = false; if (IS.moz) { setTimeout(function() { wd9ac40.m0950(v38737, v92741); }, 50); } }, mac60: function(v68c28, v0a190, v46b42) { var vbd156 = v0a190.name; var vc3f51 = window.frames[vbd156]; var vb736 = vbd156; if (typeof (v46b42) == "string") { vc3f51 = window.frames[v46b42]; vb736 = v46b42; } if (typeof (wd80959) == "object") { var v5aa17 = v68c28.GetWindow(vb736); var vd780 = null; if (v5aa17 == null) return; if (v46b42) { if (IS.ie) wd80959.Event = v0a190.event; else wd80959.Event = event; wd80959.Event.FrameElement = v0a190.frameElement; wd80959.Event.IsChildFrame = true; wd80959.Event.ParentFrameName = v46b42; } else { if (vc3f51 == null) return; if (IS.ie) wd80959.Event = vc3f51.event; else wd80959.Event = event; wd80959.Event.FrameElement = v5aa17.GetWindowIFrameElement(); } wd80959.Event.Window = v5aa17; wd80959.m17f3(); } }, m0950: function(v6fc84, v5f569) { var v91f12 = v6fc84.GetIFrameWindow(v5f569); }, md1045: function(v27484, v7e669) { if (!v7e669) { var v93984 = v27484.lastIndexOf("_"); return v27484.substring(v93984 + 1); } else { var vbda69 = v27484.indexOf(v7e669); return v27484.substring(vbda69 + v7e669.length + 1); } }, mb2a74: function(vdad3) { if (vdad3.tagName == "TD") return vdad3; while (vdad3.parentElement != null) { vdad3 = vdad3.parentElement; if (vdad3.tagName == "TD") return vdad3; } return null; }, mc6082: function(v90e3) { if (v90e3.tagName == "DIV" && v90e3.id.indexOf("dvWnd") > -1) return v90e3; while (v90e3.parentElement != null) { v90e3 = v90e3.parentElement; if (v90e3.tagName == "DIV" && v90e3.id.indexOf("dvWnd") > -1) return v90e3; } return null; }, ma0263: function(v14923, v0f83) { var v0f83 = event.srcElement; var v6da78 = wd9ac40.mc6082(v0f83); var vff695 = ""; if (v6da78) vff695 = wd9ac40.md1045(v6da78.id, v14923.Id); if (vff695 != "") { var v84865 = v14923.GetWindow(vff695); return v84865; } return null; }, m7cd37: function(vf2b89) { var v8f542 = vf2b89.GetTaskBarWindowGroupElement(); if (!v8f542) return null; var v18a97 = v8f542.children[0]; var v9a028 = v18a97.children[0]; if (!vf2b89.IsInResizing) { vf2b89.IsInResizing = true; if (v18a97.currentMode == "justify") { var v5ae89 = null; for (var vb0165 = 0; vb0165 < v9a028.rows[0].cells.length; vb0165++) { var vb2890 = v9a028.rows[0].cells[vb0165]; if (IS.GetAttr(vb2890, "name") != "") { v5ae89 = vb2890; break; } } if (v5ae89) { if (v5ae89.offsetWidth > vf2b89.TaskBarSettings.WindowButtonWidth) v18a97.currentMode = "normal"; } } if (v18a97.offsetWidth >= v9a028.offsetWidth && v18a97.currentMode != "justify") { for (var vb0165 = 0; vb0165 < v9a028.rows[0].cells.length; vb0165++) { var vb2890 = v9a028.rows[0].cells[vb0165]; if (IS.GetAttr(vb2890, "name") != "") { vb2890.style.width = vf2b89.TaskBarSettings.WindowButtonWidth; } } if (IS.ie) v9a028.rows[0].cells[v9a028.rows[0].cells.length - 1].style.width = "100%"; v18a97.currentMode = "normal"; } else { if (v18a97.currentMode != "justify") { for (var vb0165 = 0; vb0165 < v9a028.rows[0].cells.length; vb0165++) { var vb2890 = v9a028.rows[0].cells[vb0165]; if (IS.GetAttr(vb2890, "name") != "") { vb2890.style.width = "auto"; } } v9a028.rows[0].cells[v9a028.rows[0].cells.length - 1].style.width = "0%"; v18a97.currentMode = "justify"; } } vf2b89.IsInResizing = false; } }, m29950: function(v6bc28) { if (v6bc28.ShortcutIconsVisible) { for (var v8bb28 = 0; v8bb28 < v6bc28.ShortcutIcons.length; v8bb28++) { var v6d444 = v6bc28.ShortcutIcons[v8bb28]; v6d444.Rearrange(); } } }, mff593: function(v17764) { var v51c64 = v17764.ShortcutSettings; for (var v73414 = 0; v73414 < v17764.ShortcutIcons.length; v73414++) { var v84169 = v17764.ShortcutIcons[v73414]; if (v51c64.AllowAutoArrange || v84169.Location.IsEmpty()) { v84169.RuntimeLocation = new OffsetLocation(); } } }, me2733: function(vc3964, vd7e14, vc7c69) { for (var v52f64 = 0; v52f64 < vc3964.Windows.length; v52f64++) { var v44e14 = vc3964.Windows[v52f64]; if (vc7c69 && v44e14.Get("AllowResize") == "No") v44e14.ForceNoResize = true; if (!v44e14.IsDialogBox) v44e14.InitializeLayout("Cascade", vd7e14); } }, m5ed24: function(v9e674, v59072, v9c840, vdde8) { for (var vac847 = 0; vac847 < v9e674.Windows.length; vac847++) { var vd8254 = v9e674.Windows[vac847]; if (vdde8 && vd8254.Get("AllowResize") == "No") vd8254.ForceNoResize = true; if (!vd8254.IsDialogBox) vd8254.InitializeLayout("TileWindows" + v9c840, v59072); } }, ma3b78: function(v01b14, v97691, v42d73) { var v0a414 = v01b14.GetWindowDivElement(); v01b14.Location.X = v97691; v01b14.Location.Y = v42d73; v0a414.style.left = v97691 + "px"; v0a414.style.top = v42d73 + "px"; if (v01b14.EnableDropShadow && v01b14.DropShadow != null) v01b14.DropShadow.UpdatePosition(); }, mcde12: function(v9e624, v6fb49, v54a44) { var v53833 = v9e624.GetWindowDivElement(); if (typeof (v6fb49) == "string") v6fb49 = parseFloat(v6fb49); if (typeof (v54a44) == "string") v54a44 = parseFloat(v54a44); if (!v9e624.IsTargetSizeValid(v6fb49, v54a44)) { var vb751 = v9e624.GetPreferredSize(v6fb49, v54a44); v6fb49 = vb751.Width; v54a44 = vb751.Height; } v9e624.Size.Width = v6fb49; v9e624.Size.Height = v54a44; v53833.style.width = v6fb49 + "px"; v53833.style.height = v54a44 + "px"; if (v9e624.EnableDropShadow && v9e624.DropShadow != null) v9e624.DropShadow.UpdatePosition(); if (IS.moz) { if (v9e624.Get("ContentMode") == "UseInlineContent") { var v98240 = v9e624.GetContentDivElement(); var v5cb93 = v98240.children[0]; var v48d96 = v9e624.GetCaptionBarTableElement(); v5cb93.style.height = "0pt"; } wd9ac40.m8a991(v9e624); } else { wd9ac40.m25117(v9e624); } }, m25117: function(vf5799, vbf538) { var vcbd63 = vf5799.GetWindowDivElement(); var vb6c68 = vf5799.GetContentDivElement(); var vdf978 = vf5799.DesktopManager; if (vf5799.Get("ContentMode") == "UseIFrame") { var vce961 = vf5799.GetWindowIFrameElement(); if (vdf978.WindowSettings.BorderType == "ComplexImages") { if (IsIE8StandardMode()) { if (vbf538) vb6c68.style.display = "none"; setTimeout(function() { vb6c68.style.height = ISPosLib.getHeight(vb6c68.parentElement); if (vbf538) vb6c68.style.display = ""; }, 10); } } if (vce961) { vce961.style.display = "none"; vce961.style.height = "100%"; vce961.style.display = ""; } } }, m8a991: function(v48130) { var v33f99 = v48130.GetWindowDivElement(); var vbaa38 = v48130.GetContentDivElement(); var vef496 = v48130.DesktopManager; if (IS.safari) return; if (vef496.WindowSettings.BorderType == "Simple") { vbaa38.style.overflow = "visible"; if (!v48130.IsDialogBox) setTimeout(function() { vbaa38.style.overflow = "auto"; }); } else { vbaa38.style.overflow = "visible"; var v9592 = vbaa38.children[0]; v9592.style.overflow = "visible"; v9592.style.display = "none"; setTimeout(function() { if (!v48130.IsDialogBox) vbaa38.style.overflow = "auto"; v9592.style.display = ""; var v01762 = v9592.children[0]; if (v01762 != null && v01762.clientHeight == 0) v9592.style.height = "100%"; }); } if (v48130.Get("ContentMode") == "UseIFrame") { var vf8383 = v48130.GetWindowIFrameElement(); if (vf8383) { if (IS.moz) vf8383.style.display = "none"; vf8383.parentElement.style.display = "none"; setTimeout(function() { var ve3865 = vf8383.parentElement; if (IS.moz || ve3865.offsetHeight == 0) ve3865 = ve3865.parentElement; if (ve3865.offsetHeight > 0) { vf8383.style.height = ISPosLib.getHeight(ve3865) - (IS.moz ? ((parseFloat(ve3865.currentStyle.paddingTop) * 2)) : 0); vf8383.style.display = ""; vf8383.parentElement.style.display = ""; } else wd9ac40.m8a991(v48130); }, 10); } } }, mc6119: function(v20269) { for (var v10d65 = 0; v10d65 < v20269.Windows.length; v10d65++) { var v40a75 = v20269.Windows[v10d65]; var v0c752 = v40a75.GetWindowDivElement(); if (v0c752) { var v50812 = v0c752.style.zIndex - 1; v0c752.style.zIndex = v50812; } } }, m12a60: function(vcfc96) { var v7514 = vcfc96.GetWindowIFrameElement(); var v92294 = false; if (!v7514) return; if (!vcfc96.ClientVisible) { if (vcfc96.WindowState == "Minimized" || vcfc96.WindowState == "Maximized") v92294 = true; else return false; } var v65e85 = vcfc96.DesktopManager.GetIFrameWindow(v7514.name); var v33f35 = v7514.parentElement; var v90827 = vcfc96.DesktopManager; var va5323 = v90827.WindowSettings; if (!vcfc96.IFrameContentLoaded && v7514.readyState == "complete") { var v9ea61 = v33f35.children[1]; if (v9ea61 && v9ea61.tagName == "DIV") { if (!v92294) { if (v9ea61.style.display != "none") { v7514.style.display = ""; wd9ac40.m8ac27(v9ea61, va5323.IFrameReadyTransitionEffect); } else { v7514.style.display = ""; v7514.style.visibility = "hidden"; wd9ac40.m8ac27(v7514, va5323.IFrameReadyTransitionEffect, true); } } if (va5323.IFrameReadyTransitionEffect == "None" || v92294) v9ea61.removeNode(true); else setTimeout(function() { if (v9ea61) v9ea61.removeNode(true); }, 500); } wd9ac40.mc1285(v90827, v65e85); vcfc96.IFrameContentLoaded = true; } }, mc1285: function(v5c071, v24531, v77d41) { var v77099 = null; try { v77099 = v24531.document.body; } catch (e) { } if (v77099) { if (IS.GetAttr(v77099, "ISWinEventsInitialized") == "") { Listener.Add(v77099, "onmousedown", function() { wd9ac40.m27142(v5c071, v24531.name, v77d41); }); Listener.Add(v77099, "onmouseup", function() { wd9ac40.m45312(v5c071, v24531.name, v77d41); }); Listener.Add(v77099, "onunload", function() { wd9ac40.m94011(v5c071, v24531.name, v77d41); }); Listener.Add(v77099, "onmousemove", function() { wd9ac40.mac60(v5c071, v24531, v77d41); }); Listener.Add(v77099, "onkeydown", function() { wd9ac40.m6a678(v5c071, v24531.name, v77d41); }); v77099.ISWinEventsInitialized = true; } var v49192 = v77099.getElementsByTagName("IFRAME"); for (var va6e4 = 0; va6e4 < v49192.length; va6e4++) { if (v49192[va6e4].name != "") { var vcb262 = v24531.frames[v49192[va6e4].name]; if (vcb262 && v49192[va6e4].readyState == "complete") { if (!v77d41) v77d41 = v24531.name; wd9ac40.mc1285(v5c071, vcb262, v77d41); } } } } }, m85593: function(vb5754, v2c672) { var v49f54 = v2c672.DesktopManager; if (vb5754.BorderType == "Simple") { if (vb5754.EnableFastWindowActivation && IS.ie) wd9ac40.m9d165(vb5754, vb5754.WindowStyle.Normal, v2c672.GetWindowDivElement()); else DynamicStyleEngine.SetToStyle(null, vb5754.WindowStyle, v2c672.GetWindowDivElement()); DynamicStyleEngine.SetToStyle(null, vb5754.CaptionStyle, v2c672.GetCaptionBarCellElement().children[0]); } else if (vb5754.BorderType == "ComplexImages") { DynamicStyleEngine.SetToStyle(null, vb5754.WindowStyle, v2c672.GetContentDivElement()); DynamicStyleEngine.SetToStyle(null, vb5754.CaptionStyle, v2c672.GetCaptionBarTableElement()); wd9ac40.m15e5(v49f54, v2c672, "Normal"); } }, m5e487: function(vce41, v2a399) { var v3cd26 = vce41.DesktopManager; var v43c10 = v3cd26.WindowSettings; var v03226 = v3cd26.GetActiveWindow(); var v26f48 = vce41.GetWindowDivElement(); if (v03226) { wd9ac40.m85593(v43c10, v03226); if (!vce41.IsDialogBox) { var v6cf15 = v03226.GetTaskBarButtonElement(); if (v6cf15) { DynamicStyleEngine.SetToStyle(null, v3cd26.TaskBarButtonStyle, v6cf15); } } if (v03226.CurrentDialogBox && v03226.DialogBoxShown) { var vde252 = v03226.CurrentDialogBox.Window; wd9ac40.m85593(v43c10, vde252); } v03226.UnregisterAccessKeys(); } if (v43c10.BorderType == "Simple") { if (v43c10.EnableFastWindowActivation && IS.ie) wd9ac40.m9d165(v43c10, v43c10.WindowStyle.Active, v26f48); else DynamicStyleEngine.SetToActiveStyle(null, v43c10.WindowStyle, v26f48); DynamicStyleEngine.SetToActiveStyle(null, v43c10.CaptionStyle, vce41.GetCaptionBarCellElement().children[0]); } else if (v43c10.BorderType == "ComplexImages") { DynamicStyleEngine.SetToActiveStyle(null, v43c10.CaptionStyle, vce41.GetCaptionBarTableElement()); DynamicStyleEngine.SetToActiveStyle(null, v43c10.WindowStyle, vce41.GetContentDivElement()); wd9ac40.m15e5(v3cd26, vce41, "Active"); } if (!vce41.IsDialogBox) { var v6cf15 = vce41.GetTaskBarButtonElement(); if (vce41.WindowState == "Minimized" && v6cf15) { vce41.Restore(true, true); } if (!vce41.CreatedAtRuntime && !vce41.StartupPositionInitialized) { if (vce41.WindowState == "Maximized") { vce41.WindowState = "Normal"; vce41.Maximize(null, false); } } if (v6cf15) DynamicStyleEngine.SetToActiveStyle(null, v3cd26.TaskBarButtonStyle, v6cf15); vce41.RegisterAccessKeys(); v3cd26.ActiveWindowIndex = vce41.Index; } if (vce41.DialogBoxShown) { if (vce41.DialogBoxWindows.length > 0) { var v7b461 = vce41.GetWindowDivElement().style.zIndex; for (var vd096 = 0; vd096 < vce41.DialogBoxWindows.length; vd096++) { var v73684 = vce41.DialogBoxWindows[vd096]; if (v73684.IsDialogBox) v73684.GetWindowDivElement().style.zIndex = v7b461; } } vce41.CurrentDialogBox.Window.Activate(); } if (v3cd26.IsVistaAnimation() && !v2a399) { ISAnimation_RemoveOpacity(v26f48); if (vce41.Get("ContentMode") == "UseIFrame") { var v5ca43 = vce41.GetWindowIFrameElement(); if (v5ca43.style.display == "none") v5ca43.style.display = ""; } } }, m3f723: function(v81285, v4f739) { var vf9c85 = wd9ac40.m51456(v81285); if (vf9c85) { vf9c85 = ISEvent.Raise(v4f739.OnBeforeActivated, v4f739); if (vf9c85) { if (ISEvent.Raise(v81285.ClientSideEvents.OnWindowBeforeActivated, v81285.Id, v4f739)) { v4f739.Activate(true); } } ISEvent.Raise(v4f739.OnAfterActivated, v4f739); ISEvent.Raise(v81285.ClientSideEvents.OnWindowAfterActivated, v81285.Id, v4f739); } }, m51456: function(v46e40) { var v7e720 = v46e40.GetActiveWindow(); if (v7e720) { if (!window.IsDialogBox) { return ISEvent.Raise(v46e40.ClientSideEvents.OnWindowDeactivated, v46e40.Id, v7e720); } } return true; }, m9d165: function(v80f40, ve1b18, v9c212) { if (!v80f40.CachedStyles[ve1b18]) v80f40.CachedStyles[ve1b18] = IS.GetCssObject(null, ve1b18); var v61140 = v80f40.CachedStyles[ve1b18]; if (v61140) v9c212.runtimeStyle.border = v61140.border; }, m15e5: function(ve6192, v05c2, vcfe91) { var v66326 = v05c2.GetCaptionBarCellElement().children[0]; var v05865 = v66326.rows[0].cells[0]; var vb4535 = v66326.rows[0].cells[1]; var vb307 = v66326.rows[0].cells[2]; var vd562 = ""; var v47318 = ""; var vab964 = ""; var v95e14 = ""; var v3f466 = ""; var vb7289 = ""; var va4f29 = ve6192.ImagesSettings; if (vcfe91 == "Normal") { vd562 = ve6192.ResolveImagePath(va4f29.CaptionLeftInactive); v47318 = ve6192.ResolveImagePath(va4f29.CaptionCenterInactive); vab964 = ve6192.ResolveImagePath(va4f29.CaptionRightInactive); v95e14 = ve6192.ResolveImagePath(va4f29.MinimizeInactive); v3f466 = ve6192.ResolveImagePath(va4f29.MaximizeInactive); if (v05c2.WindowState == "Maximized") v3f466 = ve6192.ResolveImagePath(va4f29.RestoreInactive); vb7289 = ve6192.ResolveImagePath(va4f29.CloseInactive); } else { vd562 = ve6192.ResolveImagePath(va4f29.CaptionLeftActive); v47318 = ve6192.ResolveImagePath(va4f29.CaptionCenterActive); vab964 = ve6192.ResolveImagePath(va4f29.CaptionRightActive); v95e14 = ve6192.ResolveImagePath(va4f29.MinimizeActive); v3f466 = ve6192.ResolveImagePath(va4f29.MaximizeActive); if (v05c2.PreviousWindowState == "Maximized") v3f466 = ve6192.ResolveImagePath(va4f29.RestoreActive); vb7289 = ve6192.ResolveImagePath(va4f29.CloseActive); } v05865.children[0].src = vd562; vb4535.style.backgroundImage = "url(" + v47318 + ")"; vb307.children[0].src = vab964; if (v05c2.Get("AllowMinimize") == "Yes") { var v7ba99 = v05c2.GetMinimizeButtonElement(); if (v7ba99) v7ba99.children[0].src = v95e14; } if (v05c2.Get("AllowMaximize") == "Yes") { var v57143 = v05c2.GetMaximizeButtonElement(); if (v57143) v57143.children[0].src = v3f466; } if (v05c2.Get("AllowClose") == "Yes") { var veef98 = v05c2.GetCloseButtonElement(); if (veef98) veef98.children[0].src = vb7289; } }, m87883: function(v8f336, v18578, vca214) { var vf5e11 = v8f336.DesktopManager; var v4ea12 = false; if (vf5e11.EnableAnimation) { if (v18578) v4ea12 = true; } if (v8f336.DialogBoxShown) return; if (v4ea12 && !vca214) { var v8ce57 = new UnitSize(); var v3fa79 = new OffsetLocation(); if (v8f336.GetTaskBarButtonElement()) { var v77267 = v8f336.GetTaskBarButtonElement(); v3fa79.X = ISPosLib.getLeft(v77267); v3fa79.Y = ISPosLib.getTop(v77267); v8ce57.Width = ISPosLib.getWidth(v77267); v8ce57.Height = ISPosLib.getHeight(v77267); } else { v3fa79 = v8f336.GetMinimizedLocation(); v8ce57 = v8f336.GetMinimizedSize(); } var v30749 = new ISAnimatedObject(); v30749.Type = (vf5e11.IsVistaAnimation() ? "ZoomOut" : "ShrinkExpand"); v30749.AnimateLocation = true; v30749.AnimateSize = true; v30749.Element = v8f336.GetWindowDivElement(); v30749.CurrentSize = v8f336.Size; v30749.CurrentLocation = v8f336.Location; v30749.TargetSize = v8ce57; v30749.TargetLocation = v3fa79; v30749.OnCompleted = function() { wd9ac40.m87883(v8f336, null, true); }; if (vf5e11.IsVistaAnimation()) { v30749.MaxStep = 3; if (v8f336.Get("ContentMode") == "UseIFrame") { var vc3770 = v8f336.GetWindowIFrameElement(); vc3770.style.display = "none"; } } v30749.Play(); } else if (!v4ea12 || vca214) { var v2da43 = v8f336.GetWindowDivElement(); if (!v8f336.GetTaskBarButtonElement()) { var v16594 = v8f336.GetContentDivElement(); var vb5831 = v8f336.GetMinimizedLocation(); var v1cf1 = v8f336.GetMinimizedSize(); var v71f27 = v8f336.GetMinimizeButtonElement(); var vf2067 = v8f336.GetMaximizeButtonElement(); var v1bc46 = vf5e11.ImagesSettings; var vdb443 = vf5e11.TextSettings; if (v16594) v16594.style.display = ""; if (v71f27) { if (v1bc46.RestoreActive == "") { var v1fb8 = v71f27.children[0].children[0]; v1fb8.innerText = "2"; } else { var v9b771 = v71f27.children[0]; v9b771.src = vf5e11.ResolveImagePath(v1bc46.RestoreActive); } v71f27.title = vdb443.RestoreText; } if (vf2067) { if (v1bc46.MaximizeActive == "") { var v1fb8 = vf2067.children[0].children[0]; v1fb8.innerText = "1"; } else { var v9b771 = vf2067.children[0]; v9b771.src = vf5e11.ResolveImagePath(v1bc46.MaximizeActive); } vf2067.title = vdb443.MaximizeText; } v2da43.style.left = vb5831.X; v2da43.style.top = vb5831.Y; v2da43.style.width = v1cf1.Width; v2da43.style.height = v1cf1.Height; v8f336.InteractiveObject.Resizable = false; v8f336.InteractiveObject.Enabled = true; } else { v2da43.style.display = "none"; } var v68254 = vf5e11.GetTopMostWindowBefore(v8f336); if (v68254 && v68254.IsDialogBox) v68254 = null; if (v68254) v68254.Activate(); else vf5e11.SetNoActiveWindow(); v8f336.PreviousWindowState = v8f336.WindowState; v8f336.WindowState = "Minimized"; } }, m4d627: function(v82441, v7cb34, vc603) { var v67392 = v82441.DesktopManager; var v3a957 = v67392; var v70f99 = v67392.WindowSettings; var vb9276 = v67392.ImagesSettings; var vbda54 = v67392.TextSettings; var ve025 = v82441.GetWindowDivElement(); var v0cc61 = v82441.GetMaximizeButtonElement(); var v2fa40 = v82441.GetMinimizeButtonElement(); var v78771 = v82441.GetTaskBarButtonElement(); var v32f93 = false; if (v3a957.EnableAnimation) { if (v7cb34) v32f93 = true; if (v3a957.IsVistaAnimation()) v32f93 = false; } if (v32f93 && !vc603) { var vf6b3 = new UnitSize(); var v88965 = new OffsetLocation(); v88965.X = 0; v88965.Y = 0; vf6b3.Width = v3a957.GetDesktopSize().Width; vf6b3.Height = v3a957.GetDesktopSize().Height; var v49784 = new ISAnimatedObject(); v49784.Type = (v3a957.IsVistaAnimation() ? "ZoomIn" : "ShrinkExpand"); v49784.AnimateLocation = true; v49784.AnimateSize = true; v49784.Element = v82441.GetWindowDivElement(); v49784.CurrentSize = v82441.Size; v49784.CurrentLocation = v82441.Location; v49784.TargetSize = vf6b3; v49784.TargetLocation = v88965; v49784.OnCompleted = function() { wd9ac40.m4d627(v82441, null, true); }; v49784.Play(); } else if (!v32f93 || vc603) { v82441.PreviousWindowState = v82441.WindowState; v82441.WindowState = "Maximized"; v82441.InteractiveObject.Enabled = false; if (v78771) v82441.SaveLocationAndSize(); else { v82441.InteractiveObject.Resizable = v82441.Get("AllowResize") == "Yes"; if (v2fa40) { if (vb9276.MinimizeActive == "") { var v27265 = v2fa40.children[0].children[0]; v27265.innerText = "0"; } else { var v2d212 = v2fa40.children[0]; v2d212.src = v67392.ResolveImagePath(vb9276.MinimizeActive); } v2fa40.title = vbda54.MinimizeText; } } ve025.style.left = 0; ve025.style.top = 0; ve025.style.width = v3a957.GetDesktopSize().Width; ve025.style.height = v3a957.GetAvailableDesktopHeight(v3a957.GetDesktopSize().Height); if (v0cc61) { if (vb9276.RestoreActive == "") { var v27265 = v0cc61.children[0].children[0]; v27265.innerText = "2"; } else { var v2d212 = v0cc61.children[0]; v2d212.src = v67392.ResolveImagePath(vb9276.RestoreActive); } v0cc61.title = vbda54.RestoreText; } wd9ac40.m8a991(v82441); } }, m48a95: function(v6da74, v7d59, v1f215) { var v9ec97 = v6da74.DesktopManager; var vc2413 = v9ec97; var v1e788 = v9ec97.WindowSettings; var v5489 = v9ec97.TextSettings; var v7a419 = v9ec97.ImagesSettings; var v4f446 = v6da74.GetWindowDivElement(); var vb5756 = v6da74.GetMaximizeButtonElement(); var v0a125 = v6da74.GetMinimizeButtonElement(); var v91782 = false; if (vc2413.EnableAnimation) { if (v7d59) v91782 = true; if (v6da74.WindowState == "Maximized" && vc2413.IsVistaAnimation()) v91782 = false; } if (v91782 && !v1f215) { var v75779 = new UnitSize(); var v43359 = new OffsetLocation(); var vd6113 = v6da74.GetTaskBarButtonElement(); var vacf39 = new UnitSize(); var v95426 = new OffsetLocation(); if (v6da74.WindowState == "Maximized") { v95426.X = 0; v95426.Y = 0; vacf39.Width = vc2413.GetDesktopSize().Width; vacf39.Height = vc2413.GetDesktopSize().Height; v43359 = v6da74.Location; v75779 = v6da74.Size; } else { if (vd6113) { v95426.X = ISPosLib.getLeft(vd6113); v95426.Y = ISPosLib.getTop(vd6113); vacf39.Width = ISPosLib.getWidth(vd6113); vacf39.Height = ISPosLib.getHeight(vd6113); } else { v95426 = v6da74.GetMinimizedLocation(); vacf39 = v6da74.GetMinimizedSize(); } v43359 = v6da74.Location; v75779 = v6da74.Size; if (vc2413.IsVistaAnimation() && v6da74.PreviousWindowState == "Maximized") { v43359 = new OffsetLocation(0, 0); v75779 = new UnitSize(vc2413.GetDesktopSize().Width, vc2413.GetDesktopSize().Height); } } var vce022 = new ISAnimatedObject(); vce022.Type = (vc2413.IsVistaAnimation() ? "ZoomIn" : "ShrinkExpand"); vce022.AnimateLocation = true; vce022.AnimateSize = true; vce022.Element = v6da74.GetWindowDivElement(); vce022.CurrentSize = vacf39; vce022.CurrentLocation = v95426; vce022.TargetSize = v75779; vce022.TargetLocation = v43359; vce022.OnCompleted = function() { wd9ac40.m48a95(v6da74, null, true); }; if (vc2413.IsVistaAnimation()) { vce022.MaxStep = 3; vce022.CurrentOpacity = 20; vce022.CurrentInterval = 100; if (v6da74.Get("ContentMode") == "UseIFrame") { var v3c635 = v6da74.GetWindowIFrameElement(); v3c635.style.display = "none"; } } vce022.Play(); } else if (!v91782 || v1f215) { var vf8a17 = v6da74.PreviousWindowState; v4f446.style.display = ""; v6da74.InteractiveObject.Resizable = v6da74.Get("AllowResize") == "Yes"; if ((v6da74.PreviousWindowState != "Maximized" && v6da74.WindowState == "Minimized") || v6da74.WindowState == "Maximized") { if (vb5756) { if (v7a419.MaximizeActive == "") { var v98e2 = vb5756.children[0].children[0]; v98e2.innerText = "1"; } else { var v34938 = vb5756.children[0]; v34938.src = v9ec97.ResolveImagePath(v7a419.MaximizeActive); } vb5756.title = v5489.MaximizeText; } } if (v6da74.WindowState == "Maximized" || (v6da74.WindowState == "Minimized" && !v6da74.GetTaskBarButtonElement())) { if (v6da74.WindowState == "Minimized" && v0a125) { if (v7a419.MinimizeActive == "") { var v98e2 = v0a125.children[0].children[0]; v98e2.innerText = "0"; } else { var v34938 = v0a125.children[0]; v34938.src = v9ec97.ResolveImagePath(v7a419.MinimizeActive); } v0a125.title = v5489.MinimizeText; } v6da74.MoveTo(v6da74.Location.X, v6da74.Location.Y); v6da74.ResizeTo(v6da74.Size.Width, v6da74.Size.Height); v6da74.PreviousWindowState = "Normal"; } v6da74.WindowState = v6da74.PreviousWindowState; v6da74.InteractiveObject.Enabled = true; if (vc2413.IsVistaAnimation()) { if (vf8a17 == "Maximized" && v6da74.WindowState == "Maximized") v6da74.InteractiveObject.Enabled = false; if (v1f215) { ISAnimation_RemoveOpacity(v4f446); if (v6da74.Get("ContentMode") == "UseIFrame") { setTimeout(function() { var v3c635 = v6da74.GetWindowIFrameElement(); if (v3c635 != null) v3c635.style.display = ""; }, 50); } } } } }, m4ce26: function(vd7032) { var v36c13 = null; try { v36c13 = vd7032.document; } catch (e) { return; } v36c13.open("text/html"); v36c13.write(""); v36c13.close(); var vcc328 = vd7032.frameElement.removeNode(true); vcc328 = null; delete vcc328; vd7032.ISWindowDestroyed = true; vd7032 = null; delete vd7032; v36c13 = null; delete v36c13; }, m73451: function(v12e54) { var vd6a88 = v12e54.DesktopManager; var v58717 = v12e54.Collection; var v1d11 = vd6a88.GetTopMostWindowBefore(v12e54); var v89713 = v12e54.GetWindowDivElement(); var vf3350 = v12e54.GetTaskBarButtonElement(); var v75117 = true; if (v12e54.IsDialogBox) { var vafc58 = v12e54.DialogBox; vafc58.CloseDialog(); return; } ISEvent.Raise(v12e54.OnPrepareClosed); if (v12e54.Get("ContentMode") == "UseIFrame") { if (v12e54.CreatedAtRuntime) { var vce938 = vd6a88.GetIFrameWindow(v12e54.Name); var v27621 = false; try { if (vce938.document) v27621 = true; } catch (e) { if (e.message.indexOf("Access is denied") > -1) v27621 = true; } if (vce938 && v27621) { v12e54.Hide(); setTimeout(function() { wd9ac40.m4ce26(vce938); }, (vd6a88.IsVistaAnimation() ? 200 : 10)); } } else { v75117 = false; v12e54.Hide(); } } else { if (!v12e54.CreatedAtRuntime) { v75117 = false; v12e54.Hide(); } } if (v75117) { wd9ac40.mf619(v12e54); var vbec7 = null; if (!vd6a88.IsVistaAnimation()) vbec7 = v89713.removeNode(true); else setTimeout(function() { vbec7 = v89713.removeNode(true); delete vbec7; }, 200); if (vf3350) { Listener.Unload(vf3350); vf3350.removeNode(true); wd9ac40.m7cd37(vd6a88); } if (vbec7 != null) { delete vbec7; vbec7 = null; } if (v12e54.EnableDropShadow && v12e54.DropShadow != null) v12e54.DropShadow.Destroy(); v12e54.IsClosed = true; if (v58717 != null) { v58717.Remove(v12e54); v58717.UpdateChanges(); } } wd9ac40.m44443(v12e54); v12e54 = null; delete v12e54; if (vd6a88.IsVistaAnimation()) { setTimeout(function() { vd6a88.ActiveWindowIndex = -1; if (v1d11) v1d11.Activate(); else vd6a88.SetNoActiveWindow(); }, 100); return; } vd6a88.ActiveWindowIndex = -1; if (v1d11) v1d11.Activate(); else vd6a88.SetNoActiveWindow(); }, m29234: function(v7a773) { }, m38d64: function(vd0329, v8e042) { if (v8e042.Enabled && (v8e042.TargetUrl != "" || v8e042.WindowName != "")) { var vf2073 = null; if (v8e042.WindowName != "") vf2073 = vd0329.Windows.GetNamedItem(v8e042.WindowName); if (!vf2073) { for (var vf7b63 = 0; vf7b63 < vd0329.Windows.length; vf7b63++) { if (vd0329.Windows[vf7b63].ContentURL == v8e042.TargetUrl) { vf2073 = vd0329.Windows[vf7b63]; break; } } } if (vf2073) { if (vf2073.Initialized && !vf2073.IsClosed) { if (vf2073.ClientVisible) vf2073.Activate(); else { var vee523 = vf2073.GetWindowDivElement(); vee523.style.display = ""; var vdfe85 = vf2073.GetTaskBarButtonElement(); if (vf2073.ShowInTaskBar) { if (!vdfe85) wd9ac40.mb3b92(vf2073); else vdfe85.style.display = ""; } if (vf2073.ContentURL != "") vf2073.LoadContent(); vf2073.ClientVisible = true; vf2073.Activate(); } } } else { var vba015 = new WebDesktopWindow(); vba015.Name = v8e042.WindowName; vba015.ContentURL = v8e042.TargetUrl; vba015.Text = v8e042.Text; vba015.ControlBoxImage = v8e042.TargetControlBoxImage; vba015.DesktopManager = vd0329; vba015.ContentMode = "UseIFrame"; vd0329.Windows.Add(vba015); vba015.Show(); } } }, me1467: function(vf3b40) { var v13e48 = vf3b40.DesktopManager; if (vf3b40.Enabled && (vf3b40.TargetURL != "" || vf3b40.WindowName != "")) { var vac452 = null; if (vf3b40.WindowName != "") vac452 = v13e48.Windows.GetNamedItem(vf3b40.WindowName); if (!vac452) { for (var v10275 = 0; v10275 < v13e48.Windows.length; v10275++) { if (v13e48.Windows[v10275].ContentURL == vf3b40.TargetURL) { vac452 = v13e48.Windows[v10275]; break; } } } if (vac452) { if (vac452.Initialized && !vac452.IsClosed) { if (vac452.ClientVisible) vac452.Activate(); else { var v54649 = vac452.GetWindowDivElement(); v54649.style.display = ""; var v4ea37 = vac452.GetTaskBarButtonElement(); if (vac452.ShowInTaskBar) { if (!v4ea37) wd9ac40.mb3b92(vac452); else v4ea37.style.display = ""; } if (vac452.ContentURL != "") vac452.LoadContent(); vac452.ClientVisible = true; vac452.Activate(); } } } else { var v36364 = new WebDesktopWindow(); v36364.Name = vf3b40.WindowName; v36364.ContentURL = vf3b40.TargetURL; v36364.Text = vf3b40.Text; v36364.ControlBoxImage = vf3b40.TargetControlBoxImage; v36364.DesktopManager = v13e48; v36364.ContentMode = "UseIFrame"; v13e48.Windows.Add(v36364); v36364.Show(vf3b40.GetElement()); } } }, md1c32: function(vc4815) { var v4fe23 = vc4815.DesktopManager; var v0fe41 = v4fe23.GetDesktopElement(); var vaad27 = ""; var v7b314 = null; if (vc4815.Name != "") { var vda958 = v4fe23.GetWindow(vc4815.Name); if (vda958 != null && vda958 != vc4815) vc4815.Name += vc4815.Index; } else vc4815.Name = "Window" + vc4815.Index; ISEvent.Raise(v4fe23.ClientSideEvents.OnWindowCreating, v4fe23.Id, vc4815); v7b314 = document.createElement("DIV"); v7b314.id = "dvWnd_" + v4fe23.Id + "_" + vc4815.Name; v7b314.style.cssText = "position:absolute; display:none"; v7b314.style.zIndex = 100 - vc4815.Index; if (!IS.IsXHTMLDocType()) v7b314.setAttribute("popupProvider", "Intersoft"); if (v4fe23.WindowSettings.BorderType != "ComplexImages") v7b314.className = v4fe23.WindowSettings.WindowStyle.Normal; vaad27 += "<table border=0 cellspacing=0 cellpadding=0 width='100%' height='100%' "; if (vc4815.Get("ContentMode") == "UseIFrame") vaad27 += "onselectstart='return false' ondragstart='return false'"; vaad27 += ">"; vaad27 += "<tr><td noWrap>"; vaad27 += wdba297.mc0d43(vc4815); vaad27 += "</td></tr>"; vaad27 += "<tr height='100%'><td valign=top>"; vaad27 += wdba297.mc8f55(vc4815); vaad27 += "</td></tr>"; vaad27 += "</table>"; v7b314.innerHTML = vaad27; try { v0fe41.appendChild(v7b314); } catch (e) { v0fe41.insertAdjacentElement("beforeEnd", v7b314); } vc4815.CreatedAtRuntime = true; vc4815.Initialize(); vc4815.InitializeLayout("Cascade"); ISEvent.Raise(v4fe23.ClientSideEvents.OnWindowCreated, v4fe23.Id, vc4815); }, m08318: function(ve8c90) { var vc6350 = ve8c90.DesktopManager; var vd7b59 = vc6350.GetDesktopElement(); var vdf449 = ""; var v1430 = null; if (ve8c90.Name != "") { if (vc6350.ShortcutIcons.GetNamedItem(ve8c90.Name) != ve8c90) ve8c90.Name += ve8c90.Index; } else ve8c90.Name = "Shortcut" + ve8c90.Index; v1430 = document.createElement("DIV"); v1430.id = "dvSCI_" + vc6350.Id + "_" + ve8c90.Name; v1430.style.cssText = "position:absolute; width:80px; height:80px; overflow: hidden; text-overflow: ellipsis;"; v1430.align = "center"; if (!ve8c90.Visible) v1430.style.display = "none"; vd7b59.appendChild(v1430); vdf449 += "<img vspace=2 src='" + vc6350.ResolveImagePath(ve8c90.Image) + "' />"; vdf449 += "<div "; vdf449 += "class=" + vc6350.ShortcutStyle.Normal; vdf449 += ">"; if (vc6350.ShortcutDisplayMode == "TextAndImage") vdf449 += ve8c90.Text; vdf449 += "</div>"; v1430.innerHTML = vdf449; ve8c90.Initialize(); ISEvent.Raise(vc6350.ClientSideEvents.OnShortcutCreated, vc6350.Id, ve8c90); }, m99421: function(v4ca45) { var vfab9 = v4ca45.GetElement(); var v53788 = v4ca45.Collection; v53788.Remove(v4ca45); v53788.UpdateChanges(); Listener.Unload(vfab9); vfab9.removeNode(true); }, mb3b92: function(va0456) { var v53a45 = va0456.DesktopManager; var v51057 = v53a45.GetTaskBarWindowGroupElement(); var v6b868 = va0456.GetTaskBarButtonElement(); if (v51057 && !v6b868) { var v20c27 = v51057.children[0].children[0]; var v76b46 = v20c27.rows[0]; var vcc010 = -1; if (v76b46.cells[v76b46.cells.length - 1].getAttribute("placeholder") == "true") vcc010 = v76b46.cells.length - 1; var v84a78 = v76b46.insertCell(vcc010); var v38625 = ""; v84a78.nowrap = true; v84a78.name = va0456.Name; v84a78.className = v53a45.TaskBarButtonStyle.Normal; v38625 = "<div style='overflow:hidden; text-overflow: ellipsis; width:100%'>"; v38625 += "<nobr>"; v38625 += "&nbsp;<img src='" + v53a45.ResolveImagePath(va0456.Get("ControlBoxImage")) + "' align=absmiddle>"; v38625 += "&nbsp;"; v38625 += va0456.Text; v38625 += "</nobr>"; v38625 += "</div>"; v84a78.innerHTML = v38625; wd9ac40.m7cd37(v53a45); } }, m2a179: function(vf8d39, vf0855) { for (var v83e56 = 0; v83e56 < vf8d39.length; v83e56++) { if (vf8d39[v83e56].Name == vf0855.Name) return v83e56; } return -1; }, m35f16: function(v8ec70, va3723, v95325) { var v25f75 = v8ec70.DesktopManager; var v45225 = v25f75.GetDesktopSize(); if (v45225.Width == 0 || v45225.Height == 0) { v25f75.CachedDesktopSize = null; v45225 = v25f75.GetDesktopSize(); if (v45225.Width == 0) { setTimeout(function() { wd9ac40.m35f16(v8ec70, va3723, v95325); }, 50); return; } } if (!v95325 || (v95325 && v8ec70.Location.IsEmpty())) { var v9ce6 = v25f75.GetVisibleWindows(); var va6695 = wd9ac40.m2a179(v9ce6, v8ec70); if (va3723 == "Cascade") { v8ec70.MoveTo(75 + (va6695 * 20), 25 + (va6695 * 20)); var v76c90 = v45225.Height - v8ec70.Location.Y - (25 * (v9ce6.length - va6695)); if (v25f75.DockBottomHeight > 0) { var v55734 = v76c90 + v8ec70.Location.Y; if (v45225.Height - v55734 < v25f75.DockBottomHeight) v76c90 = v76c90 - (v25f75.DockBottomHeight - (v45225.Height - v55734)); } if (v8ec70.Size.IsEmpty() && !v8ec70.ForceNoResize) v8ec70.ResizeTo(v45225.Width - v8ec70.Location.X - (25 * (v9ce6.length - va6695)), v76c90); } else if (va3723 == "TileWindowsH") { var v5da79 = v45225.Height / v9ce6.length; v8ec70.MoveTo(0, va6695 * v5da79); if (!v8ec70.ForceNoResize) v8ec70.ResizeTo(v45225.Width, v5da79); } else { var ve0196 = v45225.Width / v9ce6.length; v8ec70.MoveTo(va6695 * ve0196, 0); if (!v8ec70.ForceNoResize) v8ec70.ResizeTo(ve0196, v45225.Height); } if (!v8ec70.Size.IsEmpty()) v8ec70.ResizeTo(v8ec70.Size.Width, v8ec70.Size.Height); } else if (!v8ec70.Location.IsEmpty() && v95325) { v8ec70.MoveTo(v8ec70.Location.X, v8ec70.Location.Y); if (v8ec70.Size.IsEmpty()) { v8ec70.ResizeTo(v45225.Width - v8ec70.Location.X - 10, v45225.Height - v8ec70.Location.Y - 10); } else { v8ec70.ResizeTo(v8ec70.Size.Width, v8ec70.Size.Height); } } }, m94745: function(v14b75) { var ve9b61 = v14b75.GetWindowIFrameElement(); var vc9572 = ve9b61.parentElement; var v78228 = v14b75.DesktopManager; if (v14b75.ContentURL != "" && (ve9b61.src == "" || !v14b75.IFrameLoaded)) { var v09066 = v14b75.ContentURL; if (v09066 != "" && v09066.substring(0, 2) == "./") v09066 = v09066.substring(2); if (ve9b61.src.indexOf(v09066) == -1 || v14b75.ContentURLChanged) ve9b61.src = v09066; v14b75.IFrameLoaded = true; v14b75.ContentURLChanged = false; if (v78228.WindowSettings.IFrameShowLoader && IS.ie) { var v6f756 = v78228.GetIFrameWindow(ve9b61.name); var v9fd65 = false; try { var v02885 = v6f756.document; if (!v02885) v9fd65 = true; } catch (e) { v9fd65 = true; } if (v6f756 && ve9b61.readyState != "complete") { var v51a25 = ve9b61.children[1]; if (v51a25 == null) { var vc9572 = ve9b61.parentElement; var v8af86 = document.createElement("DIV"); var v46b82 = IS.GetCssObject(null, v78228.WindowSettings.ContainerStyle); v8af86.style.cssText = "width:100%;height:100%;vertical-align:middle;position:absolute;left:0px;top:0px;background-color:White"; v8af86.style.fontWeight = v46b82.fontWeight; v8af86.style.display = "none"; v8af86.innerHTML = "<table width=100% height=100%><tr><td valign=center align=center style='font-family:" + v46b82.fontFamily + ";font-size:" + v46b82.fontSize + "'>" + "<img align='absmiddle' src='" + v78228.ResolveImagePath(v78228.ImagesSettings.InProgress) + "'>&nbsp;" + v14b75.GetInProgressText() + "</td></tr></table>"; vc9572.appendChild(v8af86); } else { } ve9b61.style.display = "none"; v14b75.IFrameContentLoaded = false; setTimeout(function() { wd9ac40.mfee17(v14b75); }, 100); } else { v14b75.IFrameContentLoaded = true; ve9b61.style.display = ""; } } else { v14b75.IFrameContentLoaded = true; ve9b61.style.display = ""; if (!(IS.moz && ve9b61.style.height.indexOf("%") == -1)) ve9b61.style.height = "100%"; } } }, mfee17: function(v38f66) { if (v38f66.IsClosed) return; var v1d011 = v38f66.GetWindowIFrameElement(); var v17749 = v38f66.DesktopManager; var vcb132 = v17749.GetIFrameWindow(v1d011.name); if (vcb132 && v1d011.readyState == "complete") wd9ac40.m12a60(v38f66); if (!v38f66.IFrameContentLoaded) { v1d011.nextSibling.style.display = ""; if (v1d011.onreadystatechange == null) v1d011.attachEvent("onreadystatechange", function() { wd9ac40.m12a60(v38f66); }); } }, mb8f3: function(v1b261) { if (v1b261.EnableContextMenu) { var v42566 = new WebContextMenu(v1b261.Id + "_SysMenu"); v42566.MenuStyleSettings.CopyFrom(v1b261.MenuStyles.System); v42566.MenuStyleSettings.Parent = v42566; v42566.MenuStyleSettings.OnPropertiesInitialized(); var vb4528 = v42566.Items.Add(new WebMenuItem("mnuRestore", "Restore", IS.GetSymbol(v1b261, "2", true), function() { wd9ac40.mb871(this); })); var v72618 = v42566.Items.Add(new WebMenuItem("mnuMove", "Move", null, function() { wd9ac40.mb871(this); })); var vfe899 = v42566.Items.Add(new WebMenuItem("mnuSize", "Size", null, function() { wd9ac40.mb871(this); })); var v3bf21 = v42566.Items.Add(new WebMenuItem("mnuMinimize", "Minimize", IS.GetSymbol(v1b261, "0", true), function() { wd9ac40.mb871(this); })); var v9695 = v42566.Items.Add(new WebMenuItem("mnuMaximize", "Maximize", IS.GetSymbol(v1b261, "1", true), function() { wd9ac40.mb871(this); })); v42566.Items.Add(new WebMenuSeparatorItem()); var v1ee81 = v42566.Items.Add(new WebMenuItem("mnuClose", "Close", IS.GetSymbol(v1b261, "r", true), function() { wd9ac40.mb871(this); }, new ShortcutKey(true, true, false, null, "C"))); if (IS.ie || (IS.moz && !IsGecko30())) { vb4528.UseFontImage = v3bf21.UseFontImage = v9695.UseFontImage = v1ee81.UseFontImage = true; } else { v42566.ImageSize = new UnitSize(12, 14); } v1b261.SystemMenu = v42566; var v5169 = new WebContextMenu(v1b261.Id + "_DeskMenu"); v5169.MenuStyleSettings.CopyFrom(v1b261.MenuStyles.System); v5169.MenuStyleSettings.Parent = v5169; v5169.MenuStyleSettings.OnPropertiesInitialized(); v5169.Items.Add(new WebMenuCheckBoxItem("mnuAutoArrange", "Auto Arrange Icons", null, function() { wd9ac40.m95631(this); }, null, v1b261.ShortcutSettings.AllowAutoArrange)); var v14491 = v5169.Items.Add(new WebMenuCheckBoxItem("mnuShowDesktopIcons", "Show Desktop Icons", null, function() { wd9ac40.m95631(this); }, null, v1b261.ShortcutIconsVisible)); v5169.Items.Add(new WebMenuSeparatorItem()); v5169.Items.Add(new WebMenuItem("mnuCascade", "Cascade Windows", null, function() { wd9ac40.m95631(this); })); v5169.Items.Add(new WebMenuItem("mnuTileHz", "Tile Windows Horizontally", null, function() { wd9ac40.m95631(this); })); v5169.Items.Add(new WebMenuItem("mnuTileVt", "Tile Windows Vertically", null, function() { wd9ac40.m95631(this); })); v5169.Items.Add(new WebMenuSeparatorItem()); v5169.Items.Add(new WebMenuItem("mnuShowDesktop", "Show the Desktop", null, function() { wd9ac40.m95631(this); })); if (!v1b261.ShortcutIconsVisible) v14491.Enabled = false; v1b261.DesktopContextMenu = v5169; } }, m7fb76: function(vfeb16) { event.cancelBubble = true; event.returnValue = false; var v18c97 = event.srcElement; var vb2f96 = 0; var v38555 = 0; if (v18c97 == vfeb16.GetDesktopElement()) { if (vfeb16.EnableContextMenu && vfeb16.DesktopContextMenu) { var vdd267 = vfeb16.DesktopContextMenu; ISEvent.Raise(vfeb16.ClientSideEvents.OnContextMenu, vfeb16.Id, "Desktop", vfeb16, vdd267); vdd267.Show(vdd267.GetEventLocation()); } } return false; }, m70859: function(v54171) { if (v54171.EnableContextMenu && v54171.SystemMenu) { var v6b936 = event.srcElement; var v0db15 = wd9ac40.ma0263(v54171, v6b936); if (v0db15 && !v0db15.IsClosed) wd9ac40.m76437(v0db15); } }, m44443: function(v43971) { if (v43971.IsClosed || !v43971.ClientVisible) { var v07b71 = v43971.DesktopManager; if (v07b71.SystemMenu) v07b71.SystemMenu.HideAll(); } }, ma9019: function(v4ff7) { event.returnValue = false; event.cancelBubble = true; if (v4ff7.EnableContextMenu && v4ff7.SystemMenu) { var v9727 = event.srcElement; var v1ba54 = wd9ac40.ma0263(v4ff7, v9727); wd9ac40.m76437(v1ba54); } return false; }, m76437: function(ve2c63) { var vb9b7 = ve2c63.DesktopManager; var v12e54 = vb9b7.SystemMenu; var vab826 = 0; var vc0a74 = 0; if (ve2c63 && ve2c63.Initialized && !ve2c63.IsClosed && v12e54) { if (ve2c63.WindowState == "Normal") { v12e54.Items[0].Disable(); v12e54.Items[1].Enable(); v12e54.Items[2].Enable(); v12e54.Items[3].Enable(); v12e54.Items[4].Enable(); } else if (ve2c63.WindowState == "Minimized") { v12e54.Items[0].Enable(); v12e54.Items[1].Disable(); v12e54.Items[2].Disable(); v12e54.Items[3].Disable(); v12e54.Items[4].Enable(); } else if (ve2c63.WindowState == "Maximized") { v12e54.Items[1].Disable(); v12e54.Items[2].Disable(); v12e54.Items[4].Disable(); if (!v12e54.Items[0].Enabled) v12e54.Items[0].Enable(); v12e54.Items[3].Enable(); } if (ve2c63.Get("AllowClose") == "No") v12e54.Items[6].Disable(); if (ve2c63.Get("AllowMinimize") == "No") v12e54.Items[3].Disable(); if (ve2c63.Get("AllowMaximize") == "No") { v12e54.Items[0].Disable(); v12e54.Items[4].Disable(); } if (ve2c63.Get("AllowResize") == "No") { v12e54.Items[2].Disable(); } v12e54.Window = ve2c63; ISEvent.Raise(vb9b7.ClientSideEvents.OnContextMenu, vb9b7.Id, "Window", ve2c63, v12e54); v12e54.Show(v12e54.GetEventLocation()); } }, mb871: function(v81582) { var vb1c82 = v81582.OwnerMenu.MenuControl.Window; switch (v81582.Name) { case "mnuMinimize": vb1c82.Minimize(null, true); break; case "mnuMaximize": { if (vb1c82.WindowState == "Minimized") vb1c82.Restore(); vb1c82.Maximize(null, true); break; } case "mnuRestore": vb1c82.Restore(null, true); break; case "mnuClose": vb1c82.Close(); break; case "mnuMove": case "mnuSize": wd80959.CaptureAction = (v81582.Name == "mnuMove") ? "Move" : "Size"; wd9ac40.m51386(vb1c82); wd80959.m29084(vb1c82, vb1c82.Location.X, vb1c82.Location.Y, vb1c82.Size.Width, vb1c82.Size.Height); break; } }, m51386: function(v83f2) { var v6c382 = document.body; if (!IS.ie) v6c382 = window; Listener.Add(v6c382, "onkeydown", wd9ac40.mffe77, v83f2); Listener.Add(v6c382, "onmousedown", wd9ac40.mffe77, v83f2); if (IS.ie) Listener.Add(v6c382, "onkeyup", wd9ac40.mffe77, v83f2); }, m78a74: function(v0de2) { var vef32 = document.body; if (!IS.ie) vef32 = window; Listener.Remove(vef32, "onkeydown", wd9ac40.mffe77, v0de2); Listener.Remove(vef32, "onmousedown", wd9ac40.mffe77, v0de2); if (IS.ie) Listener.Remove(vef32, "onkeyup", wd9ac40.mffe77, v0de2); wd80959.Shadow.winName = null; wd80959.Shadow.style.display = "none"; wd80959.ShadowInfo.style.display = "none"; wd80959.CaptureAction = null; }, mffe77: function() { if (event.type == "keydown" || event.type == "keyup") { var v7672 = wd80959.Shadow; var vbb552 = true; var v0a445 = -1; var v9e10 = -1; var vce129 = -1; var vd9469 = -1; var v7e877 = event.keyCode; if (event.type == "keyup" && event.keyCode != ISKeyboardKey.ENTER) v7e877 = 0; switch (v7e877) { case ISKeyboardKey.ESC: wd9ac40.m78a74(this); vbb552 = false; break; case ISKeyboardKey.LEFT: if (wd80959.CaptureAction == "Move") v0a445 = ISPosLib.getLeft(v7672) - 10; else { v0a445 = ISPosLib.getLeft(v7672) - 10; vce129 = ISPosLib.getWidth(v7672) + 10; } break; case ISKeyboardKey.DOWN: if (wd80959.CaptureAction == "Move") v9e10 = ISPosLib.getTop(v7672) + 10; else { v9e10 = ISPosLib.getTop(v7672) + 10; vd9469 = ISPosLib.getHeight(v7672) - 10; } break; case ISKeyboardKey.RIGHT: if (wd80959.CaptureAction == "Move") v0a445 = ISPosLib.getLeft(v7672) + 10; else { v0a445 = ISPosLib.getLeft(v7672) + 10; vce129 = ISPosLib.getWidth(v7672) - 10; } break; case ISKeyboardKey.UP: if (wd80959.CaptureAction == "Move") v9e10 = ISPosLib.getTop(v7672) - 10; else { v9e10 = ISPosLib.getTop(v7672) - 10; vd9469 = ISPosLib.getHeight(v7672) + 10; } break; case ISKeyboardKey.ENTER: var vcc264 = this.GetPreferredSize(parseFloat(v7672.style.width), parseFloat(v7672.style.height)); this.MoveTo(parseFloat(v7672.style.left), parseFloat(v7672.style.top)); this.ResizeTo(vcc264.Width, vcc264.Height); if (this.EnableDropShadow && this.DropShadow != null) this.DropShadow.UpdatePosition(); this.SaveLocationAndSize(); wd9ac40.m78a74(this); vbb552 = false; break; } if (vbb552) { var vd2649 = this.GetDesktopManager().GetDesktopElement(); var v2d267 = ISPosLib.getLeft(vd2649); var vfae3 = ISPosLib.getTop(vd2649); if (v0a445 == -1) v0a445 = parseFloat(v7672.style.left); if (v9e10 == -1) v9e10 = parseFloat(v7672.style.top); if (vce129 == -1) vce129 = parseFloat(v7672.style.width); if (vd9469 == -1) vd9469 = parseFloat(v7672.style.height); if (vce129 < 50) return; v0a445 -= v2d267; v9e10 -= vfae3; wd80959.m29084(this, v0a445, v9e10, vce129, vd9469); } } else { wd9ac40.m78a74(this); } }, m95631: function(vde452) { var vc7468 = ISGetDesktopManager(); switch (vde452.Name) { case "mnuAutoArrange": if (vde452.Checked) { vc7468.ShortcutSettings.AllowAutoArrange = true; wd9ac40.mff593(vc7468); wd9ac40.m29950(vc7468); } else { vc7468.ShortcutSettings.AllowAutoArrange = false; } break; case "mnuShowDesktopIcons": if (vde452.Checked) vc7468.ShowShortcutIcons(); else vc7468.HideShortcutIcons(); break; case "mnuCascade": vc7468.CascadeWindows(null, true); break; case "mnuTileHz": vc7468.TileWindowsHorizontally(null, true); break; case "mnuTileVt": vc7468.TileWindowsVertically(null, true); break; case "mnuShowDesktop": vc7468.ShowDesktop(); break; } }, m3e129: function(v4db52) { var vd6552 = new Array(); for (var v9d629 = 0; v9d629 < v4db52.IS.RuntimeObjects.length; v9d629++) { var v10349 = v4db52.IS.RuntimeObjects[v9d629]; if (v10349 && (v10349.GetType() == "WebToolBar" || v10349.GetType() == "WebMenuBar")) vd6552.push(v10349); } return vd6552; }, m8d99: function(vecd26) { if (!vecd26.BarsAccessKeyEnabled) return; if (vecd26.Get("ContentMode") == "UseIFrame" && !vecd26.IsClosed && vecd26.Initialized) { var v39887 = vecd26.DesktopManager; var v53f99 = v39887.GetIFrameWindow(vecd26.Name); if (v53f99 && v53f99.ISGetObject) { var v7f467 = wd9ac40.m3e129(v53f99); for (var v9cc71 = 0; v9cc71 < v7f467.length; v9cc71++) { var vf4595 = v7f467[v9cc71]; if (vf4595.Enabled) vf4595.UnregisterAccessKeys(); } } vecd26.BarsAccessKeyEnabled = false; } }, mda588: function(vc8154) { if (vc8154.BarsAccessKeyEnabled) return; if (vc8154.Get("ContentMode") == "UseIFrame" && !vc8154.IsClosed && vc8154.Initialized) { var ve3e26 = vc8154.DesktopManager; var v61918 = ve3e26.GetIFrameWindow(vc8154.Name); if (v61918 && v61918.ISGetObject) { var v57b1 = wd9ac40.m3e129(v61918); for (var v9cf95 = 0; v9cf95 < v57b1.length; v9cf95++) { var vfc194 = v57b1[v9cf95]; if (vfc194.Enabled) vfc194.RegisterAccessKeys(); } } vc8154.BarsAccessKeyEnabled = true; } }, m8ac27: function(v4b573, v51f46, ve7690) { var vfc073 = "progid:DXImageTransform.Microsoft."; var v66e46 = "0.5"; if (v51f46 != "None") { switch (v51f46) { case "Fade": vfc073 += "Fade(duration=" + v66e46 + ",overlap=1.0)"; break; case "GradientWipe": vfc073 += "Wipe(duration=" + v66e46 + ",GradientSize=1.0, wipeStyle=1, motion='forward')"; break; case "Pixelate": vfc073 += "Pixelate(duration=" + v66e46 + ",MaxSquare=30)"; break; case "SlideAndHide": vfc073 += "Slide(duration=" + v66e46 + ",slideStyle='HIDE', bands=1)"; break; case "SlideAndPush": vfc073 += "Slide(duration=" + v66e46 + ",slideStyle='PUSH', bands=1)"; break; case "SlideAndSwap": vfc073 += "Slide(duration=" + v66e46 + ",slideStyle='SWAP', bands=1)"; break; case "Iris": vfc073 += "Iris(duration=" + v66e46 + ",irisStyle='CIRCLE', motion='out')"; break; case "Wheel": vfc073 += "Wheel(duration=" + v66e46 + ",Spokes=4)"; break; } v4b573.style.filter = vfc073; v4b573.filters[0].Apply(); if (!ve7690) v4b573.style.visibility = "hidden"; else v4b573.style.visibility = "visible"; v4b573.filters[0].Play(); } else { v4b573.style.visibility = "visible"; } }, me3e49: function(vc7012) { var v90812 = vc7012.GetWindowDivElement(); if (v90812 != null) { v90812.style.display = "none"; v90812.style.zoom = "100%"; } }, m4fe82: function(vb7384, v1f84) { var v9a912 = vb7384.GetWindowDivElement(); if (v9a912 != null) { v9a912.style.display = ""; ISAnimation_RemoveOpacity(v9a912); } var v74765 = vb7384.GetContentDivElement().children[0]; if (v74765 != null) v74765.style.display = ""; vb7384.Show(null, null, true, v1f84); }, m24c86: function(v74843) { var v01468 = v74843.GetDesktopClientSize(); for (var v02744 = 0; v02744 < v74843.Windows.length; v02744++) { var v5d89 = v74843.Windows[v02744]; var vd5469 = v5d89.GetWindowDivElement(); if (v5d89.ClientVisible && v5d89.WindowState == "Maximized" && !v5d89.IsClosed) { vd5469.style.width = v01468.Width; vd5469.style.height = v74843.GetAvailableDesktopHeight(v01468.Height); if (v5d89.Get("ContentMode") == "UseIFrame") { var vadb82 = v5d89.GetWindowIFrameElement(); var va7356 = vadb82.parentElement.clientHeight; if (vadb82) { if (va7356 > v01468.Height) vadb82.style.height = va7356; else vadb82.style.height = "100%"; } } } } } }; function ISFindWindowRecursive(va1956, v3b040) { var v61117 = null; if (!v3b040) v61117 = window; else v61117 = v3b040; if (v61117.name == va1956) return v61117; else { var v34621 = v61117.frames; for (var ve4979 = 0; ve4979 < v34621.length; ve4979++) { var v29760 = v34621[ve4979]; if (v29760.name == va1956) return v29760; if (v29760.frames.length > 0) { var vefe53 = ISFindWindowRecursive(va1956, v29760); if (vefe53) return vefe53; } } } return null; } function WebDesktopManagerDestructor() { var v42492 = delete wd9ac40; } window.attachEvent("onunload", WebDesktopManagerDestructor);
