
// hide errors after display
$(document).ready(function() {
	setTimeout('$(".error").fadeOut(4000);', 5000);
});


/**
 * confirm that they want to indulge
 * ex. <a href="../../indulge/123/" onclick="return confirm_indulge('Facebook')">Facebook</a>
 *
 * @param string content
 * @return boolean $confirmation
 */
function confirm_indulge(content) {
	return confirm("Are you sure you want to go to "+content+"?");
}

