$(document).ready(function(){var i=parseInt($GET.c),r=0,t=$GET.u.replace(/^\w+\:\/*?([^/]+).*?$/ig,"$1"),u,n,f;t=t?t:$GET.u,u=function(n){var t=typeof n=="string"?n:$(n).data("url"),i=$.trim($("#searchinput").val());t=t.replace(/\$key/ig,$e.urlencode(i)),window.open(t)},$("#baidubtn").click(function(){u(this)}),$("#gbtn").click(function(){u(this)}),$("#searchbtn, #authorbtn").click(function(){$e.gosearch($.trim($("#searchinput").val()),$(this).data("key"))}),$("#retrybtn").click(function(){if($e.status()=="busy")return!1;var n=$GET.u;$e.go(n,$e.name)}),$("#clearbtn").click(function(){$e.urlHistory("clear"),window.location.reload()}),$("#searchinput").keydown(function(){event.keyCode==13&&$e.gosearch($.trim($("#searchinput").val()),"key")}).val(t),r=i>999?"错误类型：网页无法找到":i>0?"网页无法正常打开："+i:"错误类型：连接失败",$("#browser_error").text(r),document.title=t+" - "+r,$("#retrybtn").trigger("focus"),n="",f=1,$e.urlHistory("list",function(t,i,r){return t.search(/imozhua\.com\//ig)>-1&&!i?!1:(i||(i=t),n+='<a href="'+t+'" target="_blank" title="'+i+"&#13;"+t+"&#13;"+r+'">'+$.trim(i).replace(/^http:\/\//ig,"").sub(99,"...")+"<\/a>",++f%2==1&&(n+='<div class="clear"><\/div>'),f>=41?!0:void 0)}),n==""&&(n="<span>暂时还没有任何访问历史记录哦~爪亲！<\/span>"),$(".listhistory").html(n)})