jQuery(document).ready(function(){ new WOW().init(); //Mobile menu updates jQuery('.top-bar-section-mobile .parent > a').on('click',function(event){ event.stopPropagation(); jQuery(this).parent().find('ul').toggle(); return false; }) jQuery('.top-bar-section-mobile .parent').find('ul').hide(); jQuery('.js-panel-link').on('click',function(){ $link = jQuery(this).data('link'); window.location.href = $link; return false; }) jQuery('.video-button').magnificPopup({ type: 'iframe', mainClass: 'mfp-fade', callbacks: { open: function() { //jQuery('.slider').flexslider('pause') }, close: function() { //jQuery('.slider').flexslider('play') }, }, iframe: { markup: '