
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;
}

function scooby()
{
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' )
	{
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}

	var scooby = document.getElementById("scooby");
	var x = (myWidth / 2) - (563 / 2);
	var y = (myHeight / 2) - (315 / 2);
	scooby.style.position = 'absolute';
	scooby.style.top = y + 'px';
	scooby.style.left = x + 'px';
	scooby.style.display = 'block';
}