var udsi=new Object;udsi["blank"]="&nbsp;";udsi["image"]=_MSG_SEARCHER_IMAGE;udsi["web"]=_MSG_SEARCHER_WEB;udsi["blog"]=_MSG_SEARCHER_BLOG;udsi["video"]=_MSG_SEARCHER_VIDEO;udsi["local"]=_MSG_SEARCHER_LOCAL;udsi["news"]=_MSG_SEARCHER_NEWS;udsi["save"]=_MSG_SEARCHCONTROL_SAVE;udsi["keep"]=_MSG_SEARCHCONTROL_KEEP;udsi["include"]=_MSG_SEARCHCONTROL_INCLUDE;udsi["copy"]=_MSG_SEARCHCONTROL_COPY;udsi["close"]=_MSG_SEARCHCONTROL_CLOSE;udsi["sponsored-links"]=_MSG_SEARCHCONTROL_SPONSORED_LINKS;udsi["see-more"
]=_MSG_SEARCHCONTROL_SEE_MORE;udsi["watermark"]=_MSG_SEARCHCONTROL_WATERMARK;udsi["search-location"]=_MSG_SEARCHER_CONFIG_SET_LOCATION;udsi["disable-address-lookup"]=_MSG_SEARCHER_CONFIG_DISABLE_ADDRESS_LOOKUP;udsi["sort-by-date"]=_MSG_SORT_BY_DATE;udsi["pbg"]=_MSG_BRANDING_STRING;udsi["n-minutes-ago"]=_MSG_MINUTES_AGO;udsi["n-hours-ago"]=_MSG_HOURS_AGO;udsi["one-hour-ago"]=_MSG_ONE_HOUR_AGO;udsi["all-n-related"]=_MSG_NEWS_ALL_N_RELATED;udsi["related-articles"]=_MSG_NEWS_RELATED;var udsw=new Array;
udsw[0]=_MSG_MONTH_ABBR_JAN;udsw[1]=_MSG_MONTH_ABBR_FEB;udsw[2]=_MSG_MONTH_ABBR_MAR;udsw[3]=_MSG_MONTH_ABBR_APR;udsw[4]=_MSG_MONTH_ABBR_MAY;udsw[5]=_MSG_MONTH_ABBR_JUN;udsw[6]=_MSG_MONTH_ABBR_JUL;udsw[7]=_MSG_MONTH_ABBR_AUG;udsw[8]=_MSG_MONTH_ABBR_SEP;udsw[9]=_MSG_MONTH_ABBR_OCT;udsw[10]=_MSG_MONTH_ABBR_NOV;udsw[11]=_MSG_MONTH_ABBR_DEC;udsi["month-abbr"]=udsw;udsi["directions"]=_MSG_DIRECTIONS;udsi["clear-results"]=_MSG_CLEAR_RESULTS;udsi["show-one-result"]=_MSG_SHOW_ONE_RESULT;udsi["show-more-results"
]=_MSG_SHOW_MORE_RESULTS;udsi["show-all-results"]=_MSG_SHOW_ALL_RESULTS;udsi["settings"]=_MSG_SETTINGS;udsi["search"]=_MSG_SEARCH;udsi["search-uc"]=_MSG_SEARCH_UC;udsi["powered-by"]=_MSG_POWERED_BY;udsi["sa"]="Search Appliance";
Function.prototype.inherits=function(uds){var udsa=function(){}
;udsa.prototype=uds.prototype;this.prototype=new udsa;this.prototype.__super__=function(udsb,udsd,udsf,udse){var udsh=Array.prototype.splice.apply(arguments,[1,arguments.length]);return udsb.apply(this,udsh)}
}
;var _json_cache_defeater_=0;function udsX(uds){return uds+"&key="+UDS_ApiKey+"&v="+UDS_Version}
function udsM(uds){var udsa=document.getElementsByTagName("head")[0];var udsb=document.createElement("script");udsb.type="text/javascript";udsb.charset="utf-8";var udsd=udsX(uds);if(udsK()||udsZ()){udsd=udsd+"&nocache="+_json_cache_defeater_++}udsb.src=udsd;var udsf=function(){var udsh=udsb.parentNode;udsh.removeChild(udsb);delete udsb}
;var udse=function(udsh){var udsl=(udsh?udsh:window.event).target?(udsh?udsh:window.event).target:(udsh?udsh:window.event).srcElement;if(udsl.readyState=="loaded"||udsl.readyState=="complete"){udsf()}}
;if(navigator.product=="Gecko"){udsb.onload=udsf}else{udsb.onreadystatechange=udse}udsa.appendChild(udsb)}
function udsG(uds,udsa){return function(){return udsa.apply(uds,arguments)}
}
function udss(uds,udsa,udsb){return function(){return udsa.apply(uds,udsb)}
}
function udsB(uds){while(uds.firstChild){uds.removeChild(uds.firstChild)}}
function udsU(uds,udsa){if(uds){try{udsB(uds);uds.appendChild(udsa)}catch(udsb){}}return udsa}
function udsg(uds,udsa){try{uds.appendChild(udsa)}catch(udsb){}return udsa}
function udsV(uds,udsa){uds.innerHTML=udsa}
function udsT(uds){return document.createTextNode(uds?uds:"")}
function udsj(uds,udsa){var udsb=document.createElement("div");if(uds){udsb.innerHTML=uds}if(udsa){udsb.className=udsa}return udsb}
function udsn(uds){var udsa=document.createElement("div");if(uds){udsa.className=uds}return udsa}
function udsS(uds,udsa){var udsb=document.createElement("span");if(uds){udsg(udsb,udsT(uds))}if(udsa){udsb.className=udsa}return udsb}
function udsE(uds,udsa,udsb){var udsd=document.createElement("table");udsd.setAttribute("cellSpacing",uds?uds:0);udsd.setAttribute("cellPadding",udsa?udsa:0);if(udsb){udsd.className=udsb}return udsd}
function udsA(uds,udsa,udsb){var udsd=uds.insertRow(-1);if(!udsd){alert(udsd)}for(var udsf=0;udsf<udsa;udsf++){udsu(udsd,udsb)}return udsd}
function udsu(uds,udsa){var udsb=uds.insertCell(-1);if(udsa){udsb.className=udsa}return udsb}
function udsF(uds,udsa,udsb,udsd){var udsf=document.createElement("img");udsf.src=uds;if(udsa){udsf.width=udsa}if(udsb){udsf.height=udsb}if(udsd){udsf.className=udsd}return udsf}
function udsW(uds,udsa,udsb,udsd){var udsf;if(udsK()){udsf=udsn(udsd);udsf.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+uds+'")';udsf.style.width=udsa+"px";udsf.style.height=udsb+"px"}else{udsf=udsF(uds,null,null,udsd)}return udsf}
function udsR(uds,udsa,udsb,udsd){var udsf=document.createElement("a");udsf.href=uds;if(udsa){if(udsd){udsg(udsf,udsS(udsa,udsd))}else{udsg(udsf,udsT(udsa))}}if(udsb){udsf.target=udsb}return udsf}
function udsp(uds,udsa,udsb,udsd){var udsf=udsj(null,udsd);var udse=document.createElement("a");udse.href=uds;var udsh=udsj(null,udsd);udsh.innerHTML=udsa;udse.appendChild(udsh);if(udsd){udse.className=udsd}if(udsb){udse.target=udsb}udsf.appendChild(udse);return udsf}
function udsP(uds){var udsa=document.createElement("form");if(uds){udsa.className=uds}return udsa}
function udsJ(uds,udsa){var udsb=document.createElement("input");udsb.type="submit";udsb.value=uds;if(udsa){udsb.className=udsa}return udsb}
function udsQ(uds,udsa,udsb){var udsd=document.createElement("input");udsd.setAttribute("autoComplete","off");udsd.type="text";if(uds==-1){udsk(udsd,"util-css-expand")}else{udsd.size=uds>0?uds:10}if(udsa){udsk(udsd,udsa)}if(udsb){udsd.value=udsb}return udsd}
function udsL(uds,udsa,udsb,udsd){var udsf=document.createElement("input");udsf.type="checkbox";udsf.name=uds;udsf.value=udsa;if(udsd){udsf.className=udsd}if(udsb){udsf.checked=udsb}return udsf}
function udsz(uds,udsa){uds.className=udsa}
function udsk(uds,udsa){uds_(uds,udsa)}
function udsx(uds,udsa){uds1(uds,udsa)}
function uds0(uds,udsa){if(uds==null||uds.className==null)return false;var udsb=uds.className.split(" ");for(var udsd=0;udsd<udsb.length;udsd++){if(udsb[udsd]==udsa){return true}}return false}
function uds_(uds,udsa){if(uds0(uds,udsa))return;uds.className+=" "+udsa}
function uds1(uds,udsa){if(uds.className==null)return;var udsb=uds.className.split(" ");var udsd=[];var udsf=false;for(var udse=0;udse<udsb.length;udse++){if(udsb[udse]!=udsa){if(udsb[udse]){udsd.push(udsb[udse])}}else{udsf=true}}if(udsf){uds.className=udsd.join(" ")}}
var udsH="";function uds2(uds){var udsa=uds.toLowerCase().split(".");if(udsa.length<2){udsH=".com"}var udsb=udsa.pop();var udsd=udsa.pop();if(udsb.length==2){if(udsI[udsd]&&udsI[udsd][udsb]==1){udsH="."+udsd+"."+udsb}else{udsH="."+udsb}}else{udsH=".com"}return udsH}
var udsI={co:{ck:1,cr:1,hu:1,id:1,il:1,"in":1,je:1,jp:1,ke:1,kr:1,ls:1,nz:1,th:1,ug:1,uk:1,ve:1,vi:1,za:1},com:{ag:1,ar:1,au:1,bo:1,br:1,bz:1,co:1,cu:1,"do":1,ec:1,fj:1,gi:1,gr:1,gt:1,hk:1,jm:1,ly:1,mt:1,mx:1,my:1,na:1,nf:1,ni:1,np:1,pa:1,pe:1,ph:1,pk:1,pr:1,py:1,sa:1,sg:1,sv:1,tr:1,tw:1,ua:1,uy:1,vc:1,vn:1},off:{ai:1}};function uds3(uds){var udsa=uds.toLowerCase().split(".");if(udsa.length<2){return false}var udsb=udsa.pop();var udsd=udsa.pop();if((udsd=="igoogle"||udsd=="gmodules")&&udsb=="com"
){return true}if(udsb.length==2&&udsa.length>0){if(udsI[udsd]&&udsI[udsd][udsb]==1){udsd=udsa.pop()}}return udsd=="google"}
function udsN(uds){if(uds in udsO){return udsO[uds]}return udsO[uds]=navigator.userAgent.toLowerCase().indexOf(uds)!=-1}
var udsO={};function udsK(){return udsN("msie")}
function udsZ(){return udsN("safari")||udsN("konqueror")}
;
function udsc(){}
udsc.r="gs-result";udsc.s="gs-title";udsc.V="gs-snippet";udsc.D="gs-visibleUrl";udsc.ab="gs-visibleUrl-long";udsc.Vb="gs-visibleUrl-short";udsc.Uc="gs-watermark";udsc.Sc="gs-results-attribution";udsc.Lb="gs-address";udsc.Tb="gs-street";udsc.Mb="gs-city";udsc.Rb="gs-region";udsc.Mc="gs-country";udsc.Ob="gs-phone";udsc.Nc="gs-directions";udsc.Qb="gs-publisher";udsc.Qc="gs-location";udsc.Lc="gs-clusterUrl";udsc.Nb="gs-image-box";udsc.Ub="gs-text-box";udsc.Rc="gs-metadata";udsc.T="gs-image";udsc.Tc="gs-size"
;udsc.Pb="gs-publishedDate";udsc.Sb="gs-relativePublishedDate";udsc.Wb="gs-webAd";udsc.Pc="gs-localAd";udsc.$a="gs-ad-marker";udsc.U="gs-line";udsc.Oc="gs-divider";udsc.uc="gsc-control";udsc.yc="gsc-narrow";udsc.Hb="gsc-search-box";udsc.Ib="gsc-search-button";udsc.Bb="gsc-clear-button";udsc.Db="gsc-input";udsc.qa="gsc-branding";udsc.Ab="gsc-branding-vertical";udsc.oc="gsc-branding-img";udsc.pc="gsc-branding-user-defined";udsc.Qa="gsc-branding-img-noclear";udsc.ra="gsc-branding-text";udsc.Va="gsc-resultsRoot"
;udsc.Dc="gsc-results";udsc.Ua="gsc-result";udsc.Cc="gsc-resultsHeader";udsc.R="gsc-resultsbox-invisible";udsc.S="gsc-resultsbox-visible";udsc.wc="gsc-expansionArea";udsc.nc="gsc-ad-box";udsc.Jc="gsc-twiddleRegionCell";udsc.qc="gsc-configLabelCell";udsc.rc="gsc-configLabel";udsc.Kc="gsc-twiddle";udsc.da="gsc-twiddle-closed";udsc.ta="gsc-twiddle-opened";udsc.Ic="gsc-title";udsc.Fc="gsc-stats";udsc.Eb="gsc-keeper";udsc.Bc="gsc-result-selector gsc-one-result";udsc.Ac="gsc-result-selector gsc-more-results"
;udsc.zc="gsc-result-selector gsc-all-results";udsc.Ec="gsc-results-selector";udsc.Gb="gsc-one-result-active";udsc.Fb="gsc-more-results-active";udsc.zb="gsc-all-results-active";udsc.Kb="gsc-tabsArea";udsc.Jb="gsc-tabsAreaInvisible";udsc.Hc="gsc-tabHeader";udsc.Ya="gsc-tabhActive";udsc.Za="gsc-tabhInactive";udsc.Wa="gsc-tabdActive";udsc.Xa="gsc-tabdInactive";udsc.Gc="gsc-tabData";udsc.Cb="gsc-config";udsc.Ta="gsc-configSetting";udsc.ca="gsc-configSettingSubmit";udsc.Sa="gsc-configSettingCheckbox";
udsc.Ra="gsc-configSettingCheckboxLabel";udsc.tc="gsc-configSettingInput";udsc.sc="gsc-configSettingInputLabel";udsc.xc="gsc-locationConfig";udsc.Cd="as-results";udsc.Pa="as-result-vertical";udsc.yb="as-result-horizontal";udsc.xb="as-result-cell";udsc.Bd="as-branding-cell";
GSearch.BASE=UDS_ServiceBase;GSearch.LARGE_RESULTSET="large";GSearch.SMALL_RESULTSET="small";GSearch.LARGE_RESULTS=8;GSearch.LARGE_ADS=4;GSearch.SMALL_RESULTS=4;GSearch.SMALL_ADS=2;GSearch.KEEP_SWEEPER_DELAY=5000;GSearch.LINK_TARGET_TOP="_top";GSearch.LINK_TARGET_SELF="_self";GSearch.LINK_TARGET_PARENT="_parent";GSearch.LINK_TARGET_BLANK="_blank";GSearch.ORDER_BY_RELEVANCE="order-by-relevance";GSearch.ORDER_BY_DATE="order-by-date";function GSearch(){this.Dd=null;this.Y=null;this.mc=0;this.Ma=0;this.kb=
true;this.N={width:100,height:75};this.O=GSearch.LINK_TARGET_BLANK;this.gc=1;this.setResultSetSize(GSearch.SMALL_RESULTSET);this.clearResults();this.gb=null;this.hb=null;this.vb=null;this.ob=null;this.oa=null;this.ma=null;this.Da=null;this.n="null";this.g=null}
GSearch.prototype.setQueryAddition=function(uds){if(uds==null||uds==""){this.g=null}else{this.g=uds}}
;GSearch.prototype.I=function(uds,udsa){var udsb=GSearch.BASE+this.A+"?callback="+uds+"&context="+udsa+"&lstkp="+this.$c()+"&rsz="+this.Ha+"&hl="+UDS_CurrentLocale;if(this.mb){udsb+="&gss="+this.mb}if(UDS_JSHash){udsb+="&sig="+UDS_JSHash}return udsb}
;GSearch.prototype.setLinkTarget=function(uds){this.O=uds}
;GSearch.prototype.d=function(){if(this.O&&this.O!=""){return this.O}else{return null}}
;GSearch.prototype.cc=function(){this.mc++;this.Ma++;if(this.Da){clearTimeout(this.Da)}this.Da=setTimeout(udss(this,this.execute,[null]),GSearch.KEEP_SWEEPER_DELAY)}
;GSearch.prototype.$c=function(){clearTimeout(this.Da);var uds=this.Ma;this.Ma=0;return uds}
;GSearch.prototype.lb=function(){if(this.gb==null){this.gb="gsc-"+this.n+"Result"}return this.gb}
;GSearch.prototype.L=function(){if(this.hb==null){this.hb="gs-"+this.n+"Result"}return this.hb}
;GSearch.prototype.jd=function(){if(this.vb==null){this.vb=udsi[this.n]}if(this.oa){return this.oa}else{return this.vb}}
;GSearch.prototype.gd=function(){if(this.ob==null){this.ob=udsi[this.n]}if(this.oa){return this.oa}else{return this.ob}}
;GSearch.prototype.getResultSetSize=function(){return this.Ha}
;GSearch.prototype.setResultSetSize=function(uds){switch(uds){case GSearch.LARGE_RESULTSET:this.Ha=GSearch.LARGE_RESULTSET;break;default:case GSearch.SMALL_RESULTSET:this.Ha=GSearch.SMALL_RESULTSET;break}}
;GSearch.prototype.execute=function(uds){var udsa=this.p(uds,null,null);udsM(udsa)}
;GSearch.prototype.getExecuteUrl=function(uds,udsa,udsb){var udsd=this.p(uds,udsa,udsb);return udsX(udsd)}
;GSearch.prototype.u=function(uds){var udsa="http://code.google.com/apis/ajaxsearch/faq.html";var udsb=udsi["watermark"]+" - "+this.ad();var udsd=udsp(udsa,udsb,"_blank",udsc.Uc);udsg(uds,udsd)}
;GSearch.prototype.ad=function(){var uds=new Date;var udsa=uds.getMonth()+1+"/"+uds.getFullYear();return udsa}
;GSearch.prototype.Ba=function(uds){var udsa;var udsb=uds.getFullYear();var udsd=uds.getMonth();var udsf=udsi["month-abbr"][udsd];var udse=uds.getDate();if(udse<10){udse="0"+udse}switch(UDS_ShortDatePattern){case "MDY":udsa=udsf+" "+udse+", "+udsb;break;case "YMD":udsa=udsb+" "+udsf+" "+udse;break;default:case "DMY":udsa=udse+" "+udsf+" "+udsb;break}return udsa}
;GSearch.Xb=3600000;GSearch.Wc=60000;GSearch.Vc=86400000;GSearch.prototype.bc=function(uds){var udsa=new Date;var udsb=udsa.getTime();var udsd=uds.getTime();var udsf;if(udsb<udsd){return udsi["n-minutes-ago"](2)}var udse=udsb-udsd;if(udse<GSearch.Xb){var udsh=parseInt(udse/GSearch.Wc);if(udsh<=1){udsf=2}else{udsf=udsh}return udsi["n-minutes-ago"](udsf)}if(udse<GSearch.Vc){var udsl=parseInt(udse/GSearch.Xb);if(udsl<=1){return udsi["one-hour-ago"]}else{udsf=udsl;return udsi["n-hours-ago"](udsf)}}return this.Ba(
uds)}
;GSearch.prototype.clearResults=function(){this.Ed=null;this.results=new Array;this.adResults=new Array}
;GSearch.prototype.ac=function(){if(this.$b){this.$b()}}
;GSearch.prototype.onSearchComplete=function(uds,udsa,udsb,udsd){if(uds==null&&udsa==204){return}if(uds&&uds.results&&uds.results.length>0){this.results=uds.results}else{this.results=new Array}if(uds&&uds.adResults&&uds.adResults.length>0){this.adResults=uds.adResults}else{this.adResults=new Array}this.completionStatus=udsa;this.hashStatus=udsd;this.completionFailureDetails=udsb;if(uds&&uds.resultAttribution&&uds.resultAttribution!=null&&uds.resultAttribution!=""){this.Ga=uds.resultAttribution}else{
this.Ga=null}if(this.kb){this.Zb()}this.ac()}
;GSearch.prototype.getAttribution=function(){var uds=null;if(this.Ga){uds=udsj(this.Ga,udsc.Sc)}return uds}
;GSearch.prototype.Zb=function(){var uds;var udsa;for(uds=0;uds<this.results.length;uds++){udsa=this.results[uds];this.G(udsa)}for(uds=0;uds<this.adResults.length;uds++){udsa=this.adResults[uds];this.ea(udsa)}}
;GSearch.prototype.ea=function(uds){if(uds.html){delete uds.html}}
;GSearch.prototype.setSearchCompleteCallback=function(uds,udsa,udsb){if(!udsb){udsb=[null]}this.$b=udss(uds,udsa,udsb)}
;GSearch.AllocateCompletionMapContext=function(uds,udsa){var udsb=false;var udsd=null;if(uds.length){for(var udsf=0;udsf<uds.length;udsf++){if(uds[udsf]==null){uds[udsf]=udsa;udsd=udsf;udsb=true;break}}}if(!udsb){udsd=uds.length;uds.push(udsa)}return udsd}
;GSearch.prototype.setUserDefinedLabel=function(uds){this.oa=uds}
;GSearch.prototype.setUserDefinedClassSuffix=function(uds){this.ma=uds}
;GSearch.prototype.setNoHtmlGeneration=function(){this.kb=false}
;GSearch.scaleImage=function(uds,udsa,udsb,udsd){var udsf=udsb.width/uds;var udse=udsb.height/udsa;var udsh=Math.min(udsf,udse);var udsl=Math.min(udsh,1);var udsm=new Object;udsm.width=Math.round(uds*udsl);udsm.height=Math.round(udsa*udsl);if(udsd){udsd.width=udsm.width;udsd.height=udsm.height}return udsm}
;GSearch.VERTICAL_BRANDING=1;GSearch.HORIZONTAL_BRANDING=2;GSearch.getBranding=function(uds,udsa){var udsb=udsn(udsc.qa);var udsd=udsE(null,null,udsc.qa);udsg(udsb,udsd);var udsf=true;if(udsa){if(udsa==GSearch.VERTICAL_BRANDING){udsf=false;udsk(udsb,udsc.Ab);udsk(udsd,udsc.Ab)}else if(udsa==GSearch.HORIZONTAL_BRANDING){udsf=true}else{udsf=true}}var udse=udsA(udsd,0);var udsh;var udsl;if(udsf){udsh=udse;udsl=udse}else{udsh=udse;udsl=udsA(udsd,0)}var udsm=udsu(udsh,udsc.ra);var udso=udsu(udsl,udsc.Qa)
;var udsq=udsj(udsi["powered-by"],udsc.ra);var udst=UDS_ServiceBase+"/css/small-logo.png";var udsv=udsW(udst,51,15,udsc.Qa);udsg(udsm,udsq);udsg(udso,udsv);if(uds){udsB(uds);udsg(uds,udsb)}return udsb}
;GSearch.setOnLoadCallback=function(uds){var udsa=window;if(udsa.addEventListener){udsa.addEventListener("load",uds,false)}else if(udsa.attachEvent){udsa.attachEvent("onload",uds)}else{udsa["onload"]=uds}}
;
function GwebSearch(){GSearch.call(this);this.n="web";this.A="/GwebSearch";this.h=null;this.fa=false;this.ya=null}
GwebSearch.inherits(GSearch);GwebSearch.RESULT_CLASS="GwebSearch";GwebSearch.AD_CLASS="GwebSearch.ad";GwebSearch.c=new Array;GwebSearch.RawCompletion=function(uds,udsa,udsb,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GwebSearch.c[udse];GwebSearch.c[udse]=null;udsh.onSearchComplete(udsa,udsb,udsd,udsf)}
;GwebSearch.prototype.p=function(uds,udsa,udsb){var udsd;if(udsb==null){udsd=GSearch.AllocateCompletionMapContext(GwebSearch.c,this)}else{udsd=udsb}var udsf;if(udsa==null){udsf="GwebSearch.RawCompletion"}else{udsf=udsa}var udse=this.I(udsf,udsd);if(uds){var udsh=uds;if(this.g){udsh=udsh+" "+this.g}if(this.h&&this.fa==false){udsh=udsh+" site:"+this.h}if(this.h&&this.fa==true){udse=udse+"&cx="+this.h;if(this.ya!=null){udsh=udsh+" more:"+this.ya}}udse=udse+"&q="+encodeURIComponent(udsh)}return udse}

;GwebSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);udsb=udsj(uds.content,udsc.V);udsg(udsa,udsb);udsb=udsp("#",uds.visibleUrl,null,udsc.D);udsg(udsa,udsb);udsk(udsb,udsc.Vb);var udsd=uds.unescapedUrl.indexOf(uds.visibleUrl);var udsf=uds.visibleUrl;if(udsd!=-1&&udsd!=0){udsf=uds.unescapedUrl.substring(udsd)}udsb=udsp("#",udsf,null,udsc.D);udsk(udsb,udsc.ab);udsg(
udsa,udsb);uds.html=udsa;this.u(uds.html)}
;GwebSearch.prototype.ea=function(uds){if(uds.html){delete uds.html}var udsa=udsn(udsc.Wb);udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);if(uds.content1){udsb=udsj(uds.content1,udsc.U);udsg(udsa,udsb)}if(uds.content2){udsb=udsj(uds.content2,udsc.U);udsg(udsa,udsb)}udsb=udsp("#",uds.visibleUrl,null,udsc.D);var udsd=udsF(uds.impressionUrl,12,12,udsc.$a);udsg(udsb,udsd);udsg(udsa,udsb);uds.html=udsa;this.u(uds.html)}
;GwebSearch.prototype.setSiteRestriction=function(uds,udsa){if(uds==null||uds==""){this.h=null;this.fa=false;this.ya=null}else{var udsb=uds.match(/^\d{21}:.*/);if(udsb){this.h=uds;this.fa=true;if(udsa){this.ya=udsa}}else{this.h=uds;this.fa=false}}}
;
function GadSearch(uds,udsa,udsb){GSearch.call(this);this.n="ad";this.A="/GadSearch";this.ic();if(udsb&&uds==null&&udsa==null){this.bootOptions=udsb;this.boot()}else{this.setRoot(uds);if(udsa){this.jc(udsa)}}}
GadSearch.inherits(GSearch);GadSearch.RESULT_CLASS="GwebSearch";GadSearch.AD_CLASS="GwebSearch.ad";GadSearch.c=new Array;GadSearch.RawCompletion=function(uds,udsa,udsb,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GadSearch.c[udse];GadSearch.c[udse]=null;udsh.onSearchComplete(udsa,udsb,udsd,udsf)}
;GadSearch.prototype.ed=function(uds){this.setResultSetSize(GadSearch.o[this.b.B].qb);var udsa=this.p(uds,null,null);udsM(udsa)}
;GadSearch.prototype.p=function(uds,udsa,udsb){var udsd;if(udsb==null){udsd=GSearch.AllocateCompletionMapContext(GadSearch.c,this)}else{udsd=udsb}var udsf;if(udsa==null){udsf="GadSearch.RawCompletion"}else{udsf=udsa}var udse=this.I(udsf,udsd);if(uds){var udsh=uds;udse=udse+"&q="+encodeURIComponent(udsh)}return udse}
;GadSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);udsb=udsj(uds.content,udsc.V);udsg(udsa,udsb);udsb=udsp("#",uds.visibleUrl,null,udsc.D);udsg(udsa,udsb);udsk(udsb,udsc.Vb);var udsd=uds.unescapedUrl.indexOf(uds.visibleUrl);var udsf=uds.visibleUrl;if(udsd!=-1&&udsd!=0){udsf=uds.unescapedUrl.substring(udsd)}udsb=udsp("#",udsf,null,udsc.D);udsk(udsb,udsc.ab);udsg(udsa,
udsb);uds.html=udsa;this.u(uds.html)}
;GadSearch.prototype.ea=function(uds){if(uds.html){delete uds.html}var udsa=udsn(udsc.Wb);udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);if(uds.content1){udsb=udsj(uds.content1,udsc.U);udsg(udsa,udsb)}if(uds.content2){udsb=udsj(uds.content2,udsc.U);udsg(udsa,udsb)}udsb=udsp("#",uds.visibleUrl,null,udsc.D);var udsd=udsF(uds.impressionUrl,12,12,udsc.$a);udsg(udsb,udsd);udsg(udsa,udsb);uds.html=udsa;this.u(uds.html)}
;GadSearch.TYPE_H3="h3";GadSearch.TYPE_V3="v3";GadSearch.TYPE_V6="v6";GadSearch.o={h3:{cb:udsc.yb,wb:"740px",nb:"85px",B:GadSearch.TYPE_H3,C:false,F:3,qb:GSearch.SMALL_RESULTSET},v3:{cb:udsc.Pa,wb:"230px",nb:"205px",B:GadSearch.TYPE_V3,C:true,F:3,qb:GSearch.SMALL_RESULTSET},v6:{cb:udsc.Pa,wb:"230px",nb:"410px",B:GadSearch.TYPE_V6,C:true,F:6,qb:GSearch.LARGE_RESULTSET}};GadSearch.prototype.setRoot=function(uds){this.ba=uds;udsB(this.ba)}
;GadSearch.prototype.ic=function(){this.b=new Object;var uds=GadSearch.TYPE_V3;this.b.B=GadSearch.o[uds].B;this.b.C=GadSearch.o[uds].C;this.b.F=GadSearch.o[uds].F;this.b.eb=null;this.kc()}
;GadSearch.prototype.jc=function(uds){this.ic();for(var udsa in uds){var udsb=uds[udsa];switch(udsa){case "type":switch(udsb){case GadSearch.TYPE_H3:case GadSearch.TYPE_V3:case GadSearch.TYPE_V6:this.b.B=GadSearch.o[udsb].B;this.b.C=GadSearch.o[udsb].C;this.b.F=GadSearch.o[udsb].F;break;default:udsb=GadSearch.TYPE_V3;this.b.B=GadSearch.o[udsb].B;this.b.C=GadSearch.o[udsb].C;this.b.F=GadSearch.o[udsb].F;break}break;case "colors":var udsd="";if(uds.colors.background){udsd+="&cb="+uds.colors.background}
if(uds.colors.link){udsd+="&cl="+uds.colors.link}if(uds.colors.text){udsd+="&ct="+uds.colors.text}if(uds.colors.text){udsd+="&cu="+uds.colors.url}this.b.eb=udsd;break}}this.kc()}
;GadSearch.prototype.kc=function(){var uds="";var udsa;udsa=this.b.B;uds+="&aqt="+udsa;if(this.b.eb){uds+=this.b.eb}this.sd=uds}
;GadSearch.prototype.execute=function(uds){var udsa=(new Date).getTime();this.A="/GadSearch/"+udsa;var udsb=this.p("nothing","x","y");this.A="/GadSearch";var udsd=uds;if(this.g){udsd=udsd+" "+this.g}udsb=udsb+"&boot="+encodeURIComponent(udsd)+this.sd;var udsf="&dt="+(new Date).getTime();udsb+=udsf;var udse=this.bd(udsb);udsU(this.ba,udse)}
;GadSearch.prototype.bd=function(uds){var udsa=this.b.B;var udsb;if(udsK()){udsb=document.createElement("<iframe frameborder=no scrolling=no>")}else{udsb=document.createElement("iframe");udsb.setAttribute("frameborder","no");udsb.setAttribute("scrolling","no")}udsb.className=GadSearch.o[udsa].cb;udsb.style.width=GadSearch.o[udsa].wb;udsb.style.height=GadSearch.o[udsa].nb;udsb.style.border="none";udsb.id=(new Date).getTime();udsb.src=uds;return udsb}
;GadSearch.prototype.boot=function(){if(!this.bootOptions){alert("options not set");return}this.setRoot(document.getElementById(this.bootOptions.resultsRoot));this.jc(this.bootOptions);this.setLinkTarget(GSearch.LINK_TARGET_PARENT);this.setSearchCompleteCallback(this,GadSearch.prototype.Zc,[null]);this.ed(this.bootOptions.bootQuery)}
;GadSearch.prototype.Zc=function(){if(this.adResults&&this.adResults.length>0){var uds=this.adResults.length;if(uds>this.F){uds=this.F}var udsa;var udsb;var udsd=null;if(this.b.C){udsb=udsE(null,null,udsc.Pa)}else{udsb=udsE(null,null,udsc.yb)}for(var udsf=0;udsf<uds;udsf++){var udse=this.adResults[udsf];var udsh=udse.html.cloneNode(true);if(this.b.C){udsd=udsA(udsb,0)}else{if(udsd==null){udsd=udsA(udsb,0)}}udsa=udsu(udsd,udsc.xb);udsa.appendChild(udsh)}udsd=udsA(udsb,0);udsa=udsu(udsd,udsc.xb);if(
!this.b.C){udsa.setAttribute("colspan",uds)}var udsl=udsj("Ads by Google",udsc.qa);udsg(udsa,udsl);this.ba.appendChild(udsb)}}
;
function GsaSearch(uds){GSearch.call(this);this.Yc=uds;this.n="sa";this.A="/ajax"}
GsaSearch.inherits(GSearch);GsaSearch.RESULT_CLASS="GsaSearch";GsaSearch.AD_CLASS="GsaSearch.ad";GsaSearch.c=new Array;GsaSearch.RawCompletion=function(uds,udsa,udsb){var udsd=0;if(uds){udsd=parseInt(uds)}var udsf=GsaSearch.c[udsd];GsaSearch.c[udsd]=null;udsf.onSearchComplete(udsa,udsb)}
;GsaSearch.NEXT_PAGE="next";GsaSearch.PREV_PAGE="prev";GsaSearch.prototype.execute=function(uds,udsa){var udsb=this.p(uds,null,null,udsa);udsM(udsb)}
;GsaSearch.prototype.p=function(uds,udsa,udsb,udsd){var udsf;if(udsb==null){udsf=GSearch.AllocateCompletionMapContext(GsaSearch.c,this)}else{udsf=udsb}var udse;if(udsa==null){udse="GsaSearch.RawCompletion"}else{udse=udsa}var udsh=this.I(udse,udsf,udsd);if(uds){var udsl=uds;if(this.g){udsl=udsl+" "+this.g}udsh=udsh+"&q="+encodeURIComponent(udsl)}return udsh}
;GsaSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);udsb=udsj(uds.content,udsc.V);udsg(udsa,udsb);udsb=udsp("#",uds.visibleUrl,null,udsc.D);udsg(udsa,udsb);udsk(udsb,udsc.ab);uds.html=udsa;this.u(uds.html)}
;GsaSearch.cd="&ajax_version=1.0&client=default_frontend&site=default_collection&ie=UTF-8&oe=UTF-8";GsaSearch.prototype.I=function(uds,udsa,udsb){var udsd=this.Yc+this.A+"?ajax_callback="+uds+"&ajax_context="+udsa+"&hl="+UDS_CurrentLocale+GsaSearch.cd+"&num="+this.Fa+this.hd(udsb);return udsd}
;GsaSearch.prototype.cc=function(){this.mc++;this.Ma++}
;GsaSearch.prototype.onSearchComplete=function(uds,udsa){if(uds==null&&udsa==204){return}if(uds&&uds.results&&uds.results.length>0){this.results=new Array;for(var udsb=0;udsb<uds.results.length;udsb++){var udsd=uds.results[udsb];var udsf=new Object;udsf.GsearchResultClass=udsd.GsearchResultClass;udsf.unescapedUrl=udsd.unescapedUrl;udsf.url=udsd.url;udsf.visibleUrl=udsd.visibleUrl;udsf.title=udsd.title;udsf.titleNoFormatting=udsd.titleNoFormatting;udsf.content=udsd.snippet;this.results.push(udsf)}
this.Ja=uds.start_index;this.Aa=uds.end_index;this.ib=uds.est}else{this.results=new Array;this.Ja=0;this.Aa=0;this.ib=0}this.completionStatus=udsa;this.hashStatus=200;this.completionFailureDetails="";this.Ga=null;if(this.kb){this.Zb()}this.ac()}
;GsaSearch.prototype.setResultSetSize=function(uds){this.__super__(GSearch.prototype.setResultSetSize,uds);switch(this.Ha){case GSearch.LARGE_RESULTSET:this.Fa=8;break;case GSearch.SMALL_RESULTSET:this.Fa=4;break}}
;GsaSearch.prototype.hd=function(uds){var udsa="";if(uds&&this.completionStatus==200&&this.Ja&&this.Aa&&this.ib){if(uds==GsaSearch.NEXT_PAGE){if(this.Aa<this.ib){udsa="&start="+this.Aa}}else if(uds==GsaSearch.PREV_PAGE){var udsb;if(this.Ja>this.Fa+1){udsb=this.Ja-(this.Fa+1)}else{udsb=0}udsa="&start="+udsb}}return udsa}
;
function GnewsSearch(){GSearch.call(this);this.n="news";this.A="/GnewsSearch";this.Fd=null;this.l=false;this.xa=true;this.Y=udsG(this,GnewsSearch.prototype.ia);this.wa="gsc-newsConfig";this.e=null}
GnewsSearch.inherits(GSearch);GnewsSearch.RESULT_CLASS="GnewsSearch";GnewsSearch.c=new Array;GnewsSearch.RawCompletion=function(uds,udsa,udsb,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GnewsSearch.c[udse];GnewsSearch.c[udse]=null;udsh.onSearchComplete(udsa,udsb,udsd,udsf)}
;GnewsSearch.prototype.p=function(uds,udsa,udsb){var udsd;if(udsb==null){udsd=GSearch.AllocateCompletionMapContext(GnewsSearch.c,this)}else{udsd=udsb}var udsf;if(udsa==null){udsf="GnewsSearch.RawCompletion"}else{udsf=udsa}var udse=this.I(udsf,udsd);if(uds){var udsh=uds;if(this.g){udsh=udsh+" "+this.g}if(this.h){udsh=udsh+" source:"+this.h}udse=udse+"&q="+encodeURIComponent(udsh);if(this.l){udse=udse+"&scoring=d"}}return udse}
;GnewsSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);udsb=udsj(uds.publisher,udsc.Qb);udsg(udsa,udsb);var udsd=uds.location.split(",");if(udsd.length>1){var udsf=", "+udsd[udsd.length-1];udsb=udsj(udsf,udsc.Qc);udsg(udsa,udsb)}var udse=new Date(uds.publishedDate);udsb=udsj(" - "+this.Ba(udse),udsc.Pb);udsg(udsa,udsb);var udse=new Date(uds.publishedDate);udsb=udsj(
" - "+this.bc(udse),udsc.Sb);udsg(udsa,udsb);udsb=udsj(uds.content,udsc.V);udsg(udsa,udsb);if(uds.clusterUrl&&uds.clusterUrl!=""){udsb=udsp(uds.clusterUrl,udsi["related-articles"],this.d(),udsc.Lc);udsg(udsa,udsb)}uds.html=udsa;this.u(uds.html)}
;GnewsSearch.prototype.setSiteRestriction=function(uds){if(uds==null||uds==""){this.h=null}else{this.h=uds.replace(/\s/g,"_")}}
;GnewsSearch.prototype.setResultOrder=function(uds){if(uds==GSearch.ORDER_BY_DATE){this.l=true}else if(uds==GSearch.ORDER_BY_RELEVANCE){this.l=false}else{this.l=false}}
;GnewsSearch.prototype.ia=function(uds,udsa){if(udsa){if(this.e==null){var udsb=udsn(udsc.Ta);this.e=udsL(null,"0",this.l?true:false,udsc.Sa);udsg(udsb,this.e);udsg(udsb,udsj(udsi["sort-by-date"],udsc.Ra));var udsd=udsn(udsc.ca);udsg(udsd,udsJ(udsi["close"],udsc.ca));udsg(udsb,udsd);udsg(uds,udsb);this.e.focus()}else{this.e.checked=this.l?true:false;this.e.focus()}}else{if(this.e){if(this.e.checked){this.setResultOrder(GSearch.ORDER_BY_DATE)}else{this.setResultOrder(GSearch.ORDER_BY_RELEVANCE)}}}
}
;
function GimageSearch(){GSearch.call(this);this.gc=4;this.n="image";this.A="/GimageSearch"}
GimageSearch.inherits(GSearch);GimageSearch.RESULT_CLASS="GimageSearch";GimageSearch.AD_CLASS="GwebSearch.ad";GimageSearch.c=new Array;GimageSearch.RawCompletion=function(uds,udsa,udsb,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GimageSearch.c[udse];GimageSearch.c[udse]=null;udsh.onSearchComplete(udsa,udsb,udsd,udsf)}
;GimageSearch.prototype.p=function(uds,udsa,udsb){var udsd;if(udsb==null){udsd=GSearch.AllocateCompletionMapContext(GimageSearch.c,this)}else{udsd=udsb}var udsf;if(udsa==null){udsf="GimageSearch.RawCompletion"}else{udsf=udsa}var udse=this.I(udsf,udsd);if(uds){var udsh=uds;if(this.g){udsh=udsh+" "+this.g}udse=udse+"&q="+encodeURIComponent(udsh)}return udse}
;GimageSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb=GSearch.scaleImage(uds.tbWidth,uds.tbHeight,this.N);var udsd=udsF(uds.tbUrl,udsb.width,udsb.height,udsc.T);var udsf=udsR(uds.originalContextUrl,null,this.d(),udsc.T);udsz(udsf,udsc.T);udsg(udsf,udsd);udsg(udsa,udsf);var udse;udse=udsp(uds.originalContextUrl,uds.title,this.d(),udsc.s);udsg(udsa,udse);var udsh=uds.width+" x "+uds.height+" px";udse=udsj(udsh,udsc.Tc);udsg(udsa,udse)
;udse=udsp("#",uds.visibleUrl,null,udsc.D);udsg(udsa,udse);uds.html=udsa;this.u(uds.html)}
;
function GlocalSearch(){GSearch.call(this);this.m=null;this.z="San Francisco, CA";this.v=null;this.ha=true;this.X=false;if(window.location&&window.location.host&&window.location.host!=""){this.mb=uds2(window.location.host)}else{this.mb=".com"}this.xa=true;this.Y=udsG(this,GlocalSearch.prototype.ia);this.wa=udsc.xc;this.n="local";this.A="/GlocalSearch";this.f=null;this.W=null}
GlocalSearch.inherits(GSearch);GlocalSearch.RESULT_CLASS="GlocalSearch";GlocalSearch.AD_CLASS="GlocalSearch.ad";GlocalSearch.c=new Array;GlocalSearch.RawCompletion=function(uds,udsa,udsb,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GlocalSearch.c[udse];GlocalSearch.c[udse]=null;udsh.onSearchComplete(udsa,udsb,udsd,udsf)}
;GlocalSearch.prototype.p=function(uds,udsa,udsb){var udsd;if(udsb==null){udsd=GSearch.AllocateCompletionMapContext(GlocalSearch.c,this)}else{udsd=udsb}var udsf;if(udsa==null){udsf="GlocalSearch.RawCompletion"}else{udsf=udsa}var udse=this.I(udsf,udsd);if(uds){udse=udse+"&q="+encodeURIComponent(uds)}var udsh;if(this.m){var udsl;var udsm;var udso;if(this.ha){udsl=this.m.getCenterLatLng();udsm=this.m.getSpanLatLng();udso=this.m.getZoomLevel();if(udso<0){udso=0}else if(udso>10){udso=10}udsh="&sll="+udsl.y+
","+udsl.x;udsh+="&sspn="+udsm.height+","+udsm.width;udsh+="&z="+udso;udsh+=GlocalSearch.centerToGll(udsl.y,udsl.x);udse+=udsh}else{udsl=this.m.getCenter();udsm=this.m.getBounds().toSpan().toUrlValue();udso=17-this.m.getZoom();if(udso<0){udso=0}else if(udso>10){udso=10}udsh="&sll="+udsl.y+","+udsl.x;udsh+="&sspn="+udsm;udsh+="&z="+udso;udsh+=GlocalSearch.centerToGll(udsl.y,udsl.x);udse+=udsh}}else if(this.v){udsh="&sll="+this.v.y+","+this.v.x;udsh+="&z=6";udsh+=GlocalSearch.centerToGll(this.v.y,this.v.x)
;udse+=udsh}else if(this.z){udsh="&near="+escape(this.z);udse+=udsh}if(this.X){udse+="&nogeocode=t"}return udse}
;GlocalSearch.rd=3.141592653589;GlocalSearch.dd=6367000;GlocalSearch.Ad=16093;GlocalSearch.centerToGll=function(uds,udsa){var udsb=GlocalSearch.Ad;var udsd=2*udsb/GlocalSearch.dd*2*GlocalSearch.rd;var udsf=uds-udsd;var udse=udsa-udsd;var udsh=uds+udsd;var udsl=udsa+udsd;var udsm="&gll="+parseInt(udsf*1000000)+","+parseInt(udse*1000000)+","+parseInt(udsh*1000000)+","+parseInt(udsl*1000000)+"&llsep=500,500";return udsm}
;GlocalSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.url,uds.title,this.d(),udsc.s);udsg(udsa,udsb);var udsd=udsn(udsc.Lb);udsb=udsj(uds.streetAddress,udsc.Tb);udsg(udsd,udsb);var udsf="";if(uds.city!=""){udsf=uds.city;if(uds.region!=""){udsf+=", "}}udsb=udsj(udsf,udsc.Mb);udsg(udsd,udsb);udsb=udsj(uds.region,udsc.Rb);udsg(udsd,udsb);udsb=udsj(uds.country,udsc.Mc);udsg(udsd,udsb);udsg(udsa,udsd);if(uds.phoneNumbers&&
uds.phoneNumbers.length){var udse=null;var udsh=null;var udsl=uds.phoneNumbers[0];var udsm;for(var udso=0;udso<uds.phoneNumbers.length;udso++){udsm=uds.phoneNumbers[udso];if(udsm.type=="main"){udse=udsm;break}if(udsm.type==""||udsm.type=="mobile"&&udsh==null){udsh=udsm}}if(udse){udsm=udse}else if(udsh){udsm=udsh}else{udsm=udsl}udsb=udsj(udsm.number,udsc.Ob);udsg(udsa,udsb)}if(uds.ddUrl&&uds.ddUrl!=""){udsb=udsp(uds.ddUrl,udsi["directions"],this.d(),udsc.Nc);udsg(udsa,udsb)}uds.html=udsa;this.u(uds.html)
}
;GlocalSearch.prototype.ea=function(uds){if(uds.html){delete uds.html}var udsa=udsn(udsc.Pc);udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);if(uds.content1){udsb=udsj(uds.content1,udsc.U);udsg(udsa,udsb)}if(uds.content2){udsb=udsj(uds.content2,udsc.U);udsg(udsa,udsb)}if(uds.phoneNumber){udsb=udsj(uds.phoneNumber,udsc.Ob);udsg(udsa,udsb)}udsb=udsp("#",uds.visibleUrl,null,udsc.D);var udsd=udsF(uds.impressionUrl,12,12,udsc.$a);udsg(udsb,udsd);udsg(udsa,
udsb);if(uds.streetAddress&&uds.city&&uds.region){var udsf=udsn(udsc.Lb);var udse=uds.streetAddress+", ";udsb=udsj(udse,udsc.Tb);udsg(udsf,udsb);udse=uds.city+", ";udsb=udsj(udse,udsc.Mb);udsg(udsf,udsb);udse=uds.region;udsb=udsj(udse,udsc.Rb);udsg(udsf,udsb);udsg(udsa,udsf)}uds.html=udsa;this.u(uds.html)}
;GlocalSearch.prototype.setCenterPoint=function(uds){if(uds.centerAndZoom){this.ha=true;this.m=uds;this.v=null;this.z="";if(this.f){this.f=null}}else if(uds.setCenter){this.ha=false;this.m=uds;this.v=null;this.z="";if(this.f){this.f=null}}else if(uds.x&&uds.y){this.ha=true;this.v=uds;this.m=null;this.z="";if(this.f){this.f=null}}else{if(uds!=null&&uds!=""){this.ha=true;this.m=null;this.z=uds;this.v=null;if(this.f){this.f=null}var udsa=new GlocalSearch;udsa.setSearchCompleteCallback(this,this.Xc,[
udsa,uds]);udsa.execute(uds)}}}
;GlocalSearch.prototype.Xc=function(uds,udsa){if(uds.results&&uds.results.length){if(window.GMap){var udsb=new GPoint(parseFloat(uds.results[0].lng),parseFloat(uds.results[0].lat));this.v=udsb}else{this.v=null}this.z=udsa;this.xa=true;this.m=null}}
;GlocalSearch.prototype.ia=function(uds,udsa){if(udsa){if(this.f==null){var udsb=null;if(this.m==null){var udsd=udsn(udsc.Ta);this.f=udsQ(null,udsc.tc,this.z==""?null:this.z);udsg(udsd,udsj(udsi["search-location"],udsc.sc));udsg(udsd,this.f);udsg(uds,udsd);udsb=this.f}udsd=udsn("gsc-configSetting");this.W=udsL(null,"0",this.X?true:false,udsc.Sa);udsg(udsd,this.W);udsg(udsd,udsj(udsi["disable-address-lookup"],udsc.Ra));if(udsb==null){udsb=this.W}var udsf=udsj(null,"gsc-configSettingSubmit");udsg(udsf,
udsJ(udsi["close"],udsc.ca));udsg(udsd,udsf);udsg(uds,udsd);udsb.focus()}}else{if(this.f){if(this.f.value){this.z=this.f.value;this.setCenterPoint(this.z)}this.f=null}if(this.W){if(this.W.checked){this.X=true}else{this.X=false}this.W=null}udsB(uds)}}
;GlocalSearch.ADDRESS_LOOKUP_DISABLED="disabled";GlocalSearch.ADDRESS_LOOKUP_ENABLED="enabled";GlocalSearch.prototype.setAddressLookupMode=function(uds){if(uds==GlocalSearch.ADDRESS_LOOKUP_DISABLED){this.X=true}else if(uds==GlocalSearch.ADDRESS_LOOKUP_ENABLED){this.X=false}}
;
function GblogSearch(){GSearch.call(this);this.n="blog";this.A="/GblogSearch";this.h=null;this.l=false;this.xa=true;this.Y=udsG(this,GblogSearch.prototype.ia);this.wa="gsc-blogConfig";this.e=null}
GblogSearch.inherits(GSearch);GblogSearch.RESULT_CLASS="GblogSearch";GblogSearch.AD_CLASS="GwebSearch.ad";GblogSearch.c=new Array;GblogSearch.RawCompletion=function(uds,udsa,udsb,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GblogSearch.c[udse];GblogSearch.c[udse]=null;udsh.onSearchComplete(udsa,udsb,udsd,udsf)}
;GblogSearch.prototype.p=function(uds,udsa,udsb){var udsd;if(udsb==null){udsd=GSearch.AllocateCompletionMapContext(GblogSearch.c,this)}else{udsd=udsb}var udsf;if(udsa==null){udsf="GblogSearch.RawCompletion"}else{udsf=udsa}var udse=this.I(udsf,udsd);if(uds){var udsh=uds;if(this.g){udsh=udsh+" "+this.g}if(this.h){udsh=udsh+" blogurl:"+this.h}udse=udse+"&q="+encodeURIComponent(udsh);if(this.l){udse=udse+"&scoring=d"}}return udse}
;GblogSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb;udsb=udsp(uds.postUrl,uds.title,this.d(),udsc.s);udsg(udsa,udsb);var udsd=new Date(uds.publishedDate);udsb=udsj(this.Ba(udsd),udsc.Pb);udsg(udsa,udsb);udsd=new Date(uds.publishedDate);udsb=udsj(this.bc(udsd),udsc.Sb);udsg(udsa,udsb);udsb=udsj(uds.content,udsc.V);udsg(udsa,udsb);udsb=udsp(uds.blogUrl,uds.blogUrl,this.d(),udsc.D);udsg(udsa,udsb);uds.html=udsa;this.u(uds.html)}
;GblogSearch.prototype.setSiteRestriction=function(uds){if(uds==null||uds==""){this.h=null}else{this.h=uds}}
;GblogSearch.prototype.setResultOrder=function(uds){if(uds==GSearch.ORDER_BY_DATE){this.l=true}else if(uds==GSearch.ORDER_BY_RELEVANCE){this.l=false}else{this.l=false}}
;GblogSearch.prototype.ia=function(uds,udsa){if(udsa){if(this.e==null){var udsb=udsn(udsc.Ta);this.e=udsL(null,"0",this.l?true:false,udsc.Sa);udsg(udsb,this.e);udsg(udsb,udsj(udsi["sort-by-date"],udsc.Ra));var udsd=udsn(udsc.ca);udsg(udsd,udsJ(udsi["close"],udsc.ca));udsg(udsb,udsd);udsg(uds,udsb);this.e.focus()}else{this.e.checked=this.l?true:false;this.e.focus()}}else{if(this.e){if(this.e.checked){this.setResultOrder(GSearch.ORDER_BY_DATE)}else{this.setResultOrder(GSearch.ORDER_BY_RELEVANCE)}}}
}
;
function GvideoSearch(){GSearch.call(this);this.n="video";this.A="/GvideoSearch"}
GvideoSearch.inherits(GSearch);GvideoSearch.RESULT_CLASS="GvideoSearch";GvideoSearch.AD_CLASS="GwebSearch.ad";GvideoSearch.c=new Array;GvideoSearch.RawCompletion=function(uds,udsa,udsb,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GvideoSearch.c[udse];GvideoSearch.c[udse]=null;udsh.onSearchComplete(udsa,udsb,udsd,udsf)}
;GvideoSearch.prototype.p=function(uds,udsa,udsb){var udsd;if(udsb==null){udsd=GSearch.AllocateCompletionMapContext(GvideoSearch.c,this)}else{udsd=udsb}var udsf;if(udsa==null){udsf="GvideoSearch.RawCompletion"}else{udsf=udsa}var udse=this.I(udsf,udsd);if(uds){var udsh=uds;if(this.g){udsh=udsh+" "+this.g}udse=udse+"&q="+encodeURIComponent(udsh)}return udse}
;GvideoSearch.prototype.G=function(uds){if(uds.html){delete uds.html}var udsa=udsn(this.L());udsk(udsa,udsc.r);var udsb=udsn(udsc.Nb);var udsd=udsn(udsc.Ub);var udsf=udsE();var udse=udsA(udsf,0);var udsh=udsu(udse,udsc.Nb);var udsl=udsu(udse,udsc.Ub);udsg(udsh,udsb);udsg(udsl,udsd);udsg(udsa,udsf);var udsm=GSearch.scaleImage(uds.tbWidth,uds.tbHeight,this.N);var udso=udsF(uds.tbUrl,udsm.width,udsm.height,udsc.T);var udsq=udsR(uds.url,null,this.d(),udsc.T);udsz(udsq,udsc.T);udsg(udsq,udso);udsg(udsb,
udsq);var udst;udst=udsp(uds.url,uds.title,this.d(),udsc.s);udsg(udsd,udst);var udsv=udsj(uds.content,udsc.V);if(udsK()){udsv.style.height="2.6em"}udsg(udsd,udsv);var udsy=new Date(uds.published);udst=udsj(this.Ba(udsy),udsc.Rc);udsg(udsd,udst);udst=udsp("http://video.google.com",uds.publisher,this.d(),udsc.Qb);udsg(udsd,udst);uds.html=udsa;this.u(uds.html)}
;
function GsearcherOptions(){this.E=GSearchControl.EXPAND_MODE_PARTIAL;this.hc=this.E;this.root=null;this.N={width:54,height:40};this.ga=true;this.Oa={width:100,height:75}}
GsearcherOptions.prototype.setExpandMode=function(uds){switch(uds){case GSearchControl.EXPAND_MODE_CLOSED:case GSearchControl.EXPAND_MODE_OPEN:case GSearchControl.EXPAND_MODE_PARTIAL:this.E=uds;break;default:this.E=GSearchControl.EXPAND_MODE_PARTIAL;break}this.hc=this.E}
;GsearcherOptions.prototype.setRoot=function(uds){udsB(uds);this.root=uds}
;GsearcherOptions.prototype.setImageResultsTbHeight=function(uds){if(uds>100){uds=100}this.N.height=uds;this.N.width=Math.round(uds*1.33)}
;GsearcherOptions.prototype.setVideoResultsTbHeight=function(uds){if(uds>100){uds=100}this.Oa.height=uds;this.Oa.width=Math.round(uds*1.33)}
;GsearcherOptions.prototype.setImageResultsHorizontal=function(){this.ga=true}
;GsearcherOptions.prototype.setImageResultsVertical=function(){this.ga=false}
;function GdrawOptions(){this.input=null;this.lc=null;this.w=GSearchControl.DRAW_MODE_LINEAR}
GdrawOptions.prototype.setInput=function(uds){this.input=uds}
;GdrawOptions.prototype.setSearchFormRoot=function(uds){this.lc=uds}
;GdrawOptions.prototype.setDrawMode=function(uds){if(uds==GSearchControl.DRAW_MODE_LINEAR||uds==GSearchControl.DRAW_MODE_TABBED){this.w=uds}else{this.w=GSearchControl.DRAW_MODE_LINEAR}}
;function udsr(uds,udsa,udsb){this.b=udsb;this.jb=false;this.fb=false;this.gs=uds;this.j=null;this.vd=udss(udsa,GSearchControl.prototype.qd,[this]);this.yd=udss(udsa,GSearchControl.prototype.pb,[this,udsr.SRC_ONE]);this.xd=udss(udsa,GSearchControl.prototype.pb,[this,udsr.SRC_MORE]);this.wd=udss(udsa,GSearchControl.prototype.pb,[this,udsr.SRC_ALL]);this.ud=udss(udsa,GSearchControl.prototype.pd,[this]);this.td=udss(udsa,GSearchControl.prototype.md,[this]);this.gs.setSearchCompleteCallback(udsa,GSearchControl.prototype.onSearchComplete,
[this]);this.gs.setResultSetSize(udsa.resultSetSize);this.gs.setLinkTarget(udsa.O);this.root=null;this.Na=null;this.$=null;this.rb=null;this.J=null;this.Z=null;this.q=null;this.Ca=true}
GSearchControl.TIMEOUT_SHORT=350;GSearchControl.TIMEOUT_MEDIUM=500;GSearchControl.TIMEOUT_LONG=700;GSearchControl.EXPAND_MODE_CLOSED=1;GSearchControl.EXPAND_MODE_OPEN=2;GSearchControl.EXPAND_MODE_PARTIAL=3;GSearchControl.DRAW_MODE_LINEAR=1;GSearchControl.DRAW_MODE_TABBED=2;function GSearchControl(uds){if(!UDS_KeyVerified){if(GSearchControl.keyCheck()){UDS_KeyVerified=true}else{return}}this.resultSetSize=GSearch.SMALL_RESULTSET;this.w=GSearchControl.DRAW_MODE_LINEAR;this.root=null;this.Ia=null;this.input=
null;this.La=GSearchControl.TIMEOUT_MEDIUM;this.kd=udss(this,GSearchControl.prototype.nd,[null]);this.ld=udss(this,GSearchControl.prototype.od,[null]);this.ja=null;this.tb=null;this.sb=null;this.aa=null;this.dc=false;this.va=false;this.O=GSearch.LINK_TARGET_BLANK;this.Ea=udsi["copy"];this.a=new Array;this.bb=new Array;var udsa;if(uds){for(var udsb=0;udsb<uds.length;udsb++){udsa=new udsr(uds[udsb],this,false);this.a.push(udsa)}}}
try{GSearchControl.appPath=window.location.href}catch(uds4){GSearchControl.appPath=null}GSearchControl.keyCheck=function(){var uds=true;if(uds3(window.location.host)){return true}if(UDS_LoadFailure){if(UDS_OriginalAppPath&&GSearchControl.appPath){if(GSearchControl.appPath==UDS_OriginalAppPath){alert("AJAX Search API Load Failure: invalid api key supplied");uds=false}else{UDS_LoadFailure=false;uds=true}}}UDS_KeyVerified=true;UDS_LoadFailure=false;return uds}
;GSearchControl.prototype.addSearcher=function(uds,udsa){if(!udsa){udsa=new GsearcherOptions}if(uds.n=="ad"){this.bb.push(uds)}else{var udsb=new udsr(uds,this,udsa);this.a.push(udsb)}}
;GSearchControl.prototype.draw=function(uds,udsa){var udsb=null;var udsd=null;if(udsa){if(udsa.w){this.w=udsa.w;udsb=udsa.input;udsd=udsa.lc}else{this.w=GSearchControl.DRAW_MODE_LINEAR}}else{this.w=GSearchControl.DRAW_MODE_LINEAR}this.root=udsn(udsc.uc);if(udsb!=null){this.input=udsb;this.input.onkeyup=this.kd;this.input.onpaste=this.ld}else{if(udsd==null){udsd=this.root}var udsf=new GSearchForm(true,udsd);udsf.setOnSubmitCallback(this,GSearchControl.prototype.submit);udsf.setOnClearCallback(this,
GSearchControl.prototype.clearAllResults);this.input=udsf.input}this.ka=udsn(udsc.R);if(this.w==GSearchControl.DRAW_MODE_TABBED){this.M=udsn(udsc.Jb);udsg(this.root,this.M);this.i=new Array;this.t=0;for(var udse=0;udse<this.a.length;udse++){var udsh=new Object;udsh.H=udsj(this.a[udse].gs.jd());udsh.K=null;udsh.H.onclick=udss(this,GSearchControl.prototype.zd,[udse]);this.i[udse]=udsh;udsg(this.M,udsh.H);this.a[udse].b.setExpandMode(GSearchControl.EXPAND_MODE_OPEN)}}udsg(this.root,this.ka);for(var udse=
0;udse<this.a.length;udse++){if(this.a[udse].b.root){this.a[udse].Ca=false;this.a[udse].root=this.a[udse].b.root;udsk(this.a[udse].root,udsc.Va);udsx(this.a[udse].root,udsc.S);udsk(this.a[udse].root,udsc.R)}else{this.a[udse].root=udsn(udsc.Va)}if(this.a[udse].gs.ma){var udsl=udsc.Va+"-"+this.a[udse].gs.ma;udsk(this.a[udse].root,udsl)}if(this.w==GSearchControl.DRAW_MODE_TABBED){this.i[udse].K=this.a[udse].root}var udsm=udsE(null,null,udsc.Cc);var udso=udsA(udsm,0);this.a[udse].Q=udsu(udso,udsc.Jc)
;var udsq=udsu(udso,udsc.qc);this.a[udse].Na=udsj("",udsc.Kc);udsg(this.a[udse].Q,this.a[udse].Na);var udst=udsj(this.a[udse].gs.gd(),udsc.Ic);udsg(this.a[udse].Na,udst);this.a[udse].$=udsj("",udsc.Fc);udsg(this.a[udse].Q,this.a[udse].$);var udsv=udsj();var udsy=udsj(udsi["blank"],udsc.Bc);var udsC=udsj(udsi["blank"],udsc.Ac);var udsD=udsj(udsi["blank"],udsc.zc);udsy.title=udsi["show-one-result"];udsC.title=udsi["show-more-results"];udsD.title=udsi["show-all-results"];udsg(udsv,udsy);udsg(udsv,udsC)
;udsg(udsv,udsD);udsy.onclick=this.a[udse].yd;udsC.onclick=this.a[udse].xd;udsD.onclick=this.a[udse].wd;this.a[udse].rb=udsv;this.a[udse].ub(udsr.SRC_INIT);udsg(this.a[udse].Q,this.a[udse].rb);this.a[udse].Na.onclick=this.a[udse].vd;if(this.a[udse].gs.Y){this.a[udse].k=udsS("",udsc.rc);udsV(this.a[udse].k,udsi["blank"]);udsk(this.a[udse].k,udsc.da);udsg(udsq,this.a[udse].k);this.a[udse].k.onclick=this.a[udse].ud;this.a[udse].k.title=udsi["settings"];this.a[udse].J=udsn(udsc.Cb);udsk(this.a[udse].J,
this.a[udse].gs.wa);this.a[udse].Z=udsP(udsc.Cb);udsk(this.a[udse].Z,this.a[udse].gs.wa);this.a[udse].Z.onsubmit=this.a[udse].td;udsg(this.a[udse].J,this.a[udse].Z);this.a[udse].J.style.display="none"}this.a[udse].q=udsn(udsc.Dc);udsk(this.a[udse].q,this.a[udse].gs.lb());if(this.a[udse].b.root==null){udsg(this.ka,this.a[udse].root)}udsg(this.a[udse].root,udsm);if(this.a[udse].J){udsg(this.a[udse].root,this.a[udse].J)}udsg(this.a[udse].root,this.a[udse].q)}if(this.w==GSearchControl.DRAW_MODE_TABBED)
{for(var udse=0;udse<this.a.length;udse++){udsk(this.i[udse].H,udsc.Hc);udsk(this.i[udse].K,udsc.Gc);if(udse==this.t){udsk(this.i[udse].H,udsc.Ya);udsk(this.i[udse].K,udsc.Wa)}else{udsk(this.i[udse].H,udsc.Za);udsk(this.i[udse].K,udsc.Xa)}}}if(uds){udsU(uds,this.root);var udsY=this.fd();if(udsY&&udsY<300){this.dc=true;udsk(this.root,udsc.yc)}}}
;GSearchControl.prototype.setTimeoutInterval=function(uds){switch(uds){case GSearchControl.TIMEOUT_SHORT:case GSearchControl.TIMEOUT_MEDIUM:case GSearchControl.TIMEOUT_LONG:this.La=uds;break;default:this.La=GSearchControl.TIMEOUT_MEDIUM;break}}
;GSearchControl.KEEP_LABEL_SAVE="save";GSearchControl.KEEP_LABEL_KEEP="keep";GSearchControl.KEEP_LABEL_INCLUDE="include";GSearchControl.KEEP_LABEL_COPY="copy";GSearchControl.KEEP_LABEL_BLANK="blank";GSearchControl.prototype.setOnKeepCallback=function(uds,udsa,udsb){if(udsb){switch(udsb){case GSearchControl.KEEP_LABEL_SAVE:case GSearchControl.KEEP_LABEL_KEEP:case GSearchControl.KEEP_LABEL_INCLUDE:case GSearchControl.KEEP_LABEL_COPY:case GSearchControl.KEEP_LABEL_BLANK:this.Ea=udsi[udsb];break;default:
this.Ea=udsb;break}}this.ja=udsG(uds,udsa)}
;GSearchControl.prototype.zd=function(uds){if(this.t==uds){return}udsx(this.i[this.t].H,udsc.Ya);udsx(this.i[this.t].K,udsc.Wa);udsk(this.i[this.t].H,udsc.Za);udsk(this.i[this.t].K,udsc.Xa);this.t=uds;udsk(this.i[this.t].H,udsc.Ya);udsk(this.i[this.t].K,udsc.Wa);udsx(this.i[this.t].H,udsc.Za);udsx(this.i[this.t].K,udsc.Xa)}
;GSearchControl.prototype.submit=function(){if(this.input.value.length){this.execute()}else{this.clearAllResults()}return false}
;GSearchControl.prototype.execute=function(uds){var udsa;if(uds){udsa=uds;this.input.value=udsa}else{udsa=this.input.value}if(udsa.length){this.va=false;udsz(this.ka,udsc.S);if(this.M){udsz(this.M,udsc.Kb)}for(var udsb=0;udsb<this.a.length;udsb++){if(!this.a[udsb].Ca){udsx(this.a[udsb].root,udsc.R);udsk(this.a[udsb].root,udsc.S)}if(this.tb){this.tb(this,this.a[udsb].gs,udsa)}this.a[udsb].gs.execute(udsa)}for(var udsb=0;udsb<this.bb.length;udsb++){this.bb[udsb].execute(udsa)}}}
;GSearchControl.prototype.nd=function(){var uds=this.input.value;if(uds&&uds!=""){if(this.aa){clearTimeout(this.aa)}this.aa=setTimeout(udss(this,GSearchControl.prototype.execute,[null]),this.La)}}
;GSearchControl.prototype.od=function(){if(this.aa){clearTimeout(this.aa)}this.aa=setTimeout(udss(this,GSearchControl.prototype.execute,[null]),this.La)}
;GSearchControl.prototype.setResultSetSize=function(uds){var udsa=true;switch(uds){case GSearch.LARGE_RESULTSET:this.resultSetSize=uds;udsa=true;break;default:case GSearch.SMALL_RESULTSET:this.resultSetSize=GSearch.SMALL_RESULTSET;udsa=false;break}for(var udsb=0;udsb<this.a.length;udsb++){this.a[udsb].gs.setResultSetSize(uds)}}
;GSearchControl.prototype.setLinkTarget=function(uds){this.O=uds;for(var udsa=0;udsa<this.a.length;udsa++){this.a[udsa].gs.setLinkTarget(uds)}}
;GSearchControl.prototype.qd=function(uds){if(uds.jb){this.P(uds,false)}else{this.P(uds,true)}}
;GSearchControl.prototype.P=function(uds,udsa,udsb){if(!udsa){udsx(uds.Q,udsc.ta);udsk(uds.Q,udsc.da);uds.jb=false;uds.q.style.display="none";if(udsb){var udsd="(0)";uds.$.innerHTML=udsd}else{var udsd="("+(uds.gs.results.length+uds.gs.adResults.length)+")";uds.$.innerHTML=udsd}}else{udsx(uds.Q,udsc.da);udsk(uds.Q,udsc.ta);uds.jb=true;uds.q.style.display="block"}}
;GSearchControl.prototype.md=function(uds){this.la(uds,false,true);return false}
;GSearchControl.prototype.pd=function(uds){if(uds.gs.xa){if(uds.fb){this.la(uds,false,true)}else{this.la(uds,true,true)}}}
;GSearchControl.prototype.la=function(uds,udsa,udsb){if(!udsa){if(uds.k){udsx(uds.k,udsc.ta);udsk(uds.k,udsc.da);uds.k.innerHTML=udsi["blank"];uds.fb=false;uds.gs.Y(uds.Z,false);uds.J.style.display="none";if(udsb){this.execute()}}}else{if(uds.k){udsk(uds.k,udsc.ta);udsx(uds.k,udsc.da);uds.k.innerHTML=udsi["close"];uds.fb=true;uds.J.style.display="block";uds.gs.Y(uds.Z,true)}}}
;GSearchControl.prototype.fc=function(uds,udsa){if(this.ja){udsa.gs.cc();this.ja(uds)}}
;GSearchControl.prototype.cancelSearch=function(){this.va=true}
;GSearchControl.prototype.clearAllResults=function(){this.input.value="";udsz(this.ka,udsc.R);if(this.M){udsz(this.M,udsc.Jb)}for(var uds=0;uds<this.a.length;uds++){if(!this.a[uds].Ca){udsx(this.a[uds].root,udsc.S);udsk(this.a[uds].root,udsc.R)}var udsa=this.a[uds];udsB(udsa.q);udsa.j=null;this.P(udsa,false,true);this.la(udsa,false,false)}}
;GSearchControl.prototype.onSearchComplete=function(uds){var udsa;var udsb;var udsd=false;var udsf;if(this.va){return}udsB(uds.q);uds.j=null;this.P(uds,false,true);this.la(uds,false,false);uds.ub(udsr.SRC_INIT);for(var udsb=0;udsb<uds.gs.results.length;udsb++){udsa=uds.gs.results[udsb];if(!udsa.html){uds.gs.G(udsa)}if(udsa.html){udsd=true;udsf=udsn(uds.gs.lb());udsk(udsf,udsc.Ua);if(uds.gs.ma){var udse=udsc.Ua+"-"+uds.gs.ma;udsk(udsf,udse)}var udsh=udsa.html.cloneNode(true);if(udsa.GsearchResultClass==
GimageSearch.RESULT_CLASS){if(uds.b.ga){udsk(udsf,"horizontal")}else{udsk(udsf,"vertical")}if(uds.b.N){var udsl=udsh.getElementsByTagName("img");for(var udsm=0;udsm<udsl.length;udsm++){GSearch.scaleImage(udsa.tbWidth,udsa.tbHeight,uds.b.N,udsl[udsm])}}}else if(udsa.GsearchResultClass==GvideoSearch.RESULT_CLASS){if(uds.b.Oa){var udsl=udsh.getElementsByTagName("img");for(var udsm=0;udsm<udsl.length;udsm++){GSearch.scaleImage(udsa.tbWidth,udsa.tbHeight,uds.b.Oa,udsl[udsm])}}}udsg(udsf,udsh);if(this.ja)
{var udso=this.Ea;if(udsa.GsearchResultClass==GimageSearch.RESULT_CLASS&&uds.b.ga){udso=udsi["blank"]}var udsq=udsj("",udsc.Eb);udsV(udsq,udso);udsg(udsf,udsq);udsq.onclick=udss(this,GSearchControl.prototype.fc,[udsa,uds])}var udst=uds.gs.gc;if(udsa.GsearchResultClass==GimageSearch.RESULT_CLASS){if(uds.b.ga==false){udst=1}else{if(this.dc){udst=2}}}if(udsb>=udst){if(!uds.j){uds.j=udsn(udsc.wc);udsg(uds.q,uds.j);if(uds.b.E==GSearchControl.EXPAND_MODE_PARTIAL){uds.j.style.display="none"}}udsg(uds.j,
udsf)}else{udsg(uds.q,udsf)}}}var udsv=uds.j?uds.j:uds.q;if(uds.gs.adResults.length){var udsy=udsn(udsc.nc);for(var udsb=0;udsb<uds.gs.adResults.length;udsb++){if(udsb==0){var udsf=udsj(udsi["sponsored-links"],udsc.Oc);udsg(udsy,udsf)}udsa=uds.gs.adResults[udsb];if(!udsa.html){uds.gs.ea(udsa)}if(udsa.html){udsd=true;udsf=udsn(uds.gs.lb());udsk(udsf,udsc.Ua);udsg(udsf,udsa.html.cloneNode(true));if(this.ja){var udsq=udsj(this.Ea,udsc.Eb);udsg(udsf,udsq);udsq.onclick=udss(this,GSearchControl.prototype.fc,
[udsa,uds])}udsg(udsy,udsf)}}udsg(udsv,udsy)}if(!udsd){uds.$.innerHTML="(0)";uds.q.innerHTML="";this.P(uds,false)}else{var udsC;var udsC="("+(uds.gs.results.length+uds.gs.adResults.length)+")";uds.$.innerHTML=udsC;if(uds.b.E==GSearchControl.EXPAND_MODE_PARTIAL||uds.b.E==GSearchControl.EXPAND_MODE_OPEN){this.P(uds,true)}else{this.P(uds,false)}var udsD=uds.gs.getAttribution(true);if(udsD){udsg(uds.q,udsD)}}uds.b.E=uds.b.hc;if(this.sb){this.sb(this,uds.gs)}}
;GSearchControl.Yb={border:"border",borderColor:"border-color",borderStyle:"border-style",borderWidth:"border-width",borderTop:"border-top",borderTopColor:"border-top-color",borderTopStyle:"border-top-style",borderTopWidth:"border-top-width",borderRight:"border-right",borderRightColor:"border-right-color",borderRightStyle:"border-right-style",borderRightWidth:"border-right-width",borderBottom:"border-bottom",borderBottomColor:"border-bottom-color",borderBottomStyle:"border-bottom-style",borderBottomWidth:
"border-bottom-width",borderLeft:"border-left",borderLeftColor:"border-left-color",borderLeftStyle:"border-left-style",borderLeftWidth:"border-left-width",color:"color",cssFloat:"float",styleFloat:"float",clear:"clear",cursor:"cursor",display:"display",font:"font",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",fontWeight:"font-weight",height:"height",margin:"margin",marginTop:"margin-top",marginRight:"margin-right",marginBottom:"margin-bottom",marginLeft:"margin-left",overflow:
"overflow",padding:"padding",paddingTop:"padding-top",paddingRight:"padding-right",paddingBottom:"padding-bottom",paddingLeft:"padding-left",textAlign:"text-align",textDecoration:"text-decoration",textTransform:"text-transform",verticalAlign:"vertical-align",visibility:"visibility",width:"width"};GSearchControl.inlineCurrentStyle=function(uds,udsa){if(udsZ()){alert("GSearchControl.inlineCurrentStyle is not supported on Safari");return}var udsb=true;if(udsa){udsb=udsa}if(udsb){for(var udsd=0;udsd<
uds.childNodes.length;udsd++){GSearchControl.inlineCurrentStyle(uds.childNodes[udsd],true)}}if(uds.nodeType==1){var udsf;var udse;var udsh=false;var udsl=false;if(window.getComputedStyle){udsf=window.getComputedStyle(uds,null);udse=true;udsh=true}else if(uds.currentStyle){udsf=uds.currentStyle;udse=false;udsh=true}if(udsh){for(var udsm in udsf){if(GSearchControl.Yb[udsm]){var udso=GSearchControl.Yb[udsm];var udsq=udsf[udsm];if(udsm=="display"&&udsq=="none"){uds.innerHTML="";udsl=true}if(udsf[udsm]
!=""){if(udse){uds.style.setProperty(udso,udsq,"")}else{uds.style.setAttribute(udso,udsq,"")}}}}if(udsl){if(udse==false){uds.outerHTML="<div style='display:none'/>"}}}}}
;GSearchControl.prototype.fd=function(uds){var udsa=uds?uds:this.root;var udsb=null;if(window.getComputedStyle){udsb=window.getComputedStyle(udsa,null)}else if(udsa.currentStyle){udsb=udsa.currentStyle}else if(document.defaultView.getComputedStyle){udsb=document.defaultView.getComputedStyle(udsa,null)}if(udsb){return parseInt(udsb["width"])}else{return 300}}
;GSearchControl.prototype.setSearchCompleteCallback=function(uds,udsa){this.sb=udsG(uds,udsa)}
;GSearchControl.prototype.setSearchStartingCallback=function(uds,udsa){this.tb=udsG(uds,udsa)}
;udsr.SRC_INIT=0;udsr.SRC_ONE=1;udsr.SRC_MORE=2;udsr.SRC_ALL=3;udsr.prototype.ub=function(uds){var udsa=udsc.Ec+" ";if(uds==udsr.SRC_INIT){if(this.b.E==GSearchControl.EXPAND_MODE_PARTIAL){udsa+=udsc.Gb}else if(this.gs.getResultSetSize()==GSearch.SMALL_RESULTSET){udsa+=udsc.Fb}else{udsa+=udsc.zb}}else if(uds==udsr.SRC_ONE){udsa+=udsc.Gb}else if(uds==udsr.SRC_MORE){udsa+=udsc.Fb}else{udsa+=udsc.zb}udsz(this.rb,udsa)}
;GSearchControl.prototype.pb=function(uds,udsa){uds.ub(udsa);var udsb=false;switch(udsa){default:case udsr.SRC_ONE:if(uds.j){uds.j.style.display="none"}break;case udsr.SRC_MORE:if(uds.j){uds.j.style.display="block"}if(uds.gs.getResultSetSize()!=GSearch.SMALL_RESULTSET){udsb=true}uds.gs.setResultSetSize(GSearch.SMALL_RESULTSET);break;case udsr.SRC_ALL:if(uds.j){uds.j.style.display="block"}if(uds.gs.getResultSetSize()!=GSearch.LARGE_RESULTSET){udsb=true}uds.gs.setResultSetSize(GSearch.LARGE_RESULTSET)
;break}if(udsb){var udsd;udsd=this.input.value;if(udsd.length){this.va=false;udsz(this.ka,udsc.S);if(this.M){udsz(this.M,udsc.Kb)}if(!uds.Ca){udsx(uds.root,udsc.R);udsk(uds.root,udsc.S)}uds.b.E=GSearchControl.EXPAND_MODE_OPEN;uds.gs.execute(udsd)}}}
;function GSearchForm(uds,udsa){var udsb=udsP(udsc.Hb);udsb.acceptCharset="utf-8";var udsd=udsi["search-uc"];this.Ia=udsJ(udsd,udsc.Ib);this.Ia.title=udsi["search"];var udsf;if(uds){udsf=udsc.oc;this.db=udsj(udsi["blank"],udsc.Bb);this.db.title=udsi["clear-results"]}else{udsf=udsc.Qa}this.input=udsQ(null,udsc.Db,null);var udse=udsE(null,null,udsc.Hb);udsg(udsb,udse);var udsh=udsA(udse,0);var udsl=udsu(udsh,udsc.Db);var udsm=udsu(udsh,udsc.Ib);if(uds){var udso=udsu(udsh,udsc.Bb);udsg(udso,this.db)
}udsg(udsl,this.input);udsg(udsm,this.Ia);var udsq=udsE(null,null,udsc.qa);udsg(udsb,udsq);udsh=udsA(udsq,0);this.userDefinedCell=udsu(udsh,udsc.pc);var udst=udsu(udsh,udsc.ra);var udsv=udsu(udsh,udsf);var udsy=udsj(udsi["powered-by"],udsc.ra);var udsC=UDS_ServiceBase+"/css/small-logo.png";var udsD=udsW(udsC,51,15,udsf);udsg(udst,udsy);udsg(udsv,udsD);this.ba=udsb;udsB(udsa);udsg(udsa,this.ba)}
GSearchForm.prototype.setOnSubmitCallback=function(uds,udsa){this.Ka=udss(uds,udsa,[this]);this.ba.onsubmit=this.Ka;this.Ia.onclick=this.Ka}
;GSearchForm.prototype.setOnClearCallback=function(uds,udsa){this.db.onclick=udss(uds,udsa,[this])}
;GSearchForm.prototype.execute=function(uds){if(uds){this.input.value=uds}if(this.Ka){this.Ka()}}
;


