$(function() {
    //anything slider
    $('.anything').anythingSlider({
        width: 1004,
        height: 347,
        autoPlay: true,
        delay: 5000,
        animationTime: 600,
        buildNavigation: true,
        buildArrows: false
    });
	
    var duration = 500;
    /*
    $('#subNav .li:not(.active)').each(function()
    {
        var self = $(this);
        var sub = self.find('.sub');
        var top = sub.height() + 40;
//        var height = sub.height();
        $(this).hover(
            function () {
                //sub.show();
                sub.stop(true, true).animate({height: 'show', top: '-'+top+'px'}, duration);
                //sub.stop(true, true).animate({height: 'show'}, duration);
            }, function () {
                var self = $(this);
                var sub = self.find('.sub');
                sub.stop(true, false).animate({height: 'hide', top: '-40px'}, duration, null, function() {
                    sub.css({height: ''});
                });
            }
        );
    });
    
    
    $('#subNav .li.active').each(function()
    {
        var self = $(this);
        var sub = self.find('.sub');
        var top = sub.height() + 40;
        sub.stop(true, true).animate({height: 'show', top: '-'+top+'px'}, duration);
    });
    */
});
