_mD  = 2;
_doc = document;
_nav = navigator;
_loc = location;
_navVersion = _toLower(_nav.appVersion);
_navAgent   = _toLower(_nav.userAgent);
_navSubver  = parseInt(_nav.productSub);
_win        = window;
_winPopup   = _win.createPopup;
is_ie   = (_doc.all) ? true : false;
is_ie4  = (!_doc.getElementById && is_ie) ? true : false;
is_ie5  = (!is_ie4 && is_ie && !_winPopup) ? true : false;
is_ie55 = (!is_ie4 && is_ie && _winPopup) ? true : false;
is_ns6  = (_navAgent.indexOf("gecko") != -1) ? true : false;
is_konquerer = (_navAgent.indexOf("konqueror") != -1) ? true : false;
is_safari = (_navAgent.indexOf("safari") != -1) ? true : false;

if (is_konquerer || is_safari) {
  _navSubver = 0;
  is_ns6 = 0
}

is_ns4  = (_doc.layers) ? true : false;
is_ns61 = (_navSubver >= 20010726) ? true : false;
is_ns7  = (_navSubver >= 20020823) ? true : false;
is_op   = (_win.opera) ? true : false;

if (is_op || is_konquerer) is_ie = 0;

is_op5    = (_navAgent.indexOf("opera 5") != -1) ? true : false;
is_op6    = (_navAgent.indexOf("opera 6") != -1) ? true : false;
is_op7    = (_navAgent.indexOf("opera 7") != -1 || _navAgent.indexOf("opera/7") != -1) ? true : false;
is_mac    = (_navVersion.indexOf("is_mac") != -1) ? true : false;
is_mac45  = (_navVersion.indexOf("msie 4.5") != -1) ? true : false;

if (is_ns6 || is_ns4 || is_op || is_safari) is_mac = false;
is_ns60 = false;
if (is_ns6 && !is_ns61) is_ns60 = true;
is_IEDtD = 0;
if (!is_op && (_doc.all && _doc.compatMode == "CSS1Compat") || (is_mac && _doc.doctype && _doc.doctype.name.indexOf(".dtd") != -1)) is_IEDtD = 1;
if (is_op7) is_op   = false;
if (is_op)  is_ie55 = false;

_st = 0;
_en = 0;
_space  = " ";
_m      = new Array();
_mi     = new Array();
_sm     = new Array();
_tsm    = new Array();
_cip    = new Array();
_mn     = -1;
_el     = 0;
_bl     = 0;
_MT     = setTimeout("", 0);
_oMT    = setTimeout("", 0);
_cMT    = setTimeout("", 0);
_mst    = setTimeout("", 0);
_Mtip   = setTimeout("", 0);
_undef  = "undefined ";
_zi     = 999;
_c      = 1;
_oldel  = -1;
_bH     = 500;
_oldbH = 0;
_bW     = 0;
_oldbW  = 0;
_ofMT   = 0;
_startM = 1;
_sT     = 0;
_sL     = 0;
_mcnt   = 0;
_mnuD   = 0;
_itemRef = -1;
inopenmode = 0;
lclss = 0;

function M_hideLayer()  { }
function opentree()     { }
function _cL()          { }

function remove(_ar, _dta)
{
  var _tar = new Array();
  for (_a = 0; _a < _ar.length; _a++) {
    if (_ar[_a] != _dta) {
      _tar[_tar.length] = _ar[_a]
    }
  }
  return _tar
}

function copyOf(_w) { for (_cO in _w) { this[_cO] = _w[_cO] } }
function _toLower($)  { if ($) return $.toLowerCase() }
function _toUpper($)  { if ($) return $.toUpperCase() }

function drawMenus() {
  for (_a = _mcnt; _a < _m.length; _a++) {
    _drawMenu(_a, 1)
  }
}

