;(function($) {
	/**
	 * Initialize the search input events
	 *
	 * @author	Sylvain Guillopé
	 * @date	2009-08-28
	 *
	 * @access	public
	 * @return	object
	 **/
	$.fn.initSearchInput = function() {
		return this.each(function() {
			$(this).focus(function() {
				$(this).css('color', '#000');
				if ('Search' == $(this).val()) {
					$(this).val('');
				}
				else {
					$(this).select();
				}
			});
			
			$(this).blur(function() {
				$(this).css('color', '#666');
				if ('' == $(this).val()) {
					$(this).val('Search');
				}
			});
		});
	};
})(jQuery);