function rifftrax_register_copy_address() {
  // Copy over the information and set it to update if delivery info changes.
  $('#contact #edit-contact-lastName').val($("#payee #edit-biz-lastname").val());
  $('#contact #edit-contact-firstName').val($("#payee #edit-biz-firstname").val());
  $('#contact #edit-phone').val($("#payee #edit-biz-phone").val());

  return false;
}

this.tooltip = function(){
  /* CONFIG */
    xOffset = 10;
    yOffset = 20;
    // these 2 variable determine popup's distance from the cursor
    // you might want to adjust to get the right result
  /* END CONFIG */
  $("a.tooltip").hover(function(e){
    this.t = this.title;
    this.title = "";
    $("body").append("<p id='tooltip'>"+ this.t +"</p>");
    $("#tooltip")
      .css("top",(e.pageY - xOffset) + "px")
      .css("left",(e.pageX + yOffset) + "px")
      .fadeIn("fast");
    },
  function(){
    this.title = this.t;
    $("#tooltip").remove();
    });
  $("a.tooltip").mousemove(function(e){
    $("#tooltip")
      .css("top",(e.pageY - xOffset) + "px")
      .css("left",(e.pageX + yOffset) + "px");
  });
};



$(document).ready(function(){
    //$('#rifftrax-banners-home-ajax').load('ajax/rifftrax_banners/0/4');

    tooltip();

    $("#featured-samples-block h2").hover(function(event) {
      Tip("RiffTrax.com is an innovative site featuring the hilarious DVD commentaries of Michael J. Nelson - Star of the legendary Mystery Science Theater 3000! At RiffTrax.com, you can download feature-length commentaries by Mike (plus other stars of MST3K and guest celebrities) and listen to these 'RiffTrax' in sync with your favorite, and not so favorite DVDs. Its like watching a movie with your funniest friends. <strong>And it's super easy to do!</strong><br/><br/>Just play the DVD and RiffTrax MP3 together and Voila! The Matrix, Star Wars and others just got way funnier! Our new RiffTrax Player even syncs everything together automatically! We also have many titles available On Demand already synced up!<br/><br/>There are over 200 RiffTrax available, and more are added frequently! Be sure to check back often!", WIDTH, 400, JUMPHORZ, true, ABOVE, true );
    }, function() {
      UnTip(); });

    $("#home-featured-allproducts #featured-rifftrax-link").hover(function(event) {
      Tip("RiffTrax are downloadable commentaries that you can easily sync up to a DVD!", WIDTH, 400, JUMPHORZ, true, ABOVE, true );
    }, function() {
      UnTip(); });

    $("#home-featured-allproducts #featured-ondemand-link").hover(function(event) {
      Tip("Some features - and all shorts - are available as Video On Demand! Each VOD purchase comes with files formatted for high quality viewing or burning to DVD, as well as two formats perfect for an iPod or Zune!", WIDTH, 400, JUMPHORZ, true, ABOVE, true );
    }, function() {
      UnTip(); });

    $("#home-featured-allproducts #featured-presents-link").hover(function(event) {
      Tip("RiffTrax Presents are commentaries from guests, such as Bill Corbett with Mary Jo Pehl, and Cole Stratton and Janet Varney!", WIDTH, 400, JUMPHORZ, true, ABOVE, true );
    }, function() {
      UnTip(); });

    $("#home-featured-allproducts #featured-iriffs-link").hover(function(event) {
      Tip("iRiffs are community-created 'Trax. The best ones are featured here on the homepage. Click the iRiffs link for more info!", WIDTH, 400, JUMPHORZ, true, ABOVE, true );
    }, function() {
      UnTip(); });

    $("#home-recent-diy h2.title").hover(function(event) {
      Tip("RiffTrax DIYs are fan-created videos - made with pre-loaded sound effects from Mike and the gang!", WIDTH, 400, JUMPHORZ, true, ABOVE, true );
    }, function() {
      UnTip(); });
  });


