function dictionary30() 
{
  if (navigator.appName!='Microsoft Internet Explorer') 
  {
	var t = (typeof(window["getSelection"])=="undefined"?document.getSelection():window.getSelection().toString());
	dict(t);
  }
else 
  {
	var t = document.selection.createRange();
	if(document.selection.type == 'Text' && t.text>'') {
		document.selection.empty();
		dict(t.text);}
   }

function dict(t) {
t=t.replace(/[!.:?,;"]/, '');
while (t.substr(t.length-1,1)==' ') 
	t=t.substr(0,t.length-1);
while (t.substr(0,1)==' ') 
	t=t.substr(1);
if (t) window.open('http://www.dictionary30.com/meaning/'+encodeURIComponent(t), 'dict', 'width=950,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
};
status='double-click any word - get its instant definition in the dictionary.';
if (navigator.appName=='Microsoft Internet Explorer') document.ondblclick=dictionary30; 

