function afficherVideo(el, width, height, flv, image, lblFermer, title){
	var id = 'swf-contenu-video';
	var contenu = $(el).getParent();
	var div = new Element('div', {'class' : 'contenu-video', 'id' : id});
	var a = new Element('a', {'html':lblFermer, 'href':'#', 'title': title, 'events': {'click': cacherVideo}});
	if(contenu.getChildren('.description-video')){
	  var desc = new Element('div', {'html':contenu.getChildren('.description-video')[0].get('html'), 'class': 'description'});
	}
	cacherVideo();
	contenu.adopt(div);
	
	swfOption = {};
		swfOption.width = width;
		swfOption.height = height+18;
		swfOption.container = id;
		swfOption.params = {};
			swfOption.params.quality = 'high';
			swfOption.params.wMode = 'transparent';
		swfOption.properties = {};
			swfOption.properties.bgcolor = '#ffffff';
		swfOption.vars = {};
			swfOption.vars.width = width;
			swfOption.vars.height = height+19;
			swfOption.vars.overstretch = false;
			swfOption.vars.autostart = true;
			swfOption.vars.file = flv;
			swfOption.vars.usefullscreen = false;
			swfOption.vars.showicons = false;
			swfOption.vars.image= image;
		
	new Swiff('scripts/player.swf', swfOption);
	div.adopt(desc);
	div.adopt(a);
}

function cacherVideo(e){
	if(e){
		e.preventDefault()
	}
	if($('swf-contenu-video')){
		$('swf-contenu-video').destroy();
	}
}

