

		function closeVideo() {
			$("#flow").fadeOut(500);
		}
	
	
		function openFlow(video, nomfichier) {
			
			
			$("#infoPanel > p").html(nomfichier);
			$("#flow").fadeIn(500);
			
			$f("ipad", "lib/flowplayer-3.2.7.swf", {
				clip: {
					url: video,
					autoPlay: true,
					autoBuffering: true,
					scaling:'fit',
					onStart: function(clipp) {
	
						//alert(video);

						
						var wrap = jQuery(this.getParent());
						
						
						var sizeW = document.documentElement.clientWidth-10;
						var sizeH = document.documentElement.clientHeight-70;
						
						/*
						alert(sizeW);
						alert(sizeH);
						*/
						
						
						if (clipp.metaData.width < sizeW) sizeW = clipp.metaData.width
						if (clipp.metaData.height < sizeH) sizeH = clipp.metaData.height

						wrap.css({width: sizeW, height: sizeH});
						
					}
				}
			}).ipad();
		
		}
		

