//this file displays glossary terms

//this file sets up the glossary terms and definitions.

function showglossarywindow(glossarytermtodisplay){

var glossarywindow

//getting dimensions of window

var mainwindowwidth = screen.availWidth
var mainwindowheight = screen.availHeight

var glossarywidth = 350
var glossaryheight = 250

var glossaryleft = (mainwindowwidth - glossarywidth)/2
var glossarytop = (mainwindowheight - glossaryheight)/2

glossaryconfig = 'width=' + glossarywidth + ',height=' + glossaryheight + ',left=' + glossaryleft + ',top=' + glossarytop + ',scrollbars=no,menubar=no,status=no,resizable=no,statusbar=yes,toolbar=no'

glossarywindow = window.open('', 'glossary', config=glossaryconfig)

            var newcontent = '<HTML><HEAD><TITLE>glossary</TITLE><link rel="stylesheet" href="../glossary/styleglossary.css">'
		newcontent += '<script language="JavaScript" src="../glossary/glossary_xrefs.js"></script>'
                newcontent += '<SCRIPT LANGUAGE="JavaScript">window.focus();</SCRIPT>'
		newcontent += '</HEAD><BODY>'
		newcontent += '<table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><th>'
                newcontent += glosterm[glossarytermtodisplay]
                newcontent += '</th></tr><tr><td>'
                newcontent += glosdef[glossarytermtodisplay]
		newcontent += '</td></tr></table>'
		newcontent += '</BODY></HTML>'
		glossarywindow.document.write(newcontent)
		glossarywindow.document.close()


}