function ajaxUpdateUserRelationship(url, id_param) {

    $.get(url, {
        id: id_param
    },
    function(data){
        // success
        if(data == "0") {
    //success_callback(callback_options);
    }
    });
	 
    return false;

}


function fadeAndDelete(id) {
    $("#" + id).fadeOut(300, function() {
        $(this).remove();
    });
}


$(document).ready(function() {

    $('#logoutButton').click(function(){
        FB.logout()
    })
 
    $('.toggleTabs').children().click( function()
    {
        var areaElementId = $('#' + this.id + 'Area').show();
        areaElementId.siblings().hide();
        $(this).siblings().removeClass('active');
        $(this).addClass('active');
    })

    .not('.active').each( function() {
        $('#' + this.id + 'Area').hide();
    });
			

    $(".dialogLink").each( function()
    {
        var dialogTitle = this.id;
        var dialogElementId = '#' + dialogTitle + 'Dialog';
        $(dialogElementId).dialog(
        {
            autoOpen: false,
            height: 400,
            width: 750,
            modal: true,
            title: dialogTitle
        })
    })
	
    .click( function()
    {
        $('#' + this.id + 'Dialog').dialog('open');
        return false;
    });


    $('.userGuideClose').click(
        function()
        {
            $(this).parent(".userGuide").hide();
		
            return false;
        });

    $('.mixInHelpShow').click(
        function()
        {
            $("#mixInHelp").show();
        });
	
});