$(document).ready(function () {

//    if (location.href.match('error')) {
//        $("#loginArea").css('height', '55px');
//    } else {
//        $("#loginArea").css('height', '0px');
//    }

//    $("a.login").toggle(
//    				function () {
//    				   $("#loginArea").animate({ height: "55px" }, { queue: false, duration: 250, easing: 'easeOutQuad' });
//    				},
//                    function () {
//                        $("#loginArea").animate({ height: "0px" }, { queue: false, duration: 250, easing: 'easeOutQuad' });
//                    }
//    		);


//    if (location.href.match('error')) {
//        $("#loginArea").css('height', '55px');
//    } else {
//        $("#loginArea").css('height', '0px');
//    }

        $("a.login").toggle(
        				function () {
        				    //$("#loginArea").animate({ height: "55px" }, { queue: false, duration: 250, easing: 'easeOutQuad' });
        				    $("#loginArea").slideDown(500); setTimeout("SetLoginFocus()", 600);
        				},
                        function () {
                            //$("#loginArea").animate({ height: "0px" }, { queue: false, duration: 250, easing: 'easeOutQuad' });
                            $("#loginArea").slideUp();
                        }
        		);

    $('a.loginPublicCuration').click(function () {
        $('#loginAreaPublicCuration').slideToggle('fast', function () {
            // Animation complete.
        });
    });


}); 
