
var show = 1;

function menushow(div,x,y){
        window.document.getElementById(div).style.display='block';
        window.document.getElementById(div).style.top =  y + 'px';
        window.document.getElementById(div).style.left = x + 'px';

}

function menuhidei(div){
    window.document.getElementById(div).style.display='none';
}

function simpleshow(div){
    window.document.getElementById(div).style.display='block';
}

if (document.layers){
	document.captureEvents(Event.MOUSEMOVE);
}

/*function handlerMM(e){
    e = e || window.event;
	x1 = !isNaN(e.pageX)? e.pageX : e.clientX; // x-position
	y1 = !isNaN(e.pageY)? e.pageY : e.clientY; // y-position
	flag=1
} */


function simpleshow2(div,xx,yy){



x1 = xx + window.document.getElementById('t_' + div).offsetLeft;
y1 = yy + window.document.getElementById('t_' + div).offsetTop;

//alert(window.HTML.scrollTop);

var ie=document.all?true:false
var ns6=document.getElementById && !document.all
if (!ie)x1 = x1 - 0;   // ha mozilla

  x1 = x1 - 10;
//if (ie)y1 = document.documentElement.scrollTop + y1 - 10
  y1 = y1 - 10;

    window.document.getElementById(div).style.top = + y1 + 'px';

    window.document.getElementById(div).style.left = x1 + 'px';
    window.document.getElementById(div).style.display='block';

}


// document.onmousemove = handlerMM;


function mouseX(evt) {
if (evt.pageX) return evt.pageX;
else if (evt.clientX)
   return evt.clientX + (document.documentElement.scrollLeft ?
   document.documentElement.scrollLeft :
   document.body.scrollLeft);
else return null;
}

function mouseY(evt) {
if (evt.pageY) return evt.pageY;
else if (evt.clientY)
   return evt.clientY + (document.documentElement.scrollTop ?
   document.documentElement.scrollTop :
   document.body.scrollTop);
else return null;
}


