// ******************************** INSERTAR FADE *******************************
/**
	CVI - 2007/03
  Parámetros De La Funcion

  f: Ruta al archivo del artículo o link asociado
  w: Ancho del flash (en este caso, de las imágenes)
  h: Alto del flash (en este caso, de las imágenes)
  t: Target del link (al hacer click)
  img1-img4: rutas hacia los archivos de imágenes.
  
**/
function insert_img_fade(f, w, h, t, img1, img2, img3, img4) {
  var swf = '/matriz/prontus/prontus_imgfade_8.1.swf';

  var width = w;
  var height = h;
  var linkurl = f;
  var urlartic = f;
  var target = t;
  var foto1 = img1;
  var foto2 = img2;
  var foto3 = img3;
  var foto4 = img4;

  // Esta es la sentencia recomendada por la W3C para pasar la validacion sin
  // tener que recurrir a escribir el objeto con Javascript.
  // Aún ahí se utiliza Javascript para mayor seguridad.
  document.write('<object type="application/x-shockwave-flash"');
  document.write('  data="'+swf+'"');
  document.write('  width="'+width+'"');
  document.write('  height="'+height+'">');
  document.write(' <param name="MOVIE" value="'+swf+'">');
  document.write(' <param name="PLAY" value="true">');
  document.write(' <param name="LOOP" value="true">');
  document.write(' <param name="QUALITY" value="high">');
  document.write(' <param name="WMODE" value="TRANSPARENT">');
  document.write(' <param name="FlashVars" value="linkurl='+linkurl+'&urlartic='+urlartic+'&target='+target+'&foto1='+foto1+'&foto2='+foto2+'&foto3='+foto3+'&foto4='+foto4+'">');
  document.write('</object>');

};

// ******************************** INSERTAR FLASH *******************************
/**
	CVI - 2007/03
  Parámetros De La Funcion

  s: Ruta completa hacia el flash
  w: Ancho del flash (en este caso, de las imágenes)
  h: Alto del flash (en este caso, de las imágenes)
**/
function insert_flash(s, w, h) {
  var swf = s;
  var width = w;
  var height = h;

  // Esta es la sentencia recomendada por la W3C para pasar la validacion sin
  // tener que recurrir a escribir el objeto con Javascript.
  // Aún ahí se utiliza Javascript para mayor seguridad.
  document.write('<object type="application/x-shockwave-flash"');
  document.write('  data="'+swf+'"');
  document.write('  width="'+width+'"');
  document.write('  height="'+height+'">');
  document.write(' <param name="MOVIE" value="'+swf+'">');
  document.write(' <param name="PLAY" value="true">');
  document.write(' <param name="LOOP" value="true">');
  document.write(' <param name="QUALITY" value="high">');
  document.write(' <param name="WMODE" value="TRANSPARENT">');
  document.write('</object>');
};

