/**
* mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 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.
*/
// JanB 2001-2002.
var w=window;
var d=document;
var nav=navigator.appName.indexOf("Microsoft");
var referrer=top.document.referrer
var D=new Date();
var Exp=new Date(); Ta=(D.getYear()<1900)?1903:3; Exp.setYear(D.getYear()+Ta);
function STBinit()
{
STBs=new String();
STBs=cookie("PopupMin");
Ta=new Array();
if(STBs!=null)
{
Ta=STBs.split("&");
}
STBa=new Array();
for(x in Ta)
{
Tb=new Array();Tb=Ta[x].split(":");STBa[Tb[0]]=Tb[1];
}
}
function SetC(n)
{
if(typeof(STBa)!="object")
STBinit();
d.write((STBa[n]==1)?"
":"
");
}
function STB(n)
{
STBs=new String();
STBa[n]=(STBa[n]==1)?0:1;
Exp=new Date();
Ta=1;
Ta+=(D.getYear()<1900)?1900:0;
Exp.setYear(D.getYear()+Ta);
for(id in STBa)
{
STBs+=(STBa[id]==1)?"&"+id+":1":"";
}
d.cookie="PopupMin="+escape(STBs.substr(1))+"; expires="+Exp.toGMTString();
if(nav>=0)
{
Ta=eval(n).style.display;
switch(Ta)
{
case "block": eval(n).style.display = "none";
break;
case "": eval(n).style.display = "none";
break;
default : eval(n).style.display = "block";
}
}
else
{ Ta=eval(n).style.display;
switch(Ta)
{
case "block": eval(n).style.display = "none";
break;
case "": eval(n).style.display = "none";
break;
default : eval(n).style.display = "";
}
}
}
function cookie(n)
{
Ta=d.cookie.indexOf(n+"=");
Tb=Ta+n.length+1;
if((Ta==-1)||((!Ta)&& (n != d.cookie.substring(0,n.length)))) return null;
Tc=d.cookie.indexOf(";",Tb);
if(Tc==-1)Tc=d.cookie.length;
return unescape(d.cookie.substring(Tb,Tc));
}
function cookie_s(n,v,e,r)
{
d.cookie=escape(n)+"="+escape(v)+"; expires="+e.toGMTString();
if(r)d.location.reload();
}
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
{
this.version = "020320 [Menu; mm_menu.js]";
this.type = "Menu";
this.menuWidth = mw;
this.menuItemHeight = mh;
this.fontSize = fs;
this.fontWeight = "plain";
this.fontFamily = fnt;
this.fontColor = fclr;
this.fontColorHilite = fhclr;
this.bgColor = "#555555";
this.menuBorder = 1;
this.menuBgOpaque=opq;
this.menuItemBorder = 1;
this.menuItemIndent = idt;
this.menuItemBgColor = bg;
this.menuItemVAlign = valgn;
this.menuItemHAlign = halgn;
this.menuItemPadding = pad;
this.menuItemSpacing = space;
this.menuLiteBgColor = "#ffffff";
this.menuBorderBgColor = "#777777";
this.menuHiliteBgColor = bgh;
this.menuContainerBgColor = "#cccccc";
this.childMenuIcon = "arrows.gif";
this.submenuXOffset = sx;
this.submenuYOffset = sy;
this.submenuRelativeToItem = srel;
this.vertical = vert;
this.items = new Array();
this.actions = new Array();
this.childMenus = new Array();
this.hideOnMouseOut = true;
this.hideTimeout = to;
this.addMenuItem = addMenuItem;
this.writeMenus = writeMenus;
this.MM_showMenu = MM_showMenu;
this.onMenuItemOver = onMenuItemOver;
this.onMenuItemAction = onMenuItemAction;
this.hideMenu = hideMenu;
this.hideChildMenu = hideChildMenu;
if (!window.menus) window.menus = new Array();
this.label = " " + label;
window.menus[this.label] = this;
window.menus[window.menus.length] = this;
if (!window.activeMenus) window.activeMenus = new Array();
}
function addMenuItem(label, action) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
}
function FIND(item) {
if( window.mmIsOpera ) return(document.getElementById(item));
if (document.all) return(document.all[item]);
if (document.getElementById) return(document.getElementById(item));
return(false);
}
function writeMenus(container) {
if (window.triedToWriteMenus) return;
var agt = navigator.userAgent.toLowerCase();
window.mmIsOpera = agt.indexOf("opera") != -1;
if (!container && document.layers) {
window.delayWriteMenus = this.writeMenus;
var timer = setTimeout('delayWriteMenus()', 500);
container = new Layer(100);
clearTimeout(timer);
} else if (document.all || document.hasChildNodes || window.mmIsOpera) {
document.writeln('');
container = FIND("menuContainer");
}
window.mmHideMenuTimer = null;
if (!container) return;
window.triedToWriteMenus = true;
container.isContainer = true;
container.menus = new Array();
for (var i=0; i