	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;
	}
	function resaltar(capa){
	var texto="";
	//Con las etiquetas div resaltamos parrafos enteros y con span palabras o frases sueltas
	var valor = "<div id="+capa+">";
	var valor2 = "<div id=\""+capa+"\">";
	var valor3 = "<span id="+capa+">";
	var valor4 = "<span id=\""+capa+"\">";
	var reemplazar=RegExp(valor,"i");
	var reemplazar2=RegExp(valor2,"i");
	var reemplazar3=RegExp(valor3,"i");
	var reemplazar4=RegExp(valor4,"i");
	var por="<div style=\u0022background-color:yellow;\u0022>";
	var por2="<span style=\u0022background-color:yellow;\u0022>";
	if(texto==""){texto=document.body.innerHTML};
	var txt = texto.replace(reemplazar,por).replace(reemplazar2,por).replace(reemplazar3,por2).replace(reemplazar4,por2);
	document.body.innerHTML=txt;
	}
