(function($){
	

	$.fn.extend({

		customStyle : function(options) {
		if(!$.browser.msie || ($.browser.msie&&$.browser.version>6)){
			return this.each(function() {	  
				var currentSelected = ($(this).find(':selected'));
				$(this).after('<span class="customStyleSelectBox"><span class="customStyleSelectBoxInner">'+currentSelected.text()+'</span></span>').css({position:'absolute', opacity:0});
				var selectBoxSpan = $(this).next();
				var selectBoxSpanInner = selectBoxSpan.find(':first-child');
				var selectBoxHeight = parseInt(selectBoxSpan.height()) + parseInt(selectBoxSpan.css('padding-top')) + parseInt(selectBoxSpan.css('padding-bottom'));
				var tmp_currentSelect = $(this);

				$(this).height(selectBoxHeight).change(function(){
					// selectBoxSpanInner.text($(this).val()).parent().addClass('changed');   //This was not ideal
					selectBoxSpanInner.text($(this).find(':selected').text()).parent().addClass('changed');
					// Thanks to Juarez Filho & PaddyMurphy
				});						
			});
		} // end if 
	}
	});

	

})(jQuery);
