// Facebox and jQuery autoload script sources from embedded faceboxed content.
// We don't want it to do that because it will reload javascript that's already
// been loaded, causing conflicts.
$.facebox.reveal_without_avoiding_scripts = $.facebox.reveal;
$.facebox.reveal = function(data, klass) {
  data = data.replace(/<script[^>]*src=[^>]*><\/script>/g, "");
  $.facebox.reveal_without_avoiding_scripts(data,klass);
};

// Facebox positions everything at pageHeight / 10.  We want videos to site at
// 60 px from top.
$.facebox.getPageHeight = function() {
  return 600;
};
