x = (screen && screen.width >= 1024) ? 194 : 100;
y = (screen && screen.width >= 1024) ? 365 : 154;

lyr=null;
xOs=10;
yOs=-10;

function moveLyr(lyrObj,x,y) {
    if (isNetscape()) {
        lyrObj.top = y;
        lyrObj.left = x;    
    } else if (isMSIE()) {
        lyrObj.top = y;
        lyrObj.left = x;
    }else if (isNetscape6()) {
	    lyrObj.top = y;
        lyrObj.left = x;
	}
}

function mouseMove(e) {
    if (isNetscape()) {
        if (lyr) moveLyr(lyr,e.pageX + xOs,e.pageY + yOs);
    } else if (isMSIE()) {
        if (lyr) moveLyr(lyr,event.x + xOs + document.body.scrollLeft,event.y + yOs + document.body.scrollTop);
    } else if (isNetscape6()) {
		if (lyr) moveLyr(lyr,e.pageX + xOs,e.pageY + yOs);
	  }
}

function showTip(which,MPX,MPY) {
    if (isNetscape()) {
        lyr = document.layers[which];
        moveLyr(lyr,MPX + xOs,MPY + yOs);
        document.captureEvents(Event.MOUSEMOVE)
        document.onmousemove = mouseMove;
        lyr.visibility = "show";
    } else if (isMSIE()) {
        MPX = event.x;
        MPY = event.y;
        lyr = document.all[which].style;
        moveLyr(lyr,MPX + xOs + document.body.scrollLeft,MPY + yOs + document.body.scrollTop);
        document.onmousemove = mouseMove;
        lyr.visibility = "visible";
    } else if (isNetscape6()) {
		lyr = document.getElementById(which).style;
		moveLyr(lyr,MPX + xOs,MPY + yOs);
		document.onmousemove = mouseMove;
		lyr.visibility = "visible";
	}
}

function hideTip(which) {
    if (isNetscape()) {
        document.layers[which].visibility = "hide";
        document.releaseEvents(Event.MOUSEMOVE);
        lyr=null;
    } else if (isMSIE()) {
        document.all[which].style.visibility = "hidden";
        lyr=null;
    } else if (isNetscape6()) {
		document.getElementById(which).style.visibility = "hidden";
		lyr=null;
	}
}

