﻿// http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
// http://www.sohtanaka.com/web-design/examples/drop-down-menu/#
$(function () {
    $('#mymenu ul li:last-child').addClass("last");

    $('#mymenu ul li ul:last-child').each(
        function () {
            $(this).parent().addClass("hasmore");
            $(this).parent().eq(0).hoverIntent({
                timeout: 100,
                over: function () {
                    var current = $('.dropdown:eq(0)', this);
                    current.slideDown(100);
                },
                out: function () {
                    var current = $('.dropdown:eq(0)', this);
                    current.fadeOut(200);
                }
            });
        });

    $('#mymenu ul li ul').addClass("dropdown");

    $('.dropdown a').hover(function () {
        //$(this).stop(true).animate({ paddingLeft: '20px' }, { speed: 100, easing: 'easeInBounce' });
    }, function () {
        //$(this).stop(true).animate({ paddingLeft: '0' }, { speed: 100, easing: 'easeOutBounce' });
    });

});
