			// Chargement de la bibliothèque jQuery
			google.load("jquery", "1.2.6");

			// Fonction à exécuter quand la page est complète
			function initialize() {

				// On se protège des éventuels conflits avec d'autres bibliothèques JavaScript
				jQuery.noConflict();

// MENU

				// Définition des éléments interactifs
				var menu = jQuery("#menu ul li");					// Boutons secteurs du menu

				// Fonction à exécuter au survol d'un bouton du menu
				function menu_over() {
					jQuery(this).contents("ul").show();
				}
 
				// Fonction à exécuter après le survol d'un bouton du menu
				function menu_out() {
					jQuery(this).contents("ul").hide();
				}

				// Evénements déclenchant un appel jQuery
				menu.hover(menu_over,menu_out);						// Survol d'un bouton secteur


// BLOC HISTOIRE


				// Définition des éléments interactifs
				var histoire1 = jQuery("#histoire1");					// Bloc histoire 1
				//var histoire1_logo = jQuery("#histoire1 .logo");		// Image du bloc histoire 1
				//var histoire1_links = jQuery("#histoire1 .links");		// Liens du bloc histoire 1

				var histoire2 = jQuery("#histoire2");					// Bloc histoire 2
				//var histoire2_logo = jQuery("#histoire2 .logo");		// Image du bloc histoire 2
				//var histoire2_links = jQuery("#histoire2 .links");		// Liens du bloc histoire 2
				var histoire3 = jQuery("#histoire3");					// Bloc histoire 3
				//var histoire3_logo = jQuery("#histoire3 .logo");		// Image du bloc histoire 3
				//var histoire3_links = jQuery("#histoire3 .links");		// Liens du bloc histoire 3
 
				// On cache les détails des blocs cible, sauf le premier
				//jQuery("#blocks li:not(:first)").hide()
 
				// Fonction à exécuter au survol d'une histoire
				function histoire_over() {
//alert(e.id);
//histoire1_logo.stop();
//histoire1_links.stop();
					var histoire_logo = jQuery(this).find(".logo");
					var histoire_links = jQuery(this).find(".links");
					histoire_logo.slideUp("normal");					
					histoire_links.show();
				}
				
				// Fonction à exécuter après le survol d'une histoire
				function histoire_out() {
//histoire1_logo.stop();
//histoire1_links.stop();
					var histoire_logo = jQuery(this).find(".logo");
					var histoire_links = jQuery(this).find(".links");
					histoire_links.hide();
						histoire_logo.slideDown("normal");
				
				}

				// Evénements déclenchant un appel jQuery
				histoire1.hover(histoire_over,histoire_out);		// Survol du bloc histoire 1
				histoire2.hover(histoire_over,histoire_out);		// Survol du bloc histoire 2
				histoire3.hover(histoire_over,histoire_out);		// Survol du bloc histoire 3


// BLOC PHOTO

				// Fonction à exécuter au survol d'un bloc promo
				function promo_over() {
					jQuery("#album .logo").fadeOut("normal");
				}
 
				// Fonction à exécuter après le survol d'un bloc promo
				function promo_out() {
					jQuery("#album .logo").fadeIn("normal");
				}

				// Evénements déclenchant un appel jQuery
				jQuery("#album").hover(promo_over,promo_out);		// Survol du bloc photo


// BLOC PARTENAIRES


				// On définit l'objet à animer
				var scroller = jQuery("#partners_list ol");
 
				// On récupère tous les éléments
				scroller.items = jQuery("li", scroller);
 
				// On positionne le premier élément
				scroller.current_item = 0;
				jQuery(scroller.items[scroller.current_item]).css('top','0px');
 
				function headline_rotate() {
 
					// On vérifie que l'animation n'est pas en pause
					if(scroller.pause) return;
 
					// On anime l'élément courant
					jQuery(scroller.items[scroller.current_item]).animate({top: -180}, "slow", function() {
						jQuery(this).css('top','180px');
					});
 
					// On passe à l'élément suivant et on l'anime
					scroller.current_item = ++scroller.current_item % (scroller.items.size());
					jQuery(scroller.items[scroller.current_item]).show().animate({top: 0},"slow");
 
				}
 
				// On appelle la fonction d'animation à intervalles réguliers
				setInterval(headline_rotate,4000);
 
				// On interrompt l'animation au survol
				scroller.hover(
					function() { scroller.pause = true; },
					function() { scroller.pause = false; }
				);


// BLOC NEWS


				// On définit l'objet à animer
				var scroller2 = jQuery("#news_list ol");
 
				// On récupère tous les éléments
				scroller2.items = jQuery("li", scroller2);
 
				// On positionne le premier élément
				scroller2.current_item = 0;
				jQuery(scroller2.items[scroller2.current_item]).css('top','0px');
 
				function headline_rotate2() {
 
					// On vérifie que l'animation n'est pas en pause
					if(scroller2.pause) return;
 
					// On anime l'élément courant
					jQuery(scroller2.items[scroller2.current_item]).animate({top: -180}, "slow", function() {
						jQuery(this).css('top','180px');
					});
 
					// On passe à l'élément suivant et on l'anime
					scroller2.current_item = ++scroller2.current_item % (scroller2.items.size());
					jQuery(scroller2.items[scroller2.current_item]).show().animate({top: 0},"slow");
 
				}
 
				// On appelle la fonction d'animation à intervalles réguliers
				setInterval(headline_rotate2,4000);
 
				// On interrompt l'animation au survol
				scroller2.hover(
					function() { scroller2.pause = true; },
					function() { scroller2.pause = false; }
				);


// BLOC CONTACT

				// Définition des éléments interactifs
				var links = jQuery("#bloc_contact_menu li");		// Eléments de la liste des liens (sources)
				var blocks = jQuery("#bloc_contact_content li");		// Eléments de la liste des blocs (cibles)
 
				// Fonction à exécuter au survol d'un lien
				function link_over() {
					var onglet = jQuery(this);
					onglet.siblings().children("a").attr("class","");
					onglet.children("a").attr("class","active");
					blocks.hide()
					var block_id = "bloc_" + jQuery(this).attr("id");
//alert(block_id);
					jQuery("#bloc_contact_content li[id=" + block_id + "]").show()
				}
 
				// Fonction à exécuter après le survol d'un lien
				function link_out() {
					return false;
				}
 
				// Evénements déclenchant un appel jQuery
				links.hover(link_over,link_out);		// Survol de la liste liens



			}

			// Exécution du JavaScript quand la page est complète
			google.setOnLoadCallback(initialize);
