var iSize = 0
var iScr = 0
var cas
var ca
/*var iTop = 171*/
var iLeft=100
var iTplus =10
function shMnu(iPoz) {
    clearTimeout(ca)
    var oDiv = document.getElementById('ucN_pm' + iPoz);
    if (oDiv == null) return;
    if (oDiv.className == 'pmnu vis') { return }
    iSize = 0;
    iScr = 0;
    iScrW = 0;
    /*oDiv.style.height = '0px';*/
    var oPar = document.getElementById('ucN_m' + iPoz)
    /*iLef = oPar.offsetLeft + oPar.offsetParent.offsetLeft + iLplus;*/
    iTop = oPar.offsetTop + oPar.offsetParent.offsetTop + iTplus;
    for (i = 1; i <= iNum; i++) { hiMnu(i) }
    if (oDiv.className == 'invisible') { return }
    oDiv.className = 'pmnu vis';
    oDiv.style.left = iLeft + 'px';
    oDiv.style.overflow = 'visible'
    iScr = oDiv.scrollHeight;
    iScrW = oDiv.scrollWidth;
    oDiv.style.overflow = 'hidden';
    if (iScr < oDiv.scrollHeight) { iScr = oDiv.scrollHeight }
    if (iTop + oDiv.scrollHeight > document.body.clientHeight) { iTop = document.body.clientHeight - oDiv.scrollHeight }
    oDiv.style.top = iTop + 'px';
    oDiv.style.width = iScrW-12 + 'px';
    /*oDiv.style.width = '500px';
    setW(iPoz);*/
}
function shpMnu(iPoz) {
    clearTimeout(ca)
}
function hiMnu(iPoz) {
    var oDiv = document.getElementById('ucN_pm' + iPoz);
    if (oDiv == null) return;
    if (oDiv.className == 'invisible') { return }
    oDiv.className = 'pmnu hid';
}
function thiMnu(iPoz) {
    ca = setTimeout('hiMnu(' + iPoz + ')', 1200)
}
function setW(iPoz) {
   /* var oDiv = document.getElementById('ucN_pm' + iPoz);
    if (oDiv == null) return;
    iSize += 15;
    if (iSize >= iScr) { iSize = iScr - 20; }
    try { oDiv.style.height = iSize + 'px';} catch (err) { }
    cas = setTimeout('setW(' + iPoz + ')', 1); 
    if (iSize >= iScr - 20) { clearTimeout(cas); }*/
}
