
// JavaScript Document

  //====================================
  //initialisation slider	
  //====================================

	$(document).ready(function() {

		$(".slideBox1:first").show();
		$(".slideBox1:last").hide();
		
		$(".slideBox2:first").show();
		$(".slideBox2:last").hide();
		
		$(".slideBox3:first").show();
		$(".slideBox3:last").hide();
		
		$(".slideBox4:first").show();
		$(".slideBox4:last").hide();
		
		$(".slideBox5:first").show();
		$(".slideBox5:last").hide();
		
		$(".slideBox6:first").show();
		$(".slideBox6:last").hide();

		$(".slideBox7:first").show();
		$(".slideBox7:last").hide();
		
		$(".slideBox8:first").show();
		$(".slideBox8:last").hide();
		
		$(".slideBox9:first").show();
		$(".slideBox9:last").hide();

$("#highlightActus").hide();
$("#highlightDossiers").hide();
$("#popVideo").hide();
$("#popVideoContent").hide();

//=========================================
//= Affichage des onglets  des formations =
//=========================================
/*$("#highlightLargeDescriptif").hide();*/
/*$("#highlightLargeProgramme").hide();*/
/*$("#highlightLargeDeroulement").hide();*/
/*$("#highlightLargeAvantages").hide();*/
/*$("#highlightLargePreRequis").hide();*/
/*$("#highlightLargeVideo").hide();*/
//=======================================

  //====================================
  //onglets	
  //====================================

 $("#btnHighlightFormations").click(function () {
		$("#highlightActus").hide();
		$("#highlightDossiers").hide();
		$("#highlightFormations").fadeIn("slow");
		document.getElementById("btnHighlightActus").className="none";
		document.getElementById("btnHighlightDossiers").className="none";
		document.getElementById("btnHighlightFormations").className="selected";
	});
 $("#btnHighlightDossiers").click(function () {
		$("#highlightActus").hide();
		$("#highlightFormations").hide();
		$("#highlightDossiers").fadeIn("slow");
		document.getElementById("btnHighlightActus").className="none";
		document.getElementById("btnHighlightDossiers").className="selected";
		document.getElementById("btnHighlightFormations").className="none";
	});
 $("#btnHighlightActus").click(function () {
		$("#highlightFormations").hide();
		$("#highlightDossiers").hide();
		$("#highlightActus").fadeIn("slow");
		document.getElementById("btnHighlightActus").className="selected";
		document.getElementById("btnHighlightDossiers").className="none";
		document.getElementById("btnHighlightFormations").className="none";
	});
 
  $("#btnHighlightLargeDescriptif").click(function () {
		$("#highlightLargeDescriptif").fadeIn("slow");
		$("#highlightLargeProgramme").hide();
		$("#highlightLargeDeroulement").hide();
		$("#highlightLargeAvantages").hide();
		$("#highlightLargePreRequis").hide();
		$("#highlightLargeVideo").hide();
		document.getElementById("btnHighlightLargeDescriptif").className="selected";
		document.getElementById("btnHighlightLargeProgramme").className="none";
		document.getElementById("btnHighlightLargeDeroulement").className="none";
		document.getElementById("btnHighlightLargeAvantages").className="none";
		document.getElementById("btnHighlightLargePreRequis").className="none";
		document.getElementById("btnHighlightLargeVideo").className="none";
	});

   $("#btnHighlightLargeProgramme").click(function () {
		$("#highlightLargeDescriptif").hide();
		$("#highlightLargeProgramme").fadeIn("slow");
		$("#highlightLargeDeroulement").hide();
		$("#highlightLargeAvantages").hide();
		$("#highlightLargePreRequis").hide();
		$("#highlightLargeVideo").hide();
		document.getElementById("btnHighlightLargeDescriptif").className="none";
		document.getElementById("btnHighlightLargeProgramme").className="selected";
		document.getElementById("btnHighlightLargeDeroulement").className="none";
		document.getElementById("btnHighlightLargeAvantages").className="none";
		document.getElementById("btnHighlightLargePreRequis").className="none";
		document.getElementById("btnHighlightLargeVideo").className="none";
	});

    $("#btnHighlightLargeDeroulement").click(function () {
		$("#highlightLargeDescriptif").hide();
		$("#highlightLargeProgramme").hide();
		$("#highlightLargeDeroulement").fadeIn("slow");
		$("#highlightLargeAvantages").hide();
		$("#highlightLargePreRequis").hide();
		$("#highlightLargeVideo").hide();
		document.getElementById("btnHighlightLargeDescriptif").className="none";
		document.getElementById("btnHighlightLargeProgramme").className="none";
		document.getElementById("btnHighlightLargeDeroulement").className="selected";
		document.getElementById("btnHighlightLargeAvantages").className="none";
		document.getElementById("btnHighlightLargePreRequis").className="none";
		document.getElementById("btnHighlightLargeVideo").className="none";
	});

   	$("#btnHighlightLargeAvantages").click(function () {
		$("#highlightLargeDescriptif").hide();
		$("#highlightLargeProgramme").hide();
		$("#highlightLargeDeroulement").hide();
		$("#highlightLargeAvantages").fadeIn("slow");
		$("#highlightLargePreRequis").hide();
		$("#highlightLargeVideo").hide();
		document.getElementById("btnHighlightLargeDescriptif").className="none";
		document.getElementById("btnHighlightLargeProgramme").className="none";
		document.getElementById("btnHighlightLargeDeroulement").className="none";
		document.getElementById("btnHighlightLargeAvantages").className="selected";
		document.getElementById("btnHighlightLargePreRequis").className="none";
		document.getElementById("btnHighlightLargeVideo").className="none";
	});

    $("#btnHighlightLargePreRequis").click(function () {
		$("#highlightLargeDescriptif").hide();
		$("#highlightLargeProgramme").hide();
		$("#highlightLargeDeroulement").hide();
		$("#highlightLargeAvantages").hide();
		$("#highlightLargePreRequis").fadeIn("slow");
		$("#highlightLargeVideo").hide();
		document.getElementById("btnHighlightLargeDescriptif").className="none";
		document.getElementById("btnHighlightLargeProgramme").className="none";
		document.getElementById("btnHighlightLargeDeroulement").className="none";
		document.getElementById("btnHighlightLargeAvantages").className="none";
		document.getElementById("btnHighlightLargePreRequis").className="selected";
		document.getElementById("btnHighlightLargeVideo").className="none";
	});

   	$("#btnHighlightLargeVideo").click(function () {
		$("#highlightLargeDescriptif").hide();
		$("#highlightLargeProgramme").hide();
		$("#highlightLargeDeroulement").hide();
		$("#highlightLargeAvantages").hide();
		$("#highlightLargePreRequis").hide();
		$("#highlightLargeVideo").fadeIn("slow");
		document.getElementById("btnHighlightLargeDescriptif").className="none";
		document.getElementById("btnHighlightLargeProgramme").className="none";
		document.getElementById("btnHighlightLargeDeroulement").className="none";
		document.getElementById("btnHighlightLargeAvantages").className="none";
		document.getElementById("btnHighlightLargePreRequis").className="none";
		document.getElementById("btnHighlightLargeVideo").className="selected";
	});
 
	$("#btnOpenPopVideo").click(function () {
		$("#popVideo").fadeIn("slow");
		$("#popVideoContent").fadeIn("slow");
	});
	$("#btnClosePopVideo").click(function () {
		$("#popVideo").hide();
		$("#popVideoContent").hide();
	});
 
 
  //====================================
  //slider	
  //====================================	
 
 $("#prevbtn1").click(function () {
		$(".slideBox1:last").hide();
		$(".slideBox1:first").fadeIn("slow");
	});
  $("#nextbtn1").click(function () {
		$(".slideBox1:first").hide();
		$(".slideBox1:last").fadeIn("slow");
	});
 $("#prevbtn2").click(function () {
		$(".slideBox2:last").hide();
		$(".slideBox2:first").fadeIn("slow");
	});
  $("#nextbtn2").click(function () {
		$(".slideBox2:first").hide();
		$(".slideBox2:last").fadeIn("slow");
	});
 $("#prevbtn3").click(function () {
		$(".slideBox3:last").hide();
		$(".slideBox3:first").fadeIn("slow");
	});
  $("#nextbtn3").click(function () {
		$(".slideBox3:first").hide();
		$(".slideBox3:last").fadeIn("slow");
	});  
	$("#prevbtn4").click(function () {
		$(".slideBox4:last").hide();
		$(".slideBox4:first").fadeIn("slow");
	});
  $("#nextbtn4").click(function () {
		$(".slideBox4:first").hide();
		$(".slideBox4:last").fadeIn("slow");
	}); 
   $("#prevbtn5").click(function () {
		$(".slideBox5:last").hide();
		$(".slideBox5:first").fadeIn("slow");
	});
  $("#nextbtn5").click(function () {
		$(".slideBox5:first").hide();
		$(".slideBox5:last").fadeIn("slow");
	});
 $("#prevbtn6").click(function () {
		$(".slideBox6:last").hide();
		$(".slideBox6:first").fadeIn("slow");
	});
  $("#nextbtn6").click(function () {
		$(".slideBox6:first").hide();
		$(".slideBox6:last").fadeIn("slow");
	});
	$("#prevbtn7").click(function () {
		$(".slideBox7:last").hide();
		$(".slideBox7:first").fadeIn("slow");
	});
  $("#nextbtn7").click(function () {
		$(".slideBox7:first").hide();
		$(".slideBox7:last").fadeIn("slow");
	});
 $("#prevbtn8").click(function () {
		$(".slideBox8:last").hide();
		$(".slideBox8:first").fadeIn("slow");
	});
  $("#nextbtn8").click(function () {
		$(".slideBox8:first").hide();
		$(".slideBox8:last").fadeIn("slow");
	});
	$("#prevbtn9").click(function () {
		$(".slideBox9:last").hide();
		$(".slideBox9:first").fadeIn("slow");
	});
  $("#nextbtn9").click(function () {
		$(".slideBox9:first").hide();
		$(".slideBox9:last").fadeIn("slow");
	});

  
  //====================================
  //formation menu	
  //====================================	

  //==================================================
  //formation Systeme
  //==================================================
	
	$("#menuFormationSysteme").hide();
	$("#contFormationSysteme").hide();
	
	$("#navFormationSysteme").click(function () {
		$("#contFormationSysteme").toggle(250);
		$("#menuFormationSysteme").toggle(250);
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
		$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
		$("#contFormationManagement").fadeOut(250);
		$("#menuFormationManagement").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
		$("#contFormationPanorama").fadeOut(250);
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);		
		$("#contFormationEssential").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);
	});
 
 	$("#contFormationSysteme li").click(function () {
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
	});
  
  //==================================================


  //==================================================
  //Formation Reseau
  //==================================================
  
	
	$("#menuFormationReseau").hide();
	$("#contFormationReseau").hide();

	$("#navFormationReseau").click(function () {
		$("#contFormationReseau").toggle(250);
		$("#menuFormationReseau").toggle(250);
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
		$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
		$("#contFormationManagement").fadeOut(250);
		$("#menuFormationManagement").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
		$("#contFormationPanorama").fadeOut(250);
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);
		$("#contFormationEssential").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);
	});
  
  $("#contFormationReseau li").click(function () {
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
	  });
  
  //==================================================
  
  //==================================================
  //Formation BDD
  //==================================================
  
	
	$("#menuFormationBDD").hide();
	$("#contFormationBDD").hide();

	$("#navFormationBDD").click(function () {
		$("#contFormationBDD").toggle(250);
		$("#menuFormationBDD").toggle(250);
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
		$("#contFormationPanorama").fadeOut(250);
		$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);
		$("#contFormationEssential").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);
		$("#contFormationManagement").fadeOut(250);
		$("#menuFormationManagement").fadeOut(250);
	});
  
  $("#contFormationBDD li").click(function () {
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
	});
  
  //==================================================
  
   //==================================================
  //Formation Developpeur
  //==================================================

	
	$("#menuFormationDeveloppeur").hide();
	$("#contFormationDeveloppeur").hide();

	$("#navFormationDeveloppeur").click(function () {
		$("#contFormationDeveloppeur").toggle(250);
		$("#menuFormationDeveloppeur").toggle(250);
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
		$("#contFormationPanorama").fadeOut(250);
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
		$("#contFormationManagement").fadeOut(250);
		$("#menuFormationManagement").fadeOut(250);	
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);
		$("#contFormationEssential").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);
	});
  
  $("#contFormationDeveloppeur li").click(function () {
  	$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
	});
  
  //==================================================

  //==================================================
  //Formation Management
  //==================================================


	$("#menuFormationManagement").hide();
	$("#contFormationManagement").hide();

	$("#navFormationManagement").click(function () {
		$("#contFormationManagement").toggle(250);
		$("#menuFormationManagement").toggle(250);
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
		$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
		$("#contFormationPanorama").fadeOut(250);
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);
		$("#contFormationEssential").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);
	});
  
  $("#contFormationManagement li").click(function () {
		$("#contFormationManagement").fadeOut(250);
		$("#menuFormationManagement").fadeOut(250);
	});

  //==================================================
  
  //==================================================
  //Formation Learning
  //==================================================
  
	$("#menuFormationLearning").hide();
	$("#contFormationLearning").hide();

	$("#navFormationLearning").click(function () {
		$("#contFormationLearning").toggle(250);
		$("#menuFormationLearning").toggle(250);
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
		$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
		$("#contFormationManagement").fadeOut(250);
		$("#menuFormationManagement").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
		$("#contFormationPanorama").fadeOut(250);
		$("#contFormationEssential").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);		
	});
  
  $("#contFormationLearning li").click(function () {
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);
	});
  
  //==================================================
  
  
  //==================================================
  //==================================================
  //Formation Essential
  //==================================================
  
	
	
	$("#menuFormationEssential").hide();
	$("#contFormationEssential").hide();

	$("#navFormationEssential").click(function () {
		$("#contFormationEssential").toggle(250);
		$("#menuFormationEssential").toggle(250);
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);
		$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
		$("#contFormationManagement").fadeOut(250);
		$("#menuFormationManagement").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
		$("#contFormationPanorama").fadeOut(250);
	});
  
  $("#contFormationEssential li").click(function () {
		$("#contFormationEssential").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);
	});
  //==================================================

  //==================================================
  //Formation Panorama
  //==================================================
  
	$("#menuFormationPanorama").hide();
	$("#contFormationPanorama").hide();

	$("#navFormationPanorama").click(function () {
		$("#contFormationPanorama").toggle(250);
		$("#menuFormationPanorama").toggle(250);
		$("#contFormationReseau").fadeOut(250);
		$("#menuFormationReseau").fadeOut(250);
		$("#contFormationSysteme").fadeOut(250);
		$("#menuFormationSysteme").fadeOut(250);
		$("#contFormationBDD").fadeOut(250);
		$("#menuFormationBDD").fadeOut(250);
		$("#contFormationLearning").fadeOut(250);
		$("#menuFormationLearning").fadeOut(250);
		$("#menuFormationEssential").fadeOut(250);
		$("#contFormationEssential").fadeOut(250);
		$("#contFormationDeveloppeur").fadeOut(250);
		$("#menuFormationDeveloppeur").fadeOut(250);
	});
  
  $("#contFormationPanorama li").click(function () {
		$("#contFormationPanorama").fadeOut(250);
		$("#menuFormationPanorama").fadeOut(250);
	});
  
  //==================================================

if(document.getElementById("news")){document.getElementById("news").style.display = 'block';}
if(document.getElementById("nav")){document.getElementById("nav").style.visibility = 'visible';}
if(document.getElementById("highLightSliders")){document.getElementById("highLightSliders").style.visibility = 'visible';}
if(document.getElementById("highlight")){document.getElementById("highlight").style.visibility = 'visible';}
   }); 
