$(function() {
    //Sign in link animation
    $('#siginlink').click(function(event){
        event.preventDefault();
        $('#UserUsername').focus().addClass('ui-state-highlight');
    });
/*
    //Password link slide down
    $("#passwordlink").click(function(event) {
        event.preventDefault();
        $('<div id="passwordform"></div>').insertBefore('#header');
        $('#passwordform').load('/users/password.lite');



        var horizontalPadding = 30;
        var verticalPadding = 30;
        $('<iframe id="externalSite" class="externalSite" src="' + this.href + '" />').dialog({
            title: ($(this).attr('title')) ? $(this).attr('title') : 'Enter one or more fields below to create a new password.',
            autoOpen: true,
            width: 730,
            height: 430,
            modal: true,
            resizable: false,
            autoResize: false,
            position: 'center',
            overlay: {
                opacity: 0.5,
                background: "black"
            }
        }).width(950 - horizontalPadding).height(650 - verticalPadding);
    });
*/
    //Login submit button
    $('#loginsubbut').button();
});
