cm=null;
hide_delay=500;
tstat=0;
function switchDiv(objElement,bolVisible){
      if(!bolVisible){
         objElement.style.display = "none";
      } else {
        objElement.style.display = "";
        }
}
function getPos(el,sProp) {
	var iPos = 0;
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos

}
function show(el,m) {
 if (cm!=null) {
 switchDiv(cm,false);
 }

 if (m!=null) {
var diff=0
 m=document.getElementById(m);
 m.style.left = getPos(el,"Left")-diff+"px";
 m.style.top =  getPos(el,"Top")+el.offsetHeight+"px";
 switchDiv(m,true);
 cm=m;
 }
return false;
}
function hidemenu() {
timer1=setTimeout("show(null,null)",hide_delay);
tstat=1;
}
function cancelhide() {
 if (tstat==1) {
 clearTimeout(timer1);
 tstat=0;
 }
}

