// ******************************** 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 = '/prontus_radiouc/prontus/prontus_imgfade_8.0.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 *******************************
// v 1.2
function playShow(VURL,LINK,IMAGEN) {

  var w = '173';
  var h = '187';
  var movieUrl="/player/player.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>');
};

/** ----------------------------------------------
  v1.0  -  2007/04/19   - CVI: Primera versión
  ----------------------------------------------
  PARÁMETROS DE LA FUNCION
    m: Ubicación del marquee.
    w: Ancho del marquee.
    h: Alto del marquee.
    fv: FlashVars del marquee.
---------------------------------------------- **/
function insertar_marquee(m, w, h, fv) {

  var marquee = m;
  var mwidth = w;
  var mheight = h;
  var flashvars = fv;

  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="'+mwidth+'" height="'+mheight+'" id="marquee" align="middle">');
  document.write('  <param name="allowScriptAccess" value="sameDomain">');
  document.write('  <param name="movie" value="'+marquee+'">');
  document.write('  <param name="quality" value="high">');
  document.write('  <param name="bgcolor" value="#ffffff">');
  document.write('  <param name="wmode" value="transparent">');
  document.write('  <param name="Flashvars" value="'+flashvars+'">');
  document.write('  <embed src="'+marquee+'"');
  document.write('    quality="high"');
  document.write('    bgcolor="#ffffff"');
  document.write('    width="'+mwidth+'"');
  document.write('    height="'+mheight+'"');
  document.write('    name="marquee"');
  document.write('    align="middle"');
  document.write('    allowScriptAccess="sameDomain"');
  document.write('    wmode="transparent"');
  document.write('    type="application/x-shockwave-flash"');
  document.write('    pluginspage="http://www.macromedia.com/go/getflashplayer"');
  document.write('    Flashvars="'+flashvars+'">');
  document.write('  </embed>');
  document.write('</object>');
};

// ******************************** POP RADIO ONLINE*******************************
    function subWinflash() {
    var options = "width=380,height=238,top=75,left=50,screenX=20,screenY=20,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no";
    var popwin = window.open('http://radiouc.altavoz.net/prontus_radiouc/stat/pop/radio.html', 'popwin', options);
    if (popwin == undefined) {
      alert("Debes habilitar las ventanas emergentes en tu navegador para acceder a esta funcionalidad.");
    };
  };

/*END*/