0){if($body.is('.blog')){title='Blog 导航';}else if($body.is('.directory')){title='Directory Categories';} var $toggle=$(''+title+'').prependTo('#content');$toggle.on(BREW.mobile?'touchstart':'click',function(){$('#sidebar').toggleClass('open');return false;});var $close=$('').appendTo('#sidebar');$close.on(BREW.mobile?'touchstart':'click','a',function(){$('#sidebar').removeClass('open');});var check='/idx/';if(window.location.href.indexOf(check)===window.location.href.length-check.length){$('#sidebar').addClass('open');}}})();