/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2003 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/
function doTooltip(e,msg) {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  
  
  // Aaron Mod - relative smart width for small titles, fixed width for large text > 400px wide 
  var tip = document.getElementById(Tooltip.tipID);
  if(document.getElementById('tipFontSize')) {
    document.getElementById('tipFontSize').innerHTML = msg;
    if(document.getElementById('tipFontSize').offsetWidth > 400) {
      tip.style.width = 400 + 'px';    
    }
    else {
      tip.style.width = document.getElementById('tipFontSize').offsetWidth + 0 + 'px';   
    }    
  }
  else { 
    tip.style.width = '100px';
  }
  
  
  Tooltip.show(e, msg);
}

function hideTip() {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.hide();
}
