﻿/// <reference path='jquery-1.2.6-vsdoc.js' />

$.fn.setAlltopMenu = function(options) {
    $(".topMenuAction").click(function() {
        if ($("#openCloseIdentifier").is(":hidden")) {
            $("#slider").animate({
                marginTop: "-105px"
            }, 500);
            $("#topMenuImage").html('Sign In');
            $("#openCloseIdentifier").show();
        } else {
            $("#aCloseMe").html("Close");
            $("#slider").animate({
                marginTop: "0px"
            }, 500);
            $("#topMenuImage").html('Sign In');
            $("#openCloseIdentifier").hide();
        }
    });
    $("#aCloseMe").click(function() {
        $("#slider").animate({
            marginTop: "-105px"
        }, 500);
        $("#topMenuImage").html('Sign In');
        $("#openCloseIdentifier").show();
        $("#aCloseMe").html("");
    });
};

$(document).ready(function() {
    $('input').focus(function() {
        $(this).parent().parent().addClass('trhover');
    });
    $('input').blur(function() {
        $(this).parent().parent().removeClass('trhover');
    });
});