//<!--
function presentar(ancho, alto, fnc) {
  document.writeln('<STYLE>');
  document.writeln('#CentradaLS { z-index: 0; position:absolute; top:50%; left:50%; width:'+ancho+'px; height:400px; margin-left:-'+(ancho/2)+'px; margin-top:-'+(alto/2)+'px; }');
  document.writeln('#Tapa A {');
  document.writeln('  margin:0; padding:0; border:0; ');
  document.writeln('  z-index: 999; text-align: center; position: absolute; top:0; left:0; width:100%; height:100%;');
  document.writeln('  overflow: hidden;');
  document.writeln('}');
  document.writeln('<\/STYLE>');
  document.writeln('<DIV ID="CentradaLS">');
  document.writeln('<\/DIV>');
  document.writeln('<DIV ID="tapa">');
  if (fnc=="") fnc = 'return false;';
  document.writeln('<A HREF="#" STYLE="width:100%; height:100%;" ONCLICK="'+fnc+'">');
  document.writeln('<IMG SRC="/comun/transparente.gif" STYLE="width:100%; height:100%;" />');
  document.writeln('<\/A>');
  document.writeln('<\/DIV>');
  verswf(ancho, alto);
}

function verswf(ancho, alto) {
  txt = '';
  txt += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash6/cabs/swflash.cab#version=6,0,0,0" id="presenta" width='+ancho+' height='+alto+'>\n';
  txt += '<param name=movie value="presenta.swf">\n';
  txt += '<param name=quality value=autohigh>\n';
  txt += '<param name="WMode" value="Transparent">\n';
  txt += '<embed src="presenta.swf" wmode="transparent" quality=autohigh bgcolor=#FFFFFF width='+ancho+' height='+alto+' wmode=window type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n';
  txt += '<\/embed><\/object>\n';
  document.getElementById('CentradaLS').innerHTML = txt;
}


function presentacion() {
  vtn= window.open('', 'vtn', 'fullscreen=yes, scrollbars=no');
  ventana=vtn.document;
  ancho = screen.availWidth;
  alto=screen.availHeight;
  txt = '';
  txt += '<HTML>\n';
  txt += '<HEAD>\n';
  txt += '<'+'SCRIPT SRC="presenta.js"><'+'\/SCRIPT>\n';
  txt += '<STYLE>\n';
  txt += 'BODY, #Todo { margin: 0; border: 0; padding: 0; overflow: hidden; background-image: url(/cgi-bin/fondo.php); }\n';
  txt += '<\/STYLE>\n';
  txt += '</HEAD>\n';
  txt += '<BODY>\n';
  txt += '<DIV ID="Todo">\n';

  txt += '<'+'SCRIPT>setTimeout(\'presentar('+ancho+','+alto+', "self.close();")\', 1000);<'+'\/SCRIPT>\n';
  txt += '<'+'SCRIPT>setTimeout(\'self.close();\', 25000);<'+'\/SCRIPT>\n';

  txt += '<\/DIV>\n';
  txt += '<\/BODY>\n';
  txt += '<\/HTML>\n';
  ventana.writeln(txt);
//    js = "vtn.close();"; setTimeout(js, 25000);
  return false;
}
//-->
