
	///////////////////////////////
	//////////// VIDEO ////////////
	///////////////////////////////


	function AfficheVideo(monDataPath, monNom, nameOutput, videoOutput, musicOutput, soundOutput, versionOutput, infoOutput){

	//attributs du flash
			monVPreloader = "video/vpreloader.swf?datapath="	+ monDataPath + ".swf";
			monVPreloader = monVPreloader + "&nameOutput="		+ nameOutput;
			monVPreloader = monVPreloader + "&videoOutput="		+ videoOutput;
			monVPreloader = monVPreloader + "&musicOutput="		+ musicOutput;
			monVPreloader = monVPreloader + "&soundOutput="		+ soundOutput;
			monVPreloader = monVPreloader + "&versionOutput="	+ versionOutput;
			monVPreloader = monVPreloader + "&infoOutput="		+ infoOutput;
			width = "440";
			height = "380";

 	//ecriture du code HTML
			w=open("",'mp3','width='+ width +',height='+ height +',toolbar=no,scrollbars=no,resizable=no,status=no');
			w.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" ><title>'+ monNom +'</title></head>');
			w.document.write('<body leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>');
			w.document.write('<object classid="clsid:D27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
			w.document.write('width='+ width +' height='+ height +'>');
			w.document.write('<param name=movie value="'+ monVPreloader +'">');
			w.document.write('<param name=menu value=false>');
			w.document.write('<param name=quality value=high>');
			w.document.write('<param name=bgcolor value=#CAD3CA>');
			w.document.write('<embed src="'+ monVPreloader +'" menu=false quality=high bgcolor=#CAD3CA ');
			w.document.write('width='+ width +' height='+ height +' type="application/x-shockwave-flash" ');
			w.document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
			w.document.write('</embed></object>');
			w.document.write('</body></html>');
			w.document.close();
	}



	///////////////////////////////
	///////////// MP3 /////////////
	///////////////////////////////

	function AfficheMP3(monDataPath, monNom, nameOutput, musicOutput, lyricOutput, versionOutput, infoOutput){

 	//attributs du flash
			monPreloader = "music/preloader.swf?datapath="		+ monDataPath + ".swf";
			monPreloader = monPreloader + "&nameOutput="		+ nameOutput;
			monPreloader = monPreloader + "&musicOutput="		+ musicOutput;
			monPreloader = monPreloader + "&lyricOutput="		+ lyricOutput;
			monPreloader = monPreloader + "&versionOutput="		+ versionOutput;
			monPreloader = monPreloader + "&infoOutput="		+ infoOutput;
			width = "440";
			height = "230";

 	//ecriture du code HTML
			w=open("",'mp3','width='+ width +',height='+ height +',toolbar=no,scrollbars=no,resizable=no,status=no');
			w.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" ><title>'+ monNom +'</title></head>');
			w.document.write('<body leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>');
			w.document.write('<object classid="clsid:D27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
			w.document.write('width='+ width +' height='+ height +'>');
			w.document.write('<param name=movie value="'+ monPreloader +'">');
			w.document.write('<param name=menu value=false>');
			w.document.write('<param name=quality value=high>');
			w.document.write('<param name=bgcolor value=#CAD3CA>');
			w.document.write('<embed src="'+ monPreloader +'" menu=false quality=high bgcolor=#CAD3CA ');
			w.document.write('width='+ width +' height='+ height +' type="application/x-shockwave-flash" ');
			w.document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
			w.document.write('</embed></object>');
			w.document.write('</body></html>');
			w.document.close();
	}



 	///////////////////////////////
	/////////// PICTURES //////////
	///////////////////////////////

	function AfficheImage(monDataPath, monNom, monWidth, monHeight, infoOutput){

	//condition
		myScreenWidth = screen.width;
		myScreenHeight = screen.height;

 		if (monWidth >= monHeight) {
				monLoadFlash = "pict/loadhorz.swf?datapath=" + monDataPath + ".swf";
				width = monWidth;
				height = monHeight;
		} else {
				monLoadFlash = "pict/loadvert.swf?datapath=" + monDataPath + ".swf";
				width = monWidth;
				height = monHeight;
			}

 	//attributs du flash
			monLoadFlash = monLoadFlash + "&infoOutput=" + infoOutput;
			monLoadFlash = monLoadFlash + "&width=" + monWidth;
			monLoadFlash = monLoadFlash + "&height=" + monHeight;

 	//ecriture du code HTML
			myWindowPopUpFlash=open("",'image','width=' + width + ',height=' + height + ',bgcolor=#CAD3CA,toolbar=no,scrollbars=no,resizable=no,statusbar=no');	
			myWindowPopUpFlash.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" ><title>'+ monNom +'</title></head>');
			myWindowPopUpFlash.document.write('<body leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>');
			myWindowPopUpFlash.document.write('<objectclassid="clsid:D27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
			myWindowPopUpFlash.document.write('width='+ width +' height='+ height +'>');
			myWindowPopUpFlash.document.write('<param name=movie value="'+ monLoadFlash +'">');
			myWindowPopUpFlash.document.write('<param name=menu value=false>');
			myWindowPopUpFlash.document.write('<param name=quality value=high>');
			myWindowPopUpFlash.document.write('<param name=bgcolor value=#CAD3CA>');
			myWindowPopUpFlash.document.write('<embed src="'+ monLoadFlash +'" menu=false quality=high bgcolor=#CAD3CA ');
			myWindowPopUpFlash.document.write('width='+ width +' height='+ height +' type="application/x-shockwave-flash" ');
			myWindowPopUpFlash.document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
			myWindowPopUpFlash.document.write('</embed></object>\n');
			myWindowPopUpFlash.document.write('</body></html>');
			myWindowPopUpFlash.document.close();
	}



 	///////////////////////////////
	////////// HTML PAGE //////////
	///////////////////////////////

 	function AffichePage(maPage, monNom, monWidth, monHeight, monScroll, monResize) {

 	//ecriture du code HTML
			w=open("",'image','width='+ monWidth +',height='+ monHeight +',scrollbars='+ monScroll +',resizable='+ monResize +',toolbar=no,status=no');	
			w.document.write('<HTML><HEAD><TITLE>'+ monNom +'</TITLE></HEAD>');
			w.document.write('<FRAMESET rows="*" frameborder=no border=0>');
			w.document.write('<FRAME src="' + maPage + '"></FRAMESET>');
			w.document.write('<NOFRAMES><BODY></BODY></NOFRAMES></HTML>');
			w.document.close();
	}



 	///////////////////////////////
	///////// PDF DOCUMENT ////////
	///////////////////////////////

 	function AffichePDF(monPDF, monNom) {

 	//ecriture du code HTML
			w=open("",'image','width=800,height=600,toolbar=no,scrollbars=no,resizable=yes,status=no');	
			w.document.write('<HTML><HEAD><TITLE>'+ monNom +'</TITLE></HEAD>');
			w.document.write('<FRAMESET rows="*" frameborder=no border=0>');
			w.document.write('<FRAME SRC="' + monPDF + '"></FRAMESET>');
			w.document.write('<NOFRAMES><BODY></BODY></NOFRAMES></HTML>');
			w.document.close();
	}