/*
  Custom ready function
  This should be used to reposition elements or to define and use custom functions
*/
$(document).ready(function(){
  // Element repositioning
  $('#content').prepend($('#temp').html());
  $('.header-form').append($('#truste-seal-home'));
  $('#temp').remove();

/*	
  //Tooltip stuff - example
  var html = "<p><strong>Excellent</strong> - Established credit history. No past or current problems</p>";
  html += "<p><strong>Good</strong> - An occasional missed credit card payment, but no collection activity.</p>";
  $("#ID").setToolTip(html, -75, 7);
*/

});//ready

//Tooltip function takes html as a tooltip message
//x and y offset (from top center of trigger anchor)
jQuery.fn.setToolTip = function(html, x, y){
  return this.each(function(){
    jQuery(this).after('<div class="tooltip">'+html+'</div>');
    jQuery(this).tooltip({
	  position: 'top center', 
	  offset: [y, x], 
	  relative: true
	});
  });//return each function - used to maintain jQuery chaining
}//setToolTip


