
function escribeFlashVideo(div_video, pathVideo, videoflv, w, h, smoothVideo) {
	
	var oSWF = new ClaseSWF("flash_" + div_video, 'flash/videoflv.swf', w, h);
	//oSWF.addParam("wmode", "window");
	oSWF.addParam("allowFullScreen", "true");
	
	
	oSWF.addVar("path", "flash/");
	oSWF.addVar("pathVideo", pathVideo);
	oSWF.addVar("video", videoflv);
	oSWF.addVar("smoothVideo", smoothVideo);
	
	
	
	// Detecta version flash
	if (oSWF.detect("9.0.0"))
	{
		oSWF.escribe(div_video);
		
	} else {
		/*
		if (confirm("Requiere Flash 8 o superior. Quieres descargarlo?")) {
			location.href = 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash';
		}
		*/
	}
	
}



function escribeFlashVideoYouTube(div_video, IDyoutube) { 
	var output = "<div style=\"text-align:center;\">";
	output += "<object width=\"425\" height=\"350\" id=\"movie\" type=\"application/x-shockwave-flash\" data=\"http://www.youtube.com/v/" + IDyoutube + "&hl=es&fs=1&rel=0&autoplay=0&ap=%2526fmt%3D18&showsearch=0&showinfo=0\">";
	output += "<param name=\"movie\" value=\"http://www.youtube.com/v/" + IDyoutube + "&hl=es&fs=1&rel=0&autoplay=0&ap=%2526fmt%3D18&showsearch=0&showinfo=0\" />";
	output += "<param name=\"wmode\" value=\"transparent\" />";
	output += "<param name=\"allowfullscreen\" value=\"true\" />";
	output += "</object>";
	output += "</div>";
	document.getElementById(div_video).innerHTML = output;
	//document.write(output);
}

