function incrustarSwf(quePelicula,anchura,altura){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="' + anchura + '" height="' + altura + '">\n');
      document.write('<param name="movie" value="' + quePelicula + '.swf" />\n');
     document.write(' <param name="quality" value="high" />\n');
      document.write('<param name="menu" value="false" />\n');
     document.write('<embed src="' + quePelicula + '.swf?button=0" width="' + anchura + '" height="' + altura + '" quality="high" menu ="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\n'); 
					 document.write(' </object>\n');
}

/*
Abre ventanas centradas a un tamaņo determinado
*/

function abrirCentrada(url, nombre, altura, anchura, barras) {
  var str = "height=" + altura + ",innerHeight=" + altura;
  str += ",width=" + anchura + ",innerWidth=" + anchura;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - anchura) / 2;
    var yc = (ah - altura) / 2;
	if (barras == 'si') {
			str += ',toolbar=no'
			str += ',scrollbars=yes';
    		str += ",left=" + xc + ",screenX=" + xc;
    		str += ",top=" + yc + ",screenY=" + yc;
	}
	
	if (barras == 'no') {
			str += ',toolbar=no'
			str += ',scrollbars=no';
    		str += ",left=" + xc + ",screenX=" + xc;
    		str += ",top=" + yc + ",screenY=" + yc;
	}
  }
  return window.open(url, nombre, str);
}