jQuery.fn.extend({
    disableSelection : function() {
            this.each(function() {
                    this.onselectstart = function() { return false; };
                    this.unselectable = "on";
                    //jQuery(this).css('-moz-user-select', 'none');
					jQuery("body").addClass("select-none");
            });
    },
    enableSelection : function() {
            this.each(function() {
                    this.onselectstart = function() {};
                    this.unselectable = "off";
					if(jQuery("body").hasClass("select-none")) jQuery("body").removeClass("select-none");
                    //jQuery(this).css('-moz-user-select', 'auto');
            });
    }
});

// кроссбраузерный вызов
$(document).ready(function(){$('body *').disableSelection()});
