jQuery(document).ready(function($){$('#topnav').before('<h3 id=\"topnav-icon\">'+smartline_navigation_params.menuTitle+'</h3>');$('#topnav-icon').on('click',function(){$('#topnav-menu').slideToggle();$(this).toggleClass('active');});$('#footernav').after('<h3 id=\"footernav-icon\">'+smartline_navigation_params.menuTitle+'</h3>');$('#footernav-icon').on('click',function(){$('#footernav-menu').slideToggle();$(this).toggleClass('active');});$('#mainnav').before('<h3 id=\"mainnav-icon\">'+smartline_navigation_params.menuTitle+'</h3>');$('#mainnav-icon').on('click',function(){$('#mainnav-menu').slideToggle();$(this).toggleClass('active');});if(typeof matchMedia=='function'){var mq=window.matchMedia('(max-width: 60em)');mq.addListener(smartlineWidthChange);smartlineWidthChange(mq);}function smartlineWidthChange(mq){if(mq.matches){$('#mainnav-menu ul').css({display:'block'});$('#mainnav-menu li ul').css({visibility:'visible',display:'block'});$('#mainnav-menu li').unbind('mouseenter mouseleave');}else{$('#mainnav-menu ul').css({display:'none'});$('#mainnav-menu li').hover(function(){$(this).find('ul:first').css({visibility:'visible',display:'none'}).slideDown(300);},function(){$(this).find('ul:first').css({visibility:'hidden'});});}}});