function showHidden(divName){
	//document.getElementById(inputName).value=objId;
	
	document.getElementById(divName).style.top = (mouseY - 20)+'px';
	document.getElementById(divName).style.left = (mouseX- 100)+'px';
	document.getElementById(divName).style.visibility = 'visible';
}

function hideHoursInput(){
	document.getElementById('hoursDiv').style.visibility = 'hidden';	
}

function switchToFckEditor(textAreaId, divId){
	// Hide the div that displays the blog content, then have the editor 
	// replace the text area content with the editor. It is nessesary to use 
	// a textarea for the editor to be able to make use of the save button...
	
	document.getElementById(divId).style.display = 'none';
	
	var oFCKeditor = new FCKeditor( textAreaId ) ;
	oFCKeditor.BasePath	= 'fckeditor/' ;
	oFCKeditor.Height = 500 ;
	oFCKeditor.Width = 930 ;
	oFCKeditor.Style = 'float: left;' ;
	oFCKeditor.ReplaceTextarea() ;
}

var isNN = document.layers ? true : false;
var isIE = document.all ? true : false;

function init() {
  if ( isNN )
    document.captureEvents(Event.MOUSEMOVE)
  document.onmousemove = handleMouseMove;
}

function handleMouseMove(evt) {
  //mouseX = isNN ? evt.pageX : evt.clientX;
  //mouseY = isNN ? evt.pageY : evt.clientY;
  
  mouseX = isIE ? event.clientX : evt.pageX;
  mouseY = isIE ? event.clientY : evt.pageY;
  
  window.status = "Mouse: X="+mouseX+",Y="+mouseY;

  return false;
}

