
function initialize(){

		//-Listeners-//
			
			/*NAVLIST16*/
				/*
				$("#NAVLIST16_1").click(function(){receive("NAVLIST16","NAVLIST16_1","Content_NavList16.php")});
				$("#NAVLIST16_2").click(function(){receive("NAVLIST16","NAVLIST16_2","Content_NavList16.php")});
				$("#NAVLIST16_3").click(function(){receive("NAVLIST16","NAVLIST16_3","Content_NavList16.php")});
				$("#NAVLIST16_4").click(function(){receive("NAVLIST16","NAVLIST16_4","Content_NavList16.php")});
				$("#NAVLIST16_5").click(function(){receive("NAVLIST16","NAVLIST16_5","Content_NavList16.php")});
				$("#NAVLIST16_6").click(function(){receive("NAVLIST16","NAVLIST16_6","Content_NavList16.php")});
				*/
			/*NAVLIST21*/
				/*
				$("#NAVLIST21_1").click(function(){receive("NAVLIST21","NAVLIST21_1","Content_NavList21.php")});
				$("#NAVLIST21_2").click(function(){receive("NAVLIST21","NAVLIST21_2","Content_NavList21.php")});
				$("#NAVLIST21_3").click(function(){receive("NAVLIST21","NAVLIST21_3","Content_NavList21.php")});
				$("#NAVLIST21_4").click(function(){receive("NAVLIST21","NAVLIST21_4","Content_NavList21.php")});
				*/
			/*BOARD3*/
				/*
				$("#BOARD3_promotions").click(function(){});
				*/
			
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
//========================================================================//
//----------------------------FUNCTIONS ----------------------------------
//========================================================================//
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function receive(list, choice, folder){
		if ( list == "NAVLIST16" )
		{
		/*	$().ready(function() {
				$("#menu_img").fadeTo("slow", 0);
				$("#menu_img").fadeTo("slow", 1);
			});*/
		}
		else if ( list == "NAVLIST21" )
		{
			/*	$().ready(function() {
					$("#BOARD2_1").fadeTo("slow", 0);
					$("#BOARD2_1").fadeTo("slow", 1);
				});*/
		}
		
}

$("#NAVLIST17_1").live("click", function(){
	//simple alerte
	//alert("ca marche");
	data = "NAVLIST17=NAVLIST17_1";
	$.ajax({
			   type: "POST",
			   url: "./php/Content_NavList17.php",
			   data: data,
			   success: function(msg){
					location.reload(); 
			   }
			});
	return false;

	
});
$("#NAVLIST17_2").live("click", function(){
//alert("ca marche");
	//simple alerte
	
	data = "NAVLIST17=NAVLIST17_2";
	$.ajax({
			   type: "POST",
			   url: "./php/Content_NavList17.php",
			   data: data,
			   success: function(msg){
					location.reload(); 
			   }
			});
	return false;
	
});

$("#NAVLIST17_3").live("click", function(){
	//alert("ca marche");
	//simple alerte
	
	data = "NAVLIST17=NAVLIST17_3";
	$.ajax({
			   type: "POST",
			   url: "./php/Content_NavList17.php",
			   data: data,
			   success: function(msg){
					location.reload(); 
			   }
			});
	return false;
});

function popup(nom_de_la_page, nom_interne_de_la_fenetre, width, height){
	left = screen.width/2 - (width/2);
	top = screen.height/2 - (height/2);
	window.open(nom_de_la_page,nom_interne_de_la_fenetre, config='height='+height+',width='+width+',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no,top='+top+',left='+left);

}

function is_Input1_Complete(){
	first_name = documents.forms.input1.firstname.value;
	name =  documents.forms.input1.name.value;
	email = documents.forms.input1.email.value;
	telephone = documents.forms.input1.telephone.value;
	message = documents.forms.input1.message.value;
	code = documents.forms.input1.code.value;
	//
	if(first_name != "" && name != "" && email != "" && telephone != "" && message != "" && code != "")
	{
		if ( ! verify_email(email) )
		{
			alert("error email");
		}
		else if (message.length() > 200)
		{
			alert("message doit pas depasser 100");
		}
	
	}
	else
	{
		alert("des champs n'ont pas été remplis");	
	}
	
}

function defineClassById(searched_id, className) {
	var current_item;
	current_item = document.getElementById(searched_id);
	current_item.className = className;
}

function highlightListEntry(entry_id, className) {
	var current_item;
	current_item = document.getElementById(entry_id);
	current_item.className = className;
}

function clearListEntries(list_id_prefix, nb_listEntries) {
	var searched_id;
	var current_item;
	
	for ( i = 1; i <= nb_listEntries; i++ ) 
	{
			// alert(i);
			searched_id = list_id_prefix + '_' + i;
			// alert(searched_id);
			current_item = document.getElementById(searched_id);
			current_item.className = "";
		}
}

