jQuery(document).ready(function() { setupPinBoardBlock({ blockID: 'b0c54359aa299c79', effects: { hoverFocus: false, infiniteScroll: ( !!HeadwayPinBoard.isArchive || !!HeadwayPinBoard.isSearch ) ? 0 : 0 }, columns: 2, columnsSmartphone: 2, gutterWidth: 15 }); }); jQuery(document).ready(function(){ if ( typeof jQuery().superfish != "function" ) return false; jQuery("#block-bxf55f9d673d8b3c").find("ul.menu").superfish({ delay: 200, animation: {opacity:"show"}, speed: 'fast', onBeforeShow: function() { var parent = jQuery(this).parent(); var subMenuParentLink = jQuery(this).siblings('a'); var subMenuParents = jQuery(this).parents('.sub-menu'); if ( subMenuParents.length > 0 || jQuery(this).parents('.nav-vertical').length > 0 ) { jQuery(this).css('marginLeft', parent.outerWidth()); jQuery(this).css('marginTop', -subMenuParentLink.outerHeight()); } } }); });