﻿$(document).ready(function() {
    //Check if we got any anchor definitions from facebook request and if so then position user on the right anchor
    if (window.location.querystring["anch"] != null) {
        window.location = "#" + window.location.querystring["anch"];
    }

    //Initialize facebook connector
    FB.init(facebookApplicationKey, AppLocalPath + "/xd_receiver.htm", { "reloadIfSessionStateChanged": true});
});

function FaceBookLogout() {
    FB.Connect.logout(function() { window.location.href = window.location.href; });
}
