home *** CD-ROM | disk | FTP | other *** search
- var gGlossaryWindow = null
-
- //puts up a new window with the glossary entry
- function ShowHotTextDef(whichLetter, whichWordNdx) {
- gGlossaryWindow = null
-
- if(gGlossaryWindow == null) {
- gGlossaryWindow = open("../../../hottext/" + whichLetter + "words/" + whichLetter + whichWordNdx + ".htm",
- "definition", "width=300,height=200,directories=no,location=no,menubar=yes,toolbar=no,status=no,scrollbars=auto,resizable=yes");
- gGlossaryWindow.focus()
- } else { // this should never happen
- gGlossaryWindow.open("../../../hottext/" + whichLetter + "words/" + whichLetter + whichWordNdx + ".htm",
- "definition", "width=300,height=200,directories=no,location=no,menubar=yes,toolbar=no,status=no,scrollbars=auto,resizable=yes");
- gGlossaryWindow.focus()
- }
- }
-
- function OLDShowHotTextDef(whichLetter, whichWordNdx) {
- gGlossaryWindow = null
-
- if(gGlossaryWindow == null) {
- gGlossaryWindow = open("../../../../glossary/words/" + whichLetter + "words/" + whichLetter + whichWordNdx + ".htm",
- "definition", "width=300,height=200,directories=no,location=no,menubar=yes,toolbar=no,status=no,scrollbars=auto,resizable=yes");
- gGlossaryWindow.focus()
- } else { // this should never happen
- gGlossaryWindow.open("../../../../glossary/words/" + whichLetter + "words/" + whichLetter + whichWordNdx + ".htm",
- "definition", "width=300,height=200,directories=no,location=no,menubar=yes,toolbar=no,status=no,scrollbars=auto,resizable=yes");
- gGlossaryWindow.focus()
- }
- }
-
-
- // sets gGlossary window = null, called onclose of glossarywindow
- function glossaryCleanUp() {
- // this is because netscape windows did not allow you to click on a "mouth" and play sound
- if(navigator.appName != "Netscape") {
- close()
- gGlossaryWindow = null
- }
- }
-
- // replays the sound
- function replaySound() {
- document.location = document.location
- }
-