(function($) {
	
	$.fn.extend({
		
		beautifulSelect: function(options) {
			
			var defaults = {};
			
			options = $.extend(defaults, options);
			
			return this.each(function() {
				
				var dThis = this;
				
				this.Update = function() {
					$(dThis).parent().find('.faux span').text($(dThis).find('option:selected').text());
				};
				
				$(this).parent().find('select').css('opacity', 0);
				$(this).parent().append('<span class="faux"><span>' + $(this).find('option:selected').text() + '</span></span>');
				$(this).change(this.Update);
				$(this).focus(function() {
					$(this).closest('.field').addClass('focus');
				});
				$(this).blur(function() {
					$(this).closest('.field').removeClass('focus');
				});
			});
			
		}
		
	});
	
})(jQuery);