	function mostrarImagen(titulo, idImagen, width, height)
	{
		var x = height/(screen.height - 130);
		var y = width/(screen.width - 5);
		var proporcion = x;
		if (y > 1 && y > x)
		{
			proporcion = y;
		}
		else if (x < 1)
		{
			proporcion = 1;
		}
		var ancho = width/proporcion;
		var alto = height/proporcion;
		var propiedades = "resizable=yes,status=yes";
		var ii = 1;
		return abrirVentanaCentrada("/servlet/s.Sl?METHOD=AMPLIAFOTO&idImagen="+idImagen+"&idioma="+ii+"&titulo="+titulo , "_blank", propiedades, ancho + 5, alto + 80);
	}
function mostrarImagenAportada(titulo, idImagen, width, height)
	{
		var x = height/(screen.height - 130);
		var y = width/(screen.width - 5);
		var proporcion = x;
		if (y > 1 && y > x)
		{
			proporcion = y;
		}
		else if (x < 1)
		{
			proporcion = 1;
		}
		var ancho = width/proporcion;
		var alto = height/proporcion;
		var propiedades = "resizable=yes,status=yes";
		abrirVentanaCentrada("/servlet/s.Sl?METHOD=AMPLIA_FOTO_APORTADA&idImagen="+idImagen+"&titulo="+titulo , "_blank", propiedades, width + 5, height + 60);
	}
	function mostrarMultimediaReal(idMultimedia, nombre)
	{
		if (pluginlist.indexOf("RealPlayer")!=-1)
		{
			location.href = "/servlet/integra.servlets.Multimedias?METHOD=VERMULTIMEDIA_"+idMultimedia;
		}
		else
		{
			if (confirm("Es necesario tener instalado RealOne Player para acceder a este contenido. ¿Desea instalarlo ahora?"))
			{
				abrirVentanaCentrada("http://spain.real.com/freeplayer_r1p.html", "_blank", "scrollbars=yes,menubar=yes,resizable=yes", 800, 600);
			}
		}
	}
	var v=null;
	function abrirVentanaCentrada(theURL, winName, features, width, height)
	{
		if (v) v.close();
		var left = (screen.width - width) / 2;
		var top = (screen.height - height) / 2;
		if (top<50) top=0;
		var caracteristicas = features + ",scrollbars=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top;
		v = window.open(theURL, winName, caracteristicas);
		v.focus();
		return false;
	}
