  <!--
  /*  Your are permitted to reuse this code as long as the following copyright
      notice is not removed:

      This HTML tip handling is copyright 1998 by insideDHTML.com, LLC. More information about this
      code can be found at Inside Dynamic HTML: HTTP://www.insideDHTML.com
  */


  // Support for all collection
  var allSupport = document.all!=null;
  function setupEventObject(e) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    // Map NS event object to IEs
    if (e==null)
	{
		X=window.event.x;
		Y=window.event.y;
	 	return 0;// IE returns
	}
    window.event = e;
    window.event.fromElement = e.target;
    window.event.toElement = e.target;
    window.event.srcElement = e.target;
    window.event.x = e.x;
    window.event.y = e.y;
	X=e.x;
	Y=e.y;
    // Route the event to the original element
    // Necessary to make sure _tip is set.
    window.event.srcElement.handleEvent(e);
	return 0;
  }


  function checkName(src) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0; // Not IE4 or NS4

    // Look for tooltip in IE
    while ((src!=null) && (src._tip==null))
      src = src.parentElement;
    return src;
  }

  function getElement(elName) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    // Get an element from its ID
    if (allSupport)
      return document.all[elName];
    else
      return document.layers[elName];
  }

  function writeContents(el, tip) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    // Replace the contents of the tooltip
//	tmp="<FONT FACE='Times New Roman, Times, serif' SIZE='-1'>";
	tmp="<FONT SIZE='-1'>";
    if (allSupport)
	{
      el.innerHTML = tmp+tip+"<font>";
	}
    else {
      // In NS, insert a table to work around
      // stylesheet rendering bug.
      // NS fails to apply style sheets when writing
      // contents into a positioned element.
      el.document.open();
      el.document.write("<TABLE WIDTH=200 BORDER=1 CELLSPACING=0 bordercolor=black><TR><TD WIDTH=100% BGCOLOR=#FFEED7>");
      el.document.write(tmp+tip+"</font>");
      el.document.write("</TD></TR></TABLE>");
      el.document.close();
    }
	return 0;
  }

  function getOffset(el, which) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    // Function for IE to calculate position 
    // of an element.
    var amount = el["offset"+which] ;
    if (which=="Top")
      amount+=el.offsetHeight;
    el = el.offsetParent;
    while (el!=null) {
      amount+=el["offset"+which];
      el = el.offsetParent;
    }
    return amount;
  }
  

  function setPosition(el) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    // Set the position of an element
    src = window.event.srcElement;
    if (allSupport) {
      el.style.pixelTop = document.body.scrollTop + Y + 15;//getOffset(src, "Top")
      el.style.pixelLeft = document.body.scrollLeft + X; //getOffset(src, "Left")

    } else
    {
      el.top = window.event.y + 15; //src.y + 20 
      el.left = window.event.x; //src.x 
    }
	return 0;
  }
      
  function setVisibility(el, bDisplay) {
    // Hide or show to tip
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    if (bDisplay)
      if (allSupport)
        el.style.visibility = "visible"; 
      else
        el.visibility = "show";
    else
      if (allSupport)
        el.style.visibility = "hidden";
      else
        el.visibility = "hidden";
	return 0;
  }


  function displayContents(tip) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    // Display the tooltip. 
    var el = getElement("tipBox");
    writeContents(el, tip);
    setPosition(el);
    setVisibility(el, true);
	return 0;
  }


  function doMouseOver(e) {
    // Mouse moves over an element
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    setupEventObject(e);
    var el, tip;
    if ((el = checkName(window.event.srcElement))!=null)
//      if  (!el._display) 
		{
        displayContents(el._tip);
        el._display = true;
      }
	return 0;
  }

  function doMouseOut(e) {
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4

    // Mouse leaves an element
    setupEventObject(e);
    el = checkName(window.event.srcElement);
    var el, tip;
    if ((el = checkName(window.event.srcElement))!=null)
      if (el._display)
        if ((el.contains==null) || (!el.contains(window.event.toElement))) {
          setVisibility(getElement("tipBox"), false);
          el._display = false;
        }
	return 0;
  }

  function doLoad() {
    // Do Loading
    if ((window.document.captureEvents==null) && (!allSupport))
      return 0;// Not IE4 or NS4
    if (window.document.captureEvents!=null)  // NS - capture events
      window.document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
    window.document.onmouseover = doMouseOver;
    window.document.onmouseout = doMouseOut;
//	document.readyState = "complete"
	return 0;
  }

  window.onload = doLoad;

if(navigator.appName=="Netscape")
{
	window.onresize = doLoad;
//	document.readyState = "loading"
}
  // -->