// the variables shortDef and longDef should have already been set by 
// an earlier javascript routine

var expandLink='<a href="javascript:GetLongDef()">more</a>';
var contractLink='<a href="javascript:GetShortDef()">hide</a>';

// but no 'more', 'hide' needed if the short and long definitions are the same
if (shortDef==longDef){
	expandLink='';
	contractLink=''
}

function GetLongDef(){

	obj=document.getElementById("wordBox");
	obj.innerHTML=longDef+contractLink;
}

function GetShortDef(){
	obj=document.getElementById("wordBox");
	obj.innerHTML=shortDef+expandLink;

	// otherwise the box is hidden
	obj.style.display = "block";

}