

//glossary functions

// Function to add all the glossary layers to the page.
function init_glossary_layers() {
	a = 1;
	// first let's add all glossary layers for this page
	gloss_num = this.document.glosslist.glossnumber.value;
	for (b=1;b<=gloss_num;b++) {
		eval('glossname = this.document.glosslist.glossterm'+b+'.value');
		object_names[a++] = glossname.substring(0,glossname.length-3);
	}
}

//empty click function for glossary terms in page
function gloss_null() { }

//we move the requested glossary layer next to the mouse and show it
function gloss_open(whichgloss) {
	eval('glossname = this.document.glosslist.glossterm'+whichgloss+'.value');
	glossname = glossname.substring(0,glossname.length-3);
	if (mouse_x > 400) {
		dix = -150;
	} else {
		dix = 16;
	}
	eval('move_to('+glossname+',mouse_x+dix,mouse_y+16)');
	eval('show_object('+glossname+')');
}

function gloss_close(whichgloss) {
	eval('glossname = this.document.glosslist.glossterm'+whichgloss+'.value');
	glossname = glossname.substring(0,glossname.length-3);
	eval('hide_object('+glossname+')');
}
