f);
	}(document, /*debug*/ false));
                                                                                        

	// get invitations view in the overlay
	function get_invitations_view() {
		if($("#redirect_to").val() !== "")
		var redirect_to_url = $("#redirect_to").val();
		else
		var redirect_to_url = "/perk/downloadconfirmation";
		
		$.ajax({
			type: 'GET',
			url: "/invitations?redirect_url="+redirect_to_url,
			success: function(response) {
				$('#overlay_content').html(response);
			}
