// JavaScript Document

/*********************************/
/*  Affichage Detail Formation  */
/******************************/
function Detail_Formation (argId_Catalogue, background_color  ){
	
	Id_Catalogue = argId_Catalogue;
	
	if($("deroul_form_"+Id_Catalogue).style.display == "none"){
		if($("ifr_"+Id_Catalogue).src.search("html_waiting")>0)$("ifr_"+Id_Catalogue).src="deroule_cours.php?Id_Catalogue="+Id_Catalogue+"&background_color="+background_color;
/*		if(cherche_navigateur()=="IE" || cherche_navigateur()=="IE7"){
			$("deroul_form_"+Id_Catalogue).style.display = "inline";
		}
		else{
			//alert("deroul_form_"+id_ligne);
			$("deroul_form_"+Id_Catalogue).style.display = "table-row";
		}
*/		/* alert (background_color); */		
		
		$("deroul_form_"+Id_Catalogue).show();
		//Effect.SlideDown("deroul_form_"+Id_Catalogue, {duration:1});
		$("titre_"+Id_Catalogue).innerHTML="<B>"+($("titre_"+Id_Catalogue).innerHTML)+"</B>";
		( document["img_name_"+Id_Catalogue].src) = "/images/Picto_Moins_DeroulFormat.gif";


		//alert ( "pm_"+Id_Catalogue.innerHTML );
		
		
	}
	else{ 
		$("deroul_form_"+Id_Catalogue).hide();
		//Effect.SlideUp("deroul_form_"+Id_Catalogue, {duration:1});
		
		//window.setTimeout("Masquer_Formation(Id_Catalogue)",000);
		
		( document["img_name_"+Id_Catalogue].src) = 	"/images/Picto_Plus_DeroulFormat.gif";
		$substring = ($("titre_"+Id_Catalogue).innerHTML).substring(3, ( ($("titre_"+Id_Catalogue).innerHTML).length -4 ));
		//alert ($("titre_"+Id_Catalogue).innerHTML);
		$("titre_"+Id_Catalogue).innerHTML= ($substring);
	}
}

function Masquer_Formation(Id_Catalogue){
	$("deroul_form_"+Id_Catalogue).style.display = "none";
}

function Imprim_Formation (Id_Catalogue){
	$("ifr_print_"+Id_Catalogue).src="deroule_cours_print.php?Id_Catalogue="+Id_Catalogue;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
/*********************************/
/*  Export PDF                  */
/******************************/

function Deroule_Export_PDF(Id_Catalogue){

	window.location = "/plug_in/html2ps_v2042/public_html/demo/html2ps.php?process_mode=single&URL=http%3A%2F%2Fwww.nextformation.com%2Fpage%2Fformation%2Fconvertion_pdf.php?Id_Catalogue="+Id_Catalogue+"&pixels=800&scalepoints=1&renderimages=1&media=A4&cssmedia=Screen&leftmargin=0&rightmargin=0&topmargin=15&bottommargin=0&encoding=&headerhtml=&footerhtml=&watermarkhtml=&toc-location=before&smartpagebreak=1&pslevel=3&method=fpdf&pdfversion=1.5&output=1&convert=Convert+File";
	
}
/*********************************/
/*  Impression                  */
/******************************/

function Imprim(Id_Catalogue){

 	window.open("../formation/deroule/deroule-formation.php?Id_Catalogue="+Id_Catalogue+"&pixels=800&scalepoints=1&renderimages=1&media=A4&cssmedia=Screen&leftmargin=0&rightmargin=0&topmargin=15&bottommargin=0&encoding=&headerhtml=&footerhtml=&watermarkhtml=&toc-location=before&smartpagebreak=1&pslevel=3&method=fpdf&pdfversion=1.5&output=1&convert=Convert+File");
	
}