/*
+ ---------------------------------------------------------------------------+
|    soliland
|
|     http://www.soliland.fr
|     cyril.janssens@free.fr
|
|     Released under the terms and conditions of the
|     GNU General Public License (http://gnu.org).
|
|	$Header: /soliland/V2/js/faqMenu/formEvents.js,v 1.4 2008/08/04 11:28:54 romain Exp $
|   $Source: /soliland/V2/js/faqMenu/formEvents.js,v $
|   $Revision: 1.4 $
|   $Date: 2008/08/04 11:28:54 $
|   $Author: romain $
|	$State: Exp $
+----------------------------------------------------------------------------+  
 */
$(document).ready(function() {
		    				   
	/*Page layout of the principal menu*/
	//$("#id_recherche").autocomplete("autocomplete_search.php"); 
	$("#q").click(
				function () {
					$(this).val(""); 
				}                 
	);      
		  	
	$("#id_recherche").click(
		function () {
			$(this).val(""); 
		}                 
	);    
	$("input#id_recherche").autocomplete("/autocomplete_search.php", {
		minChars: 1,    
		width: 260,
		selectFirst: true,
		mustMatch: false,
		autoFill:true   
	}); 
	$('input#id_recherche').flushCache();
	$('input#q').flushCache();   
                     
	            
	$(".mainMenuButton").hover(
		function () {
			path = getPath();
			this.src = path.image + "imgHeader/menu/hover/" + this.id + ".png";
		},
		function () {
			path = getPath();
			this.src = path.image + "imgHeader/menu/out/" + this.id + ".png";
		}
	);
	
		/*Page layout of the principal menu in UK*/
	$(".mainMenuButtonUK").hover(
		function () {
			path = getPath();
			this.src = path.image + "imgUK/imgHeader/menu/hover/" + this.id + ".png";
		},
		function () {
			path = getPath();
			this.src = path.image + "imgUK/imgHeader/menu/out/" + this.id + ".png";
		}
	);
	
		/*Page layout of the principal menu in DE*/
	$(".mainMenuButtonDE").hover(
		function () {
			path = getPath();
			this.src = path.image + "imgDE/imgHeader/menu/hover/" + this.id + ".png";
		},
		function () {
			path = getPath();
			this.src = path.image + "imgDE/imgHeader/menu/out/" + this.id + ".png";
		}
	);

 });
