function menuControl(show, obj,evt)
{
if (window.event)
        window.event.cancelBubble = true;
    else
        evt.cancelBubble = true;
//var objID=obj.id;
var objID=obj.id;
var index=objID.indexOf("_");
var mainID=objID.substring(0,index);
var numID=objID.substring(index+1,objID.length);
if(mainID=="menubar")
{
if(show==1)
{
 eval("showMenu("+"menu_"+numID+")"); 

}
else
{
 eval("hideMenu("+"menu_"+numID+")"); 

}
}

}

var nbottom=0,speed=1;
function displayMenu(obj)
{
//obj.style.clip="rect(0 100% "+nbottom+"% 0)"; 
obj.style.backgroundColor="black";
obj.style.clip="rect(0px, 140px, "+nbottom+"px, 0px)";
nbottom+=speed;
if(nbottom<=45)
{
timerID=setTimeout("displayMenu("+obj.id+"),70");
}
else clearTimeout(timerID);
}
function showMenu(obj)
{
obj.style.display="block";
//obj.style.clip="rect(0 0 0 0)";
obj.style.backgroundColor="black";
obj.style.clip="rect(0px, 0px, 0px, 0px)";

nbottom=5;
displayMenu(obj);
}
function hideMenu(obj)
{
nbottom=0;
obj.style.display="none";
//document.getElementById(obj).style.display="none";
}
function keepMenu(obj)
{
obj.style.display="block";
//document.getElementById(obj).style.display="block";
}
