jQuery.fn.fstyle = function(options) {
	var settings = {
	};
	if(options) jQuery.extend(settings,options);
	
	return this.each(function(){
		$this = jQuery(this);
		$this.wrap(jQuery('<div class="custom-file-button"></div>'))
		.parent().after(jQuery('<div class="' + this.className + '"><input type="text" disabled="disabled" /></div>'))
		.end().css({
			opacity: 0,
			cursor: "pointer"
		});
		$this.addClass("processed");
		$this.bind(jQuery.browser.msie ? "propertychange" : "change", function(){
			showVal(jQuery(this));		        
		})
	});
}

var showVal = function(initJObj) {
	initJObj.parent().next().find("input").val(initJObj.val());		
}

