(function( $ )
{
    $.fn.watermark = function()
	{
		return this.each( function()
		{
			var label = $( this ),
				input = $( "#" + label.attr( "for" ) );
			
			input.bind( "focus blur", function( event )
			{
				event.type == "focus"
					? label.hide()
					: label[ input.val().length ? "hide" : "show" ](); 
			});
			
			input.val().length
				&& label.hide();
		});
	}
})( jQuery );
