﻿/// <reference path="../MicrosoftAjax.debug.js" />
/// <reference path="ShopmobbingVariables.js" />
/// <reference path="../jquery-1.4.1.js" />

function pageLoad() {
    //    if (!Sys.Services.AuthenticationService.get_isLoggedIn()) {
    //        $("#loginFormContainer").load(userControlsPath + "/htm/LoginForm.htm", null,
    //                function() {
    //                    $create(Shopmobbing.Behaviors.Login, {}, {}, {}, $get("loginForm"));
    //                    showLoginForm();
    //                });
    //    }

    $create(Shopmobbing.Controls.AuthenticationStatus, {},
    {},
    {}, $get("authenticationStatus"));

//    FB.login(function (response) {
//        if (response.session) {
//            $.getJSON("/services/usersservice/loginWithFacebook", {}, function (data, textStatus) {
//                alert(data);
//            });
//        } else {

//        }
//    });

    function loadMenu() {
        //$("").append($("").load("", null, function() { }));
        //        $("div.header_right_text").load("/UserControls/RightMenu.ascx", null, function() { });
    }
}