/**
 * Clear Replace 
 * @usage:  jQuery("input:text").clearreplace();
 * @author: mcn
 */
;(function(jQuery) {
	jQuery.fn.clearreplace = function(op){
		jQuery(this).addClass('inputdefault').bind("click", function() {
			jQuery(this).val(function(){if (this.value == this.defaultValue) {return ''} return this.value}).removeClass('inputdefault');
		}).bind("blur", function() {
			jQuery(this).val(function(){if (this.value == '') {return this.defaultValue} return this.value}).addClass('inputdefault');
		});
	};
})(jQuery);
