function definitionWindow(newContent){
  winContent = window.open(newContent,'nextWin','left=700,top=50,width=300,height=300,resizable=yes,scrollbars=yes')    
 }


function playaudioWindow(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }

function playaudioWindow01(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }

function playaudioWindow02(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }
function playaudioWindow03(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }
function playaudioWindow03(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }
function playaudioWindow05(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }
function playaudioWindow06(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }
function playaudioWindow07(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }
function playaudioWindow08(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=80,resizable=yes,scrollbars=yes')         
 }



function chartWindow(newContent){
  winContent = window.open(newContent,'nextWin','left=600,top=50,width=400,height=200,resizable=yes,scrollbars=yes')         
 }

function lookupWindow(newContent){
  winContent = window.open(newContent,'nextWin','left=100,top=50,width=3000,height=800,resizable=yes,scrollbars=yes,toolbar=yes')         
 }


function hideshow(which){
if (!document.getElementById)
return
if  (which.style.display=="block")
which.style.display="none"
else
which.style.display="block"
}


function audioRecorderWindow(strPath,winName) {
  var windowSettings = 'width=220,height=500,left=200,top=100,toolbar=0,location=0,directories=0,status=0,menuBar=0, scrollBars=0,resizable=1';
  var win = window.open(strPath,winName,windowSettings);
}


//don't forget to add <body ondblclick="dictionary()">
function dictionary() {
if (navigator.appName!='Microsoft Internet Explorer') {
	var t = (typeof(window["getSelection"])=="undefined"?document.getSelection():window.getSelection().toString());
	od(t);
	}
else {
	var t = document.selection.createRange();
	if(document.selection.type == 'Text' && t.text>'') {
		document.selection.empty();
		od(t.text);}
   }
function od(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.thefreedictionary.com/'+encodeURIComponent(t), 'dict', 'width=700,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
};
status='Double-click on any word to look it up and hear it pronounced in the FreeDictionary';
if (navigator.appName=='Microsoft Internet Explorer') document.ondblclick=dictionary; //works for IE only. For other browsers add <body ondblclick="dictionary()">


