//funcion para abrir ventana centrada
//le pasas el tipo de ventana y la url para abrir, y aquí defines el tamaño
//de esa ventana

function openWnd(strTipo, strUrl){
	var ancho;
	var alto;
	var status = "no";
	var scrollbars = "yes";
	switch (strTipo) {
		case 'detalle' :
			ancho=400;
			alto=500;
			break;
		case 'quienes' :
			ancho=400;
			alto=450;
			break;
		case 'plano' :
			ancho=375;
			alto=395;
			scrollbars = "no";
			break
	}
	var winl = (screen.width - ancho) / 2;
	var wint = (screen.height - alto) / 3;
	winprops = 'height='+alto+',width='+ancho+',top='+wint+',left='+winl+',scrollbars='+scrollbars+',resizable=no,toolbars=no,locationbar=no,directories=no,menubar=no,status='+status;
	win = window.open(strUrl, strTipo, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function abrefotog(foto,ancho,alto){
	ancho = ancho + 40;
	alto = alto + 40;
	var winl = (screen.width - ancho) / 2;
	var wint = (screen.height - alto) / 3;
	winprops = 'height='+alto+',width='+ancho+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,toolbars=no,locationbar=no,directories=no,menubar=no,status=no';
	win = window.open("/web/fotogrande.asp?foto="+foto.replace(/\ /g,"+"), "fotog", winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

