function showAlert()
{
	var div_alertas = $('alerta');
	if (div_alertas) {
		$('alerta').makePositioned();
		new Effect.Pulsate('alerta', {duration: 2, pulses: 1 });
	}
}

function ignore_alertas(obj)
{
	var myAjax = new Ajax.Request(
		'/Administracion/Alertas/ignore.php?ajax=true',
		{
			method: 'get',
			onComplete: showResponse
		});
	if (myAjax) {
		return false;
	}
	return true;
}

function showResponse(originalRequest)
{
	// originalRequest.responseText
	new Effect.BlindUp($('alerta'));
}

Event.observe(window, 'load', showAlert, true);
