/*
Add support for container div areas
*/

visibleElement = null

function jWDShowChild(Id,show) {
	if (show==true) {
		visibleElement = document.getElementById(Id)
		visibleElement.style.display='block'
	}
	else {
		visibleElement.style.display='none'
		visibleElement = null
	}
}
		
function Mousemove (Evnt) {
	if(visibleElement != null) {
	  var isStrictMode = document.compatMode && document.compatMode != 'BackCompat' ? true : false;
	  var scrollX = isStrictMode ? document.documentElement.scrollLeft : document.body.scrollLeft;
	  var scrollY	= isStrictMode ? document.documentElement.scrollTop : document.body.scrollTop;
	        
	  if (!Evnt) Evnt = window.event;
	  
	  if (document.getElementById) {
	    visibleElement.style.left = Evnt.clientX + (scrollX + 10) + "px";
	    visibleElement.style.top = Evnt.clientY + (scrollY + 10) + "px";
	  }
  }
}

document.onmousemove = Mousemove;