/**
* fw_fwmenu 24OCT2000 Version 4.0
* John Ahlquist, October 2000
* Copyright (c) 2000 Macromedia, Inc.
*
* based on fwmenu.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.
*/
function fwmenu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh) {
this.version = "990702 [fwmenu; fwmenu.js]";
this.type = "fwmenu";
this.fwmenuWidth = mw;
this.fwmenuItemHeight = mh;
this.fontSize = fs||12;
this.fontWeight = "plain";
this.fontFamily = fnt||"arial,helvetica,verdana,sans-serif";
this.fontColor = fclr||"#000000";
this.fontColorHilite = fhclr||"#557A9C";
this.bgColor = "#557A9C";
this.fwmenuBorder = 2;
this.fwmenuItemBorder = 2;
this.fwmenuItemBgColor = bg||"##557A9C";
this.fwmenuLiteBgColor = "#557A9C";
this.fwmenuBorderBgColor = "#CBD0DE";
this.fwmenuHiliteBgColor = bgh||"#000084";
this.fwmenuContainerBgColor = "#cccccc";
this.childfwmenuIcon = "arrows.gif";
this.items = new Array();
this.actions = new Array();
this.childfwmenus = new Array();
this.hideOnMouseOut = true;
this.addfwmenuItem = addfwmenuItem;
this.addfwmenuSeparator = addfwmenuSeparator;
this.writefwmenus = writefwmenus;
this.FW_showfwmenu = FW_showfwmenu;
this.onfwmenuItemOver = onfwmenuItemOver;
this.onfwmenuItemAction = onfwmenuItemAction;
this.hidefwmenu = hidefwmenu;
this.hideChildfwmenu = hideChildfwmenu;
if (!window.fwmenus) window.fwmenus = new Array();
this.label = label || "fwmenuLabel" + window.fwmenus.length;
window.fwmenus[this.label] = this;
window.fwmenus[window.fwmenus.length] = this;
if (!window.activefwmenus) window.activefwmenus = new Array();
}
function addfwmenuItem(label, action) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
}
function addfwmenuSeparator() {
this.items[this.items.length] = "separator";
this.actions[this.actions.length] = "";
this.fwmenuItemBorder = 0;
}
// For NS6.
function FIND(item) {
if (document.all) return(document.all[item]);
if (document.getElementById) return(document.getElementById(item));
return(false);
}
function writefwmenus(container) {
if (window.triedToWritefwmenus) return;
if (!container && document.layers) {
window.delayWritefwmenus = this.writefwmenus;
var timer = setTimeout('delayWritefwmenus()', 250);
container = new Layer(100);
clearTimeout(timer);
} else if (document.all || document.hasChildNodes) {
document.writeln('');
container = FIND("fwmenuContainer");
}
window.fwHidefwmenuTimer = null;
if (!container) return;
window.triedToWritefwmenus = true;
container.isContainer = true;
container.fwmenus = new Array();
for (var i=0; i