function followingPage(){

	var featuredButtons = $('p.featured');
	var remainingSpan   = $('p.featured>span');
	var remaining       = (6 - $('p.featured.active').size());
	
	// ######### DELETE ITEM ############
	featuredButtons.click(function() {
		var link = $(this);
		var uid = link.attr('id').split('_')[1];
		if (link.hasClass('active')) {
			$.ajax({
				url: DOMAIN_ASYNC + '/connections/featured?ajax=1&action=remove&uid=' + uid,
				type: 'get',
				success: function(transport) {
					var response = eval("(" + transport + ")");
					$(this).removeClass('active').parents('li').removeClass('active');
					remaining++;
					remainingSpan.html(' (' + remaining + ' remaining)');
				}.bind(this)
			});
		} else {
			$.ajax({
				url: DOMAIN_ASYNC + '/connections/featured?ajax=1&action=add&uid=' + uid,
				type: 'get',
				success: function(transport) {
					var response = eval("(" + transport + ")");
					if (response.header.code == '1') {
						$(this).addClass('active').parents('li').addClass('active');
						remaining--;
						remainingSpan.html(' (' + remaining + ' remaining)');
					} else {
						alert(response.header.msg);
					}
				}.bind(this),
				error: function(transport) {
					var response = eval("(" + transport + ")");
				}
			});
		}
		return false;
	});
	
	$('ul.users a.close').click(function() {
		if (!confirm("Are you sure you want to stop following this user? They will not be informed.")) {
			return false;
		}
		var qs = this.href.substring(this.href.indexOf('?')+1, this.href.length); // Get the query string from the link
		$.ajax({
			url: DOMAIN_ASYNC + '/connections/unfollow?ajax=1&' + qs,
			type: 'get',
			success: function(transport) {
				var response = eval("(" + transport + ")");
				if (response.header.code == '1') {
					$(this).parents('li').hide();
				} else {
					alert(response.header.msg);
				}
			}.bind(this)
		});
		return false;
	});
    
}
