//*** <PopUp.js> ***
var gvVEGAPopUpCurrent=null;
var gvVEGAPopUpTicker=null;
var gvVEGAPopUpDelay=500;
//***
function cfgVEGAPopUpClick(e,id,mask,prm)
{
  if(gvVEGAPopUpCurrent)
    {
     clearTimeout(gvVEGAPopUpTicker);
     cfgVEGAPopUpClose();
    }
  gvVEGAPopUpCurrent=id;
 var tbl=document.getElementById(id);
 var q=mask.split(",");
  for(var i=0;i<q.length,i<tbl.rows.length;i++)
     {
      tbl.rows[i].setAttribute("prm",prm);
      if(parseInt(q[i]) == 0)
        {
         tbl.rows[i].className="item-disabled";
         tbl.rows[i].onclick=tbl.rows[i].onmouseover=tbl.rows[i].onmouseout=null;
        }
         else
        {
         tbl.rows[i].className="item-mouse-out";
         tbl.rows[i].onclick=function() {cfgVEGAPopUpExecute(this)};
         tbl.rows[i].onmouseover=function() {this.className="item-mouse-over";};
         tbl.rows[i].onmouseout=function() {this.className="item-mouse-out";};
        }
     }
  if(top.gvIE)
    {
     tbl.style.left=e.x;
     tbl.style.top=e.y+document.body.scrollTop;
    }
     else
    {
     tbl.style.left=e.x;
     tbl.style.top=e.y;
    }
  tbl.style.display="block";
  tbl.style.position="absolute";
}
//***
function cfgVEGAPopUpOnMouseOut()
{
  gvVEGAPopUpTicker=setTimeout("cfgVEGAPopUpClose()",gvVEGAPopUpDelay);
}
//***
function cfgVEGAPopUpClose()
{
  if(gvVEGAPopUpCurrent && getE(gvVEGAPopUpCurrent))
    {
     getE(gvVEGAPopUpCurrent).style.display="none";
     gvVEGAPopUpCurrent=null;
    }
}
//***
function cfgVEGAPopUpExecute(el)
{
 var fn=getE(gvVEGAPopUpCurrent).getAttribute("execute");
  cfgVEGAPopUpClose();
  eval(fn+"(\""+el.getAttribute("key")+"\",\""+el.getAttribute("prm")+"\")");
}
//*** </PopUp.js> ***