var J = jQuery.noConflict(); 
var $j = jQuery.noConflict();
$j(function(){
		  $j('.nav-one').hide(); 
	$j('#menu1 ul li.dd, #menu2 ul li.dd2').mouseover(function(){
			$j(this).children('.nav-one').show();
			$j(this).children('a.lien, a.lien2').addClass('hover');
		});
});
$j(function(){
	$j('#menu1 ul li.dd, #menu2 ul li.dd2').mouseleave(function(){
			$j(this).children('.nav-one').hide();
			$j(this).children('a.lien, a.lien2').removeClass('hover');
		});
});

window.addEvent('domready', function() {
    new FormCheck('form1');  
});


function lookup(inputString,actionmethod,url) {
	
	if(inputString.length == 0) {
		// Hide the suggestion box.
		$j('#suggestions').hide();
	} else {
		
		$j.post(url, {queryString: ""+inputString+"",actionmethod: ""+actionmethod+""}, function(data){
			if(data.length >0) {
				$j('#suggestions').show();
				$j('#autoSuggestionsList').html(data);
			}
		});
	}
} // lookup

function fill(thisValue) {
	
	$j('#inputString').val(thisValue);
	setTimeout("$j('#suggestions').hide();", 200);
}

function date_fr(el)
{
	if (!el.value.test(/^([0-3][0-9])(\/)([0-1][0-9])(\/)([0-9]{4})/))
	{
		el.errors.push("Veuillez saisir une date de naissance valide au format suivant:<br /><span>Ex. 01/01/1970</span>");
		return false;
	}
	else
	{
		return true;
	}
}
