function resaltaImg(id, resalta)
{
	if (resalta)
	{
		document.getElementById(id).style.opacity="0.90";
		document.getElementById(id).style.filter="alpha(opacity=90)";
	}
	else
	{
		document.getElementById(id).style.opacity="1.0";
		document.getElementById(id).style.filter="alpha(opacity=100)";
	}
}

function resaltaImgPag(id, resalta)
{
	if (resalta)
	{
		document.getElementById(id).height += 2;
		document.getElementById(id).width += 2;
	}
	else
	{
		document.getElementById(id).height -= 2;
		document.getElementById(id).width -= 2;
	}
}

function resaltaFlechaIzq(id, resalta)
{
	if (resalta)
		document.getElementById(id).src = "graficos/izq50on.png";
	else
		document.getElementById(id).src = "graficos/izq50.png";
}

function resaltaFlechaDer(id, resalta)
{
	if (resalta)
		document.getElementById(id).src = "graficos/der50on.png";
	else
		document.getElementById(id).src = "graficos/der50.png";
}

function compraDescargaFoto(creditoUser, creditoFoto, idioma)
/* Funcion para la confirmación de la pulsación del botón de compra de descarga */
{
	if (creditoUser < creditoFoto)
	{
		if (idioma == 'en')
	   		alert("Insufficient credit, you must buy credits to download.");
		else
	   		alert("Crédito insuficiente, es necesario recargar créditos para hacer la descarga.");
		return false;
	}
	else
	{
		if (idioma == 'en')
			return confirm('¿Are you sure do you want to buy the photo download for ' + creditoFoto + ' credits?');
		else
			return confirm('¿Estas seguro que quieres comprar la descarga de la foto por ' + creditoFoto + ' créditos?');
	}
}
