PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage3(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
writeln('<link rel="stylesheet" type="text/css" href="css/estilos.css">');
writeln('<script>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width+50,height+50);}');
writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width+50;');
writeln('window.innerHeight=document.images["George"].height+50;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');
writeln('</script>');
if (!AutoClose) writeln('</head><body bgcolor=FFFFFF scroll="auto" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<br><div align="center"><img name="George" src='+cambia_blancos(imageURL)+' style="display:block"></div>');
writeln('</body></html>');
close();		
}}
function cambia_blancos(cadena)
	{
	Count=0;
	stotal="";
	for (Count=0; Count < cadena.length; Count++)
		{
		Char = cadena.substring(Count, Count+1);
		if (Char != " ")
			stotal+=Char;
		else
			stotal+="%20";
		}
	return(stotal);
    }
function popImage2() {
				var ops = "top=" + ((screen.height - _img_grande.height) / 2);
				ops += ",left=" + ((screen.width - _img_grande.width) / 2);
				ops += ",width=" + _img_grande.width + ",height=" + _img_grande.height;
				var contenido = "<html><title>" + tit + "</title><body onblur='javascript:window.close();'; style='background-image: url(" + _img_grande.src + ")'></body></html>";
				var ventana = window.open("", "", ops);
				ventana.document.write(contenido);
				ventana.document.close();
			}

			function cargando() {
				if (_img_grande.complete) popImage2();
				else setTimeout("cargando()", 100);
			}

			function popImage(imagen,titulo)	{
			tit = titulo;
				_img_grande = new Image();
				_img_grande.src = imagen;
				cargando();
			}