function openwin(where) {
	mw = window.open (where, 'mywin', 'width=700, height=440, toolbar=no, location=no, scrollbars');
	mw.focus();
}

function sd(def) {
	handPointer(def);
	num = def.id.substr(1,def.id.length);
	showtip(def.innerHTML + "<br />"+document.getElementById("d"+num).innerHTML);
}

// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0;
var tempY = 0;

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft;
    tempY = event.clientY + document.body.scrollTop;
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX;
    tempY = e.pageY;
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  return true
}


function showtip(what) {
	v = document.getElementById('glossdef');
	ww = document.body.clientWidth;
	//if we're using ie, use the outerHTML method to prevent an IE 5 Mac mess
	if (navigator.appName == "Microsoft Internet Explorer") {
		v.outerHTML = '<div id="glossdef">'+what+'</div>';
		v = document.getElementById('glossdef');
	} else {
		v.innerHTML = what;
		v = document.getElementById('glossdef');
	}
	if (tempX+220 > ww) {
		tempX = tempX-((tempX+220)-ww);
	}		
	tempY = tempY+16+scrlpoint();
	v.style.left = tempX+"px";
	v.style.top = tempY+"px";
	v.style.width = "200px";
	v.style.display = "block";	
}

function scrlpoint() {
	if (document.documentElement && document.documentElement.scrollTop) {
		return document.documentElement.scrollTop;
	} else {
		return 0;
	}
}


function hd() {
	v = document.getElementById('glossdef');
	v.style.display = "none";
}

function handPointer(src) {
	if (navigator.appName.indexOf("Internet Explorer") == -1) {
		src.style.cursor = "pointer";
	} else {
		src.style.cursor = "hand";
	}
}