<!--

var NS = (navigator.appName == "Netscape") ? 1 : 0;
if (NS) document.captureEvents(Event.DBLCLICK);
document.ondblclick = dict;

var newwin;
function dict() {
	if (NS) {
		t = document.getSelection();
		opennewwin(t);
	} else {
		t = document.selection.createRange();
		if(document.selection.type == "Text" && t.text != "") {
			document.selection.empty();
			opennewwin(t.text);
		}
	}
}

function opennewwin(text) {
	if (text != "") {
		newwin = window.open("http://www.iln.net/main/resources/dictionary/default.asp?Word="+text,"dictionary", "width=600,height=400,resizable=yes,menubar=yes,toolbar=yes,scrollbars=yes");
		newwin.opener=null;
		setTimeout("newwin.focus()", 100);
	}
}	

function printit(){  
  if (window.print) {
	window.print() ;  
  } else {
	var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
    document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);
  }
}

// -->
