function Notifications()
{
	this.phrase_proceed = '';
	this.url_website = '';
	
	this.toggleNotifications = function()
	{
		$('div#header_notifications').slideToggle('slow', 
			function()
			{
				$('div#notifications div').fadeOut(2000, 
					function()
					{
						$.ajax({
							type: 'POST',
							url: Notifications.url_website+'site_ajax.php',
							data: {action: 'markNewNotificationsRead'},
							success: function(text)
							{
								$('div#notifications div').remove();
							}
						});
					});
			});
	}
	
	this.removeNotification = function(notification_id)
	{
		var response = window.confirm(this.phrase_proceed+'?');
		if (response == true)
		{
			$('div#notification_'+notification_id).fadeOut(2000, 
				function()
				{
					$.ajax({
						type: 'POST',
						url: Notifications.url_website+'site_ajax.php',
						data: {action: 'removeNotification', notification_id: notification_id},
						success: function(text)
						{
							$('div#notification_'+notification_id).remove();
						}
					});
				});
		}
	}
}
