$(document).ready(function() {
	$(function () {
		$('a.sideBarButton').hover(function() {
			$(this).fadeTo("fast", 1);
		}, function() {
			$(this).fadeTo("fast", .85);
		});
	});


	$('#form_interroger_juriste').submit(function() {
		var _numero = $("#form_interroger_juriste_numero").val();
		if((_numero != '') && (_numero != "Votre numéro...")){
			$.ajax({
				type: "POST",
				url: "wp-content/themes/fourWPTP/numero_interroger_juriste.php",
				data: "number=" + _numero,
				success: function(msg){
					$("#form_interroger_juriste_numero").val('Votre numéro...');
					alert(msg);
				}
			});
		}
		else{
			alert('Veuillez saisir un numéro valide !');
		}
		return false;
	});
	
	$("#form_interroger_juriste_numero").click(function(){
		if($(this).val() == "Votre numéro...")
			$(this).val('');
	});

});
