Index: branches/RC/kernel/admin_templates/incs/fw_menu.js =================================================================== diff -u -N --- branches/RC/kernel/admin_templates/incs/fw_menu.js (revision 8929) +++ branches/RC/kernel/admin_templates/incs/fw_menu.js (revision 0) @@ -1,745 +0,0 @@ -/** - * fw_menu 24OCT2000 Version 4.0 - * John Ahlquist, October 2000 - * Copyright (c) 2000 Macromedia, Inc. - * - * based on menu.js - * by gary smith, July 1997 - * Copyright (c) 1997-1999 Netscape Communications Corp. - * - * Netscape grants you a royalty free license to use or modify this - * software provided that this copyright notice appears on all copies. - * This software is provided "AS IS," without a warranty of any kind. - * - * Modified By Intechnic Corporation for use in In-Portal - * 6/28/02 - * - */ -function Menu(label) { - this.version = "990702 [xMenu; fw_menu.js]"; - this.type = "Menu"; - this.menuWidth = 0; - this.menuItemHeight = 0; - this.fontSize = 11; - this.fontWeight = "normal"; - this.fontFamily = "helvetica, arial, verdana, helvetica"; - this.fontColor = "#000000"; - this.fontColorHilite = "#000000"; - this.bgColor = "#555555"; - this.menuBorder = 1; - this.menuItemBorder = 0; - this.menuItemBgColor = "#f0f1eb"; - this.menuLiteBgColor = "#ffffff"; - this.menuBorderBgColor = "#777777"; - this.menuHiliteBgColor = "#e0e0da"; - this.menuContainerBgColor = "#cccccc"; - this.imagePath = img_path.replace('#MODULE#', 'core'); - this.childMenuIcon = "menu_arrow.gif"; - this.items = new Array(); - this.actions = new Array(); - this.types = new Array(); //for check/radio type to show pics - this.childMenus = new Array(); - - this.hideOnMouseOut = true; - - this.addMenuItem = addMenuItem; - this.addMenuSeparator = addMenuSeparator; - this.writeMenus = writeMenus; - this.FW_showMenu = FW_showMenu; - this.onMenuItemOver = onMenuItemOver; - this.onMenuItemAction = onMenuItemAction; - this.hideMenu = hideMenu; - this.hideChildMenu = hideChildMenu; - - label = RemoveTranslationLink(label); - if (!window.menus) window.menus = new Array(); - this.label = label || "menuLabel" + window.menus.length; - window.menus[this.label] = this; - window.menus[window.menus.length] = this; - if (!window.activeMenus) window.activeMenus = new Array(); -} - -function addMenuItem(label, action, type) -{ - if( typeof(label) == 'string' ) label = RemoveTranslationLink(label); - if( isset(type) ) type = parseInt(type); - this.items[this.items.length] = label; - this.actions[this.actions.length] = action; - switch(type) - { - case 1: - this.types[this.types.length] = this.imagePath+'check_on.gif'; - break; - case 2: - this.types[this.types.length] = this.imagePath+'menu_dot.gif'; - break; - default: - this.types[this.types.length] = ''; - } -} - -function addMenuSeparator() { - this.items[this.items.length] = "separator"; - this.actions[this.actions.length] = ""; - this.types[this.types.length] = ""; - this.menuItemBorder = 0; -} - -// For NS6. -function FIND(item,called_from) -{ - if (document.all) return(document.all[item]); - if (document.getElementById) return(document.getElementById(item)); - return(false); -} - -function writeMenus(container_id) { - - if (window.triedToWriteMenus) return; - var container = null; - - if (!container_id && document.layers) { - window.delayWriteMenus = this.writeMenus; - var timer = setTimeout('delayWriteMenus()', 100); - container = new Layer(100); - clearTimeout(timer); - } else if (document.all || document.hasChildNodes) { - if( !isset(container_id) ) container_id = 'menuContainer'; - container = FIND(container_id); - if (!container) - { - container = document.createElement('SPAN'); - container.id = container_id; - document.body.appendChild(container); - container = FIND(container_id); - } - else - { - container.innerHTML = ''; - } - } - - window.fwHideMenuTimer = null; - if (!container) return; window.triedToWriteMenus = true; - container.isContainer = true; - container.menus = new Array(); - - for (var i=0; i