// Disables the ability to select the text
// usage: $( '#id').disableTextSelect();
jQuery.fn.disableTextSelect = function() {
	return this.each( function() {
   	$(this).css( { 'MozUserSelect': 'none' } )
				 .bind( 'selectstart', function() { return false; } )
				 .mousedown( function() { return false; } );
  	} );
};

// Enable the ability to select text
// usage: $( '#id').enableTextSelect();
jQuery.fn.enableTextSelect = function() {
  	return this.each( function() {
    	$(this).css( { 'MozUserSelect': '' } )
				 .unbind( 'selectstart' )
				 .mousedown( function() { return true; } );
  	} );
};

