(function($){
Drupal.behaviors.slkb = {
	attach: function (context){
            $('.top').addClass('hidden');
            $.waypoints.settings.scrollThrottle = 30;
            $('#wrapper').waypoint(function(event, direction) {
                $('.top').toggleClass('hidden', direction === "up");
            }
        //*,{
        //*offset: '1%'
        //*}).find('').waypoint(function(event, direction) {
        //*    $(this).parent().toggleClass('sticky', direction === "down");
        //*    event.stopPropagation();
            );
            $('.view-products .views-field-field-ship-short-desc').slideToggle('fast');
            $('.view-products .views-row').hover(
                    function(){
                        $(this).children('.views-field-field-ship-short-desc').slideToggle('slow'),
                        $(this).children('.views-field-title').slideToggle('fast')
                        
                    },
                    function(){
                        $(this).children('.views-field-field-ship-short-desc').slideToggle('fast'),
                        $(this).children('.views-field-title').slideToggle('slow')
                    }
                )
            $('.view-history-list .views-field-title').slideToggle('fast');
            $('.view-history-list .views-row').hover(
                    function(){
                        $(this).children('.views-field-title').slideToggle('slow'),
                        $(this).children('.views-field-field-subtitle').slideToggle('fast')
                        
                    },
                    function(){
                        $(this).children('.views-field-title').slideToggle('fast'),
                        $(this).children('.views-field-field-subtitle').slideToggle('slow')
                    }
                )
        }  
}}
(jQuery));
;

