function embedPlayerFlash(VideoTagId,alto,ancho,videourl,poster) {
 document.getElementById(VideoTagId).innerHTML = "<embed width=\"" + ancho + "\" height=\"" + alto + "\" type=\"application/x-shockwave-flash\" src=\"http://www.transitorio.cl/weblog/resource/JWPlayer/player.swf\" bgcolor=\"#000000\" quality=\"high\" allowfullscreen=\"true\" allowscriptaccess=\"always\" allownetworking=\"all\" wmode=\"opaque\" flashvars=\"file=" + videourl + "&volume=100&backcolor=CCCCCC&frontcolor=000000&lightcolor=000000&screencolor=000000&displayclick=none&image=" + poster + "&dock=false&controlbar=over\" />";
 document.getElementById("cambiador").innerHTML = "<b>Flash</b> | <a href=\"javascript: embedPlayerQuicktime(\'" + VideoTagId + "\'," + alto + "," + ancho + ",\'" + videourl + "\',\'" + poster + "\');\">Quicktime</a>";
 }
function embedPlayerQuicktime(VideoTagId,alto,ancho,videourl,poster) {
 alto += 16;
 document.getElementById(VideoTagId).innerHTML = "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab#version=7,3,0,0\" id=\"movie1\" width=\"" + ancho + "\" height=\"" + alto + "\"><param name=\"src\" value=\"" + videourl + "\" /><param name=\"autoplay\" value=\"false\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"controller\" value=\"true\" /><param name=\"cache\" value=\"true\" /><param name=\"showlogo\" value=\"false\" /><param name=\"volume\" value=\"256\" /><param name=\"targetcache\" value=\"true\" /><param name=\"saveembedtags\" value=\"true\" /><param name=\"enablejavascript\" value=\"true\" /><param name=\"postdomevents\" value=\"true\" /><param name=\"scale\" value=\"aspect\" /><param name=\"kioskmode\" value=\"true\" /><embed src=\"" + videourl + "\" pluginspage=\"http://www.apple.com/quicktime/download/\" name=\"movie1\" id=\"movie_embed1\" autoplay=\"false\" bgcolor=\"#ffffff\" controller=\"true\" cache=\"true\" showlogo=\"false\" volume=\"256\" targetcache=\"true\" saveembedtags=\"true\" enablejavascript=\"true\" postdomevents=\"true\" scale=\"aspect\" kioskmode=\"true\" width=\"" + ancho + "\" height=\"" + alto + "\" /></object>";
 var controller;
 var movObj;
 var movObjEmb;
 alto -= 16;
 var progressBarMargin = 600-ancho;
 document.getElementById("cambiador").innerHTML = "<a href=\"javascript: embedPlayerFlash(\'" + VideoTagId + "\'," + alto + "," + ancho + ",\'" + videourl + "\',\'" + poster + "\');\">Flash</a> | <b>Quicktime</b> <span style=\"float: right; margin-right:" + progressBarMargin + "px\" class=\"linkMoribundo\" onClick=\"javascript: showHideQuicktimeController(" + alto + ");\">mostrar/ocultar barra</span>";
}
function showHideQuicktimeController(alto) {
 var altus = alto;
 movObj = document.getElementById("movie1");
 if(movObj.getElementsByTagName("embed")[0]) movObjEmb = movObj.getElementsByTagName("embed")[0];
 if (controller==true) {
  document.movie1.SetControllerVisible(false);
  controller=false;
 }
 else if (controller==false) {
  altus += 16;
  document.movie1.SetControllerVisible(true);
  controller=true;
 }
  movObj.setAttribute("height", altus);
  if(movObjEmb) movObjEmb.setAttribute("height", altus);
}