
// droplet glossary script

var IE4 = (document.all && !document.getElementById) ? 1 : 0;
var NS4 = (document.layers) ? 1 : 0;
var IE5 = (document.all && document.getElementById) ? 1 : 0;
var NS6 = (document.getElementById && !document.all) ? 1 : 0;
  
var style = ((NS4 && document.test) || IE4 || IE5 || NS6) ? 1 : 0;

var timerID = null;
var padding = 2;
var bgcolor = "#f8f0e9";
var borWid = 1; 
var borCol = "#000000";
var borSty = "solid";
var str = "<STYLE TYPE='text/css'>";

str += ".tooltip {";
str += "position: absolute;";
str += "visibility: hidden;";
str += "left: 0; top: 0;";

if (borWid > 0) { 
  str += "border-width: " + borWid + ";";
  str += "border-color: " + borCol + ";";
  str += "border-style: " + borSty + ";";
}

if (NS4) {
  if (borWid > 0 && padding <= 3) {
    str += "padding: 0;";
    str += "layer-background-color: " + bgcolor + ";"; 
  } 
  else if (borWid > 0 && padding > 3) {
    str += "padding: " + (padding - 3) + ";";
    str += "background-color: " + bgcolor + ";";
  } 
  else if (borWid == 0) {
    str += "padding: " + padding + ";";
    str += "layer-background-color: " + bgcolor + ";";
  }
} else {
  str += "padding: " + padding + ";";
  str += "background-color: " + bgcolor + ";";
}

str += "}";
str += "</STYLE>";

if (style) {
  document.write(str);
  if (NS4 || NS6) window.onload = init;
}


makeEl("aboral",200,"At the end of the body (opposite to the adoral zone).");
makeEl("adoral",200,"Near the mouth (oral zone).");
makeEl("anterior",200,"Part of the cell in the direction of normal movement (usually the front half of the cell) - opposite to <em>posterior</em>.");
makeEl("apical",200,"The most anterior region of a cell.");
makeEl("axopodia",200,"Long, thin, unbranched pseudopodia.");
makeEl("buccal_cavity",200,"Deep oral cavity (mouth) containing compound ciliary organelles such as membranelles.");
makeEl("cilia",200,"Short, hair-like, motile extensions of protozoan cell (in <em>Ciliates</em>).");
makeEl("cingulum",200,"Transverse groove in <em>Dinoflagellates</em> (<em>girdle</em>).");
makeEl("cirri",200,"Stiff, motile structure consisted of groups of cilia fused together. Can function as 'legs' on ciliates.");
makeEl("clathrum",200,"Loosely arranged pharyngeal rods of the expansive mouth.");
makeEl("cyrtos",200,"Basket-like structure formed of trichites (cytopharyngeal basket), usually curved.");
makeEl("cytostome",200,"Cell mouth (the oral cavity), the region where food is taken in and food vacuoles are formed.");
makeEl("cytopharynx",200,"Nonciliated tubular channel leading from the cytostome into the cytoplasm (syn. <em>gullet</em>).");
makeEl("dorsal",200,"Side of the protozoan cell opposite to <em>ventral</em>.");
makeEl("epicone",200,"Part of a <em>Dinoflagellate</em> cell forward of a <em>girdle</em>.");
makeEl("epipodia",200,"Cytoplasmic filaments that hold together the body of the testate amoeba and the test.");
makeEl("epitheca",200,"<em>Epicone</em> of armored <em>Dinoflagellates</em>.");
makeEl("extrusomes",200,"Membrane-bound structures which can discharge their contents outside the cell.");
makeEl("filopodia",200,"Pseudopodia that is very thin and slender and may branch, but don't rejoin (don't form a mesh). ");
makeEl("flagella",200,"Long extensions of protozoan cell used in locomotion (in <em>Flagellates</em>). ");
makeEl("girdle",200,"Transverse groove in <em>Dinoflagellates</em> (<em>cingulum</em>).");
makeEl("gullet",200,"Nonciliated tubular channel leading from the cytostome into the cytoplasm.");
makeEl("kineties",200,"Rows of cilia.");
makeEl("lobopodia",200,"Blunt pseudopodia that can be tubular, and are composed of both ectoplasm and endoplasm.");
makeEl("lorica",200,"Protective, loose, external cell case.");
makeEl("membranelles",200,"Short, transverse rows of <em>cilia</em>, fused together to form a compound ciliary organelle.");
makeEl("mucocysts",200,"<em>Extrusomes</em> which can discharge a mucous mass (e.g. used in cyst formation).");
makeEl("myoneme",200,"Contractile element of the cytoplasm, for example a thread inside the stalk of sessile peritrich ");
makeEl("operculum",200,"The cover of the aperature of a protozoan cell (lid, covering flap).");
makeEl("opisthe",200,"Posterior daughter cell in an asexually dividing ciliate.");
makeEl("pellicle",200,"Outer surface of a protozoan cell.");
makeEl("peristome",200,"Region about the cytostome, usually ciliated to aid in feeding.");
makeEl("posterior",200,"The part of the cell away from the direction of normal movement (opposite to <em>anterior</em>).");
makeEl("proter",200,"Anterior daughter cell in an asexually dividing ciliate (parental cell). ");
makeEl("pseudopodia",200,"Elongate cytoplasmic extensions that may participate in locomotion and feeding.");
makeEl("reticulopodia",200,"Long, branched pseudopodia that can form a very fine network (in <em>Foraminiferans</em>).");
makeEl("rhabdos",200,"Basket-like structure formed of trichites (cytopharyngeal basket), usually straight.");
makeEl("sulcus",200,"Posterior extension of a <em>girdle</em> in <em>Dinoflagellates</em>. ");
makeEl("telotroch",200,"Free swimming, stalkless stage of peritrich protozoans.");
makeEl("tentacle",200,"Tubular, hollow, retractable extension of body of suctorian ciliates, used for feeding. ");
makeEl("test",200,"Protozoan 'shell' - covering about the body.");
makeEl("trichites",200,"Rod-like elements used to support the cytopharynx.");
makeEl("trichocysts",200,"<em>Extrusomes</em> which can discharge a fibrous rod  when mechanically or chemically stimulated.");
makeEl("trophont",200,"Feeding stage of an apostome ciliate.");
makeEl("undulipodia",200,"<em>Cilli</em> or <em>flagella</em>.");
makeEl("undulating_membrane",200,"A membrane formed by fused rows of cillia.");
makeEl("uroid",200,"Distinct, <em>posterior</em> end of amoeba.");
makeEl("ventral",200,"Side of protozoan cell associated with oral structures (opposite to <em>dorsal</em>).");
makeEl("vestibule",200,"A bodily cavity leading to another cavity.");
makeEl("zooid",200,"An individual in a colonial animal, for example a single stalked, sessile form of peritrich protozoans.");



