;(function($){
  // http://stackoverflow.com/questions/920236/jquery-detect-if-selector-returns-null
  $.fn.exists = function() {
    return $(this).length !== 0;
  };
  // returns false
  // $("#notAnElement").exists();

  // http://chris-barr.com/entry/disable_text_selection_with_jquery
  $.fn.disableTextSelect = function() {
    return this.each(function(){
      if($.browser.mozilla){//Firefox
      }else if($.browser.msie){//IE
        $(this).css('MozUserSelect','none');
        $(this).bind('selectstart',function(){return false;});
      }else{//Opera, etc.
        $(this).mousedown(function(){return false;});
      }
    });
  };
  // No text selection on elements with a class of 'noSelect'
  $('label').disableTextSelect();
  $('.noSelect').disableTextSelect();
})(jQuery);
function slideDownFix(el, speed){
  var $div = $(el);
  var height = $div.height();
  $div.css({height:0});
  $div.show().animate({height:height},{duration:speed});
}
if (!$.browser.msie) $(".corner").corner();