_$S = { menu: 0, text: 1, url: 2, showmenu: 3, status: 4,
        onbgcolor: 5,       oncolor: 6,           offbgcolor: 7,       offcolor: 8,          offborder: 9,
        separatorcolor: 10, padding: 11,          fontsize: 12,        fontstyle: 13,        fontweight: 14,
        fontfamily: 15,     high3dcolor: 16,      low3dcolor: 17,      pagecolor: 18,        pagebgcolor: 19,
        headercolor: 20,    headerbgcolor: 21,    subimagepadding: 22, subimageposition: 23, subimage: 24,
        onborder: 25,       ondecoration: 26,     separatorsize: 27,   itemheight: 28,       image: 29,
        imageposition: 30,  imagealign: 31,       overimage: 32,       decoration: 33,       type: 34,
        target: 35,         align: 36,            imageheight: 37,     imagewidth: 38,       openonclick: 39,
        closeonclick: 40,   keepalive: 41,        onfunction: 42,      offfunction: 43,      onbold: 44,
        onitalic: 45,       bgimage: 46,          overbgimage: 47,     onsubimage: 48,       separatorheight: 49,
        separatorwidth: 50, separatorpadding: 51, separatoralign: 52,  onclass: 53,          offclass: 54,
        itemwidth: 55,      pageimage: 56,        targetfeatures: 57,  visitedcolor: 58,     pointer: 59,
        imagepadding: 60,   valign: 61,           clickfunction: 62,   bordercolor: 63,      borderstyle: 64,
        borderwidth: 65,    overfilter: 66,       outfilter: 67,       margin: 68,           pagebgimage: 69,
        swap3d: 70,         separatorimage: 71,   pageclass: 72,       menubgimage: 73,      headerborder: 74,
        pageborder: 75,     title: 76 };

function mm_style() {
  for ($i in _$S) this[$i] = null;
  this.built = 0
}

_$M
  = { items: 0, name: 1, top: 2, left: 3, itemwidth: 4, screenposition: 5, style: 6,
      alwaysvisible: 7, align: 8,       orientation: 9, keepalive: 10, openstyle: 11,  margin: 12,        overflow: 13,
      position: 14,     overfilter: 15, outfilter: 16,  menuwidth: 17, itemheight: 18, followscroll: 19,  menualign: 20,
      mm_callItem: 21,  mm_obj_ref: 22, mm_built: 23,   menuheight: 24 };

function menuname(name)
{
  for ($i in _$M) this[$i] = null;

  this.name = _toLower(name);
  _c = 1;
  _mn++;
  this.menunumber = _mn
}

function _incItem(_it)
{
  _mi[_bl] = new Array();

  for ($i in _x[6]) _mi[_bl][_$S[$i]] = _x[6][$i];
  _mi[_bl][0] = _mn;
  _it = _it.split(";");

  for (_a = 0; _a < _it.length; _a++) {
    _sp = _it[_a].indexOf("`");
    if (_sp != -1) {
      _tI = _it[_a];
      for (_b = _a; _b < _it.length; _b++) {
        _tI += ";" + _it[_b + 1];
        _a++;
        if (_it[_b + 1].indexOf("`") != -1) _b = _it.length
      }

      _it[_a] = _tI.replace(/`/g, "")
    }

    _sp = _it[_a].indexOf("=");
    if (_sp == -1) {
      if (_it[_a]) _si = _si + ";" + _it[_a]
    } else {
      _si = _it[_a].slice(_sp + 1);
      _w = _it[_a].slice(0, _sp);
      if (_w == "showmenu") _si = _toLower(_si)
    }

    if (_it[_a]) {
      _mi[_bl][_$S[_w]] = _si
    }
  }

  _m[_mn][0][_c - 2] = _bl;
  _c++;
  _bl++
}

_c = 0;
function ami(txt)
{
  _t = this;
  if (_c == 1) {
    _c++;
    _m[_mn] = new Array();
    _x = _m[_mn];

    for ($i in _t) _x[_$M[$i]] = _t[$i];
    _x[21] = -1;
    _x[0]  = new Array();
    if (!_x[12]) _x[12] = 0;

    _MS = _m[_mn][6];
    _MN = _m[_mn];

    if (!_MN[15]) _MN[15] = _MS.overfilter;
    if (!_MN[16]) _MN[16] = _MS.outfilter;
    if (!_MN[12]) _MN[12] = _MS.margin;
    if (!_MS[65]) _MS[65] = 0;

    if (!_MS.built) {
      lclss++;

      if (_MS.visitedcolor) {
        if (!_MS.offcolor) _MS.offcolor = "#000000";
        if (!_MS.visitedcolor) _MS.visitedcolor = "#ff0000";
        _Lcls = "<style>.linkclass" + lclss + ":link{color:" + _MS.offcolor + "}.linkclass" + lclss
                                    + ":visited{color:" + _MS.visitedcolor + "}</style>";
        _doc.write(_Lcls);
        _MS.linkclass = "linkclass" + lclss
      }

      _MS.built = 1
    }
  }

  _incItem(txt)
}

menuname.prototype.menuItem = ami;

