// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/8/2009 8:47:41 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 WebMenuControlBase(vfc195) {
    this.ClassName = "WebMenuControlBase";
    this.Version = "1.5.2006";
    this.BuildNumber = "0";
    this.MajorVersion = "1.5";
    this.RequiredFrameworkVersion = "2.0.5000.18";
    ISControl.call(this, vfc195);
    this.ScriptDirectory = "/CommonLibrary/WebDesktop/V3_0_7200/";
    this.ImageSize = new UnitSize();
    this.IntegratedTo = "None";
    this.MenuStyleSettings = new WebMenuStyles();
    this.Initialized = false;
    this.Id = this.ClientId = vfc195;
    this.ShowDelay = 500;
    this.TopAdjustment = 0;
    this.LeftAdjustment = 0;
    this.AutoPostBack = "No";
    this.ImageSize.Width = 16;
    this.ImageSize.Height = 16;
    this.OnRootMenuClosed = null;
    this.MenuWindowType = "Popup";
    this.MenuDropShadow = false;
    this.MenuAnimation = false;
    this.MenuAnimationMode = "Fading";
    this.AnimatedObj = null;
    this.SkipAnimation = false;
    this.SkipAlpha = false;
    this.AnimationSpeed = "Fast";
    this.AnimationInterval = 10;
    this.DrawImageBackground = false;
    this.UseW3CPositioning = false;
    this.IsRightToLeft = false;
    this.GetStyleString = function() {
        return wdd4b85.m40c16(this);
    };
    this.CreateDefaultStyles = function() {
        wdd4b85.m3c099(this);
    };
    this.Destroy = function() {
        if (this.MenuWindowType == "Normal") {
            for (var vfd059 = 0; vfd059 < this.RootMenu.Items.length; vfd059++) {
                var ve1817 = this.RootMenu.Items[vfd059];
                if (ve1817.HasSubMenu() && ve1817.SubMenu.Popup != null) ve1817.SubMenu.Destroy();
            }
            this.RootMenu.Destroy();
        }
    };
    this.ApplyStyles = function() { };
    this.GetAllMenus = function() { };
    this.GetAllOpenMenus = function() { };
    this.SetIntegratedToDesktopManager = function() {
        wdd4b85.mcd631(this);
    };
    this.SetIntegratedToPlaceHolderManager = function() {
        wdd4b85.mcba4(this);
    };
    this.CopyMenuSetting = function(v5d379) {
        this.MenuAnimation = v5d379.MenuAnimation;
        this.MenuAnimationMode = v5d379.MenuAnimationMode;
        this.MenuDropShadow = v5d379.MenuDropShadow;
        this.MenuWindowType = v5d379.MenuWindowType;
        this.AnimationSpeed = v5d379.AnimationSpeed;
    };
    this.GetLocation = function(va7779, vd8c27, v31453) {
        return wdd4b85.m4e327(new OffsetLocation(va7779, vd8c27), v31453);
    };
    this.GetEventLocation = function() {
        return wdd4b85.m4e327(new OffsetLocation(event.clientX, event.clientY));
    };
}
function WebContextMenu(v1eb70) {
    WebMenuControlBase.call(this, v1eb70);
    this.ClassName = "WebContextMenu";
    this.RootMenu = new WebMenu();
    this.RootMenu.MenuControl = this;
    this.RootMenu.Direction = "Vertical";
    this.RootMenu.OffsetAlignment = "LeftBottom";
    this.Items = this.RootMenu.Items;
    this.ControlId = "";
    this.ClientSideEvents = new WebContextMenuClientSideEvents();
    this.UseCustomContent = false;
    this.CustomContentElement = null;
    this.DisableFullHeightScrolling = false;
    this.OnUnload = function() {
        this.ClearAll();
    };
    this.OnPropertiesInitialized = function() {
        if (this.Events != null) {
            var v3e751;
            for (v3e751 in this.Events) {
                if (typeof (this.Events[v3e751]) == "string") this.ClientSideEvents[v3e751] = this.Events[v3e751];
            }
        }
        var v05666 = ISXml.GetAttribute(this.XmlNode, "ImageSize");
        if (v05666 != "" && v05666 != null) {
            this.ImageSize = new UnitSize();
            this.ImageSize.Parse(v05666);
        }
    };
    this.ClearAll = function() {
        wdd4b85.mb4565(this.RootMenu);
        this.RootMenu.MenuControl = this;
        this.Items = this.RootMenu.Items;
    };
    this.IsAllItemsInvisible = function(v0fd6) {
        for (var vd8d89 = 0; vd8d89 < v0fd6.length; vd8d89++) {
            if (v0fd6[vd8d89].Visible) return false;
        }
        return true;
    };
    this.Show = function(v7d590, v48f85, vf4023) {
        if ((this.Items.length == 0 || this.IsAllItemsInvisible(this.Items)) && !this.UseCustomContent) return;
        if (typeof (v7d590) == "object" && v7d590 != null) {
            v48f85 = v7d590.Y;
            v7d590 = v7d590.X;
        }
        this.RootMenu.Show(v7d590, v48f85, vf4023);
    };
    this.SetOffsetElement = function(vabf9) {
        this.RootMenu.OffsetElement = vabf9;
    };
    this.HideAll = function() {
        if (this.RootMenu.IsOpen()) this.RootMenu.Hide();
    };
    this.RefreshStructure = function() {
        if (this.MenuStyleSettings != null) {
            this.MenuAnimation = this.MenuStyleSettings.MenuAnimation;
            this.MenuDropShadow = this.MenuStyleSettings.MenuDropShadow;
            this.MenuWindowType = this.MenuStyleSettings.MenuWindowType;
            this.MenuAnimationMode = this.MenuStyleSettings.MenuAnimationMode;
        }
        wdd4b85.m44083(this.Items, this);
    };
}
function WebContextMenuClientSideEvents() {
    this._Type = "WebContextMenuClientSideEvents";
    ISObject.call(this);
    this.OnInitialize = "";
    this.OnShowMenu = "";
    this.OnMenuItemClick = "";
    this.OnMenuItemSelect = "";
}
function WebMenuStyles() {
    this._Type = "WebMenuStyles";
    ISObject.call(this);
    this.ItemStyle = null;
    this.FrameStyle = "";
    this.DisabledItemStyle = null;
    this.CheckedItemStyle = null;
    this.SeparatorStyle = "";
    this.BackgroundStripWidth = 23;
    this.HasBackgroundStrip = true;
    this.BackgroundStripColor = "FFFFFF";
    this.BackgroundStripColor2 = "C4C3AC";
    this.ItemPadding = 3;
    this.ContentPadding = 7;
    this.MenuWindowType = "Popup";
    this.MenuDropShadow = false;
    this.MenuAnimation = false;
    this.MenuAnimationMode = "Fading";
    this.IconCellWidth = 20;
    this.BackgroundStripImage = "";
    this.HighlightMode = "UseWebStyle";
    this.UseSmartWebResources = true;
    this.HighlightDisabledItem = false;
    this.ImagesSettings = new WebMenuImagesSettings();
    this.CustomStyle = "";
    this.BackgroundStripStyle = "";
    this.OnPropertiesInitialized = function() {
        this.Parent.MenuWindowType = this.MenuWindowType;
        this.Parent.MenuDropShadow = this.MenuDropShadow;
        this.Parent.MenuAnimation = this.MenuAnimation;
        this.Parent.MenuAnimationMode = this.MenuAnimationMode;
    };
}
function WebMenuImagesSettings() {
    this._Type = "WebMenuImagesSettings";
    ISObject.call(this);
    this.OverLeft = "";
    this.OverCenter = "";
    this.OverRight = "";
    this.ActiveIconCell = "";
    this.DisabledLeft = "";
    this.DisabledCenter = "";
    this.DisabledRight = "";
}
function WebMenu(vacd17) {
    this._Type = "WebMenu";
    ISObject.call(this);
    this.Name = "";
    this.Items = new ISArray();
    this.ParentMenu = null;
    this.ParentMenuItem = null;
    this.MenuControl = null;
    this.DisplayMode = "ImageAndText";
    this.IconViewMode = false;
    this.ActiveItemIndex = -1;
    this.ActiveItem = null;
    this.Direction = "Horizontal";
    this.OffsetAlignment = "RightTop";
    this.Width = null;
    this.Initialized = false;
    this.Element = null;
    this.Popup = null;
    this.OffsetElement = null;
    this.Items.Parent = this;
    this.ScrollInterval = -1;
    this.ScrollEnabled = false;
    this.RuntimeHeight = 0;
    this._TempDiv = null;
    this._NeedSizeRecalc = false;
    this._CloseIntervalId = -1;
    if (vacd17) {
        this.ParentMenuItem = vacd17;
    }
    this.IsOpen = function() {
        if (this.Popup) return this.Popup.isOpen;
        else return false;
    };
    this.IsRootMenu = function() {
        return (this.ParentMenuItem == null);
    };
    this.GetGroupItems = function() {
        var v3ff45 = new Array();
        var va4164 = null;
        for (var vd718 = 0; vd718 < this.Items.length; vd718++) {
            var v46535 = this.Items[vd718];
            if ((v46535.Text == null || v46535.Text == "" || (v46535.Text != "" && v46535.IconViewDisplayMode == "Image")) && v46535.Type != "Separator" && v46535.Type != "Custom") {
                if (va4164 == null || (va4164 != null && va4164.constructor != Array)) va4164 = new ISArray();
                va4164.Add(v46535);
            } else {
                va4164 = v46535;
            }
            var v27f54 = this.Items[vd718 + 1];
            if (v27f54 && (v27f54.Type == "Separator" || v27f54.ImageURL == "" || v27f54.ImageURL == null || (v27f54.ImageURL != "" && v27f54.IconViewDisplayMode == "Text"))) {
                v3ff45.push(va4164);
                va4164 = null;
            } else if (!v27f54) {
                v3ff45.push(va4164);
            }
        }
        return v3ff45;
    };
    this.GetOpenSubMenu = function() {
        for (var vd718 = 0; vd718 < this.Items.length; vd718++) {
            var v46535 = this.Items[vd718];
            if (v46535.HasSubMenu() && v46535.Enabled && v46535.IsSubMenuOpen()) {
                return v46535;
            }
        }
        return null;
    };
    this.GetId = function() {
        var v81622 = this.MenuControl.Id + "_";
        var vbf187 = "";
        var vf5d62 = "";
        var v51879 = this.ParentMenuItem;
        var v6e179 = new Array();
        while (v51879 != null) {
            v6e179.push(v51879.Name);
            v51879 = v51879.OwnerMenu.ParentMenuItem;
        }
        v6e179.reverse();
        for (var vd718 = 0; vd718 < v6e179.length; vd718++) vf5d62 = v6e179[vd718] + "_";
        vbf187 = v81622 + vf5d62;
        return vbf187;
    };
    this.GetDocument = function() {
        if (this.Popup) {
            try {
                return this.Popup.document;
            } catch (e) {
                return null;
            }
        } else return null;
    };
    this.GetElement = function() {
        return this.Element;
    };
    this.GetMenuBodyElement = function() {
        var v92494 = this.GetDocument();
        if (v92494) return v92494.getElementById(this.GetId() + "_body");
        else return null;
    };
    this.GetMenuContainerElement = function() {
        var v92494 = this.GetDocument();
        if (v92494) return v92494.getElementById(this.GetId() + "_container");
        else return null;
    };
    this.GetScrollElement = function(v50a0) {
        var v92494 = this.GetDocument();
        return v92494.getElementById(this.GetId() + "_scroll_" + v50a0);
    };
    this.GetSelectedItemByGroup = function(vc6a36) {
        for (var vd718 = 0; vd718 < this.Items.length; vd718++) {
            var v46535 = this.Items[vd718];
            if (v46535.Type == "Radio" && v46535.GroupName == vc6a36 && v46535.Checked) return v46535;
        }
        return null;
    };
    this.Destroy = function() {
        var va5732 = this.Element;
        if (va5732) Listener.Unload(va5732);
        if (this.Popup) {
            if (this.MenuControl.MenuWindowType == "Popup") {
                var vd2019 = this.GetDocument();
                vd2019.open("text/plain", "replace");
                vd2019.write("");
                vd2019.close();
                this.Popup = null;
            } else {
                document.body.removeChild(this.Popup._e);
                ISDeleteObject(this.Popup);
            }
        }
    };
    this.Show = function(v84372, v75637, vcca39) {
        if (!this.Initialized) {
            wdd4b85.m8e653(this);
        }
        wdd4b85.mb9d83(this, v84372, v75637, vcca39);
    };
    this.Initialize = function() {
        if (!this.Initialized) {
            wdd4b85.m8e653(this);
        }
    };
    this.InstantiateIn = function(va5732) {
        this.Initialize();
        if (this.MenuControl.MenuWindowType != "Normal") {
            alert("InstantiateIn method can only be used with Normal MenuWindowType");
            return;
        }
        va5732.appendChild(this.Popup._e);
    };
    this.SetStaticVisibility = function() {
        this.Popup._e.style.cssText = "";
        this.Popup._e.keepVisible = true;
        this.GetElement().style.position = "";
        this.GetMenuBodyElement().parentElement.style.position = "";
        this.GetMenuContainerElement().style.position = "";
    };
    this.Hide = function() {
        if (!this.IsOpen()) return;
        if (this.Popup && this.Popup.hide) this.Popup.hide();
        if (!IS.ie || this.MenuControl.MenuWindowType == "Normal") {
            var v43693 = this.GetOpenSubMenu();
            if (v43693) v43693.SubMenu.Hide();
        }
        if (IS.ie && this.MenuControl.MenuWindowType == "Normal") {
            if (this.ParentMenu != null) this.ParentMenu.SetActive();
        }
        if (this.MenuControl.MenuAnimation) {
            if (this.MenuControl.AnimatedObj != null) {
                var v0e889 = this.MenuControl.AnimatedObj.IntervalId;
                if (v0e889 > 0) {
                    clearTimeout(v0e889);
                    this.MenuControl.AnimatedObj.IntervalId = -1;
                }
                wdd4b85.md5d15(this);
            }
        }
    };
    this.GetDocumentEvent = function() {
        return this.GetDocument().parentWindow.event;
    };
    this.GetContentWindow = function() {
        return this.GetDocument().parentWindow;
    };
    this.Invalidate = function() { };
    this.GetStripElement = function() {
        var v11076 = this.MenuControl;
        var vf1e29 = v11076.MenuStyleSettings;
        if (vf1e29.HasBackgroundStrip && !this.IconViewMode) {
            var v92494 = this.GetDocument();
            if (v92494) return v92494.getElementById(this.GetId() + "_strip");
        }
        return null;
    };
    this.SetActive = function() {
        if (IS.ie) {
            try {
                this.Element.setActive();
            } catch (e) { }
        }
    };
    this.GetRootMenu = function() {
        var v86e94 = this.ParentMenu;
        if (v86e94 == null) return this;
        while (true) {
            if (v86e94.ParentMenu == null) return v86e94;
            else v86e94 = v86e94.ParentMenu;
        }
        return null;
    };
    this.SetDirty = function() {
        this._NeedSizeRecalc = true;
    };
    this.GetItem = function(vc3892) {
        return this.Items.GetNamedItem(vc3892);
    };
    this.Clear = function() {
        wdd4b85.mb4565(this);
    };
    this.SetHeight = function(v86a27) {
        var va5732 = this.GetElement();
        va5732.style.height = v86a27;
    };
    this.RemoveAllItems = function() {
        var v6c640 = this.Items.length;
        for (var vd718 = 0; vd718 < v6c640; vd718++) this.Items.Remove(this.Items[0]);
    };
    this.PerformKeyboardNavigation = function(v3b127) {
        wdd4b85.m02228(this, v3b127);
    };
    this.InvalidateUI = function() {
        wdd4b85.mc5149(this);
    };
}
function WebMenuSeparatorItem(v9d027) {
    WebMenuItem.call(this);
    if (v9d027) this.Name = v9d027;
    this.Type = "Separator";
}
function WebMenuRadioItem(vd7a27, v08216, v82924, va3384, v71629, vaa11, vea055) {
    WebMenuItem.call(this, vd7a27, v82924, va3384, v71629, vaa11);
    this.Type = "Radio";
    if (v08216) this.GroupName = v08216;
    if (vea055) this.Checked = vea055;
}
function WebMenuCheckBoxItem(v4f42, vae85, vd0376, va4448, vbc150, v1c417) {
    WebMenuItem.call(this, v4f42, vae85, vd0376, va4448, vbc150);
    this.Type = "CheckBox";
    if (v1c417) this.Checked = v1c417;
}
function WebMenuItem(vbd484, v81411, v0fa0, ve1d57, v1c112) {
    this._Type = "WebMenuItem";
    ISObject.call(this);
    this.Name = "";
    this.Index = -1;
    this.Collection = null;
    this.ParentMenu = null;
    this.SubMenu = new WebMenu(this);
    this.OwnerMenu = null;
    this.Element = null;
    this.Items = this.SubMenu.Items;
    this.Type = "Normal";
    this.Text = "";
    this.ImageURL = "";
    this.OnClick = null;
    this.KeepMenuVisible = false;
    this.Enabled = true;
    this.AccessKey = "";
    this.Shortcut = new ShortcutKey();
    this.Tooltip = "";
    this.Visible = true;
    this.TargetURL = "";
    this.TargetFrame = "blank";
    this.GroupName = "";
    this.IconViewDisplayMode = "Image";
    this.IconViewMode = false;
    this.UseFontImage = false;
    this.AutoPostBack = "Default";
    this.Tag = "";
    this.Selected = false;
    this.Checked = false;
    this.PredefinedId = "";
    this.IsPredefinedItem = false;
    this.CustomElement = null;
    this.QueueId = -1;
    this.CloseQueueId = -1;
    if (vbd484) this.Name = vbd484;
    if (v81411) this.Text = v81411;
    if (v0fa0) this.ImageURL = v0fa0;
    if (ve1d57) this.OnClick = ve1d57;
    if (v1c112) this.Shortcut = v1c112;
    this.OnPropertiesInitialized = function() {
        if (this.Parent.GetType() == "WebContextMenu") this.OwnerMenu = this.Parent.RootMenu;
        else if (this.Parent.GetType() == "WebNotification") this.OwnerMenu = this.Parent.ActionMenu;
        else if (this.Parent.GetType() == "WebMenuItem") this.OwnerMenu = this.Parent.SubMenu;
        else if (this.Parent.GetType() == "WebMenu") this.OwnerMenu = this.Parent;
        this.Collection = this.OwnerMenu.Items;
        this.Index = this.Collection.length;
    };
    this.OnAdd = function() {
        if (!this.OwnerMenu) this.OwnerMenu = this.Parent;
        this.Collection = this.OwnerMenu.Items;
        if (this.OwnerMenu.Element != null) wdd4b85.m60394(this);
        this.Collection.ReindexPosition();
    };
    this.OnInsert = function(v29623) {
        this.OwnerMenu = this.Parent;
        this.Collection = this.OwnerMenu.Items;
        if (this.OwnerMenu.Element != null) wdd4b85.m46a56(this, v29623);
        this.Collection.ReindexPosition();
    };
    this.OnRemove = function() {
        if (this.OwnerMenu.Element != null) wdd4b85.mf6029(this);
        this.Collection.ReindexPosition();
    };
    this.IsUsingImageIconViewMode = function() {
        if (this.OwnerMenu.IconViewMode) {
            if (this.Text == null || this.Text == "" || (this.Text != "" && this.IconViewDisplayMode == "Image")) return true;
        }
        return false;
    };
    this.ScrollIntoView = function() {
        var v21741 = this.OwnerMenu.GetMenuBodyElement().parentElement;
        var v63a24 = this.GetElement();
        var va6a10 = v21741.scrollTop;
        var vf1172 = v21741.clientHeight;
        var vc0350 = v63a24.offsetTop;
        var v05835 = v63a24.offsetHeight;
        if (vc0350 < va6a10) v21741.scrollTop = vc0350;
        else if (vc0350 + v05835 > va6a10 + vf1172) v21741.scrollTop = vc0350 + v05835 - vf1172;
    };
    this.GetElement = function() {
        if (!this.Element) {
            var v4a827 = this.OwnerMenu.GetMenuBodyElement();
            var va0519 = this.OwnerMenu;
            if (v4a827) {
                if (va0519.IconViewMode) {
                    for (var v70738 = 0; v70738 < v4a827.rows.length; v70738++) {
                        var v90e76 = v4a827.rows[v70738];
                        if (this.IsUsingImageIconViewMode()) {
                            if (IS.GetAttr(v90e76, "type") == "GroupItem") {
                                var v81962 = v90e76.cells[1];
                                for (var v1c14 = 0; v1c14 < v81962.children.length; v1c14++) {
                                    var vbd339 = v81962.children[v1c14];
                                    if (IS.GetAttr(vbd339, "name") == this.Name) {
                                        this.Element = vbd339;
                                        break;
                                    }
                                }
                            }
                        } else {
                            if (IS.GetAttr(v90e76, "name") == this.Name) {
                                this.Element = v90e76;
                                break;
                            }
                        }
                    }
                } else {
                    for (var v70738 = 0; v70738 < v4a827.rows.length; v70738++) {
                        var v90e76 = v4a827.rows[v70738];
                        if (IS.GetAttr(v90e76, "name") == this.Name) {
                            this.Element = v90e76;
                            break;
                        }
                    }
                }
            }
        }
        return this.Element;
    };
    this.HasSubMenu = function() {
        return (this.Items.length > 0);
    };
    this.Click = function() {
        wdd4b85.m1af2(this);
    };
    this.GetPreviousSelectableItem = function() {
        var vcfc69 = this.Index - 1;
        if (vcfc69 < 0) vcfc69 = this.Collection.length - 1;
        var v9515 = this.Collection[vcfc69];
        if (v9515) {
            if (v9515.Visible && v9515.Type != "Separator" && v9515.Type != "Custom") return v9515;
            else {
                if (this.Index == 0 && this.Collection.length == 1) return null;
                else return v9515.GetPreviousSelectableItem();
            }
        }
        return null;
    };
    this.GetNextSelectableItem = function() {
        var vc6415 = this.Index + 1;
        if (vc6415 > (this.Collection.length - 1)) vc6415 = 0;
        var v9515 = this.Collection[vc6415];
        if (v9515) {
            if (v9515.Visible && v9515.Type != "Separator" && v9515.Type != "Custom") return v9515;
            else {
                if (this.Index == 0 && this.Collection.length == 1) return null;
                else return v9515.GetNextSelectableItem();
            }
        }
        return null;
    };
    this.SetChecked = function(v9b459, vf3c0) {
        var v63a24 = this.GetElement();
        var v81962;
        var vbd339;
        var v40045;
        if (typeof (v9b459) == "undefined") v9b459 = true;
        if (this.Type == "Radio" && v9b459) {
            var v2e321 = this.OwnerMenu.GetSelectedItemByGroup(this.GroupName);
            if (v2e321 && v2e321 == this) return false;
            if (v2e321) v2e321.SetChecked(false);
        }
        this.Checked = v9b459;
        if (!v63a24) return;
        if (v63a24.tagName == "TR") {
            v81962 = v63a24.cells[0];
            vbd339 = v81962.children[0];
            if (IS.ie || IS.moz) v40045 = vbd339.children[0].children[0];
            else v40045 = vbd339.children[0];
        } else if (v63a24.tagName == "SPAN") {
            vbd339 = v63a24;
            if (IS.ie || IS.moz) v40045 = vbd339.children[0].children[0];
            else v40045 = vbd339.children[0];
        }
        var vb7051 = this.OwnerMenu.MenuControl.MenuStyleSettings;
        if (this.Checked) {
            if (this.UseFontImage) {
                v40045.innerHTML = wdd4b85.m51d45(vb7051, this.Type == "CheckBox" ? "a" : this.Type == "Radio" ? "=" : "");
                if (IsGecko30() && v40045.tagName == "IMG") v40045.style.display = "";
            }
            if (vb7051.HighlightMode == "UseWebStyle") {
                if (!vf3c0) DynamicStyleEngine.SetToOverStyle(null, vb7051.CheckedItemStyle, vbd339);
                else DynamicStyleEngine.SetToStyle(null, vb7051.CheckedItemStyle, vbd339);
            } else {
                with (vbd339.style) {
                    backgroundImage = "url(" + wdd4b85.mb2224(vb7051, "ActiveIconCell", true) + ")";
                    backgroundRepeat = "no-repeat";
                    backgroundPosition = "top left";
                    marginTop = "-1px";
                    height = "22px";
                    if (IS.ie) {
                        paddingTop = "3px";
                        paddingRight = "3px";
                    }
                }
            }
        } else {
            if (this.UseFontImage) {
                v40045.innerHTML = "";
                if (IsGecko30() && v40045.tagName == "IMG") v40045.style.display = "none";
            }
            vbd339.className = "";
            vbd339.style.backgroundImage = "none";
        }
    };
    this.Enable = function() {
        if (this.Enabled) return;
        var v2f170 = this.GetElement();
        var vb9636 = this.OwnerMenu.MenuControl.MenuStyleSettings.ItemStyle;
        if (v2f170) {
            if (this.OwnerMenu.IconViewMode) { } else {
                for (var v70738 = 0; v70738 < v2f170.cells.length; v70738++) {
                    var v81962 = v2f170.cells[v70738];
                    v81962.disabled = false;
                    DynamicStyleEngine.SetToStyle(null, vb9636, v81962);
                }
            }
            if (this.ImageURL != "") {
                var v9cb72 = this.GetImageElement();
                v9cb72.style.filter = "";
                v9cb72.style.backgroundColor = "";
            }
        }
        this.Enabled = true;
    };
    this.Disable = function() {
        if (!this.Enabled) return;
        var v2f170 = this.GetElement();
        var vdbe18 = this.OwnerMenu.MenuControl;
        var vb9636 = this.OwnerMenu.MenuControl.MenuStyleSettings.DisabledItemStyle;
        if (v2f170) {
            if (this.OwnerMenu.IconViewMode) { } else {
                for (var v70738 = 0; v70738 < v2f170.cells.length; v70738++) {
                    var v81962 = v2f170.cells[v70738];
                    v81962.disabled = true;
                    DynamicStyleEngine.SetToStyle(null, vb9636, v81962);
                }
            }
            if (this.ImageURL != "") {
                var v9cb72 = this.GetImageElement();
                v9cb72.style.filter = (this.OwnerMenu.MenuControl.SkipAlpha ? "" : "Alpha(Opacity=50),") + "Gray()";
                if (vdbe18.DrawImageBackground) v9cb72.style.backgroundColor = vdbe18.MenuStyleSettings.BackgroundStripColor;
            }
        }
        this.Enabled = false;
    };
    this.Show = function() {
        if (this.Visible) return;
        var v2f170 = this.GetElement();
        if (v2f170) v2f170.style.display = "";
        this.Visible = true;
    };
    this.Hide = function() {
        if (!this.Visible) return;
        var v2f170 = this.GetElement();
        if (v2f170) v2f170.style.display = "none";
        this.Visible = false;
    };
    this.GetContentElement = function() {
        var v2f170 = this.GetElement();
        if (v2f170.tagName == "TR") return v2f170.cells[1];
        return null;
    };
    this.SetText = function(v81411) {
        var v2f170 = this.GetElement();
        if (v2f170) {
            if (v2f170.tagName == "TR") {
                var vc4645 = v2f170.cells[1];
                vc4645.innerHTML = v81411;
            }
        }
        this.Text = v81411;
    };
    this.GetImageElement = function() {
        var v2f170 = this.GetElement();
        if (v2f170) {
            if (v2f170.tagName == "TR") {
                var vc4645 = v2f170.cells[0];
                return vc4645.children[0].children[0];
            } else if (v2f170.tagName == "SPAN") {
                return v2f170.children[0];
            }
        }
    };
    this.SetImage = function(v2ee79) {
        var v2f170 = this.GetElement();
        if (v2f170) {
            if (v2f170.tagName == "TR") {
                var vc4645 = v2f170.cells[0];
                vc4645.children[0].src = v2ee79;
            } else if (v2f170.tagName == "SPAN") {
                v2f170.children[0].src = v2ee79;
            }
        }
        this.ImageURL = v2ee79;
    };
    this.Destroy = function() {
        var v2f170 = this.GetElement();
        if (v2f170) Listener.Unload(v2f170);
    };
    this.Delete = function() {
        this.Collection.Remove(this);
    };
    this.Unselect = function() {
        if (this.Type == "Separator") return;
        wdd4b85.ma7396(this);
    };
    this.IsSelected = function() {
        return (this.OwnerMenu.ActiveItem == this);
    };
    this.Select = function(vafe34) {
        if (this.Type == "Separator") return;
        if (this.IsSelected()) return;
        if (typeof (vafe34) == "undefined") vafe34 = true;
        if (vafe34) {
            if (this.ActiveItem) wdd4b85.ma7396(this.ActiveItem);
        }
        wdd4b85.mc0348(this);
    };
    this.IsSubMenuOpen = function() {
        return this.SubMenu.IsOpen();
    };
    this.HideSubMenuQueue = function() {
        if (this.HasSubMenu() && this.IsSubMenuOpen()) {
            var va0519 = this.SubMenu;
            this.CloseQueueId = setTimeout(function() {
                if (va0519.ParentMenuItem.InHideQueue()) va0519.Hide();
            },
            this.OwnerMenu.MenuControl.ShowDelay);
        }
    };
    this.ShowSubMenu = function(v5b734) {
        if (this.HasSubMenu()) {
            var va0519 = this.SubMenu;
            va0519.MenuControl = this.OwnerMenu.MenuControl;
            va0519.ParentMenu = this.OwnerMenu;
            va0519.OffsetElement = this.GetElement();
            va0519.Show();
            if (v5b734) {
                var vceb85 = va0519.Items[0];
                if (vceb85 && (vceb85.Type == "Custom" || vceb85.Type == "Separator")) vceb85 = vceb85.GetNextSelectableItem();
                if (vceb85) vceb85.Select();
            }
        }
    };
    this.ShowSubMenuQueue = function(vf2454, v5b734) {
        if (this.HasSubMenu()) {
            var va0519 = this.SubMenu;
            var vf7511 = this.OwnerMenu.MenuControl.ShowDelay;
            va0519.MenuControl = this.OwnerMenu.MenuControl;
            va0519.ParentMenu = this.OwnerMenu;
            va0519.OffsetElement = this.GetElement();
            if (vf2454) vf7511 = 1;
            this.QueueId = setTimeout(function() {
                va0519.Show();
                if (v5b734) {
                    var vceb85 = va0519.Items[0];
                    if (vceb85 && (vceb85.Type == "Custom" || vceb85.Type == "Separator")) vceb85 = vceb85.GetNextSelectableItem();
                    if (vceb85) vceb85.Select();
                }
            },
            vf7511);
        }
    };
    this.CancelShow = function() {
        if (this.QueueId > 0) {
            clearTimeout(this.QueueId);
            this.QueueId = -1;
        }
    };
    this.CancelHide = function() {
        if (this.CloseQueueId > 0) {
            clearTimeout(this.CloseQueueId);
            this.CloseQueueId = -1;
        }
    };
    this.InShowQueue = function() {
        return this.QueueId > 0;
    };
    this.InHideQueue = function() {
        return this.CloseQueueId > 0;
    };
}
function InitWebContextMenu(v0e873) {
    var v34a54 = new WebContextMenu(v0e873);
    var vfb098 = null;
    try {
        vfb098 = ISXml.GetNode(v34a54.XmlDt, "//WebContextMenu");
    } catch (e) { }
    if (vfb098 == null) vfb098 = v34a54.XmlDt.documentElement;
    if (vfb098 != null) {
        IS.SetPropertiesRecursive(v34a54, vfb098);
        var vffc71 = ["ItemStyle", "DisabledItemStyle", "CheckedItemStyle"];
        DynamicStyleEngine.AssignFromArray(v34a54.MenuStyleSettings, v34a54.MenuStyleSettings.XmlNode, vffc71);
    }
    ISEvent.Raise(v34a54.ClientSideEvents.OnInitialize, v0e873);
    window.attachEvent("onload", function() {
        OnContextMenuLoad(v34a54);
    });
    window.attachEvent("onunload", function() {
        OnContextMenuUnload(v34a54);
    });
}
function OnContextMenuUnload(va3b73) {
    window.detachEvent("onload", function() {
        OnContextMenuLoad(va3b73);
    });
    window.detachEvent("onunload", function() {
        OnContextMenuUnload(va3b73);
    });
}
function OnContextMenuLoad(v11e0) {
    if (v11e0.ControlId != "") {
        var v4da28 = null;
        if (v11e0.ControlId == "Page") v4da28 = document.body;
        else v4da28 = ISGetObject(v11e0.ControlId);
        if (!v4da28) v4da28 = document.getElementById(v11e0.ControlId);
        if (!v4da28) {
            v4da28 = document.getElementsByName(v11e0.ControlId);
            if (v4da28 && v4da28.length > 0) v4da28 = v4da28[0];
        }
        if (v4da28 && v4da28.tagName) {
            if (v11e0.ControlId != "Page") v11e0.SetOffsetElement(v4da28);
            Listener.Add(v4da28, "oncontextmenu", function() {
                OnGenericControlContextMenu(v11e0);
                return false;
            });
        } else if (v4da28 && v4da28.ClassName && v4da28.FrameObj) {
            var vbf087 = v4da28.FrameObj;
            Listener.Add(vbf087, "oncontextmenu", function() {
                OnISControlContextMenu(v11e0);
                return false;
            });
        }
    }
    if (v11e0.IntegratedTo == "None") v11e0.CreateDefaultStyles();
    else if (v11e0.IntegratedTo == "DesktopManager") v11e0.SetIntegratedToDesktopManager();
    else v11e0.SetIntegratedToPlaceHolderManager();
}
function OnISControlContextMenu(vd0d84) {
    event.cancelBubble = true;
    event.returnValue = false;
    var vf7a84 = (IS.ie) ? event.screenX : event.clientX + window.screenLeft;
    var v40b66 = (IS.ie) ? event.screenY : event.clientY + window.screenTop;
    if (IS.ie && vd0d84.MenuWindowType == "Normal") {
        vf7a84 -= window.screenLeft;
        v40b66 -= window.screenTop;
    }
    vd0d84.Show(vf7a84, v40b66);
}
function OnGenericControlContextMenu(v19884) {
    event.cancelBubble = true;
    event.returnValue = false;
    var v84e84 = (IS.ie) ? event.screenX : event.clientX + window.screenLeft;
    var v53c66 = (IS.ie) ? event.screenY : event.clientY + window.screenTop;
    if (IS.ie && v19884.MenuWindowType == "Normal") {
        v84e84 -= window.screenLeft;
        v53c66 -= window.screenTop;
    }
    if (v19884.ControlId == "Page") v19884.Show(v84e84, v53c66);
    else v19884.Show();
}
var wdd4b85 = {
    m7bc52: function(v3d476) {
        return v3d476.X + (IS.moz || IS.opera || IS.safari ? window.screenLeft : 0);
    },
    m94744: function(ve5b12, ve7068) {
        return ((IS.moz || IS.opera || IS.safari) ? window.screenTop : 0) + ve5b12.Y + (IS.safari && !ve7068 ? document.body.scrollTop : 0);
    },
    m4e327: function(vb1f12, vf1a68) {
        return new OffsetLocation(wdd4b85.m7bc52(vb1f12, vf1a68), wdd4b85.m94744(vb1f12, vf1a68));
    },
    m8e653: function(v23731) {
        var vf8c12 = wdd4b85.m68e53(v23731);
        wdd4b85.m54215(v23731, vf8c12);
        wdd4b85.m04f74(v23731);
        v23731.Initialized = true;
    },
    m04f74: function(v9c551) {
        var v97967 = v9c551.Element;
        var v67f47 = v9c551.GetDocument();
        var vfd928 = window;
        if (v97967) {
            if (!v9c551.MenuControl.UseCustomContent) {
                Listener.Add(v97967, "onmouseover", wdd4b85.mc8c15, v9c551);
                Listener.Add(v97967, "onmouseout", wdd4b85.mc8c15, v9c551);
                Listener.Add(v97967, "onmousedown", wdd4b85.mc8c15, v9c551);
                Listener.Add(v97967, "onmouseup", wdd4b85.mc8c15, v9c551);
                Listener.Add(v97967, "onmousewheel", wdd4b85.m86562, v9c551);
            }
            Listener.Add(v97967, "onselectstart", wdd4b85.m2b80, v9c551);
            Listener.Add(vfd928, "onunload", wdd4b85.m16124, v9c551);
            Listener.Add(v97967, "oncontextmenu", wdd4b85.mc6133, v9c551);
            if (v9c551.MenuControl.MenuWindowType == "Popup") Listener.Append(0, v67f47, "onkeydown", wdd4b85.m02228, v9c551);
            else Listener.Add(v97967, "onkeydown", wdd4b85.m02228, v9c551);
        }
    },
    mf2a13: function(ve1a51, vcbd87) {
        if (!IS.GetCssObject(null, vcbd87)) {
            var vc5651 = ve1a51.GetCssObject(vcbd87);
            var vc3e87 = IS.GetRuntimeStyleSheetExact();
            if (vc5651) {
                if (IS.ie) vc3e87.addRule(vc5651.selectorText, vc5651.style.cssText);
                else vc3e87.innerHTML += vc5651.selectorText + " { " + vc5651.style.cssText + " }\n";
                return true;
            }
        }
        return false;
    },
    DefaultFrameStyle: "border: #8A867A 1px solid; background-color: white",
    DefaultItemNormalStyle: "font-family: Tahoma; font-size: 8pt",
    DefaultItemOverStyle: "font-family: Tahoma; font-size: 8pt; border: #316AC5 1px solid; background-color: #C1D2EE;",
    DefaultCheckedNormalStyle: "border: #316AC5 1px solid; background-color: #E1E6E8",
    DefaultCheckedOverStyle: "border: #4B4B6F 1px solid; background-color: #316AC5",
    DefaultDisabledNormalStyle: "font-family: Tahoma; font-size: 8pt; color: Silver",
    DefaultDisabledOverStyle: "font-family: Tahoma; font-size: 8pt; border: Gray 1px solid; background-color:WhiteSmoke; color: Gray",
    DefaultSeparatorStyle: "border-top: #C4C3AC 1px solid",
    DefaultCustomStyle: "background-color: #dde7ee; border-bottom: #c5c5c5 solid 1px; color: #00156E; font-family: Segoe UI, Tahoma; font-size: 9pt; padding: 4px; font-weight: bold",
    m3c099: function(v18387) {
        var v68f87 = v18387.MenuStyleSettings;
        IS.AddRuntimeCssStyle(v68f87.FrameStyle, wdd4b85.DefaultFrameStyle);
        IS.AddRuntimeCssStyle(v68f87.ItemStyle.Normal, wdd4b85.DefaultItemNormalStyle);
        IS.AddRuntimeCssStyle(v68f87.ItemStyle.Over, wdd4b85.DefaultItemOverStyle);
        IS.AddRuntimeCssStyle(v68f87.CheckedItemStyle.Normal, wdd4b85.DefaultCheckedNormalStyle);
        IS.AddRuntimeCssStyle(v68f87.CheckedItemStyle.Over, wdd4b85.DefaultCheckedOverStyle);
        IS.AddRuntimeCssStyle(v68f87.DisabledItemStyle.Normal, wdd4b85.DefaultDisabledNormalStyle);
        IS.AddRuntimeCssStyle(v68f87.DisabledItemStyle.Over, wdd4b85.DefaultDisabledOverStyle);
        IS.AddRuntimeCssStyle(v68f87.SeparatorStyle, wdd4b85.DefaultSeparatorStyle);
        if (v68f87.CustomStyle != "") IS.AddRuntimeCssStyle(v68f87.CustomStyle, wdd4b85.DefaultCustomStyle);
    },
    mcd631: function(v60f87) {
        var vaad87 = ISGetDesktopManager();
        if (!vaad87) {
            alert("Can't integrate to DesktopManager because no DesktopManager instance were found!");
            v60f87.CreateDefaultStyles();
            return;
        }
        if (!vaad87.MenuStyles.Application) {
            alert("Integration failed because ContextMenu is currently disabled in DesktopManager. Please set EnableContextMenu to true.");
            v60f87.CreateDefaultStyles();
            return;
        }
        v60f87.MenuStyleSettings.CopyFrom(vaad87.MenuStyles.Application);
        v60f87.MenuStyleSettings.Parent = v60f87;
        v60f87.MenuStyleSettings.OnPropertiesInitialized();
        wdd4b85.m71712(vaad87, v60f87.MenuStyleSettings);
    },
    mcba4: function(vbc770) {
        var v46170 = ISGetPlaceHolderManager();
        if (v46170) {
            v46170.IntegrateMenuControl(vbc770);
            wdd4b85.m71712(v46170, vbc770.MenuStyleSettings);
        }
    },
    m71712: function(vd8c70, v02497) {
        if (!wdd4b85.mf2a13(vd8c70, v02497.FrameStyle)) IS.AddRuntimeCssStyle(v02497.FrameStyle, wdd4b85.DefaultFrameStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.ItemStyle.Normal)) IS.AddRuntimeCssStyle(v02497.ItemStyle.Normal, wdd4b85.DefaultItemNormalStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.ItemStyle.Over)) IS.AddRuntimeCssStyle(v02497.ItemStyle.Over, wdd4b85.DefaultItemOverStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.CheckedItemStyle.Normal)) IS.AddRuntimeCssStyle(v02497.CheckedItemStyle.Normal, wdd4b85.DefaultCheckedNormalStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.CheckedItemStyle.Over)) IS.AddRuntimeCssStyle(v02497.CheckedItemStyle.Over, wdd4b85.DefaultCheckedOverStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.DisabledItemStyle.Normal)) IS.AddRuntimeCssStyle(v02497.DisabledItemStyle.Normal, wdd4b85.DefaultDisabledNormalStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.DisabledItemStyle.Over)) IS.AddRuntimeCssStyle(v02497.DisabledItemStyle.Over, wdd4b85.DefaultDisabledOverStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.SeparatorStyle)) IS.AddRuntimeCssStyle(v02497.SeparatorStyle, wdd4b85.DefaultSeparatorStyle);
        if (!wdd4b85.mf2a13(vd8c70, v02497.CustomStyle)) IS.AddRuntimeCssStyle(v02497.CustomStyle, wdd4b85.DefaultCustomStyle);
    },
    m2b80: function() {
        var v5ac70 = this.GetDocumentEvent();
        var v7c297 = v5ac70.srcElement;
        var vd5543 = v7c297.tagName;
        var vf6338 = true;
        switch (vd5543) {
            case "INPUT":
            case "SELECT":
            case "TEXTAREA":
                {
                    vf6338 = false;
                }
        }
        if (vf6338) {
            v5ac70.cancelBubble = true;
            v5ac70.returnValue = false;
        }
    },
    mc6133: function() {
        this.GetDocumentEvent().returnValue = false;
    },
    m02228: function(ve521, vbf164) {
        var vcbe6 = this;
        if (ve521 != window && typeof (ve521) == "object" && ve521.GetType) vcbe6 = ve521;
        var v19d66 = vcbe6.GetDocumentEvent();
        if (vbf164) v19d66 = vbf164;
        var v93161 = v19d66.srcElement;
        var v86a80 = wdd4b85.m95355(v93161);
        var v26349 = v19d66.keyCode;
        var v5c612 = false;
        if (vcbe6.IconViewMode) {
            if (v26349 == ISKeyboardKey.LEFT) v26349 = ISKeyboardKey.UP;
            if (v26349 == ISKeyboardKey.RIGHT) v26349 = ISKeyboardKey.DOWN;
        }
        switch (v26349) {
            case ISKeyboardKey.ESC:
                {
                    if (vcbe6.ActiveItem) vcbe6.ActiveItem.OwnerMenu.Hide();
                    break;
                }
            case ISKeyboardKey.UP:
                {
                    var v4af98 = vcbe6.ActiveItem;
                    if (!v4af98 && vcbe6.Items.length > 0) v4af98 = vcbe6.Items[0];
                    if (v4af98) {
                        var v6796 = v4af98.GetPreviousSelectableItem();
                        if (v6796) v6796.Select();
                        if (vcbe6.ScrollEnabled) {
                            v6796.ScrollIntoView();
                            wdd4b85.mef458(vcbe6);
                        }
                        v5c612 = true;
                    }
                    break;
                }
            case ISKeyboardKey.DOWN:
                {
                    var v4af98 = vcbe6.ActiveItem;
                    if (!v4af98 && vcbe6.Items.length > 0) v4af98 = vcbe6.Items[vcbe6.Items.length - 1];
                    if (v4af98) {
                        var v36316 = v4af98.GetNextSelectableItem();
                        if (v36316) v36316.Select();
                        if (vcbe6.ScrollEnabled) {
                            v36316.ScrollIntoView();
                            wdd4b85.mef458(vcbe6);
                        }
                        v5c612 = true;
                    }
                    break;
                }
            case ISKeyboardKey.LEFT:
                {
                    var v4af98 = vcbe6.ActiveItem;
                    if (v4af98) {
                        if (v4af98.OwnerMenu.ParentMenu != null) {
                            vcbe6.Hide();
                            v5c612 = true;
                        } else wdd4b85.m46f28(v26349, v4af98);
                    }
                    break;
                }
            case ISKeyboardKey.RIGHT:
                {
                    var v4af98 = vcbe6.ActiveItem;
                    if (v4af98) {
                        if (v4af98.Enabled && v4af98.Visible && v4af98.HasSubMenu()) {
                            v4af98.OwnerMenu.MenuControl.SkipAnimation = true;
                            v4af98.ShowSubMenuQueue(true, true);
                        } else wdd4b85.m46f28(v26349, v4af98);
                    }
                    v5c612 = true;
                    break;
                }
            case ISKeyboardKey.ENTER:
                {
                    var v4af98 = vcbe6.ActiveItem;
                    if (v4af98) {
                        if (v4af98.HasSubMenu()) {
                            v4af98.ShowSubMenuQueue(true, true);
                        } else {
                            if (v4af98.Enabled) v4af98.Click();
                        }
                        v5c612 = true;
                    }
                    break;
                }
            default:
                {
                    var va9f1 = String.fromCharCode(v26349).toLowerCase();
                    var vae786 = vcbe6.Items;
                    var v08861 = vae786.length;
                    for (var v40874 = 0; v40874 < v08861; v40874++) {
                        if (vae786[v40874].AccessKey == va9f1 && vae786[v40874].Enabled && vae786[v40874].Type != "Separator" && vae786[v40874].Type != "Custom") {
                            vae786[v40874].Select();
                            vae786[v40874].Click();
                            v5c612 = true;
                            break;
                        }
                    }
                }
        }
        if (v5c612) {
            v19d66.cancelBubble = true;
            v19d66.returnValue = false;
        }
    },
    m46f28: function(v63d72, vc6e3) {
        if (vc6e3.Parent != null) {
            var v9a737 = vc6e3.Parent.MenuControl;
            if (v9a737 && v9a737.ClassName == "WebMenuBar") {
                var v55c34 = v9a737.OnMenuKeyDown;
                if (typeof (v55c34) == "string") ISEvent.Raise(v55c34, v63d72, vc6e3);
                else if (typeof (v55c34) == "function") v55c34(v63d72, vc6e3);
            }
        }
    },
    m86562: function(vf5492) {
        var v07772 = this;
        if (v07772.ScrollEnabled) {
            var v87b3 = v07772.GetMenuBodyElement().parentElement;
            var v06717 = v07772.GetDocumentEvent();
            if (vf5492) v06717 = vf5492;
            v87b3.scrollTop -= 3 * v06717.wheelDelta / 120 * 20;
            wdd4b85.mef458(v07772);
            v06717.cancelBubble = true;
            v06717.returnValue = false;
        }
    },
    mc8c15: function(v13047, v2bd47) {
        var v50192 = this;
        if (v13047 != window && typeof (v13047) == "object" && v13047.GetType) v50192 = v13047;
        var v3bc13 = v50192.GetDocumentEvent();
        if (v2bd47) v3bc13 = v2bd47;
        var v68184 = v3bc13.srcElement;
        var v3c351 = wdd4b85.m95355(v68184);
        if (v3c351 == "") {
            if (v50192.IconViewMode) {
                var vc6515 = wdd4b85.me8186(v68184);
                if (vc6515 == null) v68184 = wdd4b85.m6a231(v68184);
                else v68184 = vc6515;
                v3c351 = wdd4b85.m95355(v68184);
            } else {
                v68184 = wdd4b85.m6a231(v68184);
                v3c351 = wdd4b85.m95355(v68184);
            }
        }
        if (v3c351 == "") {
            if (v68184 != null && v50192.GetElement().contains(v68184)) {
                v68184.cancelBubble = true;
                v3bc13.cancelBubble = true;
                v3bc13.returnValue = false;
            }
            return;
        }
        switch (v3bc13.type) {
            case "mouseover":
                if (v3c351 == "MenuItem") {
                    var v83843 = wdd4b85.mfb457(v68184);
                    var v9184 = v50192.Items.GetNamedItem(v83843);
                    if ((!v9184.Enabled && !v50192.MenuControl.MenuStyleSettings.HighlightDisabledItem) || v9184.Type == "Custom") {
                        wdd4b85.m0a369(v50192, v9184);
                        return;
                    }
                    v9184.Select(false);
                    if (v9184.HasSubMenu() && !v9184.IsSubMenuOpen() && !v9184.InShowQueue() && v9184.Enabled) {
                        if (v50192.MenuControl.MenuWindowType == "Normal") {
                            wdd4b85.m0a369(v50192, v9184);
                        }
                        v9184.OwnerMenu.MenuControl.SkipAnimation = false;
                        v9184.ShowSubMenuQueue();
                    } else if (v9184.HasSubMenu() && v9184.IsSubMenuOpen()) {
                        if (v9184.InHideQueue()) {
                            v9184.CancelHide();
                        }
                    } else {
                        wdd4b85.m0a369(v50192, v9184);
                    }
                    if (v50192.ParentMenuItem != null) {
                        if (v50192.ParentMenuItem.InHideQueue()) v50192.ParentMenuItem.CancelHide();
                    }
                } else if (v3c351 == "ScrollUp") {
                    v50192.ScrollInterval = setInterval(function() {
                        wdd4b85.mb6568(v50192, "up");
                    },
                100);
                } else if (v3c351 == "ScrollDown") {
                    v50192.ScrollInterval = setInterval(function() {
                        wdd4b85.mb6568(v50192, "down");
                    },
                100);
                }
                break;
            case "mouseout":
                if (v3c351 == "MenuItem") {
                    var v83843 = wdd4b85.mfb457(v68184);
                    var v9184 = v50192.Items.GetNamedItem(v83843);
                    var veb758 = v3bc13.toElement;
                    var v83f52 = v50192.GetElement();
                    if ((!v9184.Enabled && !v50192.MenuControl.MenuStyleSettings.HighlightDisabledItem) || v9184.Type == "Custom") return;
                    if (v50192.ActiveItem != null && v50192.ActiveItem != v9184 && veb758 != null) v50192.ActiveItem.Unselect();
                    if (v50192.ActiveItem != null && v50192.ActiveItem.GetElement().contains(veb758)) return;
                    if (v83f52.contains(veb758)) v9184.Unselect();
                    if (v9184.HasSubMenu() && v9184.InShowQueue()) v9184.CancelShow();
                } else if (v3c351 == "ScrollUp") {
                    if (v50192.ScrollInterval > 0) clearInterval(v50192.ScrollInterval);
                } else if (v3c351 == "ScrollDown") {
                    if (v50192.ScrollInterval > 0) clearInterval(v50192.ScrollInterval);
                }
                break;
            case "mousedown":
                if (!IS.ie || v50192.MenuControl.MenuWindowType == "Normal") {
                    v3bc13.srcElement.cancelBubble = true;
                    v3bc13.cancelBubble = true;
                    v3bc13.returnValue = false;
                }
                v50192.IsMouseDown = true;
                break;
            case "mouseup":
                if (!v50192.IsMouseDown) return;
                v50192.IsMouseDown = false;
                if (v3c351 == "MenuItem") {
                    var v83843 = wdd4b85.mfb457(v68184);
                    var v9184 = v50192.Items.GetNamedItem(v83843);
                    var veb758 = v3bc13.toElement;
                    var v83f52 = v50192.GetElement();
                    var vfe53 = v50192.MenuControl;
                    if (!v9184.Enabled) return;
                    if (vfe53.MenuAnimation && vfe53.AnimatedObj != null && vfe53.AnimatedObj.IntervalId > 0) return;
                    if (IS.moz) {
                        v3bc13.cancelBubble = true;
                        v3bc13.returnValue = false;
                    }
                    if (v9184.HasSubMenu() && !v9184.IsSubMenuOpen() && v9184.Enabled) {
                        if (v9184.InShowQueue()) v9184.CancelShow();
                        if (!v9184.IsSubMenuOpen()) v9184.ShowSubMenuQueue(true);
                        if (v50192.MenuControl.MenuWindowType == "Normal") wdd4b85.m0a369(v50192, v9184, true);
                    } else if (!v9184.HasSubMenu()) {
                        if (v9184.Type != "Custom" && v9184.Type != "Separator") {
                            v9184.Click();
                        }
                    }
                }
                break;
        }
    },
    m0a369: function(vbff77, v12714, v8be15) {
        var vd9494 = vbff77.GetOpenSubMenu();
        if (vd9494 && vd9494 != v12714) {
            if (v8be15) vd9494.SubMenu.Hide();
            else vd9494.HideSubMenuQueue();
        }
    },
    m95355: function(v04a49) {
        if (!v04a49) return "";
        if (v04a49.tagName == "TD") {
            var vf7449 = v04a49.parentElement;
            if (IS.GetAttr(vf7449, "type") == "MenuItem") return "MenuItem";
        } else if (v04a49.tagName == "DIV" || ((v04a49.tagName == "FONT" || v04a49.tagName == "IMG") && v04a49.parentElement.tagName == "DIV")) {
            if (v04a49.tagName == "FONT" || v04a49.tagName == "IMG") v04a49 = v04a49.parentElement;
            if (v04a49.id.indexOf("scroll_up") > -1) return "ScrollUp";
            else if (v04a49.id.indexOf("scroll_down") > -1) return "ScrollDown";
        } else if (v04a49.tagName == "SPAN") {
            if (IS.GetAttr(v04a49, "name") != "") return "MenuItem";
            else {
                var vf7449 = v04a49.parentElement;
                if (vf7449 && vf7449.tagName == "SPAN" && IS.GetAttr(vf7449, "name") != "") return "MenuItem";
            }
        } else if (v04a49.tagName == "IMG") {
            var vf7449 = v04a49.parentElement;
            if (vf7449 && vf7449.tagName == "SPAN" && IS.GetAttr(vf7449, "name") != "") return "MenuItem";
        }
        return "";
    },
    mfb457: function(v26669) {
        if (v26669.tagName == "TD") return IS.GetAttr(v26669.parentElement, "name");
        else if (v26669.tagName == "TR") return IS.GetAttr(v26669, "name");
        else if (v26669.tagName == "SPAN") {
            if (IS.GetAttr(v26669, "type") == "MenuItem") return IS.GetAttr(v26669, "name");
            else return IS.GetAttr(v26669.parentElement, "name");
        } else if (v26669.tagName == "IMG" && v26669.parentElement.tagName == "SPAN" && IS.GetAttr(v26669.parentElement, "name") != "") return IS.GetAttr(v26669.parentElement, "name");
    },
    m6a231: function(vb3269) {
        if (!vb3269) return;
        while (vb3269 && vb3269.tagName != "TD") {
            vb3269 = vb3269.parentElement;
        }
        if (vb3269 && vb3269.tagName == "TD") return vb3269;
        else return null;
    },
    me8186: function(vbec69) {
        if (!vbec69) return;
        while (vbec69 && vbec69.tagName != "SPAN") {
            vbec69 = vbec69.parentElement;
        }
        if (vbec69 && vbec69.tagName == "SPAN") return vbec69;
        else return null;
    },
    ma7396: function(vc4663) {
        var v83752 = vc4663.GetElement();
        var v9fc3 = vc4663.OwnerMenu;
        var v71867 = v9fc3.MenuControl;
        var v59f47 = v71867.MenuStyleSettings;
        var v02e88 = v59f47.ItemStyle;
        if (!vc4663.Enabled) v02e88 = v59f47.DisabledItemStyle;
        if (v9fc3.IconViewMode && v83752.tagName == "SPAN") {
            wdd4b85.md5c86(vc4663);
            return;
        }
        for (var v93756 = 0; v93756 < v83752.cells.length; v93756++) {
            var v44585 = v83752.cells[v93756];
            if (v59f47.HighlightMode == "UseWebStyle") DynamicStyleEngine.SetToStyle(null, v02e88, v44585);
            else v44585.style.backgroundImage = "none";
            if (v93756 == 0) {
                v44585.style.padding = "1px";
                if ((vc4663.Type == "Radio" || vc4663.Type == "CheckBox") && vc4663.Checked) {
                    if (v59f47.HighlightMode == "UseWebStyle") {
                        var vd5530 = v44585.children[0];
                        DynamicStyleEngine.SetToStyle(null, v59f47.CheckedItemStyle, vd5530);
                    }
                }
            } else if (v93756 == 3) {
                v44585.style.padding = v59f47.ItemPadding;
            } else {
                v44585.style.paddingTop = v44585.style.paddingBottom = v59f47.ItemPadding;
            }
        }
        vc4663.Selected = false;
        vc4663.OwnerMenu.ActiveItemIndex = -1;
        vc4663.OwnerMenu.ActiveItem = null;
    },
    md5c86: function(v50238) {
        var v68583 = v50238.GetElement();
        var vb4b71 = v50238.OwnerMenu.MenuControl;
        var v5564 = v50238.OwnerMenu;
        var v8e615 = vb4b71.MenuStyleSettings;
        var v85132 = v8e615.ItemStyle;
        if (v50238.Type == "Normal") { } else if (v50238.Type == "Radio" || v50238.Type == "CheckBox") {
            if (v50238.Checked) v85132 = v8e615.CheckedItemStyle;
        }
        DynamicStyleEngine.SetToStyle(null, v85132, v68583);
        v50238.Selected = false;
        v5564.ActiveItemIndex = -1;
        v5564.ActiveItem = null;
    },
    m40932: function(ve2813) {
        var v30574 = ve2813.GetElement();
        var v06f19 = ve2813.OwnerMenu.MenuControl;
        var vd5f8 = ve2813.OwnerMenu;
        var v4dd59 = v06f19.MenuStyleSettings;
        var v60a76 = v4dd59.ItemStyle;
        if (ve2813.Type == "Normal") { } else if (ve2813.Type == "Radio" || ve2813.Type == "CheckBox") {
            if (ve2813.Checked) v60a76 = v4dd59.CheckedItemStyle;
        }
        DynamicStyleEngine.SetToOverStyle(null, v60a76, v30574);
        vd5f8.ActiveItemIndex = ve2813.Index;
        vd5f8.ActiveItem = ve2813;
        ve2813.Selected = true;
        if (vd5f8.ParentMenuItem != null && !vd5f8.ParentMenuItem.IsSelected()) {
            vd5f8.ParentMenuItem.Select(false);
        }
    },
    mc0348: function(vc2870) {
        var vae485 = vc2870.GetElement();
        var vd6477 = vc2870.OwnerMenu.MenuControl;
        var v06b79 = vc2870.OwnerMenu;
        var vd4666 = vd6477.MenuStyleSettings;
        var vb0920 = vd4666.ItemStyle;
        if (v06b79.ActiveItemIndex > -1) v06b79.ActiveItem.Unselect();
        if (v06b79.IconViewMode && vae485.tagName == "SPAN") {
            wdd4b85.m40932(vc2870);
            return;
        }
        if (!vc2870.Enabled) vb0920 = vd4666.DisabledItemStyle;
        for (var v1260 = 0; v1260 < vae485.cells.length; v1260++) {
            var v9ba20 = vae485.cells[v1260];
            if (vd4666.HighlightMode == "UseWebStyle") DynamicStyleEngine.SetToOverStyle(null, vb0920, v9ba20);
            else {
                var v88b77 = new Array("OverLeft", "OverCenter", "OverCenter", "OverRight");
                v9ba20.style.backgroundImage = "url(" + wdd4b85.mb2224(vd4666, v88b77[v1260], true) + ")";
                v9ba20.style.backgroundRepeat = "repeat-x";
                if (v1260 == 3) v9ba20.style.backgroundPosition = "top right";
            }
            var ve5415 = parseFloat(v9ba20.currentStyle.borderWidth);
            if (!IS.ie) ve5415 = parseFloat(v9ba20.currentStyle.borderTopWidth);
            if (isNaN(ve5415)) ve5415 = 0;
            if (ve5415 > 0) {
                var v7ee81 = vd4666.ItemPadding - ve5415;
                if (v1260 == 0) {
                    var v9c032 = 1 - ve5415;
                    with (v9ba20.style) paddingLeft = paddingTop = paddingBottom = (v9c032 + "px");
                    if ((vc2870.Type == "Radio" || vc2870.Type == "CheckBox") && vc2870.Checked) {
                        var vfa939 = v9ba20.children[0];
                        if (vd4666.HighlightMode == "UseWebStyle") DynamicStyleEngine.SetToOverStyle(null, vd4666.CheckedItemStyle, vfa939);
                    }
                } else if (v1260 == 3) {
                    with (v9ba20.style) paddingRight = paddingTop = paddingBottom = (v7ee81 + "px");
                } else {
                    with (v9ba20.style) paddingTop = paddingBottom = (v7ee81 + "px");
                }
            }
        }
        if (vd6477.ClientSideEvents && vd6477.ClientSideEvents.OnMenuItemSelect != null) ISEvent.Raise(vd6477.ClientSideEvents.OnMenuItemSelect, vd6477.Id, v06b79, vc2870, v06b79.ActiveItem);
        v06b79.ActiveItemIndex = vc2870.Index;
        v06b79.ActiveItem = vc2870;
        vc2870.Selected = true;
        if (v06b79.ParentMenuItem != null && !v06b79.ParentMenuItem.IsSelected()) {
            v06b79.ParentMenuItem.Select(false);
        }
    },
    mc5149: function(v25f9) {
        if (v25f9 != null && v25f9.MenuControl.MenuWindowType == "Normal" && v25f9.Popup) {
            if (v25f9.ScrollEnabled) {
                var v34390 = v25f9.GetMenuBodyElement().parentElement;
                var ve8834 = v25f9.GetScrollElement("up");
                var v1a068 = v25f9.GetScrollElement("down");
                ve8834.style.display = "none";
                v1a068.style.display = "none";
                v34390.style.height = "auto";
            }
            v25f9.Popup._e.style.width = "auto";
            v25f9.Popup._e.style.height = "auto";
            v25f9.RuntimeWidth = v25f9.Popup._e.scrollWidth;
            v25f9.RuntimeHeight = v25f9.Popup._e.scrollHeight;
        }
    },
    m54215: function(v46095, vf7690) {
        var v65c9 = v46095.MenuControl;
        if (v46095.Popup == null) {
            if (!IS.ie || v65c9.MenuWindowType == "Popup") {
                if (v46095.ParentMenu == null) v46095.Popup = window.createPopup();
                else v46095.Popup = v46095.ParentMenu.GetDocument().parentWindow.createPopup();
            } else {
                var v80443 = new WindowInfo();
                v80443.DisplayPosition = "Bottom";
                v80443.DisplayType = "Normal";
                v80443.OffsetControlID = v65c9.Id;
                var v07c35 = new WindowPopup(v80443);
                v80443.Popup = v07c35;
                v07c35.Init();
                v46095.Popup = v07c35;
                v07c35.document.parentWindow = window;
                vbe985 = v07c35.document;
            }
        }
        if (IS.ie && v65c9.MenuWindowType == "Popup") {
            var v5ec60 = IS.GetTempIFrame();
            var vbe985 = v5ec60.contentWindow.document;
            vbe985.open("text/html", "replace");
            vbe985.write(vf7690);
            vbe985.close();
            v46095.RuntimeWidth = vbe985.body.scrollWidth;
            v46095.RuntimeHeight = vbe985.body.scrollHeight;
        }
        var v5e349 = v46095.GetDocument();
        v5e349.open("text/html", "replace");
        v5e349.write(vf7690);
        v5e349.close();
        if (IS.ie && v65c9.MenuWindowType == "Popup") v46095.Element = v5e349.body.firstChild;
        else {
            v46095.Element = v5e349._e.firstChild;
            v46095.RuntimeHeight = v46095.Popup._e.scrollHeight;
            v46095.RuntimeWidth = v46095.Popup._e.scrollWidth;
        }
        for (var ve405 = 0; ve405 < v46095.Items.length; ve405++) {
            var vb1116 = v46095.Items[ve405];
            if (vb1116.Type == "Template") {
                var v81710 = document.getElementById("mi_View" + vb1116.Name);
                if (v81710) {
                    var vcf49 = vb1116.GetContentElement();
                    vcf49.innerHTML = "";
                    vcf49.appendChild(v81710);
                    v81710.style.display = "";
                    v81710.style.visibility = "inherit";
                    v81710.style.position = "";
                }
            }
        }
        if (v65c9.UseCustomContent && v65c9.CustomContentElement != null) {
            var va4171 = v46095.GetMenuContainerElement();
            va4171.appendChild(v65c9.CustomContentElement);
        }
    },
    OnMenuClosed: function(vdb151) {
        var v28c31 = vdb151.Owner;
        var vfb260 = v28c31.ActiveItem;
        if (vfb260 != null && IS.moz && vfb260.KeepMenuVisible) return false;
        return true;
    },
    m0420: function() {
        if (window.screenLeft > window.screen.width) return true;
        return false;
    },
    mb9d83: function(vc2c92, v98e95, v8f751, v82f9) {
        var vd0834 = "";
        var v4ce9 = true;
        var v45491 = vc2c92.MenuControl;
        var v3c455 = 0;
        var vcab50 = 0;
        if (vc2c92) vd0834 = vc2c92.OffsetAlignment;
        if (vc2c92.IsOpen() && !v82f9) return;
        if (IS.ie && vc2c92 && vc2c92.OffsetElement) {
            var v9d098 = ISPosLib.getScreenLeft(vc2c92.OffsetElement) + ISPosLib.getWidth(vc2c92.OffsetElement);
            if (!wdd4b85.m0420() && v9d098 > window.screen.availWidth - 10 && vd0834.indexOf("Right") > -1) vd0834 = vd0834.replace(/Right/ig, "Left");
        }
        if (vc2c92.OffsetElement) {
            if (!IS.ie || v45491.MenuWindowType == "Popup") {
                v3c455 = ISPosLib.getScreenLeft(vc2c92.OffsetElement);
                vcab50 = ISPosLib.getScreenTop(vc2c92.OffsetElement);
            } else {
                v3c455 = ISPosLib.getLeft(vc2c92.OffsetElement);
                vcab50 = ISPosLib.getTop(vc2c92.OffsetElement);
            }
        }
        if (v45491.MenuWindowType == "Normal") wdd4b85.mc5149(vc2c92);
        if (!v98e95) {
            if (vc2c92.OffsetElement) {
                if (vc2c92.Direction == "Horizontal") {
                    if (vd0834.indexOf("Right") > -1) v98e95 = v3c455 + ISPosLib.getWidth(vc2c92.OffsetElement);
                    else if (vd0834.indexOf("Left") > -1) v98e95 = v3c455 - vc2c92.RuntimeWidth;
                } else {
                    if (vd0834.indexOf("Left") > -1) v98e95 = v3c455;
                    else if (vd0834.indexOf("Right") > -1) v98e95 = v3c455 + ISPosLib.getWidth(vc2c92.OffsetElement);
                }
            }
            if (v45491.IsRightToLeft && IS.ie) v98e95 = ISPosLib.getCalcRtlLeft(vc2c92.OffsetElement, v98e95);
        }
        if (!v8f751) {
            if (vc2c92.OffsetElement) {
                if (vc2c92.Direction == "Horizontal") {
                    if (vd0834.indexOf("Top") > -1) v8f751 = vcab50;
                    else v8f751 = vcab50 + ISPosLib.getHeight(vc2c92.OffsetElement);
                } else {
                    if (vd0834.indexOf("Bottom") > -1) v8f751 = vcab50 + ISPosLib.getHeight(vc2c92.OffsetElement);
                    else {
                        v8f751 = vcab50 - vc2c92.RuntimeHeight;
                        if (v8f751 < 0) v8f751 = 0;
                    }
                }
            }
        }
        if (vc2c92.ActiveItem != null) vc2c92.ActiveItem.Unselect();
        if (vc2c92.ParentMenuItem != null) {
            if (vc2c92.ParentMenuItem.QueueId > 0) vc2c92.ParentMenuItem.QueueId = -1;
        }
        if (vc2c92._NeedSizeRecalc) {
            wdd4b85.mdc190(vc2c92);
            vc2c92._NeedSizeRecalc = false;
        }
        if (!IS.ie || v45491.MenuWindowType == "Normal") {
            if (!IS.ie) {
                if (vc2c92.ParentMenu != null) {
                    var v45689 = vc2c92.ParentMenu.GetOpenSubMenu();
                    if (v45689) {
                        v45689.SubMenu.Hide();
                    }
                }
            }
            if ((!IS.ie || !vc2c92.OffsetElement) && !v45491.UseW3CPositioning) {
                if (IS.IsXHTMLDocType()) {
                    if (!IS.moz && !IS.opera) {
                        v98e95 += ISPosLib.getScrollLeft(document);
                        v8f751 += ISPosLib.getScrollTop(document);
                    }
                } else {
                    v98e95 += document.body.scrollLeft;
                    v8f751 += document.body.scrollTop;
                }
            }
            var vff556 = wdd4b85.md8e53(new OffsetLocation(v98e95, v8f751), vc2c92.Popup._e.firstChild, vc2c92.ParentMenu, IS.ie && v45491.MenuWindowType == "Normal", v45491);
            v98e95 = vff556.X;
            if (!v45491.DisableFullHeightScrolling) v8f751 = vff556.Y;
        }
        var vae15 = wdd4b85.mec665(vc2c92, v98e95, v8f751);
        if (vae15) {
            v98e95 = vae15.X;
            v8f751 = vae15.Y;
            vc2c92.RuntimeHeight = vae15.Height;
        }
        if (IS.ie && IS.GetIEVersion() < 7) {
            var v9e638 = vc2c92.GetStripElement();
            if (v9e638 && vc2c92.RuntimeHeight > 4) v9e638.style.height = vc2c92.RuntimeHeight - 4;
        }
        if (vc2c92.IsRootMenu()) {
            if (vc2c92._CloseIntervalId == -1) vc2c92._CloseIntervalId = setInterval(function() {
                wdd4b85.m1ae26(vc2c92);
            },
            100);
        }
        if (v45491 && v45491.GetType() == "WebContextMenu") v4ce9 = ISEvent.Raise(v45491.ClientSideEvents.OnShowMenu, v45491.Id, vc2c92, v98e95, v8f751, vc2c92.RuntimeWidth, vc2c92.RuntimeHeight);
        if (v4ce9) {
            if (typeof (v4ce9) == "object") {
                v98e95 = v4ce9.X;
                v8f751 = v4ce9.Y;
            }
            var v72011 = vc2c92.IsOpen();
            vc2c92.Popup.show(v98e95, v8f751, vc2c92.RuntimeWidth, vc2c92.RuntimeHeight);
            if (IS.ie && v45491.MenuWindowType == "Normal") vc2c92.SetActive();
            if (v45491.MenuAnimation && !v45491.SkipAnimation && !v72011) {
                if (v45491.AnimatedObj == null) {
                    var vfd876 = new ISAnimatedObject();
                    vfd876.OnCompleted = wdd4b85.m11517;
                    vfd876.Speed = v45491.AnimationSpeed;
                    vfd876.Type = (v45491.MenuAnimationMode == "Fading" ? "FadeIn" : "MenuSlideDown");
                    vfd876.StepInterval = v45491.AnimationInterval;
                    v45491.AnimatedObj = vfd876;
                }
                var ve3c99 = vc2c92.Element;
                wdd4b85.md5d15(vc2c92);
                if (v45491.MenuAnimationMode == "Sliding") {
                    if (!vc2c92.IsRootMenu()) v45491.AnimatedObj.Type = "MenuSlideRight";
                    else v45491.AnimatedObj.Type = "MenuSlideDown";
                    ve3c99 = ve3c99.parentElement;
                    ve3c99.removeAttribute("OriginalLeft");
                    ve3c99.removeAttribute("OriginalWidth");
                    ve3c99.removeAttribute("OriginalTop");
                    ve3c99.removeAttribute("OriginalHeight");
                    if (!IS.ie) {
                        ve3c99.OriginalTop = 0;
                        ve3c99.OriginalWidth = 0;
                        ve3c99.OriginalLeft = 0;
                        ve3c99.OriginalHeight = 0;
                    }
                }
                v45491.AnimatedObj.Owner = vc2c92;
                v45491.AnimatedObj.Element = ve3c99;
                v45491.AnimatedObj.Play();
            } else {
                if (v45491.MenuDropShadow) vc2c92.Element.style.filter = "progid:DXImageTransform.Microsoft.Shadow(color=Gray,direction=135, strength=2)";
            }
        }
    },
    m11517: function() {
        var v73031 = this.Owner;
        wdd4b85.md5d15(v73031);
        if (v73031.MenuControl.MenuDropShadow) v73031.Element.style.filter = "progid:DXImageTransform.Microsoft.Shadow(color=Gray,direction=135, strength=2)";
        this.IntervalId = -1;
    },
    md5d15: function(v37586) {
        v37586.Element.style.filter = "";
    },
    m1ae26: function(v5fe86) {
        if (!v5fe86.IsOpen()) {
            clearInterval(v5fe86._CloseIntervalId);
            v5fe86._CloseIntervalId = -1;
            var vdff86 = v5fe86.MenuControl;
            if (vdff86.OnRootMenuClosed != null) {
                if (typeof (vdff86.OnRootMenuClosed) == "string") ISEvent.Raise(vdff86.OnRootMenuClosed, v5fe86);
                else if (typeof (vdff86.OnRootMenuClosed) == "function") vdff86.OnRootMenuClosed(v5fe86);
            }
        }
    },
    mec665: function(v00e52, v35431, vfc625) {
        var vabe86 = window.screen.availHeight;
        var v3ca93 = v00e52.RuntimeHeight;
        var v2c969 = 0;
        var vc4936 = v00e52.MenuControl;
        if (!IS.ie || vc4936.MenuWindowType == "Normal") {
            if (IS.IsXHTMLDocType()) vabe86 = document.documentElement.clientHeight - 4;
            else vabe86 = document.body.clientHeight;
        }
        if (vc4936.DisableFullHeightScrolling) v3ca93 += (vfc625 - (!IS.ie ? window.screenTop : 0));
        if (v3ca93 > vabe86 && !vc4936.UseCustomContent) {
            var v91081 = v00e52.GetMenuBodyElement().parentElement;
            var vea051 = v00e52.GetScrollElement("up");
            var va0d14 = v00e52.GetScrollElement("down");
            vea051.style.display = "";
            va0d14.style.display = "";
            if (IS.safari) vabe86 -= 8;
            var ve7159 = vabe86 - vea051.style.posHeight - va0d14.style.posHeight - 8;
            if (vc4936.DisableFullHeightScrolling) ve7159 -= (vfc625 - (!IS.ie ? window.screenTop : 0));
            if (ve7159 < 0) ve7159 = 5;
            v91081.style.height = ve7159 + "px";
            v2c969 = vabe86 - 4;
            if (vc4936.DisableFullHeightScrolling) {
                v3ca93 = vfc625;
                v2c969 -= (vfc625 - (!IS.ie ? window.screenTop : 0) - (IS.safari ? 8 : 0));
            } else v3ca93 = 2;
            v00e52.ScrollEnabled = true;
            if (vc4936.MenuWindowType == "Normal") v3ca93 += document.body.scrollTop;
            return new Rectangle(v35431, v3ca93, null, v2c969);
        } else {
            if (v00e52.ScrollEnabled && vc4936.MenuWindowType == "Normal") {
                var v91081 = v00e52.GetMenuBodyElement().parentElement;
                var vea051 = v00e52.GetScrollElement("up");
                var va0d14 = v00e52.GetScrollElement("down");
                vea051.style.display = "none";
                va0d14.style.display = "none";
                v91081.style.height = "auto";
                v2c969 = v91081.offsetHeight;
                if (IS.IsXHTMLDocType()) v2c969 = v00e52.Popup._e.offsetHeight + 8;
                v00e52.ScrollEnabled = false;
                return new Rectangle(v35431, vfc625, null, v2c969);
            }
        }
    },
    md8e53: function(vc1647, v1e529, v5f844, v43d72, vcc169) {
        var vc3e91 = vc1647.Y;
        var v42650 = vc1647.X;
        if (!IS.ie || v43d72) {
            if (!v43d72) {
                vc3e91 -= window.screenTop;
                v42650 -= window.screenLeft;
            }
            var v2cb59 = document.body.clientHeight + ISPosLib.getScrollTop(document);
            var v22e69 = document.body.clientWidth;
            if (IS.IsXHTMLDocType()) {
                v2cb59 = document.documentElement.clientHeight + ISPosLib.getScrollTop(document);
                v22e69 = document.documentElement.clientWidth;
            }
            if (vc3e91 + ISPosLib.getHeight(v1e529) > v2cb59) {
                vc3e91 = ((v2cb59) - ISPosLib.getHeight(v1e529));
                if (v43d72) vc3e91 -= 4;
            }
            if (v42650 + (ISPosLib.getWidth(v1e529)) > v22e69) {
                if (!v5f844) v42650 = v22e69 - ISPosLib.getWidth(v1e529);
                else v42650 = ISPosLib.getLeft(v5f844.Popup._e.firstChild) - ISPosLib.getWidth(v1e529);
                if (v43d72) v42650 -= 4;
            }
            if (!v43d72) {
                vc3e91 += window.screenTop;
                v42650 += window.screenLeft;
            } else {
                if (vc3e91 < 0) vc3e91 = 2;
            }
        }
        return new OffsetLocation(v42650, vc3e91);
    },
    m94e30: function(vf2986) {
        var ve5883 = "<html><head>" + "<style type=\"text/css\">" + vf2986.MenuControl.GetStyleString() + "</style>" + "</head><body style='margin:0px;padding:0px;overflow:hidden;border:0px'>";
        if (IS.ie && vf2986.MenuControl.MenuWindowType == "Popup") return ve5883;
        else return "";
    },
    m78919: function(vcab86) {
        var v26986 = "</body></html>";
        if (IS.ie && vcab86.MenuControl.MenuWindowType == "Popup") return v26986;
        else return "";
    },
    m40c16: function(va7297, v64c6) {
        if ((va7297.GetType() == "WebContextMenu" && va7297.IntegratedToBar) && !v64c6) {
            var v30f86;
            if (va7297.GetType() == "WebContextMenu") v30f86 = va7297._MenuCommand != null ? va7297._MenuCommand._Bar : (va7297._ToolCommand != null ? va7297._ToolCommand._Bar : null);
            if (v30f86 != null) return v30f86.GetCachedMenuStyleString(va7297);
            else if (va7297 != null) return va7297.GetCachedMenuStyleString(va7297);
        }
        var v57648 = va7297.MenuStyleSettings;
        var v0dd78 = new Array("ItemStyle", "FrameStyle", "DisabledItemStyle", "SeparatorStyle", "CheckedItemStyle", "CustomStyle");
        var v32895 = "";
        for (var v13468 = 0; v13468 < v0dd78.length; v13468++) {
            var v69c17 = v0dd78[v13468];
            if (typeof (v57648[v69c17]) == "string") {
                if (v57648[v69c17] != "") {
                    v32895 += wdd4b85.ma1537(v57648[v69c17]);
                }
            } else if (typeof (v57648[v69c17]) == "object") {
                var va5c93 = v57648[v69c17];
                if (va5c93.Normal != "") v32895 += wdd4b85.ma1537(va5c93.Normal);
                if (va5c93.Over != "") v32895 += wdd4b85.ma1537(va5c93.Over);
                if (va5c93.Active != "") v32895 += wdd4b85.ma1537(va5c93.Active);
            }
        }
        return v32895;
    },
    ma1537: function(va3f32) {
        return IS.GetStyleText(null, va3f32);
    },
    mb2224: function(vb6488, v80355, v12752) {
        var v3ed32 = vb6488;
        if (v12752) v3ed32 = vb6488.ImagesSettings;
        //if (vb6488.UseSmartWebResources) return "ISRes.axd?D/" + v3ed32[v80355];
        else return v3ed32[v80355];
    },
    m51d45: function(v4bd72, vba795, va470) {
        if (IS.ie || (IS.moz && !IsGecko30())) {
            if (va470) return vba795;
            else return "<font face='Webdings' style='font-size: 8pt'>" + vba795 + "</font>";
        } else {
            var vb4f72 = "";
            if (vba795 == "6") vb4f72 = "arrow_down.gif";
            else if (vba795 == "=") vb4f72 = "radio.gif";
            else if (vba795 == "a") vb4f72 = "checkbox.gif";
            else if (vba795 == "4") vb4f72 = "arrow_right.gif";
            else if (vba795 == "5") vb4f72 = "arrow_up.gif";
            //if (v4bd72.UseSmartWebResources) vb4f72 = "ISRes.axd?D/" + vb4f72;
            //else vb4f72 = v4bd72.Parent.ImagesDirectory + vb4f72;
            //Added by DF
            if (v4bd72.Parent != null) vb4f72 = v4bd72.Parent.ImagesDirectory + vb4f72;
            else vb4f72 = "/_LAYOUTS/CorasWorks.Central.Administration/Resources/Intersoft/Images/WebDesktop/" + vb4f72;
            
            return "<img valign='absmiddle' height='16' src='" + vb4f72 + " ' />";
        }
    },
    m68e53: function(v15682) {
        var vefd43 = v15682.MenuControl;
        var vf8c34 = vefd43.MenuStyleSettings;
        var v01837 = "<table class='" + vf8c34.FrameStyle + "' border='0' cellpadding='1' cellspacing='0' style='position: relative;'>";
        v01837 += "<tr>";
        v01837 += "<td valign='top'>";
        v01837 += "<div id='" + v15682.GetId() + "_container' style='position: relative;";
        if (v15682.IconViewMode) v01837 += "width:" + v15682.Width + ";";
        v01837 += "'>";
        if (vefd43.GetType() == "WebContextMenu" && vefd43.UseCustomContent) {
            v01837 += "</div></td></tr></table>";
            return v01837;
        }
        if (vf8c34.HasBackgroundStrip && !v15682.IconViewMode) {
            v01837 += "<div id='" + v15682.GetId() + "_strip' style='position: absolute; left: 0px; top: 0px;";
            v01837 += "width: " + vf8c34.BackgroundStripWidth + "px";
            if (IS.ie) {
                if (IS.IsXHTMLDocType()) {
                    v01837 += "; height: 100%";
                } else {
                    if (IS.GetIEVersion() < 7) v01837 += ";height:auto";
                    else v01837 += ";height:expression(this.parentElement.offsetHeight)";
                }
            } else v01837 += ";height:100%";
            if (vf8c34.BackgroundStripColor2 == "" || vf8c34.BackgroundStripColor2 == "000000") {
                v01837 += ";background-color:#" + vf8c34.BackgroundStripColor;
            } else {
                if (IS.ie) v01837 += ";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF" + vf8c34.BackgroundStripColor + ", endColorstr=#FF" + vf8c34.BackgroundStripColor2 + ", GradientType=1)";
                else v01837 += ";background-color:#" + vf8c34.BackgroundStripColor2;
            }
            if (vf8c34.BackgroundStripImage != "") v01837 += ";background-image: url(" + wdd4b85.mb2224(vf8c34, "BackgroundStripImage") + "); background-repeat: repeat-y";
            v01837 += "'";
            if (vf8c34.BackgroundStripStyle != "") v01837 += " class='" + vf8c34.BackgroundStripStyle + "'";
            v01837 += ">";
            v01837 += "</div>";
        }
        v01837 += "<div id='" + v15682.GetId() + "_scroll_up' align='center' disabled style='height:18px;position:relative;display:none;cursor:default'>";
        v01837 += wdd4b85.m51d45(vf8c34, "5");
        v01837 += "</div>";
        v01837 += "<div style='position: relative; overflow: hidden;'>";
        v01837 += "<table id='" + v15682.GetId() + "_body' border='0' cellpadding='0' cellspacing='0' style='cursor:default; width:100%'>";
        if (v15682.IconViewMode) {
            var v91a49 = v15682.GetGroupItems();
            for (var v8c978 = 0; v8c978 < v91a49.length; v8c978++) {
                var v6b544 = v91a49[v8c978];
                if (v6b544.constructor == Array) v01837 += wdd4b85.m00428(v6b544);
                else v01837 += wdd4b85.mec179(v6b544);
            }
        } else {
            for (var v8c978 = 0; v8c978 < v15682.Items.length; v8c978++) {
                v01837 += wdd4b85.mec179(v15682.Items[v8c978]);
            }
        }
        v01837 += "</table>";
        v01837 += "</div>";
        v01837 += "<div id='" + v15682.GetId() + "_scroll_down' align=center style='height:18px;position:relative;display:none;cursor:default'>";
        v01837 += wdd4b85.m51d45(vf8c34, "6");
        v01837 += "</div>";
        v01837 += "</div>";
        v01837 += "</td></tr></table>";
        return wdd4b85.m94e30(v15682) + v01837 + wdd4b85.m78919(v15682);
    },
    m00428: function(v3022) {
        var v89e82 = v3022[0].OwnerMenu;
        var vfc853 = v89e82.MenuControl;
        var vbb871 = vfc853.MenuStyleSettings;
        var v33f73 = "<tr type='GroupItem'>";
        v33f73 += "<td>";
        v33f73 += "</td>";
        v33f73 += "<td colspan=3 width='" + v89e82.Width + "'>";
        for (var v8ac77 = 0; v8ac77 < v3022.length; v8ac77++) {
            var vff362 = v3022[v8ac77];
            v33f73 += wdd4b85.me8f5(vff362);
        }
        v33f73 += "</td>";
        v33f73 += "</tr>";
        return v33f73;
    },
    me8f5: function(v38093) {
        var v4fe74 = "<span type='MenuItem' name='" + v38093.Name + "' ";
        var v1661 = v38093.OwnerMenu;
        var v94875 = v1661.MenuControl;
        var vb7317 = v94875.MenuStyleSettings;
        if ((v38093.Type == "Radio" || v38093.Type == "CheckBox") && v38093.Checked) v4fe74 += "class='" + vb7317.CheckedItemStyle.Normal + "'";
        if (v38093.Tooltip != "") v4fe74 += " title='" + v38093.Tooltip + "'";
        v4fe74 += " style='width:" + (v94875.ImageSize.Width + 4) + "px; height:" + (v94875.ImageSize.Width + 4) + "px;text-align:center;padding-top:1px;margin-top:2px;margin-right:2px;";
        if (IS.moz) v4fe74 += "display:-moz-inline-box;";
        else if (!IS.ie) v4fe74 += "display:block;";
        v4fe74 += "'>";
        if ((v38093.Type == "Radio" || v38093.Type == "CheckBox") && v38093.ImageURL == "") v38093.UseFontImage = true;
        if (v38093.UseFontImage) {
            v4fe74 += "<span>";
            var v14e22 = "";
            if (v38093.Type == "Radio" && v38093.Checked) v14e22 = "=";
            else if (v38093.Type == "CheckBox" && v38093.Checked) v14e22 = "a";
            else v4fe74 += "<font face=Webdings style='font-size: 8pt'>" + v38093.ImageURL + "</font>";
            if (v14e22 != "") v4fe74 += wdd4b85.m51d45(vb7317, v14e22);
            v4fe74 += "</span>";
        } else {
            v4fe74 += "<img align='absmiddle' width=" + v94875.ImageSize.Width + " height=" + v94875.ImageSize.Height + " ";
            if (v38093.ImageURL != "") {
                v4fe74 += "src='" + v38093.ImageURL + "' ";
                if (!v38093.Enabled) v4fe74 += "style='filter:Alpha(Opacity=50), Gray()'";
            } else v4fe74 += "style='visibility: hidden'";
            v4fe74 += "/>";
        }
        if (v38093.HasSubMenu()) v4fe74 += "<span>" + wdd4b85.m51d45(vb7317, "6") + "</span>";
        v4fe74 += "</span>";
        return v4fe74;
    },
    mec179: function(v5c643) {
        var v78332 = v5c643.OwnerMenu;
        var v46930 = v78332.MenuControl;
        var v9c575 = v46930.MenuStyleSettings;
        var vd4f2 = "";
        var vea720 = v9c575.ItemStyle.Normal;
        vd4f2 += "<tr type='MenuItem' name='" + v5c643.Name + "'";
        if (v5c643.Tooltip != "") vd4f2 += " title='" + v5c643.Tooltip + "'";
        if (!v5c643.Visible) vd4f2 += " style='display: none'";
        vd4f2 += ">";
        if (!v5c643.Enabled) vea720 = v9c575.DisabledItemStyle.Normal;
        if (v5c643.Type == "Separator") {
            vd4f2 += "<td></td>";
        } else if (v5c643.OwnerMenu.IconViewMode) {
            vd4f2 += "<td class='" + vea720 + "' width=1 style='border-right-style: none; padding: 1px'><img style='visibility:hidden; width:1px; height:" + (v46930.ImageSize.Height + 4) + "' /></td>";
        } else if (v5c643.Type == "Custom") {
            vd4f2 += "<td class='" + v9c575.CustomStyle + "' colSpan=4>";
            if (v5c643.ImageURL != "") {
                vd4f2 += "<img align='absmiddle' ";
                vd4f2 += "src='" + v5c643.ImageURL + "' ";
                vd4f2 += "/> &nbsp;";
            }
            vd4f2 += v5c643.Text + "</td>";
            return vd4f2 + "</tr>";
        } else {
            vd4f2 += "<td valign=absmiddle class='" + vea720 + "' style='border-right-style: none; padding: 1px' ";
            if (!v5c643.Enabled) vd4f2 += "disabled ";
            vd4f2 += ">";
            vd4f2 += "<span ";
            if ((v5c643.Type == "Radio" || v5c643.Type == "CheckBox") && v5c643.Checked) {
                vd4f2 += "class='" + (v9c575.HighlightMode == "UseWebStyle" ? v9c575.CheckedItemStyle.Normal : "") + "'";
            }
            vd4f2 += " style='width:" + (v9c575.IconCellWidth) + "px; height:" + (parseFloat(v46930.ImageSize.Width) + 4) + "px; text-align:center; padding-top:1px; display:block;";
            if ((v5c643.Type == "Radio" || v5c643.Type == "CheckBox") && v5c643.Checked && v9c575.HighlightMode == "UseComplexImages") {
                vd4f2 += "background-image: url(" + wdd4b85.mb2224(v9c575, "ActiveIconCell", true) + ");" + "background-repeat: no-repeat; background-position: top left; margin-top: -1px; height: 22px;";
                if (IS.ie) vd4f2 += "padding-top: 3px; padding-right: 3px";
            }
            if (IS.moz) {
                if (IsGecko30()) vd4f2 += "display: inline-block;";
                else vd4f2 += "display:-moz-inline-block;";
            } else if (IS.safari || IS.opera) vd4f2 += "display:block;";
            vd4f2 += "'>";
            if ((v5c643.Type == "Radio" || v5c643.Type == "CheckBox") && v5c643.ImageURL == "") v5c643.UseFontImage = true;
            if (v5c643.UseFontImage) {
                vd4f2 += "<span>";
                var v7ad95 = "";
                if (v5c643.Type == "Radio" && v5c643.Checked) v7ad95 = "=";
                else if (v5c643.Type == "CheckBox" && v5c643.Checked) v7ad95 = "a";
                else vd4f2 += "<font face=Webdings style='font-size: 8pt'>" + v5c643.ImageURL + "</font>";
                if (v7ad95 != "") vd4f2 += wdd4b85.m51d45(v9c575, v7ad95);
                vd4f2 += "</span>";
            } else {
                var va261 = "";
                if (v46930.DrawImageBackground) va261 = "; background-color: " + v9c575.BackgroundStripColor;
                vd4f2 += "<img align='absmiddle' width=" + v46930.ImageSize.Width + " height=" + v46930.ImageSize.Height + " ";
                if (v5c643.ImageURL != "") {
                    vd4f2 += "src='" + v5c643.ImageURL + "' ";
                    if (!v5c643.Enabled) vd4f2 += "style='filter:" + (v46930.SkipAlpha ? "" : "Alpha(Opacity=50),") + " Gray()" + va261 + "'";
                } else vd4f2 += "style='visibility: hidden'";
                vd4f2 += "/>";
            }
            vd4f2 += "</span>";
            vd4f2 += "</td>";
        }
        if (v5c643.Type == "Separator") {
            vd4f2 += "<td colSpan=3 noWrap style='padding-left:2px; padding-bottom:0px;padding-right:0px;padding-top:2px'><div ";
            if (v9c575.SeparatorStyle != "") vd4f2 += "class='" + v9c575.SeparatorStyle + "' style='width:100%; font-size:0.01em;' ";
            else vd4f2 += "style='height:1px; width:100%; font-size:0.01em; border-top: gray 1px solid' ";
            vd4f2 += "></div></td>";
        } else {
            vd4f2 += "<td" + (v5c643.Type == "Template" ? "" : " nowrap") + " class='" + vea720 + "' style='border-left-style: none; padding-top: " + v9c575.ItemPadding + "px; padding-bottom: " + v9c575.ItemPadding + "px;";
            vd4f2 += "border-right-style: none; padding-left: " + v9c575.ContentPadding + "px; padding-right: " + v9c575.ContentPadding + "px' ";
            if (!v5c643.Enabled) vd4f2 += "disabled ";
            if (v5c643.Tooltip != "") vd4f2 += "title='" + v5c643.Tooltip + "' ";
            vd4f2 += ">";
            vd4f2 += wdd4b85.md3237(v5c643);
            vd4f2 += "</td>";
            vd4f2 += "<td align=right class='" + vea720 + "' style='border-left-style: none; border-right-style: none; padding:" + v9c575.ItemPadding + "px; padding-left:" + (v9c575.ContentPadding + 2) + "px' ";
            if (!v5c643.Enabled) vd4f2 += "disabled ";
            vd4f2 += ">";
            vd4f2 += v5c643.Shortcut.IsEmpty() ? "&nbsp;" : v5c643.Shortcut.GetString();
            vd4f2 += "</td>";
            vd4f2 += "<td class='" + vea720 + "' style='border-left-style: none; padding:" + v9c575.ItemPadding + "px'>";
            if (v5c643.SubMenu.Items.length > 0) vd4f2 += wdd4b85.m51d45(v9c575, v78332.IconViewMode ? "6" : "4");
            else vd4f2 += "&nbsp;";
            vd4f2 += "</td>";
        }
        vd4f2 += "</tr>";
        return vd4f2;
    },
    md3237: function(v53518) {
        var v0a062 = v53518.Text;
        if (v0a062 == "") v0a062 = "&nbsp;";
        else {
            if (v53518.AccessKey != "") {
                var v63598 = v0a062.toLowerCase();
                var vaaa13 = v53518.AccessKey.toLowerCase();
                if (v63598.indexOf(vaaa13) > -1) {
                    var vfa870 = v63598.indexOf(vaaa13);
                    v0a062 = v0a062.substring(0, vfa870) + "<u>" + v0a062.substring(vfa870, vfa870 + 1) + "</u>" + v0a062.substring(vfa870 + 1);
                }
            }
        }
        return v0a062;
    },
    m1af2: function(v8d448) {
        var vdc818 = true;
        var v0f877 = v8d448.OwnerMenu.MenuControl;
        if (!v8d448.Enabled || v0f877.ClassName == null) return false;
        if (v8d448.Type == "CheckBox") {
            v8d448.SetChecked(!v8d448.Checked);
        } else if (v8d448.Type == "Radio") {
            v8d448.SetChecked(true);
        }
        if (v8d448.OnClick != null) {
            if (typeof (v8d448.OnClick) == "string") vdc818 = ISEvent.Raise(v8d448.OnClick, v8d448);
            else if (typeof (v8d448.OnClick) == "function") vdc818 = v8d448.OnClick(v8d448);
            if (typeof (vdc818) == "undefined") vdc818 = true;
            if (!v8d448.KeepMenuVisible) {
                if (v0f877.HideAll) v0f877.HideAll();
                else {
                    if (!vdc818) return;
                }
            }
        }
        if (vdc818 && v0f877.GetType() == "WebContextMenu") {
            vdc818 = ISEvent.Raise(v0f877.ClientSideEvents.OnMenuItemClick, v0f877.Id, v8d448);
            if (v0f877.ClientSideEvents.OnMenuItemClick != "" && vdc818) {
                if (!v8d448.KeepMenuVisible) {
                    if (v0f877.HideAll) v0f877.HideAll();
                    else return;
                }
            }
        }
        if (vdc818 && v8d448.TargetURL != "") {
            if (v8d448.TargetFrame == "") document.location.href = v8d448.TargetURL;
            else {
                var va1998 = v8d448.TargetFrame;
                if (va1998 == "Blank" || va1998 == "Parent" || va1998 == "Search" || va1998 == "Self" || va1998 == "Top" || va1998 == "UseBase") va1998 = "_" + va1998.toLowerCase();
                window.open(v8d448.TargetURL, va1998);
            }
            if (!v8d448.KeepMenuVisible) v8d448.OwnerMenu.MenuControl.HideAll();
        }
        if ((vdc818 || typeof (vdc818) == "undefined") && v0f877.GetType() == "WebContextMenu" && !v0f877.IntegratedToBar) {
            var v40974 = v8d448.AutoPostBack;
            if (v40974 == "Default") v40974 = v0f877.AutoPostBack;
            if (v40974 == "Yes") {
                v0f877.HideAll();
                __doPostBack(v0f877.ServerUniqueID, "ItemClick:" + wdd4b85.mb4c82(v8d448));
            }
        }
    },
    mb4c82: function(vcb923) {
        var v96639 = "";
        var vcc993 = vcb923;
        while (vcc993.Parent != null && vcc993._Type == "WebMenuItem") {
            v96639 = vcc993.Name + ";" + v96639;
            vcc993 = vcc993.Parent;
        }
        return v96639;
    },
    m16124: function(vcbf95) {
        if (vcbf95 == null || vcbf95 == window) vcbf95 = this;
        var vb3759 = vcbf95.Element;
        if (!vb3759) return;
        var v5503 = vcbf95.GetDocument();
        if (!v5503 || vcbf95.Popup == null) return;
        var v9236 = vcbf95.GetContentWindow();
        Listener.Unload(vb3759);
        Listener.Unload(v5503);
        Listener.Unload(v9236);
        Listener.Unload(window);
        if (vcbf95.Popup) {
            v5503.open("text/plain", "replace");
            v5503.write("");
            v5503.close();
        }
        vcbf95.Popup = null;
    },
    mb6568: function(vc5134, va8b92) {
        var v4ab78 = vc5134.GetMenuBodyElement().parentElement;
        if (va8b92 == "down") v4ab78.scrollTop += 20;
        else v4ab78.scrollTop -= 20;
        wdd4b85.mef458(vc5134);
    },
    mef458: function(vb9f70) {
        var vcb470 = vb9f70.GetMenuBodyElement().parentElement;
        if (vcb470.scrollTop == 0) vb9f70.GetScrollElement("up").disabled = true;
        else vb9f70.GetScrollElement("up").disabled = false;
        if (vcb470.scrollHeight - vcb470.clientHeight <= vcb470.scrollTop) vb9f70.GetScrollElement("down").disabled = true;
        else vb9f70.GetScrollElement("down").disabled = false;
    },
    mb4565: function(v49b89) {
        for (var v15770 = 0; v15770 < v49b89.Items.length; v15770++) {
            var v15261 = v49b89.Items[v15770];
            if (v15261.HasSubMenu()) {
                wdd4b85.mb4565(v15261.SubMenu);
                ISDeleteObject(v15261.SubMenu);
            }
        }
        wdd4b85.m16124(v49b89);
        v49b89.Items = null;
        v49b89.Items = new ISArray();
        v49b89.Items.Parent = v49b89;
        v49b89.ActiveItem = v49b89.Element = null;
        v49b89.ActiveItemIndex = -1;
        v49b89.Initialized = false;
    },
    mdc190: function(vf549) {
        if (IS.ie && vf549.MenuControl.MenuWindowType == "Popup") {
            var vbdb89 = IS.GetTempIFrame();
            var v98671 = vbdb89.contentWindow.document;
            var vb2343 = vf549.GetDocument().body.parentElement.outerHTML;
            v98671.open("text/html", "replace");
            v98671.write(vb2343);
            v98671.close();
            vf549.RuntimeWidth = v98671.body.scrollWidth;
            vf549.RuntimeHeight = v98671.body.scrollHeight;
        }
    },
    m60394: function(va680) {
        var v66128 = va680.OwnerMenu;
        var v88490 = null;
        var vda377 = "";
        var vbe539 = v66128.GetMenuBodyElement();
        var vb8616 = v66128.GetDocument();
        if (!v66128._TempDiv) v66128._TempDiv = vb8616.createElement("DIV");
        v88490 = v66128._TempDiv;
        if (v66128.IconViewMode && va680.IsUsingImageIconViewMode()) vda377 = wdd4b85.me8f5(va680);
        else vda377 = wdd4b85.mec179(va680);
        v88490.innerHTML = "<table>" + vda377 + "</table>";
        el = v88490.children[0].rows[0];
        vbe539.tBodies[0].appendChild(el);
        v66128._NeedSizeRecalc = true;
        return el;
    },
    m46a56: function(v1eb20, vecf38) {
        var v8d00 = wdd4b85.m60394(v1eb20);
        var vee329 = v1eb20.OwnerMenu.Items[vecf38];
        v1eb20.Element = v8d00;
        if (vee329 != null) {
            var vb7413 = vee329.GetElement();
            if (vb7413 != null && v8d00 != null) {
                var v75222 = v8d00.parentElement.parentElement;
                v75222.moveRow(v8d00.rowIndex, vb7413.rowIndex);
            }
        }
    },
    mf6029: function(v37055) {
        var v20c20 = v37055.OwnerMenu;
        var v12038 = v37055.GetElement();
        if (v12038) v12038.removeNode(true);
        if (v37055.HasSubMenu() && v37055.SubMenu.Popup != null) v37055.SubMenu.Destroy();
        v20c20._NeedSizeRecalc = true;
    },
    m44083: function(vcef39, vab848) {
        var v15955 = null;
        if (vab848.GetType() == "WebContextMenu") v15955 = vab848.RootMenu;
        else if (vab848.GetType() == "WebMenuItem") v15955 = vab848.SubMenu;
        else if (vab848.GetType() == "WebMenu") v15955 = vab848;
        for (var vcf88 = 0; vcf88 < vcef39.length; vcf88++) {
            var vc5099 = vcef39[vcf88];
            vc5099.OwnerMenu = v15955;
            vc5099.Collection = v15955.Items;
            vc5099.Index = vcf88;
            if (vc5099.Items.length > 0) wdd4b85.m44083(vc5099.Items, vc5099);
        }
    }
};
if (typeof (RegisterKeyboardHandler) == "function") RegisterKeyboardHandler();
if (typeof (Sys) != "undefined") Sys.Application.notifyScriptLoaded();
