// Input Lensing (jQuery plugin)
(function($) {
	// default binding
	$.extend({ lens : function() { $("input.lens").filter("[type=text]").lens(); } });
	// function
	$.fn.lens = function() {
		return this.bind("blur focus",function() {
				this.value = this.value == this.defaultValue ?
				(function(o) {
					// focus
					$(o).addClass("mod");
					return "";
				})(this) : this.value == "" ?
				(function(o) {
					// blur
					$(o).removeClass("mod");
					return o.defaultValue;
				})(this) : this.value;
		});
	};
	// init on doc.ready
	$(function() {
		$('.lens').lens();
	});
})(jQuery);