$(document).ready(function() {

    $('#feature h2').append('<div class="css-gradient"></div>');

    /* Login */
    $('.login-form').hide();

    $(".userlogin .loginbtn").css("background", "url(/images/universal/bg-aux-btn.png) left top no-repeat");

    $(".userlogin .loginbtn").hover(function() {
        $(this).css("background", "url(/images/universal/bg-aux-btn.png) left bottom no-repeat");
    }, function() {
        if ($(".login-form").css("display") == "none")
            $(this).css("background", "url(/images/universal/bg-aux-btn.png) left top no-repeat");
    });

    $(".userlogin .loginbtn").click(function() {
        if ($(".login-form").css("display") == "none") {
            $(".login-form").fadeIn("fast");
            $(this).css("background", "url(/images/universal/bg-aux-btn.png) left bottom no-repeat");
        }
        else {
            $(".login-form").fadeOut("fast");
            $(this).css("background", "url(/images/universal/bg-aux-btn.png) left top no-repeat");
        }
    });

    /* HOPE menu */
    $("#ulMainMenu ul ul").hide();

    $("#ulMainMenu ul li").hover(function() {
        $(this).find('ul:first').css({ visibility: "visible", display: "none" }).show("fast");
    }, function() {
        $(this).find('ul:first').css({ visibility: "hidden" });
    });

    /* Home page banner */
    $(function() {
        $("div.tabs").tabs({ fx: { opacity: 'toggle'} });
        $("div.tabs").tabs("rotate", 10000);
    });

    SetFocusToCtrl();

});

	
