function show (id) {
	curid=id;
	document.getElementById(id).style.display="block";
	document.getElementById(id).style.visibility="visible";
	document.onmousemove = getmouseposition;
}
function hide (id) {
	document.getElementById(id).style.display="none";
	document.getElementById(id).style.visibility="hidden";
	curid='';
	
}





var offsetx = 12;
var offsety =  8;
var curid='';

var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all); 
var ua = navigator.userAgent.toLowerCase();
var isapple = (ua.indexOf('applewebkit') != -1 ? 1 : 0);
function getmouseposition(e)
{
    if(curid !='' && document.getElementById(curid))
    {
        var iebody=(document.compatMode && 
        	document.compatMode != 'BackCompat') ? 
        		document.documentElement : document.body;
        pagex = (isapple == 1 ? 0:(ie5)?iebody.scrollLeft:window.pageXOffset);
        pagey = (isapple == 1 ? 0:(ie5)?iebody.scrollTop:window.pageYOffset);
        mousex = (ie5)?event.x:(ns6)?clientX = e.clientX:false;
        mousey = (ie5)?event.y:(ns6)?clientY = e.clientY:false;
	if (pagex > 0) {
		mousex=0;
		mousey=0;
	}

        var item = document.getElementById(curid);
        item.style.left = (mousex+pagex+offsetx)-250 + 'px';
        item.style.top = (mousey+pagey+offsety)-280 + 'px';
    }
}


