function ServiciosDescargar(url)
{
	var url1 = url.split("?__scale=");
	var url2=url.split("_");
	var length=url2.length;
	if(url1[1]!=null)
	{	
		window.open(url1[0]);	
	}
	else if(url2.length >=2 && url2[length-2].split(".").length >=1 && url2[length-1].split(".").length >=1)
	{
		 
		var url3= url2[length-2].split(".");
		var url4= url2[length-1].split(".");
		var length3=url3.length;
		var length4=url4.length;
		if(url3[length3-1]==(url4[length4-1]))
		{
			var foto ="";
			for(var i=0;i<=(length-2);i++)
			{
				if(i==0)
				{
					foto=foto+url2[i];
				}
				else
				{
					foto=foto+"_"+url2[i];
				}				
			}
			window.open(foto);
		}
		else
		{	
			self.location.href = url1[0];
		}	
	}
	else
	{
		
		self.location.href = url1[0];	
	}
}

function ServiciosRevistaResumen()
{
	var texto = document.Destacados.GetVariable("Resumen");	
	if(texto != "undefined")
	{
		document.getElementById("ServiciosRevistaFlashResumen").style.display = 'block';
		document.getElementById("ServiciosRevistaFlashResumen").innerHTML += texto;	
	}
	else
	{
		document.getElementById("ServiciosRevistaFlashResumen").innerHTML = "";	
		document.getElementById("ServiciosRevistaFlashResumen").style.display = 'none';
	}

}