function displayAnimation(path_swf,path_image,legende_swf,legende_image,height_swf)
{
	//hasRightVersion=false;
	if (!useRedirect) 
	{    
	  if(hasRightVersion) 
	  {  
	    var oeTags = '<div class="swf"><object width="140" height="'+ height_swf +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">'
	    + '<param name="movie" value="' + path_swf + '" />'
	    + '<param name="quality" value="high" />'
	    + '<param name="loop" value="true" />'
	    + '<embed src="' + path_swf + '" width="140" height="'+ height_swf +'" loop="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"/>'
	    + '</object></div>'
		+ '<p class="legend">'+ legende_swf +'</p>'
		+ '';
	  } 
	  else 
	  {  
	  	var oeTags = '<div><img src="' + path_image + '" alt="" title=""/></div><p class="legend">'+ legende_image +'</p>';
		
	  }
	  document.write(oeTags);
	}
}

function displayAnimationMedia(path_swf,path_image,chapo_swf,chapo_image,height,href,path_angle)
{
	//hasRightVersion=false;
	if (!useRedirect) 
	{    
	  if(hasRightVersion) 
	  {  
		var bordure_t=20;
		var height_t=parseInt(height)+parseInt(bordure_t);
		var height_swf_visible=parseInt(height_t)-parseInt(bordure_t);
		//if(height<height_swf_visible) height_swf_visible=height; 
		var height_border_top = parseInt((parseInt(height_t)-parseInt(height_swf_visible))/2); //alert('height_border_top : '+height_border_top+' px');
		var margin_top_layer3 = parseInt(height_border_top)+parseInt(height); //alert('margin_top_layer3 : '+margin_top_layer3+' px');
		var height_border_bottom = height_border_top;	 //alert('height_border_bottom : '+height_border_bottom+' px');

		var oeTagsMedia = '<a class="hrefMedia" href="'+ href +'" style="height:'+ height_t +'px;">'
	  		+ '<span class="layer4" style="height:'+ height_border_top +'px;"></span>'
	   	 	+ '<span class="layer3" style="height:'+ height_border_bottom +'px;margin-top:'+ margin_top_layer3 +'px;"></span>'
	    	+ '<span class="layer2" style="height:'+ height_t +'px;"></span>'
	    	+ '<span class="layer1" style="height:'+ height_t +'px;"></span>'			
			+ '<object  width="148" style="height:'+ height_t +'px;" height="'+ height +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">'
		  	+ '<param name="movie" value="' + path_swf + '" />'
		  	+ '<param name="wmode" value="opaque" />'
		  	+ '<embed src="' + path_swf + '" style="height:'+ height_t +'px;" width="148" height="'+ height +'" type="application/x-shockwave-flash" wmode="opaque"></embed>'
			+ '</object></a>'
			+ '<div class="accroche"><table cellpadding="0" cellspacing="0" border="0" align="center"><tr><td>'+ chapo_swf +'</td></tr></table></div>'
			+ '';
	  } 
	  else 
	  {  
	  	var oeTagsMedia = '<p class="sample" style="background-image:url(' + path_image + ');">'
			+ '<a href="'+ href +'"><img src="'+ path_angle +'" alt="" title="" border="0"/></a></p>'
			+ '<div class="accroche"><table cellpadding="0" cellspacing="0" border="0" align="center"><tr><td>'+ chapo_image +'</td></tr></table></div>';
	  }
	  document.write(oeTagsMedia);
	}
}

function exploreObject()
{
	/*
	var objects = document.getElementsByTagName("object");
	for (var i = 0, child, parent, nextChild; i < objects.length; i++)
	{
		objects[i].outerHTML = objects[i].outerHTML;
	}
	*/
}
//alert('Function JS "displayAnimation" included');