var toolTipTimerID = null;
var toolTipBorder = null;
var toolTipCanvas = null;
var toolTipContainer = null;

var disclaimer = "<p class=small><b>PRIVACY STATEMENT / DISCLAIMER</b><p class=small>&copy; Copyright 2002. TheMuniCenter Member SIPC. The MuniCenterTM reserves the right to limit purchase quantities. No representation is made that these offerings represent a cross-section of the market. TheMuniCenter acts as a neutral intermediary and does not own the inventory being represented. Descriptions are accurate to the best of TheMuniCenter's knowledge. All confirmations are by cusip and dollar price. All purchasers should use their own research to verify description. Market Volatility or system delays may have an adverse effect on trade execution or access to TheMuniCenter.";

function drawToolTip() {
    var outStr, e;

    outStr = '<div id="infoTipCanvas">' + arguments[0] + '<br></div>';

    toolTipBorder = infoTipBorder;
    toolTipPadding = infoTipPadding;
    toolTipContainer = infoTipContainer;

  if(navigator.appName.indexOf("Netscape") != -1) {
    e = arguments[arguments.length -1];

    toolTipContainer.document.open();
    toolTipContainer.document.write(outStr);
    toolTipContainer.document.close();

    toolTipContainer.clip.height = toolTipContainer.document.layers[0].document.height;
    toolTipPadding.clip.height = toolTipContainer.clip.height + 6;
    toolTipBorder.clip.height = toolTipPadding.clip.height + 2;

    toolTipBorder.moveTo((e.pageX +250), (e.pageY - 200));

    toolTipBorder.visibility = 'show';
  }
  else {
    toolTipContainer.innerHTML = outStr;

    toolTipContainer.style.pixelHeight = toolTipContainer.children(0).offsetHeight;
    toolTipPadding.style.pixelHeight = toolTipContainer.style.pixelHeight + 6;
    toolTipBorder.style.pixelHeight = toolTipPadding.style.pixelHeight + 2;

    toolTipBorder.style.pixelLeft = event.clientX + document.body.scrollLeft + 250;
    toolTipBorder.style.pixelTop = event.clientY + document.body.scrollTop - 200;


    toolTipBorder.style.visibility = 'visible';
  }

  // toolTipTimerID = setTimeout(eraseToolTip, 10000);

  return;
}


function eraseToolTip(e) {
  if(navigator.appName.indexOf("Netscape") != -1) {
    toolTipBorder.visibility = "hide";
  }
  else {
    toolTipBorder.style.visibility = "hidden";
  }

  if(toolTipTimerID) {
    clearTimeout(toolTipTimerID);
    toolTipTimerID = null;
  }

  return;
}
