$(document).ready(function(){
    $.waypoints.settings.scrollThrottle = 30;
	$('.dd2').hide().slideDown('slow').waypoint(function(event, direction) {
		$(this).toggleClass('dd4', direction === "down");
        
	});
});
    
    /*
    
        $('.section .menuTrigger').waypoint(function(e, direction) {
        var $active = $(this);

        //$("#pixels").html("Active: "+$active.parent().attr("id"));
        if (direction === "up") {
            $active = $active.prev();
        }
        if (!$active.length) $active.end();

        $('#jmenu ul').fadeOut("fast", function() {
            $(this).css("display", "none")
        });
        $('#jmenu ul[title= "' + $active.parent().attr("id") + '"]').fadeIn("fast", function() {
            $(this).css("display", "block")
        });

    }, {
        offset: 25
    });
    */