// ******************************** INSERTAR PLAYER 1*******************************
// v 1.2
function playShow1(VURL,LINK,IMAGEN) {

  var w = '395';
  var h = '370';
  var movieUrl="/matriz/player/swf/player_395.swf";
  var flashvars = "VURL=" + VURL
                + "&LINK=" + LINK
                + "&IMAGEN=" + IMAGEN;
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  id="player_1.5"');
  document.write('  align="middle">');
  document.write('<param name="allowScriptAccess" value="sameDomain" />');
  document.write('<param name="movie" value="' + movieUrl + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="flashvars" value="' + flashvars + '" />');
  document.write('<param name="WMODE" value="TRANSPARENT">');
  document.write('<embed');
  document.write('  src="' + movieUrl + '"');
  document.write('  quality="high"');
  document.write('  bgcolor="#ffffff"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  name="player_1.5"');
  document.write('  align="middle"');
  document.write('  allowScriptAccess="sameDomain"');
  document.write('  type="application/x-shockwave-flash"');
  document.write('  pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('  wmode="transparent"');
  document.write('  flashvars="' + flashvars + '"');
  document.write('  />');
  document.write('</object>');
};

// ******************************** INSERTAR PLAYER 2*******************************
// v 1.2
function playShow2(VURL,LINK,IMAGEN) {

  var w = '220';
  var h = '210';
  var movieUrl="/matriz/player/swf/player_220.swf";
  var flashvars = "VURL=" + VURL
                + "&LINK=" + LINK
                + "&IMAGEN=" + IMAGEN;
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  id="player_1.5"');
  document.write('  align="middle">');
  document.write('<param name="allowScriptAccess" value="sameDomain" />');
  document.write('<param name="movie" value="' + movieUrl + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="flashvars" value="' + flashvars + '" />');
  document.write('<param name="WMODE" value="TRANSPARENT">');
  document.write('<embed');
  document.write('  src="' + movieUrl + '"');
  document.write('  quality="high"');
  document.write('  bgcolor="#ffffff"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  name="player_1.5"');
  document.write('  align="middle"');
  document.write('  allowScriptAccess="sameDomain"');
  document.write('  type="application/x-shockwave-flash"');
  document.write('  pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('  wmode="transparent"');
  document.write('  flashvars="' + flashvars + '"');
  document.write('  />');
  document.write('</object>');
};

// ******************************** INSERTAR PLAYER 3*******************************
// v 1.2
function playShow3(VURL,LINK,IMAGEN) {

  var w = '200';
  var h = '220';
  var movieUrl="/matriz/player/swf/player_200.swf";
  var flashvars = "VURL=" + VURL
                + "&LINK=" + LINK
                + "&IMAGEN=" + IMAGEN;
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  id="player_1.5"');
  document.write('  align="middle">');
  document.write('<param name="allowScriptAccess" value="sameDomain" />');
  document.write('<param name="movie" value="' + movieUrl + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="flashvars" value="' + flashvars + '" />');
  document.write('<param name="WMODE" value="TRANSPARENT">');
  document.write('<embed');
  document.write('  src="' + movieUrl + '"');
  document.write('  quality="high"');
  document.write('  bgcolor="#ffffff"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  name="player_1.5"');
  document.write('  align="middle"');
  document.write('  allowScriptAccess="sameDomain"');
  document.write('  type="application/x-shockwave-flash"');
  document.write('  pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('  wmode="transparent"');
  document.write('  flashvars="' + flashvars + '"');
  document.write('  />');
  document.write('</object>');
};

// ******************************** INSERTAR PLAYER 4*******************************
// v 1.2
function playShow4(VURL,LINK,IMAGEN) {

  var w = '310';
  var h = '260';
  var movieUrl="/matriz/player/swf/player_310.swf";
  var flashvars = "VURL=" + VURL
                + "&LINK=" + LINK
                + "&IMAGEN=" + IMAGEN;
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  id="player_1.5"');
  document.write('  align="middle">');
  document.write('<param name="allowScriptAccess" value="sameDomain" />');
  document.write('<param name="movie" value="' + movieUrl + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="flashvars" value="' + flashvars + '" />');
  document.write('<param name="WMODE" value="TRANSPARENT">');
  document.write('<embed');
  document.write('  src="' + movieUrl + '"');
  document.write('  quality="high"');
  document.write('  bgcolor="#ffffff"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  name="player_1.5"');
  document.write('  align="middle"');
  document.write('  allowScriptAccess="sameDomain"');
  document.write('  type="application/x-shockwave-flash"');
  document.write('  pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('  wmode="transparent"');
  document.write('  flashvars="' + flashvars + '"');
  document.write('  />');
  document.write('</object>');
};

// ******************************** INSERTAR PLAYER 5*******************************
// v 1.2
function playShow5(VURL,LINK,IMAGEN) {

  var w = '360';
  var h = '280';
  var movieUrl="/matriz/player/swf/player_360.swf";
  var flashvars = "VURL=" + VURL
                + "&LINK=" + LINK
                + "&IMAGEN=" + IMAGEN;
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  id="player_1.5"');
  document.write('  align="middle">');
  document.write('<param name="allowScriptAccess" value="sameDomain" />');
  document.write('<param name="movie" value="' + movieUrl + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="flashvars" value="' + flashvars + '" />');
  document.write('<param name="WMODE" value="TRANSPARENT">');
  document.write('<embed');
  document.write('  src="' + movieUrl + '"');
  document.write('  quality="high"');
  document.write('  bgcolor="#ffffff"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  name="player_1.5"');
  document.write('  align="middle"');
  document.write('  allowScriptAccess="sameDomain"');
  document.write('  type="application/x-shockwave-flash"');
  document.write('  pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('  wmode="transparent"');
  document.write('  flashvars="' + flashvars + '"');
  document.write('  />');
  document.write('</object>');
};

// ******************************** INSERTAR PLAYER 6*******************************
// v 1.2
function playShow6(VURL,LINK,IMAGEN) {

  var w = '350';
  var h = '280';
  var movieUrl="/matriz/player/swf/player_360_2.swf";
  var flashvars = "VURL=" + VURL
                + "&LINK=" + LINK
                + "&IMAGEN=" + IMAGEN;
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  id="player_1.5"');
  document.write('  align="middle">');
  document.write('<param name="allowScriptAccess" value="sameDomain" />');
  document.write('<param name="movie" value="' + movieUrl + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="flashvars" value="' + flashvars + '" />');
  document.write('<param name="WMODE" value="TRANSPARENT">');
  document.write('<embed');
  document.write('  src="' + movieUrl + '"');
  document.write('  quality="high"');
  document.write('  bgcolor="#ffffff"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  name="player_1.5"');
  document.write('  align="middle"');
  document.write('  allowScriptAccess="sameDomain"');
  document.write('  type="application/x-shockwave-flash"');
  document.write('  pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('  wmode="transparent"');
  document.write('  flashvars="' + flashvars + '"');
  document.write('  />');
  document.write('</object>');
};

// ******************************** INSERTAR PLAYER 6*******************************
// v 1.2
function playShow7(VURL,LINK,IMAGEN) {

  var w = '300';
  var h = '205';
  var movieUrl="/matriz/player/swf/player_300.swf";
  var flashvars = "VURL=" + VURL
                + "&LINK=" + LINK
                + "&IMAGEN=" + IMAGEN;
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
  document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  id="player_1.5"');
  document.write('  align="middle">');
  document.write('<param name="allowScriptAccess" value="sameDomain" />');
  document.write('<param name="movie" value="' + movieUrl + '" />');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="bgcolor" value="#ffffff" />');
  document.write('<param name="flashvars" value="' + flashvars + '" />');
  document.write('<param name="WMODE" value="TRANSPARENT">');
  document.write('<embed');
  document.write('  src="' + movieUrl + '"');
  document.write('  quality="high"');
  document.write('  bgcolor="#ffffff"');
  document.write('  width="'+w+'"');
  document.write('  height="'+h+'"');
  document.write('  name="player_1.5"');
  document.write('  align="middle"');
  document.write('  allowScriptAccess="sameDomain"');
  document.write('  type="application/x-shockwave-flash"');
  document.write('  pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('  wmode="transparent"');
  document.write('  flashvars="' + flashvars + '"');
  document.write('  />');
  document.write('</object>');
};

/*FIN*/
