//Was jQuery jquery.tooltip.ajax.js

$(function()  
{  
  var hideDelay = 500;    
  var currentID;  
  var hideTimer = null;  
    
  var container = $('#PopupContainer');  
	
  $('.PopupTrigger').bind('mouseover', function()  
  {  
      currentID = $(this).attr('id');  
	  if (currentID == '')  
          return;  
  
      if (hideTimer)  
          clearTimeout(hideTimer);  
  		
     var wdth = container.width();
	  container.css({  
          right: 50+($(this).width()) + 'px',  
          top: ($(this).offset().top)-155 + 'px',
		  width: wdth
      }); 
	  
      container.slideDown("fast");  
  });  
  
  $('.PopupTrigger').bind('mouseout', function()  
  {  
      if (hideTimer)  
          clearTimeout(hideTimer);  
      hideTimer = setTimeout(function()  
      {  
		  container.slideUp("fast");  
      }, hideDelay);  
  }); 

  $('#PopupContainer').mouseover(function()  
  {  
      if (hideTimer)  
          clearTimeout(hideTimer);  
  });  
  
  $('#PopupContainer').mouseout(function()  
  {  
      if (hideTimer)  
          clearTimeout(hideTimer);  
      hideTimer = setTimeout(function()  
      {  
		  container.slideUp("fast");  
      }, hideDelay);  
  });  
});  
