﻿(function($) {
    var num = 0;
    jQuery.fn.menu = function(){
        $(this).find('ul').find('li').each(function(){
            if(!$(this).hasClass('spMenuGlass'))
            {
                $(this).click(function(){
                    $("input[@id$='hidSName']").attr('value', $(this).find('span').text().substring(0,3));
                    __doPostBack('spUpdate', $(this).find('span').text().substring(0,3));
                })
                .hover(
                    function(){
                        $(this).animate({
                            paddingRight: 16,
                            marginLeft: -10
                        },200, 'easeInOutQuint')
                        .css('color', '#ffffff')
                        .css('background', '#2f2f2f');
                    },
                    function(){
                        $(this).animate({
                            paddingRight: 6,
                            marginLeft: 0
                        },200, 'easeInOutQuint')
                        .css('color', '')
                        .css('background', '#343535');
                    }
                )
            }
        });    
    };
})(jQuery);
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
