﻿
function openPopup() {

    var width = 500;
    var height = 270;
    var left = $(window).width() / 2 - 250 + $(window).scrollLeft();
    var top = $(window).height() / 2 - 135;

    var features = 'width=' + width +
                    ',height=' + height +
                    ',left=' + left +
                    ',top=' + top + ',scrollbars=no,dependent=no';
    var lw = window.open('fblogin.aspx', "LoginWindow", features);
    lw.focus();
}

function fbConnect() {
    openPopup();
}

function redtohome() {
    fb_logout();
}
function fb_logout() {
    FB.logout(function () { return true; });
    return true;
}

$(function() {

    worldClockZone();
    FB.init({ appId: '113049188717056', status: true,
        cookie: true, xfbml: true, channelURL: 'http://mall1.microvolts.com/xd_receiver.htm', oauth: true
    });

//    FB.init({ appId: 'd097e9b0f7487e2148cb355696df7fb0', status: true,
//        cookie: true, xfbml: false, channelURL: 'http://mall1.microvolts.com/xd_receiver.htm'
//    });

});
