')} else{$.removeCookie('userid');$.removeCookie('username');$('#loginbutton').html('登录');$('#regbutton').html('注册');return}}});$('#shortcut-favorite').click(function(){url=window.location.href;title=$(document).find('title').text();addFavorite(url,title)});$('.search-submit').click(function(){keyword=$('.search-input').val();if(!keyword){layer.alert('请输入您要搜索关键词');return};window.location.href="http://ratlsj.com/tfbsdi/"+keyword+'.html'})});$(function(){$('#toTop').scrollToTop()});