Skip to content

Instantly share code, notes, and snippets.

Created April 9, 2009 07:42
Show Gist options
  • Save anonymous/92313 to your computer and use it in GitHub Desktop.
Save anonymous/92313 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>
<meta name="format-detection" content="telephone=no"/>
<link rel="apple-touch-icon" href="/xhtml/images/favicon-57.png"/>
<style id="donotdelete">/*<![CDATA[*/
body{visibility:hidden;font-size:16px !important;margin:0 !important}#landingPage{visibility:hidden}#igoogle{text-align:right;margin-top:10px;margin-right:5px}.gp2{margin:0;text-align:center}.gp7{font-size:12pt;margin-top:5pt}#b{font-size:10pt;margin-top:4px;margin-bottom:5px}.gsc-tabHeader{margin:0;padding-top:0;padding-left:10px;padding-right:10px;padding-bottom:15px;border:none}.gsc-tabHeader.gsc-tabhActive{background:#fff;display:inline;color:#000;font-weight:bold}.gsc-tabsArea{text-align:center;display:block;margin-top:5px;margin-bottom:3px}.gsc-tabHeader.gsc-tabhInactive{text-decoration:underline;background:#fff;display:inline;color:#44f}#clearQuery{background-color:#ffffff;border-color:black;border-style:solid solid solid none;border-width:1px 1px 1px 0;height:16px;padding:5px 4px 4px 4px;width:16px;position:relative;top:4px;left:-8px;margin-right:-8px;display:none;visibility:hidden;-webkit-appearance:textfield;-webkit-border-top-right-radius:5px;-webkit-border-bottom-right-radius:5px}#clearQuery img{border-style:none;width:16px;height:16px}#clearQuery.clear{height:19px;width:19px;padding:3px 4px 3px 4px;top:5px;left:-8px}#clearQuery.clear img{background:no-repeat url(http://www.gstatic.com/m/images/gp1.gif) -150px 0;width:19px;height:19px}#searchResults #res{margin:0 6px;padding-left:0}.tc label{font-size:80%}#searchResults #gbar,.gbh,#guser,#gb{display:none}#logo0 span{background:no-repeat url(http://www.gstatic.com/m/images/gp1.gif) 0 0;overflow:hidden;position:absolute;top:0;left:0;width:150px;height:52px}#logo0{display:block;height:52px;margin:13px 0 7px;overflow:hidden;position:relative;width:150px;margin-left:auto;margin-right:auto}#searchResults .std{font-size:16px !important}#searchResults h2, div{font-size:16px !important}#searchResults h3{font-size:16px !important}#searchResults #tads h2{font-size:13px !important}#searchResults #tads h3{font-size:16px !important}#searchResults #tads{font-size:16px !important;width:720px}#searchResults #ssb{width:720px;font-size:16px !important}#searchResults #ssb p{font-size:16px !important;text-align:left}#searchResults #sft{margin-bottom:10px}#searchResults #footer{font-size:16px !important}.promo{margin-top:25px;text-align:center}#spinner{position:absolute;left:47%;top:47%;width:20px;height:20px;z-index:99}.gp_og_unselected_tab{font-weight:normal;text-decoration:underline;color:#00c}.gp_og_selected_tab{color:black !important;font-weight:bold !important;text-decoration:none !important}#swml_opt_in_popup{background-color:#bbb;z-index:99;float:left;position:fixed;display:none;bottom:-500px;width:100%;text-align:center;padding:5px 0;-webkit-transition:bottom 1s linear}#swml_opt_in_popup.show{bottom:0px}#swml_opt_in_popup .explanation{font-size:14px;padding:4px 0}#swml_opt_in_close{font-weight:bold;float:right;margin:2px}.gp-blue{background-image:url(data:image/gif;base64,R0lGODdhAQAgAMIIABstehsvfRwwgR4zhB81iiA3jSE6kvf6/ywAAAAAAQAgAAADDji21U1wSClqDRjow08CADs=);background-repeat:repeat-x;background-color:#1e3381}.topbar{line-height:30px;margin:0;padding:2px 0 0 0;width:100%;font-size:15px !important}.topbar a.gpbtn,
a.gpbtn:visited{display:inline;margin:0 auto;font-family:Arial, Helvetica, sans-serif;color:#fff;border-width:0 6px;padding:7px 0;text-decoration:none}.topbar a.gpbtn-on,
a.gpbtn-on:visited{font-weight:bold;-webkit-border-image:url(data:image/gif;base64,R0lGODlhHAAgAKU/ABQghBQhjRYjixgpbBcmjBclkxkqcxoseBgolBsuexkpnBssohsumx0yhB4zhBwvpB81ih82hR4yqx4zpyA4jiI7lCI5riI6uCVAnCdEoSlCtSdDvylHvCpKxi1Pyi1RxC9TyC9TzjRcujJa0zNbzzVg1Dhj0zhk2jppxDpo1Dtr3EBzyEB030J4yUJ44ER8y0R85EmF5UuK5oqX24yZ0Y6c3JOg3JSi3pqn1Z+q0Kaw1qay2c3Q3NDV3fDx+v///yH5BAEKAD8ALAAAAAAcACAAAAb+wIoIhVoZV62XcslsHYmiSCSTYrFg2Jg2Jut6t1qYy5WqYDAmldWKbbvfsLWJYiap1GvW2OXe5+8kdBUkJ3d3eYiIhiokEBUVISUnk4uVliqTJyGOFSAjI5KZoqOjJSUgERQUHyQkpq+wsbGfHw6qHSG5n7u8vbu5IR0NEBAcHsDIycrAHhwNwxwdHtPU1dbXzQkOxR3d3tLY09/dGgnPFhvj6uvfFgfPDxcbHPT19vf2GxcP7w0MEgADChxIECCDA+8YPHgwoaHDhxAjMjCQIIHChRgzaty4cGJFBAtCihxJsmRIBAYQIlDAsqXLkS5jokRYIKbNmzELDKCJs6d+TZ0ICSAYSrSo0aNEdx4QirQpUgJKBRSYSrWq1atTBQxIKRWrV6xaUwIIQLas2bNoy249MJasgLdw48p9WxbAVgNt0+pFa3eADxo2bggeTLiw4Rs4evjwsaOG48eQI0t2nEPxYh03ZmjezLkz5xuVF4v20YOH6dOoU6O27CMIADs=) 0 7 0 7}.topbar a.gpbtn-off,
a.gpbtn-off:visited{padding-left:6px;padding-right:6px}.gpframe{position:relative;width:100%;height:480px;border:none;top:0}body{margin:0;padding:0;font-family:Arial, Helvetica, sans-serif;-webkit-text-size-adjust:none}
/*]]>*/
</style>
<link rel="apple-touch-icon-precomposed" href="http://www.gstatic.com/m/og/icons/googlecom-iphone-57x57-p.png" />
<script type="text/javascript">/* <![CDATA[ */
(function(){var e=parseInt,g=document;function i(a,b){return a.name=b}var k="window",l="length",n="prototype",o="removeEventListener",p="getElementById",q="offsetWidth",r="callee",s="getComputedStyle",t="style",u="target",v="tick",w="getPropertyValue",x="addEventListener",A="defaultView",B="name",C="getElementsByTagName",_uiVariant="",D="iphone",_BROWSER_NAME=D,E=null,aa="body";function F(){E||(E=g.body||g[C](aa)[0]||null);return E}
var G="\\b",ba=" ";function H(a,b){(new RegExp(G+b+G)).test(a.className)||(a.className+=ba+b)}var ca="g",I="";function J(a,b){var c=a.className,d=c.replace(new RegExp(G+b+G,ca),I);if(d!=c)a.className=d}function da(a,b){for(var c=b;c=c.parentNode;)if(c==a)return true;return false}if(window.top!=window)window.top.location=window.location;var ea="416px",fa="268px";function ga(){var a=window.orientation===0||window.orientation===180;F()[t].minHeight=a?ea:fa}
function ha(){window.pageYOffset===0&&window.scrollTo(0,1)}function ia(){var a=window.orientation;window.setInterval(function(){if(a!=window.orientation){a=window.orientation;ga()}},100)}var K=false;function ja(a){K?L():M(a)}var N=null,Q=true,R=new Image;R.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";R.className="og_linkStretcher";var ka="android",S="og_menu",T="a";
function la(){if(!arguments[r].s){arguments[r].s=true;if(!(_BROWSER_NAME!=ka))for(var a=g[p](S),b=a[C](T),c=0,d=b[l];c<d;c++)b[c].appendChild(R.cloneNode(false))}}var ma="og_menuTrigger",U="og_hider",V="og_more",W="og_tab_selected",X="click",na="og_menuSelected",oa="og_moreActive",pa="og_tabActive",qa="og_hiderActive",ra="px";
function M(a){if(!!Q){var b=g[p](S);if(!!b){if(a){a.stopPropagation();a.preventDefault()}la();ta();var c=g[p](ma),d=g[p](U),f=g[p](V);if(f)var j=f[C](T)[0];N=ua();if(j&&N!=j){N&&J(N,W);H(j,W)}b[x](X,Y,false);H(b,na);f&&H(f,oa);c&&H(c,pa);d[x](X,Y,true);H(d,qa);F()[x](X,va,true);window.setTimeout(function(){F()[x](X,wa,false)},1);d[t].height=Math.max(F().scrollHeight,window.innerHeight)-d.offsetTop+ra;b[C](T)[0].focus();K=true}}}
function L(){var a=g[p](S);if(!!a){var b=g[p](ma),c=g[p](U),d=g[p](V);if(d)var f=d[C](T)[0];if(f&&N!=f){N&&H(N,W);J(f,W)}N=null;a[o](X,Y,false);J(a,na);d&&J(d,oa);b&&J(b,pa);c[o](X,Y,true);J(c,qa);F()[o](X,va,true);K=false}}var xa="direction",ya="ltr",za="margin-left",Aa="margin-right";
function ta(){var a=g[p](S),b=g[p](V);if(!(!a||!b)){var c,d=b[C](T)[0],f=Math.min(g.width,window.innerWidth),j=g[A][s](F(),null)[w](xa);if(j==ya){c=b.offsetLeft;c+=e(g[A][s](d,null)[w](za),10);if(f-c-a[q]<5)c=f-a[q]-5}else{c=b.offsetLeft+b[q]-a[q];c-=e(g[A][s](d,null)[w](Aa),10);if(c<5)c=5}a[t].left=c+ra}}var Ba="og_head",Ca="*";function ua(){for(var a=g[p](Ba)[C](Ca),b=0,c=a[l];b<c;b++)if(/\bog_tab_selected\b/.test(a[b].className))return a[b];return null}function Y(a){a.stopPropagation();L()}
function va(a){var b=g[p](S),c=g[p](U);if(!da(b,a[u])&&!da(c,a[u])&&b!=a[u]&&c!=a[u]){Q=false;L()}}function wa(){Q=true;F()[o](X,arguments[r],false)}var Da="og_",Ea="none";function Fa(a){for(var b=0;b<a[l];b++){var c=g[p](Da+a[b]);if(c)c[t].display=Ea}}var Z="load";_BROWSER_NAME=="iphone"&&window[x](Z,function(){window[o](Z,arguments[r],false);ga();ha();ia()},false);window.og={};window.og._showMenu=M;window.og._hideMenu=L;window.og._toggleMenu=ja;window.og.showMenu=M;window.og.hideMenu=L;
window.og.toggleMenu=ja;window.og.blacklist=Fa;window.og._getCsi=function(){return window.gpjstiming};var Ga="start";function Ha(a){this.t={};this.tick=function(b,c,d){var f=d?d:(new Date).getTime();this.t[b]=[f,c]};this[v](Ga,null,a)}var Ia=new Ha;window.gpjstiming={Timer:Ha,load:Ia};var Ja="_",Ka=".",La="&",Ma="=",Na="http://csi.gstatic.com/csi",Oa="?v=3",Pa="&s=",Qa="mog",Ra="&action=",Sa="&it=",Ta=",",Ua="&rt=";
if(window.gpjstiming){window.gpjstiming.g={};window.gpjstiming.u=1;function Va(a,b,c){var d,f=a.t[b];if(!f)return undefined;f=a.t[b][0];var d=c!=undefined?c:a.t.start[0];return f-d}window.gpjstiming.report=function(a,b,c){var d=I,f=a.t,j=f.start,O=[],y=[];for(var h in f)if(!(h==Ga))if(!(h.indexOf(Ja)==0)){var z=f[h][1];if(z)f[z]&&y.push(h+Ka+Va(a,h,z));else j&&O.push(h+Ka+Va(a,h))}delete f.start;if(b)for(var P in b)d+=La+P+Ma+b[P];var m=new Image,sa=window.gpjstiming.u++;window.gpjstiming.g[sa]=m;
m.onload=m.onerror=function(){delete window.gpjstiming.g[sa]};m.src=[c?c:Na,Oa,Pa+(window.gpjstiming.sn?window.gpjstiming.sn:Qa)+Ra,a[B],y[l]?Sa+y.join(Ta)+d:d,Ua,O.join(Ta)].join(I);m=null}}var Wa=function(){this.q=this.h=this.n=this.m=this.i=this.k=this.l=this.b=null},Xa=function(a,b){this.a=b;this.j=a};Xa[n].start=function(a){var b=new this.j.Timer;i(b,a);b.d=this.a.b;b.c=null;b.f=null;return b};var Ya="1",Za="0",$a=":";
Xa[n].report=function(a,b,c){var d=b||{};d.e=this.a.l;d.mog_d=this.a.k?Ya:Za;d.mog_co=this.a.i;d.mog_gl=this.a.m;d.mog_hl=this.a.n;d.mog_br=this.a.h;d.mog_ui=this.a.q;if(a.f!==null)d.srt=a.f;if(a.d&&a.c){d.mog_transition=a.d+$a+a.c;this.a.b=a.c}this.j.report(a,d,c)};var $=function(a,b){this.window=a;this.a=b},ab=/^startmog@beforenavigate@(\d+)@oldwindowname@([^@]*)@origin@([^@]+)@endmog$/,bb="@",cb="startmog@beforenavigate@",db="@oldwindowname@",eb="@origin@",fb="@endmog";
$[n].o=function(){var a=ab.exec(this[k][B]);if(a)i(this[k],a[2]);if(!(this[k][B].indexOf(bb)!=-1))i(this[k],cb+this.p()+db+this[k][B]+eb+this.a.b+fb)};$[n].p=function(){return(new Date).getTime()};$[n].r=function(){var a={};a.serverResponseTime=null;a.originProperty=null;var b=ab.exec(this[k][B]);if(b){i(this[k],b[2]);var c=Number(b[1]);if(!isFinite(c))return a;var d=this.p()-c;if(d>600000)return a;a.serverResponseTime=d;a.originProperty=b[3]}return a};var gb="og_quick";
function hb(a){var b=g[p](gb);b&&ib(b[C](T),a);var c=g[p](S);c&&ib(c[C](T),a)}function ib(a,b){for(var c=function(){b.o()},d=0,f=a[l];d<f;d++)a[d][x](X,c,false)}var jb="default_load_1",kb="dl";function lb(a){i(window.gpjstiming.load,jb);window.gpjstiming.load[v](kb);hb(a)}var mb="readyState",nb="DOMContentLoaded";
function ob(a){if(mb in g)var b=window.setInterval(function(){if(/loaded|complete/.test(g.readyState)){window.clearInterval(b);lb(a)}},100);else window[x](nb,function(){lb(a)},false)}var pb="ol",qb="prt";function rb(a,b){window[x](Z,function(){a[v](pb);a[v](qb);window.setTimeout(function(){b.report(a)},1000)},false)}
var sb="1",tb="0",ub="",vb="tw",wb="tw",xb="zh",yb="4";
function zb(){var a=new Wa;a.b=sb;a.l=tb;a.k=ub;a.i=vb;a.m=wb;a.n=xb;a.h=D;a.q=yb;var b=window.gpjstiming.load;i(b,jb);var c=new $(window,a),d=c.r();b.f=d.serverResponseTime;b.d=d.originProperty;b.c=a.b;var f=new Xa(window.gpjstiming,a);f.track=function(){c.o()};window.og.csi=f;rb(b,f);ob(c)}zb();var Ab="font-size",Bb="og_stylesheet",Cb="#og_head,#og_head div{font-size:",Db="px !important;}";
function Eb(){var a=g[p](Ba);Fb(a);var b=g[p](gb),c=g[p](V),d=e(g[A][s](a,null)[w](Ab),10),f=D,j=f==ka?7:0,O=Math.min(window.screen.width-j,window.screen.height-j,window.innerWidth),y=g[p](Bb);if(!!y)for(var h=y.sheet,z=false,P=function(){var m=b[q];if(c)m+=c[q];m+=7;return m};P()>O;){z&&h.deleteRule(h.cssRules[l]-1);z=true;h.insertRule(Cb+d+Db,h.cssRules[l]);d--;if(d<=8)break}}function Fb(a){for(var b=a.childNodes,c=b[l]-1;c>=0;c--)b[c].nodeType==3&&a.removeChild(b[c])}var Gb="javascript:void(0)";
function Hb(){var a=g[p](V);if(a){var b=a[C](T);if(b[l]!=1)throw V;b[0].href=Gb}}window.og._generate=function(){Eb();Hb()};})();
/* ]]> */
</script>
<style type="text/css" id="og_stylesheet">/* <![CDATA[ */
#og_head>.og_menu{visibility:hidden;position:absolute;border:1px solid #a0b6e6;z-index:1000;background-color:#fff;top:-1000px;min-width:120px}#og_head .og_menu.og_menuSelected{visibility:visible;top:31px}#og_head>.og_menu>a,#og_head>.og_menu>b{display:block;padding:2px 10px;font-size:15px!important;line-height:35px;text-decoration:none;position:relative;border-bottom:1px solid #e1e7ef}#og_head>.og_menu>a:last-child,#og_head>.og_menu>b:last-child{border-bottom:none}#og_head .og_linkStretcher{display:block;position:absolute;left:1px;top:1px;width:98%;min-width:118px;height:38px;border:none}#og_head .og_hider{display:none;position:absolute;top:30px;left:0;right:0;bottom:0;z-index:999;-webkit-tap-highlight-color:rgba(0,0,0,0)}#og_head.og_android .og_hider{background-color:rgba(0,0,0,0.1)}#og_head .og_hider.og_hiderActive{display:block;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#og_head{-webkit-text-size-adjust:none;height:30px;font-family:helvetica,arial,sans-serif;background:white;white-space:nowrap;border-bottom:1px solid #c9d7f1}#og_head,#og_head div{font-size:15px!important}#og_head a{color:#00c}#og_head .og_tab{display:inline-block;border-width:0 6px;padding:7px 6px;color:#00c;text-decoration:underline;font-weight:normal}#og_head .og_tab_selected{color:#000;font-weight:bold}#og_head .og_product{color:#000;font-weight:bold;text-decoration:none}#og_head .og_tab_selected>u{text-decoration:none}#og_head>.og_quick,#og_head>.og_more{display:inline;position:relative}#og_head>.og_more.og_moreActive{z-index:1000}#og_head>.og_more>a{text-decoration:none}#og_head>.og_menu{border-color:#c9d7f1;border-top:none}
/* ]]> */
</style>
<style type='text/css'></style>
<style id="donotdelete">/*<![CDATA[*/
#suggestDiv{margin:auto;background-color:#FFFFFF;margin-top:4px;margin-bottom:3px;padding:0;width:140px;display:none;border-top:1px solid;border-bottom:1px solid;border-left:1px solid;border-right:1px solid;-webkit-border-radius:5px}#suggestTable{width:100%}#suggestSeparator{border:0 none;height:2px;color:#999;background-color:#999;margin:0}#suggestItemSeparator{border:0 none;height:1px;color:#CCC;background-color:#CCC;margin:0}#labelCell{margin-right:0;text-align:right;width:25%}#suggestListItemRow, .suggestListItem{font-size:16px;margin:0;padding:4px 2px;width:75%;text-align:left}#suggestListItemNavLink{color:#0000ff;text-decoration:underline;font-weight:bold}#suggestListItemTextPrefix{color:#555;display:inline}#suggestListItemTextSuffix{color:#000;display:inline;font-weight:bold}#suggestListItemLinkSpan{font-size:13px !important;color:#008000;font-weight:bold}#closeMarker{text-align:right;display:none;font-weight:bold;position:relative}#actionMarker{text-align:right;display:inline;font-weight:bold;position:relative;color:#999}#closeDiv{padding:4px 2px;font-size:13px !important;margin-top:5pt;margin-left:8pt;text-align:right;text-decoration:underline;float:right}#historyActionList{background-color:#FFFFFF;font-size:13px !important;display:none;position:absolute;border-top:1px solid;border-left:1px solid;border-right:1px solid;border-bottom:1px solid;-webkit-border-radius:5px}#clearAll, #turnOn, #turnOff{font-size:13px !important;padding:6px 4px;text-align:left;border-bottom:1px solid #000000;display:none}#historyLabelCell, #suggestLabelCell{padding:5px 4px;font-size:13px !important;background-color:#FFFFFF;color:#999;float:right;text-align:right}
/*]]>*/
</style>
<style type="text/css"> </style>
<title> Google </title>
<script type="text/javascript">
//<![CDATA[
var _userHistoryInfoString = '[]';var _userHistoryEnabled = true;var _userHistoryToken = 'AFrce805T8FZdik3Hg8x52Ct91ubBxgmw-hrJe0ZPfZxT99Rdg';var _userToken = '';var _navSuggest = false;var _suggestStyle = '1';
//]]> </script> <script type="text/javascript">
//<![CDATA[
var _tabProductIds=["gmail","calendar","reader"];var _googleDomain="google.com";var _googleHost="";var _country="us";var _locale="zh_TW";var _googleLanguage="zh-TW";var _googleSuggest="1";var _historySuggest="1";var _source="";var _oneGoogle=true;_MESSAGES={LOADING_TEXT:"Loading...",GMAIL_TAB:"Gmail",BLOGGER_TAB:"Blogger",SEARCH_IMAGES_BUTTON:"\u641c\u5c0b\u5716\u7247",PHOTOS_TAB:"\u76f8\u7247",SAVE_BUTTON:"\u5132\u5b58",WEB_CORPUS:"\u6240\u6709\u7db2\u9801",CLOSE_BUTTON:"\u95dc\u9589",HISTORY:"\u8a18\u9304",WIRELESS_HELP:"\u8aaa\u660e",SIGN_OUT:"\u767b\u51fa",SAVING_BUTTON:"\u5132\u5b58\u4e2d\u2026",PREFERENCES_LINK:"\u4f7f\u7528\u504f\u597d",NEWS_TITLE:"Google \u65b0\u805e",CANCEL_BUTTON:"\u53d6\u6d88",GMAIL_TITLE:"Gmail",MORE_TAB:"\u66f4\u591a",
SEARCH_BUTTON:"\u641c\u5c0b",DOCS_TITLE_NEW:"Google \u6587\u4ef6",HOME_TAB:"\u9996\u9801",SAVE_TABS_FAILED:"\u5132\u5b58\u6a19\u7c64\u5931\u6557",CONFIRM_CLEAR_HISTORY:"\u8981\u6e05\u9664\u6240\u6709\u7684\u67e5\u8a62\u8a18\u9304\u55ce\uff1f",SUGGESTIONS:"\u5efa\u8b70",DO_NOT_DISPLAY_THIS_MESSAGE_AGAIN:"Do not display this message again",SELECT_AT_LEAST_ONE:"Select at least one application.",GOOGLE_MAIL_TITLE:"Google Mail",TAP_ICONS:"\u6700\u591a\u6309\u4e00\u4e0b 3 \u500b\u5716\u793a...",TURN_HISTORY_OFF:"\u95dc\u9589\u8a18\u9304",
NEWS_TAB:"\u65b0\u805e",GOOGLE:"Google",SEARCH_LOCAL_BUTTON:"\u641c\u5c0b\u672c\u5730",WEB_HISTORY:"\u641c\u5c0b\u8a18\u9304",GOOG411TAB:"GOOG-411",CALENDAR_TAB:"\u65e5\u66c6",TAP_AGAIN:"\u518d\u6b21\u6309\u4e00\u4e0b\u9078\u53d6\u7684\u5716\u793a\u4ee5\u5c07\u5176\u79fb\u9664\u3002",COPYRIGHT:"\u00a92009 Google",READER_TAB:"\u95b1\u8b80\u5668",IGOOGLE:"iGoogle",BLOGGER_TITLE:"Blogger",IMAGES_CORPUS:"\u5716\u7247",TURN_HISTORY_ON:"\u958b\u555f\u8a18\u9304",TURN_OFF:"\u95dc\u9589",CALENDAR_TITLE:"Google \u65e5\u66c6",
DOCS_TAB:"\u6587\u4ef6",GOOGLE_MAIL_TAB:"\u90f5\u4ef6",GOOGLE_SEARCH_BUTTON:"Google \u641c\u5c0b",PREVIOUS:"\u4e0a\u4e00\u9801",TURN_ON_MY_LOCATION_NOW:'Turn on "My Location" now',MORE_TITLE:"More Google",DOCS_TITLE:"Google Docs & Spreadsheets",NEXT:"\u4e0b\u4e00\u9801",READER_TITLE:"Google \u95b1\u8b80\u5668",PHOTOS_TITLE:"Google \u76f8\u7c3f",TALK_TAB:"\u8ac7\u5929",SEARCH_NEWS_BUTTON:"\u641c\u5c0b\u65b0\u805e",USE_YOUR_LOCATION_RAW:"New! Google can help you find<br/>nearby places to eat, drink or shop.",
TRANSLATE_TITLE:"Google Translate",LOCAL_CORPUS:"\u7576\u5730",NEWS_CORPUS:"\u65b0\u805e",TRANSLATE_TAB:"\u7ffb\u8b6f",SETTINGS_LINK:"\u8a2d\u5b9a",CLEAR_ALL:"\u5168\u90e8\u6e05\u9664",HOME_TITLE:"Google",VIEW_GOOGLE_IN:"Google \u6aa2\u8996\u6a21\u5f0f",CHANGE_TABS_BUTTON:"\u8b8a\u66f4\u6a19\u7c64",NO_RESULTS_FOUND:"\u627e\u4e0d\u5230\u7d50\u679c",TURN_ON:"\u958b\u555f",NOTEBOOK_TITLE:"Google \u7b46\u8a18\u672c",EVEN_MORE_PRODUCTS:"Even more products",THE_WORD_MOBILE:"\u884c\u52d5\u7248",GOOG411TITLE:"GOOG-411",
CLEAR_HISTORY:"\u6e05\u9664\u8a18\u9304",NOTEBOOK_TAB:"\u7b46\u8a18\u672c",WIRELESS_TERMS:"\u689d\u6b3e",GOOGLE_CLASSIC:"\u50b3\u7d71\u7248"};function _msg(a){return _MESSAGES[a]};var _iZephyr=false;var _channel="gp";var currentTab;var webTab;var imageTab;var localTab;var newsTab;var resultTabs;var _hashParams="";var lastHash;if(window.name.substr(0,2)!="gp"&&window.top!=window)window.top.location=window.location;
function _gp_initSearch(){initScrapeSearch();initOneGoogle();initCorpusTabs();populateUserInfo();if(window._suggest_init)if(window._googleSuggest&&window._googleSuggest!="0")_suggest_init("/complete/search",window._googleLanguage,window._country,16);var query=document.getElementById("query");var clearQuery=document.getElementById("clearQuery");if(query&&clearQuery)initClearQueryLink(query,clearQuery);checkHashParams()}
function initClearQueryLink(query,clearQuery){clearQuery.setAttribute("title","Clear");clearQuery.addEventListener("mousedown",clearQueryBox,true);query.addEventListener("keyup",_handleClearQueryLink,false)}
function _handleClearQueryLink(){var query=document.getElementById("query");var clearQuery=document.getElementById("clearQuery");if(clearQuery)if(query.value.length>0){clearQuery.style.display="inline";clearQuery.style.visibility="visible"}else{clearQuery.style.display="none";clearQuery.style.visibility="hidden"}}
function clearQueryBox(event){var query=document.getElementById("query");var clearQuery=document.getElementById("clearQuery");query.value="";clearQuery.style.display="none";clearQuery.style.visibility="hidden";_hideSuggest();if(event)event.preventDefault()}function _gp_search(query){gp_search(query)}
function gp_search(query){if(query.length>0){_handleClearQueryLink();_hideSuggest();if(query&&!query.match(/^ *$/)){var url=currentTab.urlPrefix+encodeURIComponent(query)+"&channel="+_channel;url=maybeAddHiddenParams(url);url=maybeAddOneGoogleParam(url);url=url+"&source=gp";var newHash=addLangAndHost(url);if(newHash!=lastHash){window.location.hash=newHash;return true}}}return false}
function maybeAddHiddenParams(url){var form=document.getElementById("gpSearchForm");if(form){var params=[];for(var i=0;i<form.elements.length;i++)if(form.elements[i].type=="hidden"){var name=form.elements[i].name;var value=form.elements[i].value;if(name&&value&&name!="ie"){var param=encodeURIComponent(name)+"="+encodeURIComponent(value);params.push(param)}}if(params.length>0)url+="&"+params.join("&")}return url}
function maybeAddOneGoogleParam(url){if(!_oneGoogle)return url;if(url.indexOf("&og=")>=0||url.indexOf("?og=")>=0)return url;return url+"&og=gp"}function _hideSuggest(){var suggestDiv=document.getElementById("suggestDiv");if(suggestDiv)setTimeout(function(){suggestDiv.style.display="none"},50)}function initOneGoogle(){_oneGoogle=!!document.getElementById("og_head")}
function initCorpusTabs(){var container=document.getElementById("gp-result-tabs");if(_oneGoogle)container.style.display="none";else for(var i=0;i<resultTabs.length;i++)container.appendChild(resultTabs[i].tabButton)}function populateUserInfoHandler(response){if(response!="NOT_LOGGED_IN"){var emailDiv=document.getElementById("emailDiv");emailDiv.innerHTML=response;emailDiv.style.display="block";setDisplay("signOutDiv","inline");setDisplay("signInDiv","none")}}
function populateUserInfo(){if(document.getElementById("emailDiv")!=null)(new Connection).get("/m/gn/user",populateUserInfoHandler,errorHandler)}function setDisplay(elementId,display){var element=document.getElementById(elementId);if(element!=null)element.style.display=display}
function resultTab(corpusId,urlPattern,urlPrefix,buttonLabel,tabLabel,countries,languages,opt_landingPage){this.corpusId=corpusId;this.urlPattern=urlPattern;this.tabId="gp-"+corpusId+"-tab";this.tabButton=document.createElement("div");this.tabButton.id=this.tabId;this.tabButton.setAttribute("class","gsc-tabHeader gsc-tabhInactive");this.tabButton.innerHTML=tabLabel;this.resultsId=this.tabId+"-results";this.urlPrefix=urlPrefix;this.buttonLabel=buttonLabel;this.countries=countries;this.languages=languages;
this.landingPage=opt_landingPage;this.isAvailable=function(){return _oneGoogle||this.countries.indexOf(_country)>=0&&this.languages.indexOf(_googleLanguage)>=0}}
function addLangAndHost(url){if(!url||url.match(/^[a-z]+:/)&&!url.match(/^http/))return url;var paramList=new Array;if(!_iZephyr)addHlAndGlParamsToParamList(url,paramList);if(_googleHost&&_googleHost!=""&&url.indexOf("?host=")<0&&url.indexOf("&host=")<0)paramList.push("host="+_googleHost);if(window._uxid&&_uxid!="")paramList.push("uxid="+_uxid);if(window._uxsig&&_uxsig!="")paramList.push("uxsig="+_uxsig);var hashIndex=url.indexOf("#");var hash="";if(hashIndex>0){if(hashIndex+1<url.length)hash=url.substring(hashIndex+
1);url=url.substring(0,hashIndex)}url=addParamsToUrl(url,paramList);if(hash!="")url+="#"+hash;return url}function addParamsToUrl(url,paramList){if(paramList.length>0){var params=paramList.join("&");if(url.indexOf("?")>=0)url+="&"+params;else url+="?"+params}return url}function addHlAndGlParams(url){var paramList=new Array;addHlAndGlParamsToParamList(url,paramList);return addParamsToUrl(url,paramList)}
function addHlAndGlParamsToParamList(url,paramList){if(_googleLanguage&&_googleLanguage!="")if(_googleLanguage!="en"||_country!="us")paramList.push("hl="+_googleLanguage);if(_country&&_country!="")if(_country=="gb"&&url.match(/^\/search/))paramList.push("gl=uk");else if(_country!="us")paramList.push("gl="+_country)}
function initScrapeSearch(){var searchResults=document.getElementById("gp-search-results");var paramList=new Array;if(window._googleLanguage&&window._googleLanguage!="")paramList.push("hl="+window._googleLanguage);if(window._googleHost&&window._googleHost!="")paramList.push("host="+window._googleHost);if(paramList.length>0)paramList.push("");var params=paramList.join("&");var webPrefix;if(_iZephyr){webPrefix=addLangAndHost("/m/search?uipref=6")+"&q=";imagePrefix=addLangAndHost("/m/search?site=images")+
"&q=";localPrefix=addLangAndHost("/m/search?site=local")+"&q="}else{webPrefix=addLangAndHost("/search?")+"&q=";imagePrefix=addLangAndHost("/m/x?site=images")+"&q=";localPrefix=addLangAndHost("/m/x?site=local")+"&q="}webTab=new resultTab("web","^/m/search",webPrefix,_msg("GOOGLE_SEARCH_BUTTON"),_msg("WEB_CORPUS"),"us,ar,au,at,be,br,ca,cl,cn,co,dk,ec,fi,fr,de,hk,in,ie,it,jp,kr,mx,nl,nz,pe,pl,pt,ru,sg,es,se,ch,tw,gb,ve","da,de,en,en-GB,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,zh-CN,zh-TW");imageTab=
new resultTab("image","^/m/search.*site=images",imagePrefix,_msg("SEARCH_IMAGES_BUTTON"),_msg("IMAGES_CORPUS"),"us,ar,au,at,be,br,ca,cl,cn,co,dk,ec,fi,fr,de,hk,in,ie,it,jp,kr,mx,nl,nz,pe,pl,pt,ru,sg,es,se,ch,tw,gb,ve","da,de,en,en-GB,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,zh-CN,zh-TW");localTab=new resultTab("local","^/m/search.*site=local",localPrefix,_msg("SEARCH_LOCAL_BUTTON"),_msg("LOCAL_CORPUS"),"us,au,be,br,ca,cn,dk,fi,fr,de,in,it,jp,mx,nl,nz,pl,ru,ch,es,se,gb","da,de,en,en-GB,es,fi,fr,it,ja,nl,pl,sv,pt-BR,ru,zh-CN");
newsTab=new resultTab("news","^/m/news",addLangAndHost("/m/news/i?site=gpsearch")+"&q=",_msg("SEARCH_NEWS_BUTTON"),_msg("NEWS_CORPUS"),"ar,au,at,be,br,ca,ch,cl,cn,co,cu,de,es,fr,gb,hk,ie,in,it,jp,kr,mx,nl,nz,pe,pl,pt,ru,se,tw,us,ve,za","de,en,en-GB,es,fr,it,ja,ko,nl,pt-BR,pt-PT,ru,sv,zh-CN,zh-TW",addHlAndGlParams("/m/news"));resultTabs=new Array;if(webTab.isAvailable())resultTabs.push(webTab);if(imageTab.isAvailable())resultTabs.push(imageTab);if(localTab.isAvailable())resultTabs.push(localTab);if(newsTab.isAvailable())resultTabs.push(newsTab);
for(var i=0;i<resultTabs.length;i++)resultTabs[i].tabButton.addEventListener("mousedown",clickResults,true);selectResults(webTab.tabButton)}function clickResults(event){selectResults(this);if(event)event.preventDefault()}
function selectResults(tabButton){for(var i=0;i<resultTabs.length;i++){var tab=resultTabs[i];if(tab.tabButton==tabButton){tab.tabButton.setAttribute("class","gsc-tabHeader gsc-tabhActive");currentTab=tab;document.getElementById("b").value=tab.buttonLabel;var query=document.getElementById("query").value;if(query)_gp_search(query)}else tab.tabButton.setAttribute("class","gsc-tabHeader gsc-tabhInactive")}}function _scrollToTop(){window.scrollTo(0,1)}
var Connection=function(){this.xmlHttp=null;if(window.XMLHttpRequest)this.xmlHttp=new XMLHttpRequest;else if(window.ActiveXObject)this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")};Connection.prototype.isReady=function(){if(this.xmlHttp.readyState==0||this.xmlHttp.readyState==4)return true;return false};Connection.prototype.getResponseCode=function(){return this.xmlHttp.status};Connection.prototype.getResponseXml=function(){return this.xmlHttp.responseXML};
Connection.prototype.get=function(url,callback,errorCallback){if(this.xmlHttp!=null){if(!this.isReady())return;try{this.xmlHttp.onreadystatechange=this.getGetHandler(callback,errorCallback);this.xmlHttp.open("GET",url,true);this.xmlHttp.send(null)}catch(err){errorCallback(err)}}};Connection.prototype.getGetHandler=function(callback,errorCallback){var connection=this;return function(){if(connection.xmlHttp.readyState==4)if(connection.xmlHttp.status==200)callback(connection.xmlHttp.responseText);else if(errorCallback)errorCallback(connection)}};
function _sl(location){if(!location.match(/^ *$/)){document.getElementById("default_location").innerHTML=_e(location)+" "+String.fromCharCode(9660);document.getElementById("loc").value=location;_handleForm(null,document.getElementById("loc").form)}_h("locopen");_s("locclosed")}
function _submitLocation(defaultLocationId,locFieldId,location){if(!location.match(/^ *$/)){document.getElementById(defaultLocationId).innerHTML=_e(location)+" "+String.fromCharCode(9660);document.getElementById(locFieldId).value=location;_handleForm(null,document.getElementById(locFieldId).form)}}
function _handleForm(event,form,opt_button){if(event)event.preventDefault();if(form.q&&!form.q.value)return;var params=new Array;var submit;var url=form.getAttribute("action");if(!url)url=window.location.hash;for(var i=0;i<form.elements.length;i++){var element=form.elements[i];if(element.type=="submit")if(!opt_button||element==opt_button)submit=element;var name=element.name;if(name&&name!="ie")if(element.type!="submit"||element==submit){params.push(encodeURIComponent(name)+"="+encodeURIComponent(element.value));
var regex=new RegExp(name+"=[^&]*");var matcher=url.match(regex);url=url.replace(regex,"")}}params.push("source=gp");submit.focus();if(url.indexOf("?")<0&&params.length>0)url+="?";else url+="&";url+=params.join("&");url=url.replace(/&+/,"&");url=url.replace(/\?&/,"?");url=maybeAddOneGoogleParam(url);window.location.hash=url}function getSubmitCallback(form){return function(event){_handleForm(event,form)}}
function process(html){try{var searchDiv=document.getElementById("landingPage");var resultsDiv=document.getElementById("searchResults");if(searchDiv&&resultsDiv){searchDiv.style.display="none";var head=document.getElementsByTagName("head")[0];for(var i=0;i<head.childNodes.length;i++){var node=head.childNodes[i];if(node.tagName=="STYLE"&&node.id!="donotdelete"){var css=node.innerHTML;if(css&&css.indexOf(".og_")<0)head.removeChild(node)}}var done=false;while(!done){var style=html.match("<style.*?>([\\s\\S]*?)</style>");
if(style){html=html.replace(style[0],"");html=html.replace(/size=41/g,"size=20");html=html.replace(/<form[^>]+name=[ \'\"]?lf[ \'\"]?[\s\S]*?<
4002
\/form>/g,"");var styleNode=document.createElement("style");styleNode.name="dstyle";styleNode.appendChild(document.createTextNode(style[1]));head.appendChild(styleNode)}else done=true}done=false;while(!done){var script=html.match("<script.*?>([\\s\\S]*?)<\/script>");if(script){html=html.replace(/<script.*?>[\s\S]*?<\/script>/,"");var code=script[1];code=code.replace("function _sl(",
"function _xsl(");var scriptNode=document.createElement("script");scriptNode.appendChild(document.createTextNode(code));head.appendChild(scriptNode)}else done=true}if(_source=="mobilesearchapp")html=html.replace(/<a id=logo.*?Google.*?<\/a>/,"");else html=html.replace(/<a id=logo.*?Google.*?<\/a>/,"<a href='#'>"+"<img src='/xhtml/images/google_logo_100.gif' "+"style='vertical-align:middle;margin-top:7px'"+"width='90' height='33'/>"+"</a>");if(!_iZephyr)html=processGws(html);html=html.replace(/href=([\"\'])\/(m\/(x|news))/g,
"href=$1#/$2");if((_hashParams.indexOf("/m/x")==0||_hashParams.indexOf("/m/news")==0)&&!html.match('<input.*type="text".*name="loc"')){var form='<table width="100%" style="margin-bottom:5px">'+"<tr>"+'<form onSubmit="_gp_search(this.q.value);return false" method="get" name="gs">'+'<td valign="middle" class="tc">'+'<a href="#">'+'<img alt="" src="/xhtml/images/google_logo_100.gif" '+' width="90" height="33" style="vertical-align: middle;"/>'+"</a>"+"</td>"+'<td width="100%" valign="middle" style="padding: 0">'+
'<input type="text" title="Search" maxlength="2048" size="20" id="q" name="q"/> '+'<input type="submit" value="'+_msg("SEARCH_BUTTON")+'" name="btnG"/>'+"</td>"+"</form>"+"</tr>"+"</table>";html=form+html;resultsDiv.innerHTML=html;var matcher=document.location.hash.match("q=([^&]+)");if(matcher)document.getElementById("q").value=decodeURIComponent(matcher[1])}else resultsDiv.innerHTML=html;if(document.getElementById("image_results")||document.getElementById("image_search_filters_label"))window.imageSearchHandleAction(true);
if(_source=="mobilesearchapp"){hideEnclosingTag(document.getElementById("logo"),"TABLE");var queryBoxes=document.getElementsByName("q");if(queryBoxes)for(var i=0;i<queryBoxes.length;i++)hideEnclosingTag(queryBoxes[i],"TABLE");var fields=document.getElementsByTagName("input");if(fields)for(var i=0;i<fields.length;i++)if(fields[i].type=="text")hideEnclosingTag(fields[i],"FORM")}for(var i=0;i<document.forms.length;i++){var form=document.forms[i];if(form.id!="gpSearchForm")if(typeof form.action!="string"||
form.action==""||form.action.indexOf("/search")==0||form.action.indexOf("/xhtml/search")==0||form.action.indexOf("/m/x")==0)form.addEventListener("submit",getSubmitCallback(form),false)}stopSpinner();resultsDiv.style.display="block";document.body.style.visibility="visible";_scrollToTop()}}catch(e){alert(e)}}
function processGws(html){html=html.replace(/margin-top:25px/,"margin-top:5px");html=html.replace(/<title.*?>[\s\S]*?<\/title>/,"");html=html.replace(/<meta.*?\>/g,"");html=html.replace(/(\(\d{3}\)\s*\d{3}\s*-?\s*\d{4})/g,"<a href='tel:$1'>$1</a>");html=html.replace(/(\d{3}-\d{3}-\d{4})/g,"<a href='tel:$1'>$1</a>");html=html.replace(/[ >](\+\d?\s*(\d{2,}\s*-?\s*){2,4})/g,"<a href='tel:$1'>$1</a>");html=html.replace(/href=([\"\'])\/(search|swr)([^\"\']*)/g,"href=$1#/$2$3&source=gp");html=html.replace(/href=([\"\'])http:\/\/maps\.google\.com\/maps([^\"\']*reviews=1)/g,
"href=$1http://www.google.com/local$2");html=html.replace(/href=([\"\'])http:\/\/maps\.google\.com\/maps([^\"\']*more-results)/g,"href=$1http://www.google.com/local$2");if(window._grandPrixAdUi&&_grandPrixAdUi!=""&&_grandPrixAdUi!="0"){var multipleAds=html.indexOf("<h2>Sponsored Links</h2>")>0;html=html.replace(/<h2>Sponsored Link(s?)<\/h2>/,"");var adText;if(multipleAds)adText="Sponsored Links";else adText="Sponsored Link";switch(_grandPrixAdUi){case "1":html=html.replace(/(<a id=pa[1-9])/g,"<span style='font-size:11px !important;border:1px solid #aaa;"+
"margin-right:5px;padding:0 3px;color:#666;position:relative;"+"bottom:1px'>Ad</span>$1");break;case "4a":html=html.replace(/(<div id=tads)/,"<div style='padding-left:5px;color:#666;font-size: 13px !important'>"+adText+"</div>$1");break;case "4b":html=html.replace(/(<div id=tads)/,"<div style='padding-left:5px;background:#fff9dd;color:#666;font-size: 13px !important'>"+adText+"</div>$1");break}}return html}
function hideEnclosingTag(node,tag){while(node)if(node.tagName==tag){node.style.display="none";break}else node=node.parentNode}function showLandingPage(){try{var searchDiv=document.getElementById("landingPage");var resultsDiv=document.getElementById("searchResults");if(searchDiv&&resultsDiv){searchDiv.style.display="block";resultsDiv.style.display="none"}}catch(e){alert(e)}}function errorHandler(error){alert("ERROR: "+error);maybeDisableSubmitButton(false)}
function maybeDisableSubmitButton(disable){var b=document.getElementById("b");if(b)b.disabled=disable}
function search(){maybeDisableSubmitButton(true);var hash=document.location.hash;if(hash.indexOf("#")==0)hash=hash.substring(1);if(/[&?]site=images(&|$)/.test(hash)&&document.getElementById("image_results"))if(!window.imageSearchRequiresRefresh()){window.imageSearchHandleAction(false);return}hash=hash.replace(/&ii=[^&]*/,"");if(hash.indexOf("/")==0){startSpinner();(new Connection).get(hash,process,errorHandler)}else if(hash.length>0){var oldUrl=document.location.href;var separator;if(oldUrl.indexOf("?")>=
0)separator="&";else separator="?";var newUrl=oldUrl.replace(/#[^#]*$/,separator+"page=2#"+hash);newUrl=doSlashMSubstitutions(newUrl);document.location.href=newUrl}}
function doSlashMSubstitutions(url){var mappings=[["com",null,null],["co.uk","en_GB","uk"],["co.jp","ja","jp"],["com.au","en","au"],["at","de","at"],["be","nl","be"],["com.br","pt_BR","br"],["ca","en","ca"],["dk","da","dk"],["fi","fi","fi"],["fr","fr","fr"],["de","de","de"],["com.hk","zh_TW","hk"],["co.in","en","in"],["ie","en","ie"],["it","it","it"],["co.kr","ko","kr"],["com.mx","es","mx"],["nl","nl","nl"],["co.nz","en","nz"],["pl","pl","pl"],["pt","pt_PT","pt"],["ru","ru","ru"],["com.sg","en","sg"],
["es","es","es"],["ch","de","ch"],["com.tw","zh_TW","tw"]];for(var i=0;i<mappings.length;i++){var mapping=mappings[i];var regex=new RegExp("\\."+mapping[0]+"/(webhp)?\\?");if(url.search(regex)>=0){var replacement=".com/m?";if(mapping[1]&&mapping[2])replacement+="hl="+mapping[1]+"&gl="+mapping[2]+"&";return url.replace(regex,replacement)}}return url}
function checkHashParams(){var params=getHashParams();if(!params||params.length==0||params.charAt(0)!="/"){document.body.style.visibility="visible";document.getElementById("landingPage").style.visibility="visible";maybeDisableSubmitButton(false)}if(params!=_hashParams){lastHash=_hashParams;if(!params)lastHash="";_hashParams=params;processParams(params)}setTimeout(checkHashParams,20)}
function selectOneGoogleCorpus(corpusId){var og=document.getElementById("og_quick");for(var i=0;i<og.childNodes.length;i++){var node=og.childNodes[i];if(node.className.indexOf("og_tab")==0){var href=node.getAttribute("href");if(!href)href="#web";if(href=="#"+corpusId)node.className="og_tab gp_og_selected_tab";else node.className="og_tab gp_og_unselected_tab";if(node.nodeName=="B")node.setAttribute("onClick","document.location.href='#web'")}}}
function getQuery(){var queryBox;var resultsDiv=document.getElementById("searchResults");if(resultsDiv&&resultsDiv.style.display=="block")queryBox=document.getElementById("query_box_top_textbox");if(!queryBox)queryBox=document.getElementById("query");return queryBox.value}
function processParams(params){if(_oneGoogle)for(var i=0;i<resultTabs.length;i++){var tab=resultTabs[i];if(params.match(tab.urlPattern)){currentTab=tab;selectOneGoogleCorpus(tab.corpusId);document.getElementById("b").value=tab.buttonLabel}if(tab.corpusId==params){currentTab=tab;selectOneGoogleCorpus(tab.corpusId);document.getElementById("b").value=tab.buttonLabel;var query=getQuery();if(query){if(!gp_search(query))history.back()}else if(tab.landingPage)document.location.href=tab.landingPage;return}}if(params&&
params.length>0&&params!="search")search();else showLandingPage()}function getHashParams(){var params=document.location.hash;if(params)return params.replace("#","");else return""}function _log(id){window.setTimeout(function(){document.createElement("img").src="/m/url?atyp=i&ctyp=gp&site="+id},500)}function _logAndGo(id,url){document.createElement("img").src="/m/url?atyp=i&ctyp=gp&site="+id;window.setTimeout(function(){document.location.href=url},500)}var d=0;var spinnerTask;
function stopSpinner(){var spinner=document.getElementById("spinner");if(spinner)spinner.style.display="none";if(spinnerTask)clearInterval(spinnerTask)}
function startSpinner(){var searchDiv=document.getElementById("landingPage");if(searchDiv&&searchDiv.style.display!="none")return;if(spinnerTask)clearInterval(spinnerTask);var div=document.getElementById("zres");var spinner=document.getElementById("spinner");if(spinner&&div){div.style.visibility="hidden";spinner.style.display="block";var draw=function(){a=spinner.getContext("2d");a.save();a.fillStyle="rgb(255,255,255)";a.fillRect(0,0,20,20);a.translate(10,10);for(var c=0;c<8;c++){a.rotate(-Math.PI*
2/8);a.beginPath();a.fillStyle="rgba(32,56,143,"+(8-(c+d)%8)/8+")";a.fillRect(-1,4,2,4)}a.restore();d++};draw();spinnerTask=setInterval(draw,100)}}function _maybeHidePromo(endDate){if((new Date).getTime()>endDate){var promo=document.getElementById("promo");if(promo)promo.style.display="none"}}function _expandManybox(manyboxDataUrl){(new Connection).get(manyboxDataUrl,handleManyboxData,errorHandler)}
function _collapseManybox(manyboxId){if(manyboxId!=null)document.getElementById(manyboxId).innerHTML=""}function handleManyboxData(manyboxData){if(manyboxData!=null)eval(manyboxData.replace(/(mb\d+)\.insert\((.*)\);/,"var node = document.getElementById('$1').innerHTML = $2;"))}
function _suggest_init(a,b,d){var c=new r(a,b,d,new v(new w));window.view=new SuggestViewIphone(document.getElementById("query"),document.getElementById("b"),document.getElementById("suggestDiv"),document.getElementById("suggestTable"),document.getElementById("historyActionList"),document.getElementById("clearAll"),document.getElementById("turnOn"),document.getElementById("turnOff"));var f="/m/url?resp=2&atyp=i&ctyp=suggest"+"&hl="+b+"&source="+window.view.getSourcePageType();var e=new y(f);if(document.getElementById("historyActionList")){var g=
"/m/url?resp=2&atyp=i&ctyp=history"+"&hl="+b+"&source="+window.view.getSourcePageType();var h=new y(g);var i=new A("/m/hist?",new v(new w));C(window.view,c,e,i,h)}else C(window.view,c,e)}
SuggestViewIphone=function(a,b,d,c,f,e,g,h){this.timeTracker_={t0:(new Date).getTime(),t1:0};this.queryBox_=a;this.submitButton_=b;this.suggestDiv_=d;if(window._queryBox)this.queryBox_=window._queryBox;if(window._submitButton)this.submitButton_=window._submitButton;if(window._suggestDiv)this.suggestDiv_=window._suggestDiv;this.suggestTable_=c;this.historyActionList_=f;this.clearAll_=e;this.turnOn_=g;this.turnOff_=h;if(window._suggestStyle==D)if(window.suggestIntervalId_){clearInterval(window.suggestIntervalId_);
window.suggestIntervalId_=null}if(this.historyActionList_)this.enableHistory_=true;else this.enableHistory_=false;this.bindKeys_();this.currentSuggestions_=[];this.currentExtraInfo_=[];this.currentSuggestType_=[];this.currentImpression_={navCount:0,historyCount:0,queryCount:0};this.clickClosed_=false;this.submitted_=false;this.showHistoryActionList_=false;this.currentInput_=null;this.alreadyScrolledUp_=false};
var aa={BELOW_QUERY_BOX:"1",BELOW_IME_WINDOW:"2"},aa$BELOW_IME_WINDOW=aa.BELOW_IME_WINDOW,D=aa$BELOW_IME_WINDOW;SuggestViewIphone.UIStyle_=aa;SuggestViewIphone.prototype.MAX_SUGGESTIONS_=6;SuggestViewIphone.prototype.MAX_HISTORY_=3;SuggestViewIphone.prototype.NAV_SUGGEST_TYPE_="NAVIGATION";SuggestViewIphone.prototype.WIDTH_REDUCE_ON_RESULT_=0.85;SuggestViewIphone.prototype.NAV_URL_REDUCE_ON_RESULT_=0.8;SuggestViewIphone.prototype.MAX_NAV_SUGGEST_TEXT_=24;
SuggestViewIphone.prototype.MAX_NAV_SUGGEST_URL_=36;SuggestViewIphone.prototype.MIN_SUGGEST_WIDTH_=300;SuggestViewIphone.prototype.CHECK_QUERY_INTERVAL_=250;SuggestViewIphone.prototype.setQuery=function(a){this.queryBox_.value=a};SuggestViewIphone.prototype.getQuery=function(){return this.queryBox_.value};SuggestViewIphone.prototype.submitQuery=function(){this.submitButton_.click()};SuggestViewIphone.prototype.setOnQueryChange=function(a){this.onQueryChange_=a};
SuggestViewIphone.prototype.setOnFocusIn=function(a){this.onFocusIn_=a};SuggestViewIphone.prototype.setOnEnableHistory=function(a){this.onEnableHistory_=a};SuggestViewIphone.prototype.setOnClearHistory=function(a){this.onClearHistory_=a};SuggestViewIphone.prototype.setOnSuggestClose=function(a){this.onSuggestClose_=a};SuggestViewIphone.prototype.setOnFormSubmitByButton=function(a){this.onFormSubmitByButton_=a};
SuggestViewIphone.prototype.isValidSuggestions=function(a){var b=this.queryBox_.value;if(b!=""&&this.currentSuggestions_&&this.currentSuggestions_.length>0)return E(b,this.currentSuggestions_[0]);return false};SuggestViewIphone.prototype.setOnHistoryLogging=function(a){this.onHistoryLogging_=a};
SuggestViewIphone.prototype.showSuggestions=function(a,b,d,c,f,e,g){this.currentSuggestions_=b;this.currentExtraInfo_=d||[];this.currentSuggestType_=c||[];this.currentInput_=a;this.currentImpression_={navCount:0,historyCount:0,queryCount:0};if(this.submitted_)return;if(this.clickClosed_)return;var h=f&&f.length>0;var i=b.length>0;if(a==""&&this.suggestDiv_.id=="suggestForResults"){this.hideSuggestions();return}if(!i&&(!h||!g)){this.hideSuggestions();return}var l=this.suggestTable_;while(l&&l.rows.length>
0)l.deleteRow(0);this.align_();this.suggestDiv_.style.visibility="visible";this.suggestDiv_.style.display="block";if(this.queryBox_.id!="query_box_bottom_textbox")if(!this.alreadyScrolledUp_){var q=J(this.queryBox_)-5;setTimeout(function(){window.scrollTo(0,q)},200);this.alreadyScrolledUp_=true}var n=0;var j=this.MAX_SUGGESTIONS_;if(this.queryBox_.value.length<4)j--;if(window._suggestStyle==D&&this.queryBox_.value.length!=0)j--;var p=K();if(c[0]==this.NAV_SUGGEST_TYPE_)this.addSuggestionItems(b,d,
c,0,1,0,false,false,true);if(!p&&g&&this.enableHistory_)if(e&&f.length>0){if(b.length>=j-this.MAX_HISTORY_)n=Math.min(f.length,this.MAX_HISTORY_);else{n=j-b.length;if(n>f.length)n=f.length}this.addSuggestionItems(f,[],[],0,n,0,true,!i,!g)}if(i)if(p){var k=0;if(c[0]==this.NAV_SUGGEST_TYPE_)k++;var o=0;var m=0;var F=[];var z=[];var s=[];for(var t=k;t<b.length;++t)if(d[t]=="history")++o;else{F[m]=b[t];z[m]=d[t];s[m]=c[t];++m}n=Math.min(o,this.MAX_HISTORY_);h=n>0;this.addSuggestionItems(b,d,c,k,k+n,k,
true,m==0,!h);this.addSuggestionItems(F,z,s,k,j-n,o+k,false,true,g)}else{var k=0;if(c[0]==this.NAV_SUGGEST_TYPE_)k++;this.addSuggestionItems(b,d,c,k,j-n,n+k,false,true,g)}if(this.enableHistory_)if(!g){this.addActionList(this.suggestLabel_);this.updateViewerAction(false,false)}else if(h){this.addActionList(this.historyLabel_);this.updateViewerAction(e,g)}};
SuggestViewIphone.prototype.addActionList=function(a){var b=document.createElement("span");b.id="actionMarker";b.innerHTML="\u25bc";a.appendChild(b);a.style.textDecoration="underline";var d=this;a.addEventListener("mousedown",function(c){if(d.showHistoryActionList_)d.hideActionList_();else d.showActionList_(a);L(c)},false);a.addEventListener("click",function(c){L(c)},false)};
SuggestViewIphone.prototype.updateViewerAction=function(a,b){if(!this.enableHistory_)return;if(a){this.clearAll_.style.display="block";this.clearAll_.style.visibility="visible"}else{this.clearAll_.style.display="none";this.clearAll_.style.visibility="hidden"}if(b){this.turnOn_.style.display="none";this.turnOn_.style.visibility="hidden";this.turnOff_.style.display="block";this.turnOff_.style.visibility="visible"}else{this.turnOff_.style.display="none";this.turnOff_.style.visibility="hidden";this.turnOn_.style.display=
"block";this.turnOn_.style.visibility="visible"}};SuggestViewIphone.prototype.SUGGEST_LIST_ITEM_PREFIX_="suggestListItem";SuggestViewIphone.prototype.bindOnClick=function(a){var b=this;a.element.addEventListener("click",function(d){if(E(b.SUGGEST_LIST_ITEM_PREFIX_,d.target.id)||d.target.id=="historyLabel"||d.target.id=="suggestLabel"){b.suggestChosen_=true;b.onChooseSuggestion_(a.currentInput,a.suggestion,a.index,a.isHistor
4002
y,a.isNavSuggest)}d.stopPropagation()},false)};
SuggestViewIphone.prototype.getInitTime=function(){return this.timeTracker_.t0};SuggestViewIphone.prototype.getFirstFocusTime=function(){return this.timeTracker_.t1};SuggestViewIphone.prototype.getAssistedQueryImpression=function(){return"n"+this.currentImpression_.navCount+"h"+this.currentImpression_.historyCount+"g"+this.currentImpression_.queryCount};var N={GRANDPRIX_PAGE:"gp",IZEPHYR_PAGE:"iz"},N$GRANDPRIX_PAGE=N.GRANDPRIX_PAGE,N$IZEPHYR_PAGE=N.IZEPHYR_PAGE,da=N$GRANDPRIX_PAGE,ea=N$IZEPHYR_PAGE;
SuggestViewIphone.SourcePageType_=N;SuggestViewIphone.prototype.getSourcePageType=function(){return this.suggestDiv_.id=="suggestDiv"?da:ea};
SuggestViewIphone.prototype.addSuggestionItems=function(a,b,d,c,f,e,g,h,i){var l=O(this.queryBox_.value);var q=this;var n=f>a.length?a.length:f;for(var j=c;j<n;j++){if(a[j].length==0)continue;var p=a[j];var k=this.suggestTable_.insertRow(-1);var o=k.insertCell(0);var m=k.insertCell(1);var F=d[j]==this.NAV_SUGGEST_TYPE_;var z=e+j+1;k.id=this.SUGGEST_LIST_ITEM_PREFIX_+"Row"+z;k.className=this.SUGGEST_LIST_ITEM_PREFIX_;o.id=this.SUGGEST_LIST_ITEM_PREFIX_+"Cell"+z;o.className=this.SUGGEST_LIST_ITEM_PREFIX_;
o.suggestType=g?"history":"suggestion";var s={currentInput:l,suggestion:p,index:String(z),isHistory:g,isNavSuggest:F};var t="";if(j==c)if(F){s.element=k;this.bindOnClick(s);var u=document.createTextNode("");m.id=this.SUGGEST_LIST_ITEM_PREFIX_+"BlankLabel";m.appendChild(u)}else{s.element=o;this.bindOnClick(s);var G=document.createElement("label");if(g){t=_msg("HISTORY");m.id="historyLabelCell";G.id="historyLabel";this.historyLabel_=m}else t=_msg("SUGGESTIONS");m.id="suggestLabelCell";G.id="suggestLabel";
m.className="";this.suggestLabel_=m;var u=document.createTextNode(t);G.appendChild(u);m.appendChild(G);if(i){G.htmlFor=o.id;s.element=m;this.bindOnClick(s)}}else if(h&&j==n-1){s.element=o;this.bindOnClick(s);t=_msg("CLOSE_BUTTON");var u=document.createTextNode(t);u.id="closeText";m.appendChild(u);m.id="closeDiv";m.addEventListener("mousedown",function(ha){q.onSuggestClose_(q.queryBox_.value);q.hideSuggestions();q.clickClosed_=true;L(ha)},false);var R=document.createElement("span");R.id="closeMarker";
R.innerHTML=" \u00d7";m.appendChild(R)}else{s.element=k;this.bindOnClick(s);var u=document.createTextNode("");m.id=this.SUGGEST_LIST_ITEM_PREFIX_+"BlankLabel";m.appendChild(u)}switch(d[j]){case this.NAV_SUGGEST_TYPE_:var S=document.createElement("a");S.id=this.SUGGEST_LIST_ITEM_PREFIX_+"NavLink";var ba=b[j];var B=1;if(this.queryBox_.id=="query_box_top_textbox")B=this.WIDTH_REDUCE_ON_RESULT_;if(b[j].length>Math.round(this.MAX_NAV_SUGGEST_TEXT_*B)+3)ba=b[j].substring(0,Math.round(this.MAX_NAV_SUGGEST_TEXT_*
B))+"...";S.innerHTML=P(ba);o.appendChild(S);o.appendChild(document.createElement("br"));var T=document.createElement("span");var ca=p;if(this.queryBox_.id=="query_box_top_textbox")B=this.NAV_URL_REDUCE_ON_RESULT_;if(p.length>Math.round(this.MAX_NAV_SUGGEST_URL_*B)+3)ca=p.substring(0,Math.round(this.MAX_NAV_SUGGEST_URL_*B))+"...";T.id=this.SUGGEST_LIST_ITEM_PREFIX_+"LinkSpan";T.innerHTML=P(ca);o.appendChild(T);this.currentImpression_.navCount++;break;case "QUERY":default:var M=E(l,p)?l.length:0;if(M>
0){var U=document.createElement("span");U.id=this.SUGGEST_LIST_ITEM_PREFIX_+"TextPrefix";U.innerHTML=P(p.substring(0,M));o.appendChild(U)}if(M<p.length){var V=document.createElement("span");V.id=this.SUGGEST_LIST_ITEM_PREFIX_+"TextSuffix";V.innerHTML=P(p.substring(M,p.length));o.appendChild(V)}if(g)this.currentImpression_.historyCount++;else this.currentImpression_.queryCount++;break}k.appendChild(o);k.appendChild(m);if(g&&j==n-1&&!h){var H=this.suggestTable_.insertRow(-1);var x=H.insertCell(0);var I=
document.createElement("hr");x.colSpan="2";I.id="suggestSeparator";x.appendChild(I);H.appendChild(x)}else if(!h||j<n-1){var H=this.suggestTable_.insertRow(-1);var x=H.insertCell(0);var I=document.createElement("hr");x.colSpan="2";I.id="suggestItemSeparator";x.appendChild(I);H.appendChild(x)}}};
SuggestViewIphone.prototype.hideSuggestions=function(){this.suggestDiv_.style.visibility="hidden";this.suggestDiv_.style.display="none";this.currentSuggestions_=[];this.currentExtraInfo_=[];this.currentSuggestType_=[];this.hideActionList_()};SuggestViewIphone.prototype.setOnChooseSuggestion=function(a){this.onChooseSuggestion_=a};
SuggestViewIphone.prototype.showActionList_=function(a){var b=Q(a);var d=J(a);var c=a.offsetHeight;if(this.suggestDiv_.id=="suggestDiv")d+=c;else if(this.suggestDiv_.id=="suggestForResults")d+=c-J(this.suggestDiv_);this.historyActionList_.style.left=b+"px";this.historyActionList_.style.top=d+"px";this.historyActionList_.style.visibility="visible";this.historyActionList_.style.display="block";this.showHistoryActionList_=true};
SuggestViewIphone.prototype.hideActionList_=function(){this.historyActionList_.style.visibility="hidden";this.historyActionList_.style.display="none";this.showHistoryActionList_=false};
SuggestViewIphone.prototype.bindKeys_=function(){var a=this;if(this.enableHistory_){this.clearAll_.addEventListener("mousedown",function(b){if(confirm(_msg("CONFIRM_CLEAR_HISTORY"))){a.onHistoryLogging_("c");a.onClearHistory_();a.showSuggestions(a.queryBox_.value,a.currentSuggestions_,a.currentExtraInfo_,a.currentSuggestType_,[],false,true)}else a.onHistoryLogging_("k");a.hideActionList_();L(b)},true);this.turnOn_.addEventListener("mousedown",function(b){a.onHistoryLogging_("e");a.onEnableHistory_(true);
a.hideActionList_();a.hideSuggestions();L(b)},true);this.turnOff_.addEventListener("mousedown",function(b){a.onHistoryLogging_("d");a.onEnableHistory_(false);a.hideActionList_();a.hideSuggestions();L(b)},true)}this.submitButton_.addEventListener("click",function(){a.submitted_=true;a.clickClosed_=false;a.alreadyScrolledUp_=false;if(a.queryBox_.value=="")return;if(!a.suggestChosen_)a.onFormSubmitByButton_();a.suggestChosen_=false},false);this.queryBox_.addEventListener("keyup",function(b){if(13==b.keyCode)return;
a.submitted_=false;if(window._suggestStyle==D){a.startCheckQueryInterval_();return}a.hideActionList_();var d=a;if(a.mouseoutTimer_){clearTimeout(a.mouseoutTimer_);a.mouseoutTimer_=null}setTimeout(function(){var c=d.queryBox_.value;if(c.length==0)d.clickClosed_=false;d.onQueryChange_(c)},50)},true);this.queryBox_.addEventListener("focus",function(b){if(a.timeTracker_.t1==0)a.timeTracker_.t1=(new Date).getTime();if(window._suggestStyle==D){a.startCheckQueryInterval_();return}var d=a.queryBox_.value;
if(d==a.currentInput_)return;a.onQueryChange_(d)},false);this.queryBox_.addEventListener("blur",function(b){clearInterval(window.suggestIntervalId_);window.suggestIntervalId_=null;a.alreadyScrolledUp_=false},false);window.addEventListener("orientationchange",function(){a.align_()},false)};
SuggestViewIphone.prototype.align_=function(){var a=this.currentInput_;var b;var d=J(this.queryBox_);var c;c=this.queryBox_.offsetWidth;if(document.getElementById("clearQuery")&&a!="")c+=16;b=Q(this.queryBox_);var f=this.queryBox_.offsetHeight;d+=f;if(window._suggestStyle==D)if(a!="")this.suggestDiv_.style.marginTop=f+"px";else this.suggestDiv_.style.marginTop=0;if(this.suggestDiv_.id=="suggestDiv"){this.suggestDiv_.style.width=c+"px";this.suggestDiv_.style.left=b+"px"}else{var e=Q(this.submitButton_);
var c=Math.max(e+this.submitButton_.offsetWidth-5,this.MIN_SUGGEST_WIDTH_);if(this.queryBox_.id!="query_box_bottom_textbox"){this.suggestDiv_.style.left=c*(1-this.WIDTH_REDUCE_ON_RESULT_)+"px";this.suggestDiv_.style.width=c*this.WIDTH_REDUCE_ON_RESULT_+"px"}else{this.suggestDiv_.style.left=0;this.suggestDiv_.style.width=c+"px"}}this.suggestDiv_.style.top=d+"px"};
SuggestViewIphone.prototype.startCheckQueryInterval_=function(){if(window.suggestIntervalId_==null){var a=this;window.suggestIntervalId_=setInterval(function(){a.checkQuery_()},a.CHECK_QUERY_INTERVAL_)}};SuggestViewIphone.prototype.checkQuery_=function(){var a=this.queryBox_.value;if(a!=this.currentInput_){this.onQueryChange_(a);this.currentInput_=a}};function L(a){if(a){a.preventDefault();a.stopPropagation()}}
var A=function(a,b){this.baseUrl_=a;this.httpTask_=b;this.notifyServerError_=false;if(window._userHistoryInfoString)try{window._userHistoryInfo=eval("("+window._userHistoryInfoString+")")}catch(d){throw"Error to use eval to parse history info json string!";this.clearLocalHistory()}this.getHistoryInfo_()};A.onServerError_;
A.prototype.getHistory=function(){if(window._userHistoryInfo){var a=[];for(var b=0;b<window._userHistoryInfo.length;++b)a.push(window._userHistoryInfo[b][0]);return a}else return window._userHistory!=""?window._userHistory.split(","):[]};A.prototype.isEnabled=function(){return window._userHistoryEnabled};A.prototype.setOnServerError=function(a){this.onServerError_=a};
A.prototype.updateHistoryRequest_=function(a,b,d){if(this.httpTask_.hasServerError()){if(!this.notifyServerError_){if(this.onServerError_)this.onServerError_();this.notifyServerError_=true}return}var c=this.baseUrl_;c+="action"+"="+a;if(typeof _userHistoryToken=="string")c+="&"+"tok"+"="+_userHistoryToken;if(b)c+="&"+"text"+"="+W(b);try{this.httpTask_.get(c,d)}catch(f){return}};A.prototype.enableHistory=function(a){window._userHistoryEnabled=a;if(a)this.updateHistoryRequest_("enablehist");else this.updateHistoryRequest_("disablehist")};
A.prototype.clearLocalHistory=function(){if(window._userHistoryInfo)window._userHistoryInfo=[];else window._userHistory=""};A.prototype.clearAllHistory=function(){if(K())return;this.clearLocalHistory();this.updateHistoryRequest_("clearhist")};A.prototype.mergeHistory_=function(a){if(!window._userHistoryInfo)return;var b=window._userHistoryInfo;var d=a.length;for(var c=0;c<b.length;++c)for(var f=0;f<d;++f){if(b[c][0]==a[f][0])continue;a.push(b[c]);break}window._userHistoryInfo=a};
A.prototype.addQuery_=function(a){if(window._userHistoryInfo){var b=window._userHistoryInfo;for(var d=0;d<b.length;++d)if(b[d][0]==a){b.splice(d,1);break}b.unshift([a,"MOBILE",0]);window._userHistoryInfo=b}else{var b=this.getHistory();for(var d=0;d<b.length;++d)if(b[d]==a){b.splice(d,1);break}b.unshift(a);window._userHistory=b.join(",")}};
A.prototype.saveHistory=function(a){if(K())return;if(!this.isEnabled()||/^\s*$/.test(a))return;var b=O(fa(a));this.addQuery_(b);this.updateHistoryRequest_("addhist",b)};
A.prototype.getHistoryInfo_=function(){var a=this;this.updateHistoryRequest_("gethistinfo",null,function(b){try{var d=eval("("+b+")")}catch(c){throw"Error to use eval to parse history info json response!";}if(d.length!=4)throw"The history info json response is incomplete!";var f=d[0];var e=d[1];var g=d[2];var h=[];if(d[3]!="")h=eval("("+d[3]+")");a.enableHistory(f);if(!e)a.clearLocalHistory();else{if(g)a.clearLocalHistory();if(h.length>0)if(window._userHistoryInfo)a.mergeHistory_(h);else for(var i=
h.length-1;i>=0;--i)a.addQuery_(h[i][0])}})};function y(a){this.logURI_=a}y.prototype.log=function(a){var b={q:"",aq:"f",aqi:"",fkt:"",fsdt:"",oq:""};if(a)for(var d in a)b[d]=a[d];var c=this.logURI_;for(var f in b)c+="&"+f+"="+W(b[f]);(new Image).src=c};var ga=ga||{};
var C=function(a,b,d,c,f){a.setOnQueryChange(function(e){if(e==""){if(c&&!K()){var g=c.getHistory();var h=c.isEnabled();if(g&&g.length>0){a.showSuggestions("",[],[],[],g,g.length>0,h);return}}a.hideSuggestions();return}if(b.suggest(e))return;else{if(!c){a.hideSuggestions();return}var g=c.getHistory();var h=c.isEnabled();if(g&&g.length>0){var i=ia(e,g,10);if(i.length>0)a.showSuggestions(e,[],[],[],i,g.length>0,h);else a.hideSuggestions()}}});b.onchange=function(e,g,h,i){var l=[];if(c)l=c.getHistory();
if(l.length<=0&&g.length<=0){a.hideSuggestions();return}var q=a.queryBox_.value;if(q==""){if(l.length>0)a.showSuggestions("",[],[],[],l,l.length>0,c.isEnabled());else a.hideSuggestions();return}if(!E(e,q)){if(!a.isValidSuggestions(e))a.hideSuggestions();return}if(!c)a.showSuggestions(e,g,h,i);else{var n=ia(e,l,10);var j=[];var p=[];var k=[];ja(g,h,i,n,j,p,k);if(n.length<=0&&j.length<=0){a.hideSuggestions();return}a.showSuggestions(e,j,p,k,n,c.getHistory().length>0,c.isEnabled())}};a.setOnChooseSuggestion(function(e,
g,h,i,l){if(!i&&d)d.log({q:g,aq:h,oq:e,fkt:this.timeTracker_.t1-this.timeTracker_.t0,fsdt:(new Date).getTime()-this.timeTracker_.t0,aqi:this.getAssistedQueryImpression()});if(i&&f)f.log({q:g,aq:h,oq:e,fkt:this.timeTracker_.t1-this.timeTracker_.t0,fsdt:(new Date).getTime()-this.timeTracker_.t0,aqi:this.getAssistedQueryImpression()});if(typeof l=="boolean"&&l)window.location=g;else{if(c)c.saveHistory(g);a.setQuery(g);a.submitQuery()}a.hideSuggestions()});a.setOnSuggestClose(function(e){if(d)d.log({q:e,
aq:"x",aqi:this.getAssistedQueryImpression()})});b.onServerError=function(){if(d)d.log({q:a.queryBox_.value,aq:"o"})};a.setOnFormSubmitByButton(function(){b.cancelSuggest();a.hideSuggestions();if(c)c.saveHistory(a.queryBox_.value);if(d)d.log({q:a.queryBox_.value,fkt:this.timeTracker_.t1-this.timeTracker_.t0,fsdt:(new Date).getTime()-this.timeTracker_.t0,aqi:this.getAssistedQueryImpression()})});a.setOnFocusIn(function(){if(c){var e=c.getHistory();var g=c.isEnabled();a.showSuggestions("",[],[],[],
e,e.length>0,g)}});a.setOnClearHistory(function(){if(K())b.clearHistory();else if(c)c.clearAllHistory()});a.setOnEnableHistory(function(e){if(c)c.enableHistory(e)});if(c)c.setOnServerError(function(){if(f)f.log({q:a.queryBox_.value,aq:"o"})});a.setOnHistoryLogging(function(e){if(f)f.log({q:a.queryBox_.value,aq:e,aqi:this.getAssistedQueryImpression()})})};function r(a,b,d,c){this.requestBaseURI_=a+"?client=mobile&json=t&types=t"+"&hl="+b+"&gl="+d;this.httpTask_=c;this.notifyServerError_=false}
r.prototype.onchange=function(a,b,d,c){};r.prototype.onServerError=function(){};
r.prototype.suggest=function(a){if(this.httpTask_.hasServerError()){if(!this.notifyServerError_){this.onServerError();this.notifyServerError_=true}return false}var b=this.requestBaseURI_+"&q="+W(a);if(K())b+="&tok="+_userToken;if(a.length>1&&window._navSuggest)b+="&nav=1&navscore="+30000;else b+="&nav=f";var d=this;try{this.httpTask_.get(b,function(f){try{var e=new X(f);var g=e.input_;var h=e.suggestions_;var i=e.extraInfo_;var l=e.suggesttype_}catch(q){return false}d.onchange(g,h,i,l)})}catch(c){return false}return true};
r.prototype.clearHistory=function(){if(this.httpTask_.hasServerError()){if(!this.notifyServerError_){this.onServerError();this.notifyServerError_=true}return false}if(!K())return false;var a=this.requestBaseURI_+"&action=clearhist"+"&tok="+_userToken;try{this.httpTask_.get(a,function(d){})}catch(b){return false}return true};r.prototype.cancelSuggest=function(){this.httpTask_.abortCurrentRequest()};
function X(a){this.input_="";this.suggestions_=[];this.extraInfo_=[];this.suggesttype_=[];this.parseJson_(a)}X.prototype.getInput=function(){return this.input_};X.prototype.getSuggestions=function(){return this.suggestions_};X.prototype.getExtraInfo=function(){return this.extraInfo_};X.prototype.getSuggestType=function(){return this.suggesttype_};
X.prototype.parseJson_=function(a){var b=a.indexOf("while (1);");if(b>=0)a=a.substring(b+10);try{var d=eval("("+a+")")}catch(c){throw"Error to use eval to parse suggest json response!";}if(d.length<3)throw"The suggest json response is incomplete!";if(d[0].length<=0)throw"The input of suggest json response should not be empty!";this.input_=d[0];var f=d[1];for(var e=0;e<f.length;++e)if(f[e].length<=0)throw"Suggestion "+e+" should not be empty!";this.suggestions_=d[1];this.extraInfo_=d[2];if(d.length>=
4)this.suggesttype_=d[4]["google:suggesttype"];else this.suggesttype_=[]};function W(a){if(typeof encodeURIComponent!="undefined")return encodeURIComponent(a);else throw"Could not URI escape a string.";}function E(a,b){if(b.length<a.length)return false;var d=b.substring(0,a.length);return a==d}function ia(a,b,d){var c=O(fa(a));var f=[];var e=0;for(var g=0;g<b.length&&e<d;++g){if(!E(c,b[g]))continue;if(c==b[g])continue;f[e]=b[g];++e}return f}
function ja(a,b,d,c,f,e,g){var h=0;for(var i=0;i<a.length;++i){var l=false;for(var q=0;q<c.length;++q)if(a[i]==c[q]){l=true;break}if(!l){f[h]=a[i];e[h]=b[i];g[h]=d[i];++h}}}function Q(a){var b=0;if(a.offsetParent)while(1){b+=a.offsetLeft;if(!a.offsetParent)break;a=a.offsetParent}else if(a.x)b+=a.x;return b}function J(a){var b=0;if(a.offsetParent)while(1){b+=a.offsetTop;if(!a.offsetParent)break;a=a.offsetParent}else if(a.y)b+=a.y
1D7F
;return b}
function fa(a){if(/^\s*$/.test(a)&&a.length>0)return" ";return a.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ")}function P(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function K(){return!!window._userToken&&window._userToken!=""&&window._userHistoryEnabled}var ka=/[\uFF01-\uFF5E]/g;function la(a){return String.fromCharCode(a.charCodeAt(0)-65248)}var ma=/([\uFF73\uFF76-\uFF84\uFF8A-\uFF8E]\uFF9E)|([\uFF8A-\uFF8E]\uFF9F)|([\uFF61-\uFF9F])/g;var na=/([\u30A6\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CF\u30D2\u30D5\u30D8\u30DB]\u309B)|([\u30CF\u30D2\u30D5\u30D8\u30DB]\u309C)/g;
var oa="\u30f4__\u30ac\u30ae\u30b0\u30b2\u30b4\u30b6\u30b8\u30ba\u30bc\u30be"+"\u30c0\u30c2\u30c5\u30c7\u30c9_____\u30d0\u30d3\u30d6\u30d9\u30dc";var pa="\u30f4____\u30ac_\u30ae_\u30b0_\u30b2_\u30b4_\u30b6_\u30b8_\u30ba_\u30bc_"+"\u30be_\u30c0_\u30c2__\u30c5_\u30c7_\u30c9______\u30d0__\u30d3__\u30d6__\u30d9__\u30dc";
var qa="\u3002\u300c\u300d\u3001\u30fb\u30f2\u30a1\u30a3"+"\u30a5\u30a7\u30a9\u30e3\u30e5\u30e7\u30c3\u30fc"+"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af"+"\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf"+"\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd"+"\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df"+"\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea"+"\u30eb\u30ec\u30ed\u30ef\u30f3\u309b\u309c";
function ra(a){var b=a.charCodeAt(0);if(a.length==1)return qa.charAt(b-65377);else if(a.charCodeAt(1)==65438)return oa.charAt(b-65395);else return"\u30d1\u30d4\u30d7\u30da\u30dd".charAt(b-65418)}function sa(a){var b=a.charCodeAt(0);if(a.charCodeAt(1)==12443)return pa.charAt(b-12454);else return"\u30d1__\u30d4__\u30d7__\u30da__\u30dd".charAt(b-12495)}
function Y(a,b,d){var c;var f;var e=0;while((c=b.exec(a))!=null){if(f==null)f=[];if(e<c.index)f.push(a.substring(e,c.index));f.push(d(c[0]));e=b.lastIndex}if(f==null)return a;if(e<a.length)f.push(a.substring(e));return f.join("")}function O(a){a=Y(a,ka,la);a=Y(a,ma,ra);a=Y(a,na,sa);return a.toLowerCase()}function w(){if(Z)return Z;ta();Z=this}var Z=null;var $=null;
var ta=function(){if(window.XMLHttpRequest)$=function(){return new XMLHttpRequest};else if(window.ActiveXObject){var a=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"];for(var b=0;b<a.length;b++)try{new ActiveXObject(a[b]);$=function(){return new ActiveXObject(a[b])};break}catch(d){}}if(!$)throw"This browser does not support XMLHttpRequest";};
w.prototype.createXMLHttpRequest=function(){if($)return $();else throw"Problem to create a XMLHttpRequest in this browser.";};function v(a){this.httpClient_=a;this.xmlHttpRequest_=null;this.error500Count_=0}v.prototype.getXmlHttpRequest=function(){return this.xmlHttpRequest_};v.prototype.getError500Count=function(){return this.error500Count_};v.prototype.hasServerError=function(){return this.error500Count_>=3};
v.prototype.get=function(a,b){if(this.error500Count_>=3)return;if(this.xmlHttpRequest_&&this.xmlHttpRequest_.readyState!=0&&this.xmlHttpRequest_.readyState!=4)this.xmlHttpRequest_.abort();if(this.xmlHttpRequest_)this.xmlHttpRequest_.onreadystatechange=function(){};try{this.xmlHttpRequest_=this.httpClient_.createXMLHttpRequest()}catch(d){return}if(this.xmlHttpRequest_){var c=this;this.xmlHttpRequest_.onreadystatechange=function(){if(c.xmlHttpRequest_.readyState==4&&c.xmlHttpRequest_.responseText)switch(c.xmlHttpRequest_.status){case 403:case 404:c.error500Count_=
1000;break;case 302:case 500:case 502:case 503:c.error500Count_++;break;case 200:b(c.xmlHttpRequest_.responseText);default:c.error500Count_=0}};this.xmlHttpRequest_.open("GET",a,true);this.xmlHttpRequest_.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");this.xmlHttpRequest_.setRequestHeader("X-If-No-Redirect","1");this.xmlHttpRequest_.send(null)}};v.prototype.abortCurrentRequest=function(){if(this.xmlHttpRequest_)this.xmlHttpRequest_.abort()};
//]]>
</script>
</head>
<body onload="try {_gp_initSearch();} catch (e) {alert(e)};setTimeout(_scrollToTop, 100);">
<div id="og_head" class="og_head">
<div id="og_hider" class="og_hider"></div>
<div id="og_quick" class="og_quick">
<b class="og_tab og_tab_selected og_product">所有網頁</b>
<a href="#image" class="og_tab">圖片</a>
<a href="#news" class="og_tab">新聞</a>
<a href="http://www.google.com.tw/m/ig?source=mog&amp;hl=zh-TW&amp;gl=tw" class="og_tab">iGoogle</a>
</div>
<div id="og_more" class="og_more">
<a href="http://m.google.com.tw/?source=mog&amp;hl=zh-TW&amp;gl=tw" onclick="window.og._toggleMenu();return !1" class="og_tab"><u>更多</u> <small>&#9660;</small></a>
</div>
<div id="og_menu" class="og_menu">
<a href="http://mail.google.com/mail/x/mog-/gp/?source=mog&amp;hl=zh-TW&amp;gl=tw">Gmail</a><a href="http://www.google.com/calendar/gp?source=mog&amp;hl=zh-TW&amp;gl=tw">日曆</a>
<a href="http://picasaweb.google.com/m/viewer?source=mog&amp;hl=zh-TW&amp;gl=tw">相簿</a>
<a href="http://docs.google.com/m?source=mog&amp;hl=zh-TW&amp;gl=tw">文件</a>
<a href="http://www.google.com.tw/reader/i/?source=mog&amp;hl=zh-TW&amp;gl=tw">閱讀器</a>
<a href="http://www.google.com.tw/m/translate?source=mog&amp;hl=zh-TW&amp;gl=tw">翻譯</a>
<a href="http://m.google.com.tw/?source=mog&amp;hl=zh-TW&amp;gl=tw">更多 &#xbb;</a>
</div>
</div>
<script type="text/javascript">og._generate()</script>
<script type="text/javascript">/* <![CDATA[ */if (window.og && window.og._getCsi && window.og._getCsi()) {window.og._getCsi().load.tick('nav');}/* ]]> */</script>
<div id="og_foot" class="og_foot">
<script type="text/javascript">/* <![CDATA[ */if (window.og && window.og._getCsi && window.og._getCsi()) {window.og._getCsi().load.tick('foot');}/* ]]> */</script>
</div>
<div id="searchResults"> </div>
<div id="landingPage">
<form class="gp2" id="gpSearchForm" action="javascript:_gp_search(document.getElementById('query').value)" onsubmit="document.getElementById('b').focus();">
<div>
<a id="logo0" href="javascript:void(0)" ><span id="lspan"></span></a>
<div class="gsc-tabsArea" id="gp-result-tabs"> </div>
<div class="gp2">
<input class="gp7" id="query" type="text" name="q" size="30" maxlength="2048" autocorrect="off" autocomplete="off"/>
<a class="clear" id="clearQuery" href="#" ><img src="data:image/gif;base64,R0lGODlhAQABAID%2FAMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw%3D%3D" alt=""/></a>
</div>
<div id="suggestDiv">
<div id="historyActionList">
<div id="clearAll">清除記錄 </div>
<div id="turnOn">開啟記錄 </div>
<div id="turnOff">關閉記錄 </div>
</div>
<table id="suggestTable"> </table>
</div>
<div class="gp2">
<input id="b" type="submit" value="Google 搜尋"/>
</div>
</div>
</form>
<div style="font-size:12pt;margin-top:20px;margin-bottom:10px;text-align:center;width:100%;" id="footerDiv">
<div style="margin:12px;display:inline;">
<a href="http://www.google.com/preferences?prev=/preferences" >設定</a>
</div>
<div style="margin:12px;display:inline;">
<a href="/m/help" >條款</a>
</div>
<div style="margin-top:12px;">檢視 Google:&nbsp;<span style="font-weight:bold;">行動版</span>&nbsp;|&nbsp;<a href="http://www.google.com/webhp?output=html" >傳統版</a> </div>
<div style="padding-top:10px;padding-bottom:100px;text-align:center;">
<a href="http://www.google.com/m?hl=en" >Google.com in English</a>
</div>
<div style="padding-top:10px;padding-bottom:140px;text-align:center;">&copy;2009 Google </div>
</div>
</div>
<canvas id='spinner' width='20' height='20'></canvas>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment