//jQuery(window).bind("beforeunload", function(){return confirm("Do you really want to close?") });
$(document).ready(function()
{
	blocRecherche.init();
});

var blocRecherche = (function()
{
	return {
		bloc :	{
					id:			"bloc_recherche"
				},
		els :	{
					id1:		"recherche",
					mess1:		""
				},
		init :	function()
		{
			var o = blocRecherche;
			o.els.mess1 = $("#"+o.bloc.id).find("#"+o.els.id1).val();
			$("#"+o.bloc.id).find("#"+o.els.id1).focus(function()
			{
				$this = $(this);
				if($this.val() == o.els.mess1)
					$this[0].value = "";
			});
			$("#"+o.bloc.id).find("#"+o.els.id1).blur(function()
			{
				$this = $(this);
				if($this.val() == "")
					$this[0].value = o.els.mess1;
			});
		}
	}
})();
