(function ($) {

    Drupal.behaviors.jqueryHortocampo = {
        attach: function (context, settings) {
            $('body.page-productos #edit-search-api-views-fulltext-wrapper input, body.page-resultados #edit-search-api-views-fulltext-wrapper input').addClass('fourteen columns');
            $('#node-52').addClass('twelve columns');
           
            
            $('a.desplega').click( function() {
                    $('#block-views-etiquetas-blog-block-1 .content .view .view-content').show(300);
                    $("a.desplega").hide();
                    $("a.cerrar").show();
                       
                
            });

            
            $('a.cerrar').click( function() {
                    $('#block-views-etiquetas-blog-block-1 .content .view .view-content').hide(300);
                    $("a.desplega").show();
                    $("a.cerrar").hide();
    
                
            });
            
            $('a[href*=#primary]').click(function() {
                var name = $(this).attr('href');
                var velocidad = 1000;
                var target = jQuery(this.hash);
                target = target.length && target || $('[name=' + this.hash.slice(1) +']');
                if (target.length) {
                    var targetOffset = target.offset().top;
                    $('html,body').animate({
                        scrollTop: targetOffset
                    }, velocidad);
                    return false;
                }
            
            });
            var pathname = window.location.pathname;
            var b = "/imce";
            if (pathname != b){
      
            
            $('.cluetip-title').cluetip({
                splitTitle: '|',
                cluetipClass: 'horto',
                closePosition: 'title', 
                arrows: true
            });
                }
            
           
            
    
        }
    };

}(jQuery));
;

