  jQuery(document).ready(function(){

    // tab sets
    jQuery("#tabset1 > ul").tabs();
    jQuery("#tabset2 > ul").tabs();
    jQuery("#tabset3 > ul").tabs();
    jQuery("#tabset4 > ul").tabs();

    // learn more tab blind down
    jQuery("#learn_more").hide();
    jQuery("#tabcontrol4 > li > a").click(function () {
      jQuery("#learn_more").show("blind", { direction: "vertical" }, 1000);
    });

    // image scroller
    jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
      return -c * ((t=t/d-1)*t*t*t - 1) + b;
    };

    // image scroller
    jQuery('#related_videos div.panel div.carousel').serialScroll({
      items:'li',
      prev:'div#related_videos div.previous a.prev',
      next:'div#related_videos div.next a.next',
      // when scrolling to photo, stop 270 before reaching it (from the left)
      offset:-270,
      start:2, //as we are centering it, start at the 2nd
      duration:1200,
      step:3,
      force:true,
      stop:true,
      lock:false,
      cycle:false, //don't pull back once you reach the end
      easing:'easeOutQuart', //use this easing equation for a funny effect
      //if true, click on the images to scroll to them, else false allows href
      jump:false
    });

    // image scroller
    jQuery('div#hot_now div.panel div.carousel').serialScroll({
      items:'li',
      prev:'div#hot_now div.previous a.prev',
      next:'div#hot_now div.next a.next',
      // when scrolling to photo, stop 270 before reaching it (from the left)
      offset:-270,
      start:2, //as we are centering it, start at the 2nd
      duration:1200,
      step:3,
      force:true,
      stop:true,
      lock:false,
      cycle:false, //don't pull back once you reach the end
      easing:'easeOutQuart', //use this easing equation for a funny effect
      //if true, click on the images to scroll to them, else false allows href
      jump:false
    });

  });

