var iSize=0
var iScr=0
var cas
var ca
var iTop=150
var iLplus = -4

if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x;
    var ieversion = new Number(RegExp.$1) // capture x.x portion and store as a number
    if (ieversion >= 8)
    iLplus = 0
        //document.write("You're using IE8 or above")
    else if (ieversion >= 7)
        //document.write("You're using IE7.x")
        iLplus = 0
    else if (ieversion >= 6)
        //document.write("You're using IE6.x")
    iLplus = -4
}




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);}
   }
