var iSize=0
var iScr=0
var cas
var ca
var iTop=251
var iLplus=20
function shMnu(iPoz)
  {
  clearTimeout(ca)
  var oDiv=document.getElementById('ucH_pm'+iPoz);
  if(oDiv.className=='pmnu vis'){return}
  iSize=0;
  iScr=0;
  oDiv.style.height='0px';
  var oPar=document.getElementById('ucH_m'+iPoz)
  iLef=oPar.offsetLeft+oPar.offsetParent.offsetLeft+iLplus;
  for (i=1; i <= iNum; i++) {hiMnu(i)}
  if(oDiv.className=='invisible'){return}
  oDiv.className='pmnu vis';
  oDiv.style.top=iTop+'px';
  oDiv.style.overflow='visible'
  iScr=oDiv.scrollHeight;
  oDiv.style.overflow='hidden';
  if (iScr<oDiv.scrollHeight){iScr=oDiv.scrollHeight}
  if(iLef+oDiv.scrollWidth>document.body.clientWidth){iLef=document.body.clientWidth-oDiv.scrollWidth}
  oDiv.style.left=iLef+'px';
  setW(iPoz);
  }
function shpMnu(iPoz)
   {
    clearTimeout(ca)
   }
function hiMnu(iPoz)
   {
   var oDiv=document.getElementById('ucH_pm'+iPoz);
   if(oDiv.className=='invisible'){return}
   oDiv.className='pmnu hid';
   }
function thiMnu(iPoz)
   {
   ca=setTimeout('hiMnu('+iPoz+')',1200)
   }
function setW(iPoz)
   { 
   var oDiv=document.getElementById('ucH_pm'+iPoz);
   iSize+=15;
   if(iSize>=iScr){iSize=iScr-20;}
   oDiv.style.height=iSize+'px';
   cas=setTimeout('setW('+iPoz+')',1);
   if(iSize>=iScr-20){clearTimeout(cas);}
   }