$(document).ready(function(){
    var lastWidth = $(window).width();
    if (lastWidth <= 600 ) {
        $('.slicknav_menu').prev("br").remove();
        $('header').css('display','none');
    } else {
        $('header').css('display','block');
    }
     
    $(window).resize(function(){
      if($(window).width()!=lastWidth){
          lastWidth = $(window).width();
          if (lastWidth <= 600 ) {
            $('.slicknav_menu').prev("br").remove();
            $('header').css('display','none');
         } else {
            $('header').css('display','block');
         }
      }
    })
    
    
    var btn1 = true;
    $('.slicknav_btn').click(function(){
        if(btn1) {
            $('.slicknav_nav').removeClass('slicknav_hidden');
            $('.slicknav_nav').css('display','block');
            $('.slicknav_btn').removeClass('slicknav_collapsed');
            $('.slicknav_btn').addClass('slicknav_open');
        } else {
            $('.slicknav_nav').addClass('slicknav_hidden');
            $('.slicknav_nav').css('display','none');
            $('.slicknav_btn').addClass('slicknav_collapsed');
            $('.slicknav_btn').removeClass('slicknav_open');
        }
        btn1 = !btn1;
    });
});

