/**
 * @class watermark
 * Modify a input element (textbox, passowrd, textarea, select, etc) to have an effect on focus/blur event
 *
 * @param Object oNormal : Css effect when the object haven't the focus
 * @param Object oActive : Css effect when the object have the focus
 */
;(function($) {$.fn.watermark = function () {
	this.each (function () {
		var _sOriginalText = $(this).val ();

		$(this).focus (function () {
			if ($(this).val () == _sOriginalText && ($(this).attr ('type') == 'text'
												|| $(this).attr ('type') == 'password'
												|| this.tagName.toLowerCase () == 'textarea'))
				$(this).val ('');
		});

		$(this).blur (function () {
			if ($(this).val () == '') $(this).val (_sOriginalText);
		});
	});

	return $(this);
}})(jQuery);

$(document).ready(function () {$('input[type!=submit], input[type!=image], textarea').watermark()});