if (navigator.userAgent.indexOf('Safari')==-1 && navigator.userAgent.indexOf('Midori')==-1) {
if (typeof HTMLVideoElement == "object" || typeof HTMLVideoElement == "function" ) { // Si Firefox, Chrome ou Opera
	var nb_ogg = 0;
	var nb_ogv = 0;
	$(document).ready(function() { // Appel jQuery
		nb_ogg = $("a[href$=.ogg]").size(); // Compte le nb de fichiers ogg dans la page
		$("a[href$=.ogg]").each(function(i){ this.id = "vogg_"+i;}); // on rajoute a chaque lien un id (pour le confort)
		for (i=0; i<nb_ogg; i++) {
			vogg_width = $("#vogg_"+i).parent("p").prev(".external-media").children("object").attr("width");
			// On recupere la largeur du lecteur flash 
			vogg_height = $("#vogg_"+i).parent("p").prev(".external-media").children("object").attr("height");
			vogg_url = $("#vogg_"+i).attr("href");
			// On recupere la hauteur du lecteur flash
			$("#vogg_"+i).parent("p").prev(".external-media").html('<video tabindex="0" controls="" src="'+vogg_url+'" poster="'+vogg_url+'.jpg" style="width:'+vogg_width+'px; height : '+vogg_height+'px"></video>');
		 // Pour chaque lien avec un id="vogg_", on va chercher le bloc (div class="external-media) 
		 // qui precede (prev) le paragraphe (parent("p")) dans lequel il se trouve.
		 // Et on remplace (html(...)) le code du lecteur flash par la balise video avec la resolution qui va bien.
		}
		// Idem avec les ogv
		nb_ogv = $("a[href$=.ogv]").size(); 
		
		$("a[href$=.ogv]").each(function(i){ this.id = "vogv_"+i;});
		for (i=0; i<nb_ogv; i++) {
			vogv_width = $("#vogv_"+i).parent("p").prev(".external-media").children("object").attr("width");
			vogv_height = $("#vogv_"+i).parent("p").prev(".external-media").children("object").attr("height");
			vogv_url = $("#vogv_"+i).attr("href");
			$("#vogv_"+i).parent("p").prev(".external-media").html('<video tabindex="0" controls="" src="'+vogv_url+'" poster="'+vogv_url+'.jpg"  style="width:'+vogv_width+'px; height : '+vogv_height+'px"></video>');
		}
		
	});
} // Sinon, rien...
}