﻿function MemberLogOut() { WebServicePost("/Content/WebService/ClientSiteWebService.asmx/Logout", ""); $('.logged').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.logged').css('display', 'none'); $('.log_open').css('display', 'block'); $('.log_open').animate({ top: 51 }, 300, "easeInOutQuad"); }); }
function MemberLogin() {
    if (!CheckForm('.log', 'transparent', '#ccc', '#bababa', '#000')) { return false; }
    else {
        var Grd_PostVariables = new Array(); Grd_PostVariables = FormVariables(".log"); postdata = "Params: '" + Grd_PostVariables.join("ß") + "'"; var scfunction = function (rvalue) {
            if (rvalue != null && rvalue[0] == "true") { $(".logged .login_tile span:first").html(rvalue[1]); $('.log').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.log').css('display', 'none'); $('.logged').css('display', 'block'); $('.logged').animate({ top: 51 }, 300, "easeInOutQuad"); }); }
            else if (rvalue[0] == "false") { $(".loginfail .login_tile").text(rvalue[1]); $('.log').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.log').css('display', 'none'); $('.loginfail').css('display', 'block'); $('.loginfail').animate({ top: 51 }, 300, "easeInOutQuad"); }); var errtimer = setTimeout(function () { $('.loginfail').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.loginfail').css('display', 'none'); $('.log').css('display', 'block'); $('.log').animate({ top: 51 }, 300, "easeInOutQuad"); }); clearTimeout(errtimer); }, 3000); } 
        }; var erfunction = function (rvalue) { }
        WebServicePostWithFunction("/Content/WebService/ClientSiteWebService.asmx/MemberLogin", postdata, scfunction, erfunction);
    } 
}
function MemberRecovery() {
    if (!CheckForm('.log_recovery', 'transparent', '#ccc', '#bababa', '#000')) { return false; }
    else {
        var Grd_PostVariables = new Array(); Grd_PostVariables = FormVariables(".log_recovery"); postdata = "Params: '" + Grd_PostVariables.join("ß") + "'"; var scfunction = function (rvalue) { if (rvalue != null) { $(".loginfail .login_tile").text(rvalue[1]); $('.log_recovery').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.log_recovery').css('display', 'none'); $('.loginfail').css('display', 'block'); $('.loginfail').animate({ top: 51 }, 300, "easeInOutQuad"); }); var errtimer = setTimeout(function () { $('.loginfail').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.loginfail').css('display', 'none'); $('.log_recovery').css('display', 'block'); $('.log_recovery').animate({ top: 51 }, 300, "easeInOutQuad"); }); clearTimeout(errtimer); }, 3000); } }; var erfunction = function (rvalue) { }
        WebServicePostWithFunction("/Content/WebService/ClientSiteWebService.asmx/MemberRecovery", postdata, scfunction, erfunction);
    } 
}
function showLogin() { $('.log_open').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.log_open').css('display', 'none'); $('.log').css('display', 'block'); $('.log').animate({ top: 51 }, 300, "easeInOutQuad"); }); }
function showRemember() { $('.log').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.log').css('display', 'none'); $('.log_recovery').css('display', 'block'); $('.log_recovery').animate({ top: 51 }, 300, "easeInOutQuad"); }); }
function loginReturn() { $('.log').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.log').css('display', 'none'); $('.log_open').css('display', 'block'); $('.log_open').animate({ top: 51 }, 300, "easeInOutQuad"); }); }
function loginReturn_recovery() { $('.log_recovery').animate({ top: 0 }, 300, "easeInOutQuad", function () { $('.log_recovery').css('display', 'none'); $('.log').css('display', 'block'); $('.log').animate({ top: 51 }, 300, "easeInOutQuad"); }); }
