//-- DomesticUtils.js

function
CheckForToolTips()
  {
  //Select all anchor tag with rel set to tooltip
  $('.ToolTip').mouseover(function(e) 
  {
		
  //Grab the 'data-TipTxt' attribute's value and assign it to a variable
  var tip = $(this).attr('data-TipTxt');	
		
  //Remove the title attribute's to avoid the native tooltip from the browser
  //		$(this).attr('title','');
		
  //Apply the tooltip template and its value
  $('#Wrapper').before('<div id="atooltip">' + tip +'</div>');		
				
  //Show the tooltip with faceIn effect
  $('#atooltip').fadeIn('500');
  //$('#atooltip').fadeTo('10',0.9);
		
  }).mousemove(function(e) 
  {
	
  //Keep changing the X and Y axis for the tooltip, thus, the tooltip move along with the mouse
  $('#atooltip').css('left', e.pageX + 20 );
  $('#atooltip').css('top', e.pageY + 10 );
		
  }).mouseout(function() 
  {
	
  //Put back the title attribute's value
  //	$(this).attr('title',$('.tipBody').html());
	
  //Remove the appended tooltip template
  $('#atooltip').remove();
		
  });
  } //-- End Of CheckForToolTips()

