// JavaScript Document

function opennewdictwin(text) {
while (text.substr(text.length-1,1)==' ') 
	text=text.substr(0,text.length-1)
while (text.substr(0,1)==' ') 
	text=text.substr(1)
if (text > '') {
document.location='http://www.thefreedictionary.com/'+escape(text);
   }
}
status='hover over links to get more info'

function layer(id){
  var res
  if(document.getElementById) res=document.getElementById(id)
  if(document.all) res=document.all[id]
  if (res) return res.style
  return null
}
var nsx;
var nsy;
if (!document.all) {
	document.captureEvents(Event.MOUSEMOVE);	
	document.onmousemove=get_mouse;
}
function get_mouse(e) {
	nsx=e.pageX-10;
	nsy=e.pageY+5;
} 
function t_i(id) {
	var hlp=layer('Tp'+id)
	if (hlp) {
	if (document.all) {
	 nsy=event.y+document.body.scrollTop
	 nsx=event.x+document.body.scrollLeft
	}
	hlp.top=nsy+20-20-84
    hlp.left=(nsx>610?nsx-470:140)
	hlp.visibility='visible'
}}
function t_o(id) {
	var hlp=layer('Tp'+id)
	if(hlp) hlp.visibility='hidden'
}
function el(a){
window.open('http://'+a, '_blank')
return false
} 
/* end of hover script  */

 startList = function() {
    if (document.all&&document.getElementById) {
       navRoot = document.getElementById("nav");
       for (i=0; i<navRoot.childNodes.length; i++) {
          node = navRoot.childNodes[i];
          if (node.nodeName=="LI") {
             node.onmouseover=function() {
                this.className+=" over";
             }
             node.onmouseout=function() {
                this.className=this.className.replace(" over", "");
             }
          }
       }
    }
 }

 window.onload=startList;