

// Author: Kris Purdy
// Date: 03/04/2007

//======================================================================
function assignHoverEvents () {
//pre: span with a structure: 
//       <span class="hoverLink">
//         <a>Link1</a>
//         <div class="hoverTip">content</div>
//       </span>
//pst: Hover event handlers assigned to all the links embedded in above 
//       structure.
  $(".hoverLink").hover(
    function(e) {
      var l_LinkHeight = $(this).children("A").get(0).scrollHeight;
      $(this).children(".hoverTip").get(0).style.left = getAbsLeft(this) 
        + "px";
      $(this).children(".hoverTip").get(0).style.top = (getAbsTop(this)
        + l_LinkHeight) + "px";
      $(this).children(".hoverTip").fadeIn("medium");
    }, 
    function(e) {
      $(this).children(".hoverTip").fadeOut("fast");
    }
  ); 
}

