// JavaScript Document
function getPosition(o)
{
    var temp={};
    temp.left=temp.top=0;
    var oWidth=o.offsetWith,oHeight=o.offsetheight;
    while(o!=document.body)
    {
        temp.left+=o.offsetLeft;
        temp.top+=o.offsetTop;
        var border=parseInt(o.offsetParent.currentStyle.borderWidth);
        if(border)
        {
            temp.left+=border;
            temp.top+=border;
        }
        o=o.offsetParent;
    }
    return temp;
}

var t1,t2,t3

function showallbox(zid){
   if (zid=="tgzn") {
       clearInterval(t1);
   }
   if (zid=="bszn") {
       clearInterval(t2);
   }
   if (zid=="hgfg") {
       clearInterval(t3);
   } 
}

function showmun(obj,zid) { 
   if (zid=="tgzn") {
       clearInterval(t1);
   }
   if (zid=="bszn") {
       clearInterval(t2);
   }
   if (zid=="hgfg") {
       clearInterval(t3);
   }   
   var wn=getPosition(obj).left-10;
   var hn=getPosition(obj).top+22;
   var myobj = document.getElementById(zid);
   myobj.style.top=hn+"px";
   myobj.style.left=wn+"px";
   myobj.style.visibility="visible";
}

function hiddenmun(obj) {
   var myobj = document.getElementById(obj);
   myobj.style.top=0+"px";
   myobj.style.left=0+"px";
   myobj.style.visibility="hidden";
}

function tgznnone() {
   var myobj = document.getElementById("tgzn");
   myobj.style.top=0+"px";
   myobj.style.left=0+"px";
   myobj.style.visibility="hidden";
}

function bsznnone() {
   var myobj = document.getElementById("bszn");
   myobj.style.top=0+"px";
   myobj.style.left=0+"px";
   myobj.style.visibility="hidden";
}

function hgfgnone() {
   var myobj = document.getElementById("hgfg");
   myobj.style.top=0+"px";
   myobj.style.left=0+"px";
   myobj.style.visibility="hidden";
}

function tgzn(){ t1 = setTimeout('tgznnone()',500); }

function bszn(){ t2 = setTimeout('bsznnone()',500); }

function hgfg(){ t3 = setTimeout('hgfgnone()',500); }
