var c=function(){var a=String(window.location),b=a.replace(window.location.protocol,"");if(b.indexOf("images.google.cn")!=-1&&b.indexOf("?")==-1)return"http://images.google.com.hk/imghp?hl=zh-CN&sourceid=cnhp";else if(b.indexOf("finance.google.cn")!=-1&&b.indexOf("?")==-1)return"http://www.google.com.hk/finance?hl=zh-CN&sourceid=cnhp";else if(b.indexOf("video.google.cn")!=-1&&b.indexOf("?")==-1)return"http://www.google.com.hk/videohp?hl=zh-CN&sourceid=cnhp";else if(b.indexOf("google.cn/hp?sp=china")!=
-1)return"http://www.google.com.hk/webhp?hl=zh-CN&sourceid=cnhp";else if(b.indexOf("ditu.google.cn")!=-1&&b.indexOf("?")==-1)return"http://ditu.google.com/maps?hl=zh-CN&sourceid=cnhp";/google\.cn/.exec(a)||(a=a.replace(window.location.hostname,"www.google.cn"),window.location.port&&(a=a.replace(":"+window.location.port,"")));a.indexOf("ditu")==-1&&(a=a.replace("google.cn","google.com.hk"));/.*\.html$/.exec(a)||(/\?/.exec(a)||(a+="?"),/\&hl=zh\-CN/.exec(a)||(a+="&hl=zh-CN"));/news.google/.exec(a)&&
(a+="&ned=cn");if(/\/videohp/.exec(a)||/\/videosearch/.exec(a))a=a.replace("video.google.com.hk/","www.google.com.hk/");/videosearch/.exec(a)&&(a=a.replace("videosearch","search"),a+="&tbs=vid:1");a=a.replace("news.google.com.hk/search","news.google.com.hk/news/search");a=a.replace("www.google.com.hk/videoadvancedsearch","www.google.com.hk/videohp/videoadvancedsearch");a=a.replace("ditu.google.cn","ditu.google.com");a.indexOf("sourceid=")==-1&&(a+="&sourceid=cndr");return a.replace("?&","?")}();
function d(a){return a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;")}var e=function(){window.location=c};document.addEventListener?document.addEventListener("click",e,false):document.attachEvent&&document.attachEvent("onclick",e);var f=document.getElementById("term");if(f){var g="-",h=/[\?&]q(?:=([^&]*))?/.exec(window.location.search);if(h)try{g=decodeURIComponent(h[1])}catch(i){}f.innerHTML=d(g)}
for(var j=document.getElementById("alt").getElementsByTagName("a"),k=0,l=j.length;k<l;k++)j[k].href=d(c);
