defaultMenu = null;

function _setDefaultMenu(lId)
{
defaultMenu = lId;
_ShowObj(defaultMenu);
return null;
}

function _getDefaultMenu()
{
return defaultMenu;
}

function _ShowObj(lId)
{
var ob;ob=new Array;
var appVer=parseInt(navigator.appVersion);
var isNC=false,isN6=false,isIE=false;
if (document.all && appVer >= 4) isIE=true; else
if (document.getElementById && appVer > 4) isN6=true; else
if (document.layers && appVer >= 4) isNC=true;
if (isNC)
{
w_str = "document." + lId;ob[lId] = eval(w_str);
if (!ob[lId]) ob[lId] = _FindHiddenObj(document, lId);
if (ob[lId]) ob[lId].visibility = "show";
}
if (isN6)
{
ob[lId] = document.getElementById(lId);
ob[lId].style.visibility = "visible";
}
if (isIE)
{
w_str = "document.all.item(\"" + lId + "\").style";ob[lId] = eval(w_str);
ob[lId].visibility = "visible";
}
}function _FindHiddenObj(doc, lId)
{
for (var i=0; i < doc.layers.length; i++)
{
var w_str = "doc.layers[i].document." + lId;
var obj;obj=new Array;
obj[lId] = eval(w_str);
if (!obj[lId]) obj[lId] = _FindHiddenObj(doc.layers[i], lId);
if (obj[lId]) return obj[lId];
}
return null;
}

function _HideObj(lId)
{
if (lId==_getDefaultMenu()) return null;
var ob;ob=new Array;
var appVer=parseInt(navigator.appVersion);
var isNC=false,isN6=false,isIE=false;
if (document.all && appVer >= 4) isIE=true; else
if (document.getElementById && appVer > 4) isN6=true; else
if (document.layers && appVer >= 4) isNC=true;
if (isNC)
{
w_str = "document." + lId;ob[lId] = eval(w_str);
if (!ob[lId]) ob[lId] = _FindShownObj(document, lId);
if (ob[lId]) ob[lId].visibility = "hide";
}
if (isN6)
{
ob[lId] = document.getElementById(lId);
ob[lId].style.visibility = "hidden";
}
if (isIE)
{
w_str = "document.all.item(\"" + lId + "\").style";ob[lId] = eval(w_str);
ob[lId].visibility = "hidden";
}
}

function _FindShownObj(doc, lId)
{
for (var i=0; i < doc.layers.length; i++)
{
var w_str = "doc.layers[i].document." + lId;
var obj;obj=new Array;
obj[lId] = eval(w_str);
if (!obj[lId]) obj[lId] = _FindShownObj(doc.layers[i], lId);
if (obj[lId]) return obj[lId];
}
return null;
}