jQuery(function() {
    jQuery('#menuCatalogo .product').hoverIntent(function(){
        jQuery(this)
            .css('z-index', 100)
            .addClass('active')
            .find('.sottomenu')
            .slideDown('fast')
            ;
        },function(){
        jQuery(this)
            .css('z-index', 40)
            .removeClass('active')
            .find('.sottomenu')
            .fadeOut('fast');
    });
});

jQuery(function() {
    jQuery('#loginSfondo').hoverIntent(function(){
        jQuery(this)
            .find('#loginCnt')
            .stop(true,true)
            .slideDown('fast')
            ;
        },function(){
        jQuery(this)
            .find('#loginCnt')
            .stop(true,true)
            .fadeOut('fast');
    });
});

jQuery(function() {
    jQuery('.advancedSearch').click(function(){
        jQuery('#advancedSearchCnt')
            .stop(true,true)
            .slideDown('fast')
            ;
        },function(){
        jQuery('#advancedSearchCnt')
            .stop(true,true)
            .fadeOut('fast');
    });
});

jQuery(function() {
    jQuery('#spallaSx').height(jQuery('#contentContainer').height());
});

jQuery(function() {
    jQuery('#homeNews').height(jQuery('.boxes').height());
});

jQuery(document).ready(function(){
    
    jQuery('#lang').hoverIntent(function(){
        jQuery('#langList').show();
    },function(){
        jQuery('#langList').hide();
    });
    
    jQuery('#SearchForm_SearchForm_Search').click(function(){
        jQuery('#SearchForm_SearchForm_Search').val('');
    });
    jQuery('#SearchForm_SearchForm_action_results').val('');
    
    jQuery('.advancedSearch').click(function(){
        jQuery('#advancedSearchCnt').toogle();
    });
    
    jQuery('#fixedDescription').jScrollPane();
    
});

jQuery(function() {
    jQuery('#searchFilter > ul > li').hoverIntent(function(){
        jQuery(this)
            .css('z-index', 100)
            .find('.sceltaOggetti')
            .show()
            ;
         jQuery('.oggetti',this).css({'display':'block'});
        },function(){
          jQuery(this).css('z-index', 40),
          jQuery('.sceltaOggetti',this).hide();
          jQuery('.oggetti',this).css({'display':'none'});
          
    });
});
