 $(document).ready(function() {
 
 	$('#droitHideLink').click(function () { 
		$('#mainDroit').toggle();
		$('#droitHideImgLeft').toggle();
		$('#droitHideImgRight').toggle();
	});
	
	$('.borderInt').corner("round 8px").parent('.borderExt').css('padding', '4px').corner("round 10px");

	$('#searchRadio').buttonset();
	$.showSearch = function(section) {
		var toHide = section=="Lpdp" ? "Google" : "Lpdp";
		$('#search'+section).show();
		$('#search'+toHide).hide();
	}

	/*****
	Suggestbox
	******/

	/*$.getJSON("html_pregen/user_list.json",
		function(data){
			$('input#mainSearch').jsonSuggest(data,{maxResults:20, callback:callback_mainSearch});
		}
	);
	*/
	
	$('input#mainSearch')
		/*
		.keypress(function (e) {
			if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {  
				e.preventDefault();
			}
		})
		*/
		.focus(function () {
			if ($(this).val()=="Recherche") {
				$(this).val("");
			}
	    })
	    .blur(function () {
	    	if ($(this).val()=="") {
	    		$(this).val("Recherche");
	    	}
	    });


	function callback_mainSearch(item) {
		alert("in callback"+item.text);
		$('input#mainSearch').text=item.text;
		$('form#form_mainSearch').submit();
	}

 });

