	// add content to current members favorites
    function addToFavorites(type_id, item_id) {
        var data = { action: "add", type_id: type_id, item_id: item_id };
        $.post('/ajax/favorite_action.php', data, function(data) {
        	alert(data.message);
        }, "json");
    }
    
    // remove selected content from current members favorites
    function removeFavorite(type_id, item_id){
        if (confirm("This will delete this record from your favorites\nAre you sure you wish to continue?") ){
        	var div = $("#fav_" + type_id + "_" + item_id);
            var data = { action: "remove", type_id: type_id, item_id: item_id };
            $.post('/ajax/favorite_action.php', data, function(data) {
            	div.fadeOut("fast", function() { $(this).remove(); });
                alert(data.message);
            }, "json");
        }
    }
