function addEvent(obj, evType, fn){
if (obj.addEventListener){
obj.addEventListener(evType, fn, false);
return true;
} else if (obj.attachEvent){
var r = obj.attachEvent("on"+evType, fn);
return r;
} else {
return false;
}
}
function addGlossary(node) {
if (!node.childNodes) return;
var index = node.childNodes[0].data;
index = index.toLowerCase();
if (synonyms[index]) {
index = synonyms[index];
}
if (!glossary[index]) return;
addEvent(node, "mouseover", new Function ("return overlib(formatGlossary(glossary['" + index + "']), FULLHTML, STICKY, MOUSEOFF, WRAP, CENTER, OFFSETY, 18)"));
addEvent(node, "mouseout", new Function ("return nd(500);"));
}
function formatGlossary(s) {
var Term = s[0];
var Pro = s[1];
if (Pro) {
Pro = "(" + Pro + ") ";
} else {
Pro = "";
}
var Def = s[2];
var aTerm = s[3];
var aDef = s[4];
return '
'+Term+' '+Pro+' : '+Def+'
';
}
function setupGlossary() {
var list = document.getElementsByTagName("dfn");
for (var i = 0; i < list.length; i++) {
addGlossary(list[i]);
}
}
var glossary = Array();
var synonyms = Array();
glossary['zygote'] = new Array("zygote","zī΄gōt","the single-cell embryo that results from the joining of the sperm and oocyte; means \"yoked or joined together\".","zygote-word-female","zygote-sentence-female");
synonyms['zygotes']='zygote';
glossary['hypoblast'] = new Array("hypoblast","hī΄pō-blast","The hypoblast is part of the inner cell mass of the embryo which gives rise to the yolk sac.","","");
synonyms['hypoblasts']='hypoblast';
glossary['sudden infant death syndrome'] = new Array("Sudden Infant Death Syndrome",null,"Sudden Infant Death Syndrome (SIDS) is the diagnosis given for the sudden death of an infant under 1 year of age that remains unexplained after a thorough case investigation, including an autopsy, a death scene investigation, review of the infant’s health status prior to dying, and other family medical history.","","");
synonyms['sids']='sudden infant death syndrome';
synonyms['sudden infant death syndromes']='sudden infant death syndrome';
glossary['compaction'] = new Array("compaction",null,"to compact","","");
synonyms['compactions']='compaction';