jQuery.fn.extend({
  scrollTo : function(speed, easing) {
    if(!$(this)[0].hash || $(this)[0].hash == "#") {
      return false;
    }
    return this.each(function() {
      var targetOffset = $($(this)[0].hash).offset().top;
      $('html,body').animate({scrollTop: targetOffset}, speed, easing);
    });
  }
});

$(document).ready(function(){
  $('a[href*=#]').click(function() {
    $(this).scrollTo(500);
    return false;
  });
});

$(function() {
$('.tips').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	fade: 100
});
});

$(document).ready(function() {
	$("ul#channel-list").ytplaylist({
		addThumbs:true,
		autoPlay: false,
		playerHeight : 260,
		playerWidth : 310
   });
});

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
