function init() {
  // called body onload
  ieSize();
  mouseInit();
}	

function ieSize() {
  // fix IE/FF font size disparity by decreasing IE font sizes
  if (navigator.appName == 'Microsoft Internet Explorer') {
    document.body.style.fontSize = 'x-small';
    document.styleSheets['stylesheet'].addRule('h4', 'font-size: x-small');
    document.styleSheets['stylesheet'].addRule('td', 'font-size: x-small');
    document.styleSheets['stylesheet'].addRule('th', 'font-size: x-small');
  }
}

/* 
** Mouse position code 
** from http://www.dunnbypaul.net/js_mouse/
**********************************************************/
	function mouseInit() {
	  var mousex = 0;
	  var mousey = 0;
	  document.onmousemove = update;
	  update();
	}
	function getMouseXY(e) { 
	  if (!e) e = window.event; 
	  if (e) { 
	    if (e.pageX || e.pageY) { 
	      mousex = e.pageX;
	      mousey = e.pageY;
	    }
	    else if (e.clientX || e.clientY) { 
	      mousex = e.clientX + document.body.scrollLeft;
	      mousey = e.clientY + document.body.scrollTop;
	    }
	  }
	}
	function update(e) { getMouseXY(e); }
/**********************************************************
** End of mouse position code
*/

function hide_tt(id) {
  document.getElementById(id).style.visibility = 'hidden';
}

function show_tt(id) {
  pos_tt(id);	
  document.getElementById(id).style.visibility = 'visible';
}

function pos_tt(id) {
  document.getElementById(id).style.left = mousex+1+'px';
  document.getElementById(id).style.top = mousey+1+'px';
}

function infoPop(name,h,w,pre) {
  var features = 'height='+h+',width='+w+',location=no,toolbar=no,resizable=yes,menubar=yes,scrollbars=yes';
  window.open(pre+'pops/'+name+'.php','pop',features);		
}