function init() {
  setTimeout("window.onresize = redo", 100);
}

function redo() {
  window.location.reload();
}

function makeEl(id, width, code) {
  if (!style) return;

  var str = "<STYLE TYPE='text/css'>";
  str += "#" + id + " {";
  str += "width: " + width + ";";
  str += "}";
  str += "</STYLE>";
  str += "<DIV CLASS='tooltip' ID='" + id + "'>" + code + "</DIV>";
   
  document.write(str);
}

function getActive()
{
  if (NS4)
    return document[active];
  else
  if (IE4)
    return document.all[active].style;    
  else
  if (IE5 || NS6) 
    return document.getElementById(active).style; 
    
  return 0;    
}

function displayEl(left, top) {

  if (NS4) document.releaseEvents(Event.MOUSEMOVE);
  document.onmousemove = null;
  var whichEl = getActive(); //(NS4) ? document[active] : document.all[active].style;
  
  
  whichEl.left = left;
  whichEl.top = top;
  whichEl.visibility = (NS4) ? "show" : "visible";
}

function clearEl() {

  if (!style) return;
  if (active != null) {
  var whichEl = getActive(); // (NS4) ? document[active] : document.all[active].style;
  whichEl.visibility = (NS4) ? "hide" : "hidden";
  active = null; }

  if (timerID) clearTimeout(timerID);
  if (NS4) document.releaseEvents(Event.MOUSEMOVE);
  document.onmousemove = null;

}

function activateEl(id, e) {
  if (!style) return;
  active = id;

  if (NS4) document.captureEvents(Event.MOUSEMOVE);
  document.onmousemove = checkEl;
  checkEl(e);

}

function checkEl(e) {
  if (timerID) clearTimeout(timerID);
  var left = (NS4 || NS6) ? e.pageX : event.clientX + document.body.scrollLeft;
  var top = (NS4 || NS6) ? e.pageY + 20 : event.clientY + document.body.scrollTop + 20;
  timerID = setTimeout("displayEl(" + left + ", " + top + ")", 300);
}

