<!--
//las variables que se pasan son el nombre del SWF y el titulo de la pagina
function galeria(swfName,alt) {
//aca se declara el tamaño que tiene el SWF y el color de fondo de la pagina
var imageWidth=440;
var imageHeight=500;
var bgcolor="#D09CD8";
//aca se levanta el tamaño de pantalla del usuario
var w=screen.width
var h=screen.height
//si la pantalla es muy chica la ubicacion de la ventana será en el medio de la pantalla
if(w<=490){
	var posLeft=(w-imageWidth)/2;
	var posTop=(h-imageHeight)/2;
}
//si la pantalla es de un tamaño más 'normal', la ventana se ubica en el medio horizontal, pero un poco más arriba 
if(w>490){
	var posLeft=(w-imageWidth)/2;
	var posTop=(h-imageHeight)/4;
}
//aca detecta el navegador
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1){
  var args= new Array();
  args[0]='parent';
  args[1]=swfName;
  var i ; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
  } else {
	newWindow = window.open("script.htm","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title></head>');  
	newWindow.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+'>');  
	newWindow.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+imageWidth+'" HEIGHT="'+imageHeight+'" id="index" ALIGN="">');
	newWindow.document.write('<PARAM NAME=movie VALUE="'+swfName+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE='+bgcolor+'>');
	newWindow.document.write('<EMBED src="'+swfName+'" quality=high bgcolor='+bgcolor+'  WIDTH="'+imageWidth+'" HEIGHT="'+imageHeight+'" NAME="index" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'); 
	newWindow.document.write('</EMBED></OBJECT></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
//-->










