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 fill2(thisValue) {
	
	$j('#idville').val(thisValue);
}


