var udsi=new Object;udsi["blank"]="&nbsp;";udsi["image"]=_UDS_MSG_SEARCHER_IMAGE;udsi["web"]=_UDS_MSG_SEARCHER_WEB;udsi["blog"]=_UDS_MSG_SEARCHER_BLOG;udsi["video"]=_UDS_MSG_SEARCHER_VIDEO;udsi["local"]=_UDS_MSG_SEARCHER_LOCAL;udsi["news"]=_UDS_MSG_SEARCHER_NEWS;udsi["book"]=_UDS_MSG_SEARCHER_BOOK;udsi["save"]=_UDS_MSG_SEARCHCONTROL_SAVE;udsi["keep"]=_UDS_MSG_SEARCHCONTROL_KEEP;udsi["include"]=_UDS_MSG_SEARCHCONTROL_INCLUDE;udsi["copy"]=_UDS_MSG_SEARCHCONTROL_COPY;udsi["close"]=_UDS_MSG_SEARCHCONTROL_CLOSE;
udsi["sponsored-links"]=_UDS_MSG_SEARCHCONTROL_SPONSORED_LINKS;udsi["see-more"]=_UDS_MSG_SEARCHCONTROL_SEE_MORE;udsi["watermark"]=_UDS_MSG_SEARCHCONTROL_WATERMARK;udsi["search-location"]=_UDS_MSG_SEARCHER_CONFIG_SET_LOCATION;udsi["disable-address-lookup"]=_UDS_MSG_SEARCHER_CONFIG_DISABLE_ADDRESS_LOOKUP;udsi["sort-by-date"]=_UDS_MSG_SORT_BY_DATE;udsi["pbg"]=_UDS_MSG_BRANDING_STRING;udsi["n-minutes-ago"]=_UDS_MSG_MINUTES_AGO;udsi["n-hours-ago"]=_UDS_MSG_HOURS_AGO;udsi["one-hour-ago"]=_UDS_MSG_ONE_HOUR_AGO;
udsi["all-n-related"]=_UDS_MSG_NEWS_ALL_N_RELATED;udsi["related-articles"]=_UDS_MSG_NEWS_RELATED;udsi["page-count"]=_UDS_MSG_TOTAL_PAGE_COUNT;var udsw=new Array;udsw[0]=_UDS_MSG_MONTH_ABBR_JAN;udsw[1]=_UDS_MSG_MONTH_ABBR_FEB;udsw[2]=_UDS_MSG_MONTH_ABBR_MAR;udsw[3]=_UDS_MSG_MONTH_ABBR_APR;udsw[4]=_UDS_MSG_MONTH_ABBR_MAY;udsw[5]=_UDS_MSG_MONTH_ABBR_JUN;udsw[6]=_UDS_MSG_MONTH_ABBR_JUL;udsw[7]=_UDS_MSG_MONTH_ABBR_AUG;udsw[8]=_UDS_MSG_MONTH_ABBR_SEP;udsw[9]=_UDS_MSG_MONTH_ABBR_OCT;udsw[10]=_UDS_MSG_MONTH_ABBR_NOV;
udsw[11]=_UDS_MSG_MONTH_ABBR_DEC;udsi["month-abbr"]=udsw;udsi["directions"]=_UDS_MSG_DIRECTIONS;udsi["clear-results"]=_UDS_MSG_CLEAR_RESULTS;udsi["show-one-result"]=_UDS_MSG_SHOW_ONE_RESULT;udsi["show-more-results"]=_UDS_MSG_SHOW_MORE_RESULTS;udsi["show-all-results"]=_UDS_MSG_SHOW_ALL_RESULTS;udsi["settings"]=_UDS_MSG_SETTINGS;udsi["search"]=_UDS_MSG_SEARCH;udsi["search-uc"]=_UDS_MSG_SEARCH_UC;udsi["powered-by"]=_UDS_MSG_POWERED_BY;udsi["sa"]=_UDS_MSG_SEARCHER_GSA;udsi["by"]=_UDS_MSG_SEARCHER_BY;
udsi["code"]=_UDS_MSG_SEARCHER_CODE;udsi["unknown-license"]=_UDS_MSG_UNKNOWN_LICENSE;udsi["more-results"]=_UDS_MSG_SEARCHCONTROL_MORERESULTS;udsi["previous"]=_UDS_MSG_SEARCHCONTROL_PREVIOUS;udsi["next"]=_UDS_MSG_SEARCHCONTROL_NEXT;udsi["get-directions"]=_UDS_MSG_GET_DIRECTIONS;udsi["to-here"]=_UDS_MSG_GET_DIRECTIONS_TO_HERE;udsi["from-here"]=_UDS_MSG_GET_DIRECTIONS_FROM_HERE;udsi["clear-results-uc"]=_UDS_MSG_CLEAR_RESULTS_UC;if(UDS_CurrentLocale!="en"){udsi["clear-results-uc"]=_UDS_MSG_CLEAR_RESULTS}
udsi["search-the-map"]=_UDS_MSG_SEARCH_THE_MAP;udsi["scroll-results"]=_UDS_MSG_SCROLL_THROUGH_RESULTS;udsi["edit-tags"]=_UDS_MSG_EDIT_TAGS;udsi["tag-search"]=_UDS_MSG_TAG_THIS_SEARCH;udsi["search-string"]=_UDS_MSG_SEARCH_STRING;udsi["optional-label"]=_UDS_MSG_OPTIONAL_LABEL;udsi["delete"]=_UDS_MSG_DELETE;udsi["deleted"]=_UDS_MSG_DELETED;udsi["cancel"]=_UDS_MSG_CANCEL;udsi["upload-video"]=_UDS_MSG_UPLOAD_YOUR_VIDEOS;udsi["im-done"]=_UDS_MSG_IM_DONE_WATCHING;udsi["close-player"]=_UDS_MSG_CLOSE_VIDEO_PLAYER;
GSearch.strings=udsi;
Function.prototype.inherits=function(uds){var udsb=function(){}
;udsb.prototype=uds.prototype;this.prototype=new udsb;this.prototype.__super__=function(udsa,udsd,udsf,udse){var udsh=Array.prototype.splice.apply(arguments,[1,arguments.length]);return udsa.apply(this,udsh)}
}
;var _json_cache_defeater_=0;function udsX(uds){return uds+"&key="+UDS_ApiKey+"&v="+UDS_Version}
function udsN(uds){var udsb=document.getElementsByTagName("head")[0];var udsa=document.createElement("script");udsa.type="text/javascript";udsa.charset="utf-8";var udsd=udsX(uds);if(udsK()||udsZ()){udsd=udsd+"&nocache="+_json_cache_defeater_++}udsa.src=udsd;var udsf=function(){var udsh=udsa.parentNode;udsh.removeChild(udsa);delete udsa}
;var udse=function(udsh){var udsj=(udsh?udsh:window.event).target?(udsh?udsh:window.event).target:(udsh?udsh:window.event).srcElement;if(udsj.readyState=="loaded"||udsj.readyState=="complete"){udsf()}}
;if(navigator.product=="Gecko"){udsa.onload=udsf}else{udsa.onreadystatechange=udse}udsb.appendChild(udsa)}
function udsG(uds,udsb){return function(){return udsb.apply(uds,arguments)}
}
function udst(uds,udsb,udsa){return function(){return udsb.apply(uds,udsa)}
}
function udsD(uds){while(uds.firstChild){uds.removeChild(uds.firstChild)}}
function udsU(uds,udsb){if(uds){try{udsD(uds);uds.appendChild(udsb)}catch(udsa){}}return udsb}
function udsg(uds,udsb){try{uds.appendChild(udsb)}catch(udsa){}return udsb}
function udsV(uds,udsb){uds.innerHTML=udsb}
function udsT(uds){return document.createTextNode(uds?uds:"")}
function udsk(uds,udsb){var udsa=document.createElement("div");if(uds){udsa.innerHTML=uds}if(udsb){udsa.className=udsb}return udsa}
function udsn(uds){var udsb=document.createElement("div");if(uds){udsb.className=uds}return udsb}
function udsS(uds,udsb){var udsa=document.createElement("span");if(uds){udsg(udsa,udsT(uds))}if(udsb){udsa.className=udsb}return udsa}
function udsC(uds,udsb,udsa){var udsd=document.createElement("table");udsd.setAttribute("cellSpacing",uds?uds:0);udsd.setAttribute("cellPadding",udsb?udsb:0);if(udsa){udsd.className=udsa}return udsd}
function udsA(uds,udsb,udsa){var udsd=uds.insertRow(-1);if(!udsd){alert(udsd)}for(var udsf=0;udsf<udsb;udsf++){udss(udsd,udsa)}return udsd}
function udss(uds,udsb){var udsa=uds.insertCell(-1);if(udsb){udsa.className=udsb}return udsa}
function udsB(uds,udsb,udsa,udsd){var udsf=document.createElement("img");udsf.src=uds;if(udsb){udsf.width=udsb}if(udsa){udsf.height=udsa}if(udsd){udsf.className=udsd}return udsf}
function udsW(uds,udsb,udsa,udsd){var udsf;if(udsK()){udsf=udsn(udsd);udsf.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+uds+'")';udsf.style.width=udsb+"px";udsf.style.height=udsa+"px"}else{udsf=udsB(uds,null,null,udsd)}return udsf}
function udsM(uds,udsb,udsa,udsd){var udsf=document.createElement("a");udsf.href=uds;if(udsb){if(udsd){udsg(udsf,udsS(udsb,udsd))}else{udsg(udsf,udsT(udsb))}}if(udsa){udsf.target=udsa}return udsf}
function udsp(uds,udsb,udsa,udsd){var udsf=udsk(null,udsd);var udse=document.createElement("a");udse.href=uds;var udsh=udsk(null,udsd);udsh.innerHTML=udsb;udse.appendChild(udsh);if(udsd){udse.className=udsd}if(udsa){udse.target=udsa}udsf.appendChild(udse);return udsf}
function udsQ(uds){var udsb=document.createElement("form");if(uds){udsb.className=uds}return udsb}
function udsJ(uds,udsb){var udsa=document.createElement("input");udsa.type="submit";udsa.value=uds;if(udsb){udsa.className=udsb}return udsa}
function udsR(uds,udsb,udsa){var udsd=document.createElement("input");udsd.setAttribute("autoComplete","off");udsd.type="text";if(uds==-1){udsm(udsd,"util-css-expand")}else{udsd.size=uds>0?uds:10}if(udsb){udsm(udsd,udsb)}if(udsa){udsd.value=udsa}return udsd}
function udsL(uds,udsb,udsa,udsd){var udsf=document.createElement("input");udsf.type="checkbox";udsf.name=uds;udsf.value=udsb;if(udsd){udsf.className=udsd}if(udsa){udsf.checked=udsa}return udsf}
function udsz(uds,udsb){uds.className=udsb}
function udsm(uds,udsb){uds_(uds,udsb)}
function udsx(uds,udsb){uds1(uds,udsb)}
function uds0(uds,udsb){if(uds==null||uds.className==null)return false;var udsa=uds.className.split(" ");for(var udsd=0;udsd<udsa.length;udsd++){if(udsa[udsd]==udsb){return true}}return false}
function uds_(uds,udsb){if(uds0(uds,udsb))return;uds.className+=" "+udsb}
function uds1(uds,udsb){if(uds.className==null)return;var udsa=uds.className.split(" ");var udsd=[];var udsf=false;for(var udse=0;udse<udsa.length;udse++){if(udsa[udse]!=udsb){if(udsa[udse]){udsd.push(udsa[udse])}}else{udsf=true}}if(udsf){uds.className=udsd.join(" ")}}
var udsH="";function uds2(uds){var udsb=uds.toLowerCase().split(".");if(udsb.length<2){udsH=".com"}var udsa=udsb.pop();var udsd=udsb.pop();if(udsa.length==2){if(udsI[udsd]&&udsI[udsd][udsa]==1){udsH="."+udsd+"."+udsa}else{udsH="."+udsa}}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 udsb=uds.toLowerCase().split(".");if(udsb.length<2){return false}var udsa=udsb.pop();var udsd=udsb.pop();if((udsd=="igoogle"||udsd=="gmodules")&&udsa=="com"
){return true}if(udsa.length==2&&udsb.length>0){if(udsI[udsd]&&udsI[udsd][udsa]==1){udsd=udsb.pop()}}return udsd=="google"}
function udsO(uds){if(uds in udsP){return udsP[uds]}return udsP[uds]=navigator.userAgent.toLowerCase().indexOf(uds)!=-1}
var udsP={};function udsK(){return udsO("msie")}
function udsZ(){return udsO("safari")||udsO("konqueror")}
;
function udsc(){}
udsc.q="gs-result";udsc.Sd="gs-id";udsc.ed="gs-spacer";udsc.r="gs-title";udsc.V="gs-snippet";udsc.v="gs-visibleUrl";udsc.fb="gs-visibleUrl-long";udsc.Yb="gs-visibleUrl-short";udsc.fd="gs-watermark";udsc.ad="gs-results-attribution";udsc.Rb="gs-address";udsc.Xb="gs-street";udsc.Sb="gs-city";udsc.Vb="gs-region";udsc.Sc="gs-country";udsc.Tb="gs-phone";udsc.Tc="gs-directions";udsc.Rd="gs-directions-to-from";udsc.Td="gs-label";udsc.Ud="gs-secondary-link";udsc.Pc="gs-author";udsc.Ub="gs-publisher";udsc.Wc=
"gs-location";udsc.Rc="gs-clusterUrl";udsc.db="gs-image-box";udsc.Qc="gs-image-box gs-book-image-box";udsc.xa="gs-text-box";udsc.Xc="gs-metadata";udsc.bd="gs-row-1";udsc.cd="gs-row-2";udsc.Vd="gs-shadow";udsc.$c="gs-pages";udsc.Zc="gs-page-edge";udsc.H="gs-image";udsc.dd="gs-size";udsc.Yc="gs-pageCount";udsc.eb="gs-publishedDate";udsc.Wb="gs-relativePublishedDate";udsc.Zb="gs-webAd";udsc.Vc="gs-localAd";udsc.cb="gs-ad-marker";udsc.U="gs-line";udsc.Uc="gs-divider";udsc.yc="gsc-control";udsc.Bc="gsc-narrow"
;udsc.Nb="gsc-search-box";udsc.Ob="gsc-search-button";udsc.Hb="gsc-clear-button";udsc.Jb="gsc-input";udsc.ta="gsc-branding";udsc.Gb="gsc-branding-vertical";udsc.rc="gsc-branding-img";udsc.sc="gsc-branding-user-defined";udsc.Ta="gsc-branding-img-noclear";udsc.va="gsc-branding-text";udsc.Ya="gsc-resultsRoot";udsc.Gc="gsc-results";udsc.Xa="gsc-result";udsc.Fc="gsc-resultsHeader";udsc.S="gsc-resultsbox-invisible";udsc.T="gsc-resultsbox-visible";udsc.zc="gsc-expansionArea";udsc.Mc="gsc-trailing-more-results"
;udsc.qc="gsc-ad-box";udsc.Nc="gsc-twiddleRegionCell";udsc.tc="gsc-configLabelCell";udsc.uc="gsc-configLabel";udsc.Oc="gsc-twiddle";udsc.fa="gsc-twiddle-closed";udsc.wa="gsc-twiddle-opened";udsc.Lc="gsc-title";udsc.Ic="gsc-stats";udsc.Kb="gsc-keeper";udsc.Ec="gsc-result-selector gsc-one-result";udsc.Dc="gsc-result-selector gsc-more-results";udsc.Cc="gsc-result-selector gsc-all-results";udsc.Hc="gsc-results-selector";udsc.Mb="gsc-one-result-active";udsc.Lb="gsc-more-results-active";udsc.Fb="gsc-all-results-active"
;udsc.Qb="gsc-tabsArea";udsc.Pb="gsc-tabsAreaInvisible";udsc.Kc="gsc-tabHeader";udsc.ab="gsc-tabhActive";udsc.bb="gsc-tabhInactive";udsc.Za="gsc-tabdActive";udsc.$a="gsc-tabdInactive";udsc.Jc="gsc-tabData";udsc.Ib="gsc-config";udsc.Wa="gsc-configSetting";udsc.ea="gsc-configSettingSubmit";udsc.Va="gsc-configSettingCheckbox";udsc.Ua="gsc-configSettingCheckboxLabel";udsc.xc="gsc-configSettingInput";udsc.wc="gsc-configSettingInputLabel";udsc.Ac="gsc-locationConfig";udsc.Qd="as-results";udsc.Sa="as-result-vertical"
;udsc.Eb="as-result-horizontal";udsc.Db="as-result-cell";udsc.Pd="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.Wd=null;this.Y=null;this.pc=0;this.Pa=0;this.qb=
true;this.N={width:100,height:75};this.P=GSearch.LINK_TARGET_BLANK;this.jc=1;this.setResultSetSize(GSearch.SMALL_RESULTSET);this.clearResults();this.lb=null;this.mb=null;this.Bb=null;this.ub=null;this.ra=null;this.qa=null;this.Ga=null;this.k="null";this.e=null;this.K=null}
GSearch.prototype.Fd=function(){var uds=this.aa+"?hl="+UDS_CurrentLocale+"&source=uds";if(this.K){uds=uds+this.K}else{uds=uds+"&q="}if(this.ha&&this.ha!=""){return this.ha}else{return uds}}
;GSearch.prototype.setQueryAddition=function(uds){if(uds==null||uds==""){this.e=null}else{this.e=uds}}
;GSearch.prototype.G=function(uds,udsb){var udsa=GSearch.BASE+this.u+"?callback="+uds+"&context="+udsb+"&lstkp="+this.md()+"&rsz="+this.Ka+"&hl="+UDS_CurrentLocale;if(this.sb){udsa+="&gss="+this.sb}if(UDS_JSHash){udsa+="&sig="+UDS_JSHash}return udsa}
;GSearch.prototype.setLinkTarget=function(uds){this.P=uds}
;GSearch.prototype.d=function(){if(this.P&&this.P!=""){return this.P}else{return null}}
;GSearch.prototype.gc=function(){this.pc++;this.Pa++;if(this.Ga){clearTimeout(this.Ga)}this.Ga=setTimeout(udst(this,this.execute,[null]),GSearch.KEEP_SWEEPER_DELAY)}
;GSearch.prototype.md=function(){clearTimeout(this.Ga);var uds=this.Pa;this.Pa=0;return uds}
;GSearch.prototype.rb=function(){if(this.lb==null){this.lb="gsc-"+this.k+"Result"}return this.lb}
;GSearch.prototype.I=function(){if(this.mb==null){this.mb="gs-"+this.k+"Result"}return this.mb}
;GSearch.prototype.wd=function(){if(this.Bb==null){this.Bb=udsi[this.k]}if(this.ra){return this.ra}else{return this.Bb}}
;GSearch.prototype.ud=function(){if(this.ub==null){this.ub=udsi[this.k]}if(this.ra){return this.ra}else{return this.ub}}
;GSearch.prototype.getResultSetSize=function(){return this.Ka}
;GSearch.prototype.setResultSetSize=function(uds){switch(uds){case GSearch.LARGE_RESULTSET:this.Ka=GSearch.LARGE_RESULTSET;break;default:case GSearch.SMALL_RESULTSET:this.Ka=GSearch.SMALL_RESULTSET;break}}
;GSearch.prototype.execute=function(uds){var udsb=this.m(uds,null,null);udsN(udsb)}
;GSearch.prototype.getExecuteUrl=function(uds,udsb,udsa){var udsd=this.m(uds,udsb,udsa);return udsX(udsd)}
;GSearch.prototype.s=function(uds){var udsb="http://code.google.com/apis/ajaxsearch/faq.html";var udsa=udsi["watermark"]+" - "+this.nd();var udsd=udsp(udsb,udsa,"_blank",udsc.fd);udsg(uds,udsd)}
;GSearch.prototype.nd=function(){var uds=new Date;var udsb=uds.getMonth()+1+"/"+uds.getFullYear();return udsb}
;GSearch.prototype.Ea=function(uds){var udsb;var udsa=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":udsb=udsf+" "+udse+", "+udsa;break;case "YMD":udsb=udsa+" "+udsf+" "+udse;break;default:case "DMY":udsb=udse+" "+udsf+" "+udsa;break}return udsb}
;GSearch.$b=3600000;GSearch.hd=60000;GSearch.gd=86400000;GSearch.prototype.fc=function(uds){var udsb=new Date;var udsa=udsb.getTime();var udsd=uds.getTime();var udsf;if(udsa<udsd){return udsi["n-minutes-ago"](2)}var udse=udsa-udsd;if(udse<GSearch.$b){var udsh=parseInt(udse/GSearch.hd);if(udsh<=1){udsf=2}else{udsf=udsh}return udsi["n-minutes-ago"](udsf)}if(udse<GSearch.gd){var udsj=parseInt(udse/GSearch.$b);if(udsj<=1){return udsi["one-hour-ago"]}else{udsf=udsj;return udsi["n-hours-ago"](udsf)}}return this.Ea(
uds)}
;GSearch.prototype.clearResults=function(){this.gwsUrl=null;this.Xd=null;this.results=new Array;this.adResults=new Array}
;GSearch.prototype.dc=function(){if(this.cc){this.cc()}}
;GSearch.prototype.onSearchComplete=function(uds,udsb,udsa,udsd){if(uds==null&&udsb==204){return}this.gwsUrl=null;if(uds&&uds.results&&uds.results.length>0){this.results=uds.results;if(this.K&&this.aa){this.gwsUrl=this.Fd()}}else{this.results=new Array}if(uds&&uds.adResults&&uds.adResults.length>0){this.adResults=uds.adResults}else{this.adResults=new Array}this.completionStatus=udsb;this.hashStatus=udsd;this.completionFailureDetails=udsa;if(uds&&uds.resultAttribution&&uds.resultAttribution!=null&&
uds.resultAttribution!=""){this.Ja=uds.resultAttribution}else{this.Ja=null}if(this.qb){this.bc()}this.dc()}
;GSearch.prototype.getAttribution=function(){var uds=null;if(this.Ja){uds=udsk(this.Ja,udsc.ad)}return uds}
;GSearch.prototype.bc=function(){var uds;var udsb;for(uds=0;uds<this.results.length;uds++){udsb=this.results[uds];this.createResultHtml(udsb)}for(uds=0;uds<this.adResults.length;uds++){udsb=this.adResults[uds];this.ga(udsb)}}
;GSearch.prototype.ga=function(uds){if(uds.html){delete uds.html}}
;GSearch.prototype.setSearchCompleteCallback=function(uds,udsb,udsa){if(!udsa){udsa=[null]}this.cc=udst(uds,udsb,udsa)}
;GSearch.AllocateCompletionMapContext=function(uds,udsb){var udsa=false;var udsd=null;if(uds.length){for(var udsf=0;udsf<uds.length;udsf++){if(uds[udsf]==null){uds[udsf]=udsb;udsd=udsf;udsa=true;break}}}if(!udsa){udsd=uds.length;uds.push(udsb)}return udsd}
;GSearch.prototype.setUserDefinedLabel=function(uds){this.ra=uds}
;GSearch.prototype.setUserDefinedClassSuffix=function(uds){this.qa=uds}
;GSearch.prototype.setNoHtmlGeneration=function(){this.qb=false}
;GSearch.scaleImage=function(uds,udsb,udsa,udsd){var udsf=udsa.width/uds;var udse=udsa.height/udsb;var udsh=Math.min(udsf,udse);var udsj=Math.min(udsh,1);var udsl=new Object;udsl.width=Math.round(uds*udsj);udsl.height=Math.round(udsb*udsj);if(udsd){udsd.width=udsl.width;udsd.height=udsl.height}return udsl}
;GSearch.VERTICAL_BRANDING=1;GSearch.HORIZONTAL_BRANDING=2;GSearch.getBranding=function(uds,udsb){var udsa=udsn(udsc.ta);var udsd=udsC(null,null,udsc.ta);udsg(udsa,udsd);var udsf=true;if(udsb){if(udsb==GSearch.VERTICAL_BRANDING){udsf=false;udsm(udsa,udsc.Gb);udsm(udsd,udsc.Gb)}else if(udsb==GSearch.HORIZONTAL_BRANDING){udsf=true}else{udsf=true}}var udse=udsA(udsd,0);var udsh;var udsj;if(udsf){udsh=udse;udsj=udse}else{udsh=udse;udsj=udsA(udsd,0)}var udsl=udss(udsh,udsc.va);var udso=udss(udsj,udsc.Ta)
;var udsq=udsk(udsi["powered-by"],udsc.va);var udsu=UDS_ServiceBase+"/css/small-logo.png";var udsv=udsW(udsu,51,15,udsc.Ta);udsg(udsl,udsq);udsg(udso,udsv);if(uds){udsD(uds);udsg(uds,udsa)}return udsa}
;GSearch.setOnLoadCallback=function(uds){var udsb=window;if(udsb.addEventListener){udsb.addEventListener("load",uds,false)}else if(udsb.attachEvent){udsb.attachEvent("onload",uds)}else{udsb["onload"]=uds}}
;
function GwebSearch(){GSearch.call(this);this.k="web";this.u="/GwebSearch";this.aa="http://www.google.com/search";this.f=null;this.$=false;this.Ca=null;this.nb=null;this.ha=null}
GwebSearch.inherits(GSearch);GwebSearch.RESULT_CLASS="GwebSearch";GwebSearch.AD_CLASS="GwebSearch.ad";GwebSearch.c=new Array;GwebSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GwebSearch.c[udse];GwebSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GwebSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GwebSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GwebSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){var udsh;var udsj=uds;if(this.e){udsj=udsj+" "+this.e}if(this.f&&this.$==true&&this.nb){var udsl=this.nb;udsl=udsl.replace(/__HL__/,UDS_CurrentLocale);udsl=udsl.replace(/__QUERY__/,encodeURIComponent(udsj));this.ha=udsl}if(this.f&&this.$==false){udsj=
udsj+" site:"+this.f}udsh="";if(this.f&&this.$==true){udsh=udsh+"&cx="+this.f;if(this.Ca!=null){udsj=udsj+" more:"+this.Ca}}udsh=udsh+"&q="+encodeURIComponent(udsj);udse=udse+udsh;this.K=udsh}return udse}
;GwebSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);udsa=udsk(uds.content,udsc.V);udsg(udsb,udsa);udsa=udsp("#",uds.visibleUrl,null,udsc.v);udsg(udsb,udsa);udsm(udsa,udsc.Yb);var udsd=uds.unescapedUrl.indexOf(uds.visibleUrl);var udsf=uds.visibleUrl;if(udsd!=-1&&udsd!=0){udsf=uds.unescapedUrl.substring(udsd)}udsa=udsp("#",udsf,null,udsc.v);udsm(udsa,
udsc.fb);udsg(udsb,udsa);uds.html=udsb;this.s(uds.html)}
;GwebSearch.prototype.ga=function(uds){if(uds.html){delete uds.html}var udsb=udsn(udsc.Zb);udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);if(uds.content1){udsa=udsk(uds.content1,udsc.U);udsg(udsb,udsa)}if(uds.content2){udsa=udsk(uds.content2,udsc.U);udsg(udsb,udsa)}udsa=udsp("#",uds.visibleUrl,null,udsc.v);var udsd=udsB(uds.impressionUrl,12,12,udsc.cb);udsg(udsa,udsd);udsg(udsb,udsa);uds.html=udsb;this.s(uds.html)}
;GwebSearch.prototype.setSiteRestriction=function(uds,udsb,udsa){this.ha=null;if(uds==null||uds==""){this.f=null;this.$=false;this.Ca=null}else{var udsd=uds.match(/^\d{21}:.*/);if(udsd){this.f=uds;this.$=true;if(udsb){this.Ca=udsb}if(udsa){if(udsa.match(/__HL__/)&&udsa.match(/__QUERY__/)){this.nb=udsa}}}else{this.f=uds;this.$=false}}}
;
function GadSearch(uds,udsb,udsa){GSearch.call(this);this.k="ad";this.u="/GadSearch";this.lc();if(udsa&&uds==null&&udsb==null){this.bootOptions=udsa;this.boot()}else{this.setRoot(uds);if(udsb){this.mc(udsb)}}}
GadSearch.inherits(GSearch);GadSearch.RESULT_CLASS="GwebSearch";GadSearch.AD_CLASS="GwebSearch.ad";GadSearch.c=new Array;GadSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GadSearch.c[udse];GadSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GadSearch.prototype.sd=function(uds){this.setResultSetSize(GadSearch.p[this.b.C].wb);var udsb=this.m(uds,null,null);udsN(udsb)}
;GadSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GadSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GadSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){var udsh=uds;udse=udse+"&q="+encodeURIComponent(udsh)}return udse}
;GadSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);udsa=udsk(uds.content,udsc.V);udsg(udsb,udsa);udsa=udsp("#",uds.visibleUrl,null,udsc.v);udsg(udsb,udsa);udsm(udsa,udsc.Yb);var udsd=uds.unescapedUrl.indexOf(uds.visibleUrl);var udsf=uds.visibleUrl;if(udsd!=-1&&udsd!=0){udsf=uds.unescapedUrl.substring(udsd)}udsa=udsp("#",udsf,null,udsc.v);udsm(udsa,
udsc.fb);udsg(udsb,udsa);uds.html=udsb;this.s(uds.html)}
;GadSearch.prototype.ga=function(uds){if(uds.html){delete uds.html}var udsb=udsn(udsc.Zb);udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);if(uds.content1){udsa=udsk(uds.content1,udsc.U);udsg(udsb,udsa)}if(uds.content2){udsa=udsk(uds.content2,udsc.U);udsg(udsb,udsa)}udsa=udsp("#",uds.visibleUrl,null,udsc.v);var udsd=udsB(uds.impressionUrl,12,12,udsc.cb);udsg(udsa,udsd);udsg(udsb,udsa);uds.html=udsb;this.s(uds.html)}
;GadSearch.TYPE_H3="h3";GadSearch.TYPE_V3="v3";GadSearch.TYPE_V6="v6";GadSearch.p={h3:{hb:udsc.Eb,Cb:"740px",tb:"85px",C:GadSearch.TYPE_H3,D:false,F:3,wb:GSearch.SMALL_RESULTSET},v3:{hb:udsc.Sa,Cb:"230px",tb:"205px",C:GadSearch.TYPE_V3,D:true,F:3,wb:GSearch.SMALL_RESULTSET},v6:{hb:udsc.Sa,Cb:"230px",tb:"410px",C:GadSearch.TYPE_V6,D:true,F:6,wb:GSearch.LARGE_RESULTSET}};GadSearch.prototype.setRoot=function(uds){this.da=uds;udsD(this.da)}
;GadSearch.prototype.lc=function(){this.b=new Object;var uds=GadSearch.TYPE_V3;this.b.C=GadSearch.p[uds].C;this.b.D=GadSearch.p[uds].D;this.b.F=GadSearch.p[uds].F;this.b.jb=null;this.nc()}
;GadSearch.prototype.mc=function(uds){this.lc();for(var udsb in uds){var udsa=uds[udsb];switch(udsb){case "type":switch(udsa){case GadSearch.TYPE_H3:case GadSearch.TYPE_V3:case GadSearch.TYPE_V6:this.b.C=GadSearch.p[udsa].C;this.b.D=GadSearch.p[udsa].D;this.b.F=GadSearch.p[udsa].F;break;default:udsa=GadSearch.TYPE_V3;this.b.C=GadSearch.p[udsa].C;this.b.D=GadSearch.p[udsa].D;this.b.F=GadSearch.p[udsa].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.jb=udsd;break}}this.nc()}
;GadSearch.prototype.nc=function(){var uds="";var udsb;udsb=this.b.C;uds+="&aqt="+udsb;if(this.b.jb){uds+=this.b.jb}this.Gd=uds}
;GadSearch.prototype.execute=function(uds){var udsb=(new Date).getTime();this.u="/GadSearch/"+udsb;var udsa=this.m("nothing","x","y");this.u="/GadSearch";var udsd=uds;if(this.e){udsd=udsd+" "+this.e}udsa=udsa+"&boot="+encodeURIComponent(udsd)+this.Gd;var udsf="&dt="+(new Date).getTime();udsa+=udsf;var udse=this.od(udsa);udsU(this.da,udse)}
;GadSearch.prototype.od=function(uds){var udsb=this.b.C;var udsa;if(udsK()){udsa=document.createElement("<iframe frameborder=no scrolling=no>")}else{udsa=document.createElement("iframe");udsa.setAttribute("frameborder","no");udsa.setAttribute("scrolling","no")}udsa.className=GadSearch.p[udsb].hb;udsa.style.width=GadSearch.p[udsb].Cb;udsa.style.height=GadSearch.p[udsb].tb;udsa.style.border="none";udsa.id=(new Date).getTime();udsa.src=uds;return udsa}
;GadSearch.prototype.boot=function(){if(!this.bootOptions){alert("options not set");return}this.setRoot(document.getElementById(this.bootOptions.resultsRoot));this.mc(this.bootOptions);this.setLinkTarget(GSearch.LINK_TARGET_PARENT);this.setSearchCompleteCallback(this,GadSearch.prototype.ld,[null]);this.sd(this.bootOptions.bootQuery)}
;GadSearch.prototype.ld=function(){if(this.adResults&&this.adResults.length>0){var uds=this.adResults.length;if(uds>this.F){uds=this.F}var udsb;var udsa;var udsd=null;if(this.b.D){udsa=udsC(null,null,udsc.Sa)}else{udsa=udsC(null,null,udsc.Eb)}for(var udsf=0;udsf<uds;udsf++){var udse=this.adResults[udsf];var udsh=udse.html.cloneNode(true);if(this.b.D){udsd=udsA(udsa,0)}else{if(udsd==null){udsd=udsA(udsa,0)}}udsb=udss(udsd,udsc.Db);udsb.appendChild(udsh)}udsd=udsA(udsa,0);udsb=udss(udsd,udsc.Db);if(
!this.b.D){udsb.setAttribute("colspan",uds)}var udsj=udsk("Ads by Google",udsc.ta);udsg(udsb,udsj);this.da.appendChild(udsa)}}
;
function GsaSearch(uds){GSearch.call(this);this.kd=uds;this.k="sa";this.u="/ajax"}
GsaSearch.inherits(GSearch);GsaSearch.RESULT_CLASS="GsaSearch";GsaSearch.AD_CLASS="GsaSearch.ad";GsaSearch.c=new Array;GsaSearch.RawCompletion=function(uds,udsb,udsa){var udsd=0;if(uds){udsd=parseInt(uds)}var udsf=GsaSearch.c[udsd];GsaSearch.c[udsd]=null;udsf.onSearchComplete(udsb,udsa)}
;GsaSearch.NEXT_PAGE="next";GsaSearch.PREV_PAGE="prev";GsaSearch.prototype.execute=function(uds,udsb){var udsa=this.m(uds,null,null,udsb);udsN(udsa)}
;GsaSearch.prototype.m=function(uds,udsb,udsa,udsd){var udsf;if(udsa==null){udsf=GSearch.AllocateCompletionMapContext(GsaSearch.c,this)}else{udsf=udsa}var udse;if(udsb==null){udse="GsaSearch.RawCompletion"}else{udse=udsb}var udsh=this.G(udse,udsf,udsd);if(uds){var udsj=uds;if(this.e){udsj=udsj+" "+this.e}udsh=udsh+"&q="+encodeURIComponent(udsj)}return udsh}
;GsaSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);udsa=udsk(uds.content,udsc.V);udsg(udsb,udsa);udsa=udsp("#",uds.visibleUrl,null,udsc.v);udsg(udsb,udsa);udsm(udsa,udsc.fb);uds.html=udsb;this.s(uds.html)}
;GsaSearch.qd="&ajax_version=1.0&client=default_frontend&site=default_collection&ie=UTF-8&oe=UTF-8";GsaSearch.prototype.G=function(uds,udsb,udsa){var udsd=this.kd+this.u+"?ajax_callback="+uds+"&ajax_context="+udsb+"&hl="+UDS_CurrentLocale+GsaSearch.qd+"&num="+this.Ia+this.vd(udsa);return udsd}
;GsaSearch.prototype.gc=function(){this.pc++;this.Pa++}
;GsaSearch.prototype.onSearchComplete=function(uds,udsb){if(uds==null&&udsb==204){return}if(uds&&uds.results&&uds.results.length>0){this.results=new Array;for(var udsa=0;udsa<uds.results.length;udsa++){var udsd=uds.results[udsa];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.Ma=uds.start_index;this.Da=uds.end_index;this.ob=uds.est}else{this.results=new Array;this.Ma=0;this.Da=0;this.ob=0}this.completionStatus=udsb;this.hashStatus=200;this.completionFailureDetails="";this.Ja=null;if(this.qb){this.bc()}this.dc()}
;GsaSearch.prototype.setResultSetSize=function(uds){this.__super__(GSearch.prototype.setResultSetSize,uds);switch(this.Ka){case GSearch.LARGE_RESULTSET:this.Ia=8;break;case GSearch.SMALL_RESULTSET:this.Ia=4;break}}
;GsaSearch.prototype.vd=function(uds){var udsb="";if(uds&&this.completionStatus==200&&this.Ma&&this.Da&&this.ob){if(uds==GsaSearch.NEXT_PAGE){if(this.Da<this.ob){udsb="&start="+this.Da}}else if(uds==GsaSearch.PREV_PAGE){var udsa;if(this.Ma>this.Ia+1){udsa=this.Ma-(this.Ia+1)}else{udsa=0}udsb="&start="+udsa}}return udsb}
;
function GnewsSearch(){GSearch.call(this);this.k="news";this.u="/GnewsSearch";this.aa="http://news.google.com/nwshp";this.Yd=null;this.n=false;this.Ba=true;this.Y=udsG(this,GnewsSearch.prototype.ka);this.Aa="gsc-newsConfig";this.h=null}
GnewsSearch.inherits(GSearch);GnewsSearch.RESULT_CLASS="GnewsSearch";GnewsSearch.c=new Array;GnewsSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GnewsSearch.c[udse];GnewsSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GnewsSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GnewsSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GnewsSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){var udsh;var udsj=uds;if(this.e){udsj=udsj+" "+this.e}if(this.f){udsj=udsj+" source:"+this.f}udsh="&q="+encodeURIComponent(udsj);if(this.n){udsh=udsh+"&scoring=d"}if(this.f){udse=udse.replace(/&hl=.*&/,"&hl=en&")}udse=udse+udsh;this.K=udsh}return udse}

;GnewsSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);udsa=udsk(uds.publisher,udsc.Ub);udsg(udsb,udsa);var udsd=uds.location.split(",");if(udsd.length>1){var udsf=", "+udsd[udsd.length-1];udsa=udsk(udsf,udsc.Wc);udsg(udsb,udsa)}var udse=new Date(uds.publishedDate);udsa=udsk(" - "+this.Ea(udse),udsc.eb);udsg(udsb,udsa);var udse=new Date(uds.publishedDate)
;udsa=udsk(" - "+this.fc(udse),udsc.Wb);udsg(udsb,udsa);udsa=udsk(uds.content,udsc.V);udsg(udsb,udsa);if(uds.clusterUrl&&uds.clusterUrl!=""){udsa=udsp(uds.clusterUrl,udsi["related-articles"]+"&nbsp;&raquo;",this.d(),udsc.Rc);udsg(udsb,udsa)}uds.html=udsb;this.s(uds.html)}
;GnewsSearch.prototype.setSiteRestriction=function(uds){if(uds==null||uds==""){this.f=null}else{this.f=uds.replace(/\s/g,"_")}}
;GnewsSearch.prototype.setResultOrder=function(uds){if(uds==GSearch.ORDER_BY_DATE){this.n=true}else if(uds==GSearch.ORDER_BY_RELEVANCE){this.n=false}else{this.n=false}}
;GnewsSearch.prototype.ka=function(uds,udsb){if(udsb){if(this.h==null){var udsa=udsn(udsc.Wa);this.h=udsL(null,"0",this.n?true:false,udsc.Va);udsg(udsa,this.h);udsg(udsa,udsk(udsi["sort-by-date"],udsc.Ua));var udsd=udsn(udsc.ea);udsg(udsd,udsJ(udsi["close"],udsc.ea));udsg(udsa,udsd);udsg(uds,udsa);this.h.focus()}else{this.h.checked=this.n?true:false;this.h.focus()}}else{if(this.h){if(this.h.checked){this.setResultOrder(GSearch.ORDER_BY_DATE)}else{this.setResultOrder(GSearch.ORDER_BY_RELEVANCE)}}}
}
;
function GimageSearch(){GSearch.call(this);this.jc=4;this.k="image";this.u="/GimageSearch"}
GimageSearch.inherits(GSearch);GimageSearch.RESULT_CLASS="GimageSearch";GimageSearch.AD_CLASS="GwebSearch.ad";GimageSearch.c=new Array;GimageSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GimageSearch.c[udse];GimageSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GimageSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GimageSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GimageSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){var udsh=uds;if(this.e){udsh=udsh+" "+this.e}udse=udse+"&q="+encodeURIComponent(udsh)}return udse}
;GimageSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa=GSearch.scaleImage(uds.tbWidth,uds.tbHeight,this.N);var udsd=udsB(uds.tbUrl,udsa.width,udsa.height,udsc.H);var udsf=udsM(uds.originalContextUrl,null,this.d(),udsc.H);udsz(udsf,udsc.H);udsg(udsf,udsd);udsg(udsb,udsf);var udse;udse=udsp(uds.originalContextUrl,uds.title,this.d(),udsc.r);udsg(udsb,udse);var udsh=uds.width+" x "+uds.height+" px";udse=udsk(udsh,udsc.dd)
;udsg(udsb,udse);udse=udsp("#",uds.visibleUrl,null,udsc.v);udsg(udsb,udse);uds.html=udsb;this.s(uds.html)}
;
function GlocalSearch(){GSearch.call(this);this.o=null;this.B="San Francisco, CA";this.z=null;this.ja=true;this.X=false;if(window.location&&window.location.host&&window.location.host!=""){this.sb=uds2(window.location.host)}else{this.sb=".com"}this.Ba=true;this.Y=udsG(this,GlocalSearch.prototype.ka);this.Aa=udsc.Ac;this.k="local";this.u="/GlocalSearch";this.i=null;this.W=null}
GlocalSearch.inherits(GSearch);GlocalSearch.RESULT_CLASS="GlocalSearch";GlocalSearch.AD_CLASS="GlocalSearch.ad";GlocalSearch.c=new Array;GlocalSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GlocalSearch.c[udse];GlocalSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GlocalSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GlocalSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GlocalSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){udse=udse+"&q="+encodeURIComponent(uds)}var udsh;if(this.o){var udsj;var udsl;var udso;if(this.ja){udsj=this.o.getCenterLatLng();udsl=this.o.getSpanLatLng();udso=this.o.getZoomLevel();if(udso<0){udso=0}else if(udso>10){udso=10}udsh="&sll="+udsj.y+
","+udsj.x;udsh+="&sspn="+udsl.height+","+udsl.width;udsh+="&z="+udso;udsh+=GlocalSearch.centerToGll(udsj.y,udsj.x);udse+=udsh}else{udsj=this.o.getCenter();udsl=this.o.getBounds().toSpan().toUrlValue();udso=17-this.o.getZoom();if(udso<0){udso=0}else if(udso>10){udso=10}udsh="&sll="+udsj.y+","+udsj.x;udsh+="&sspn="+udsl;udsh+="&z="+udso;udsh+=GlocalSearch.centerToGll(udsj.y,udsj.x);udse+=udsh}}else if(this.z){udsh="&sll="+this.z.y+","+this.z.x;udsh+="&z=6";udsh+=GlocalSearch.centerToGll(this.z.y,this.z.x)
;udse+=udsh}else if(this.B){udsh="&near="+escape(this.B);udse+=udsh}if(this.X){udse+="&nogeocode=t"}return udse}
;GlocalSearch.Ed=3.141592653589;GlocalSearch.rd=6367000;GlocalSearch.Od=16093;GlocalSearch.centerToGll=function(uds,udsb){var udsa=GlocalSearch.Od;var udsd=2*udsa/GlocalSearch.rd*2*GlocalSearch.Ed;var udsf=uds-udsd;var udse=udsb-udsd;var udsh=uds+udsd;var udsj=udsb+udsd;var udsl="&gll="+parseInt(udsf*1000000)+","+parseInt(udse*1000000)+","+parseInt(udsh*1000000)+","+parseInt(udsj*1000000)+"&llsep=500,500";return udsl}
;GlocalSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.url,uds.title,this.d(),udsc.r);udsg(udsb,udsa);var udsd=udsn(udsc.Rb);udsa=udsk(uds.streetAddress,udsc.Xb);udsg(udsd,udsa);var udsf="";if(uds.city!=""){udsf=uds.city;if(uds.region!=""){udsf+=", "}}udsa=udsk(udsf,udsc.Sb);udsg(udsd,udsa);udsa=udsk(uds.region,udsc.Vb);udsg(udsd,udsa);udsa=udsk(uds.country,udsc.Sc);udsg(udsd,udsa);udsg(udsb,udsd);if(uds.phoneNumbers&&
uds.phoneNumbers.length){var udse=null;var udsh=null;var udsj=uds.phoneNumbers[0];var udsl;for(var udso=0;udso<uds.phoneNumbers.length;udso++){udsl=uds.phoneNumbers[udso];if(udsl.type=="main"){udse=udsl;break}if(udsl.type==""||udsl.type=="mobile"&&udsh==null){udsh=udsl}}if(udse){udsl=udse}else if(udsh){udsl=udsh}else{udsl=udsj}udsa=udsk(udsl.number,udsc.Tb);udsg(udsb,udsa)}if(uds.ddUrl&&uds.ddUrl!=""){udsa=udsp(uds.ddUrl,udsi["directions"],this.d(),udsc.Tc);udsg(udsb,udsa)}uds.html=udsb;this.s(uds.html)
}
;GlocalSearch.prototype.ga=function(uds){if(uds.html){delete uds.html}var udsb=udsn(udsc.Vc);udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);if(uds.content1){udsa=udsk(uds.content1,udsc.U);udsg(udsb,udsa)}if(uds.content2){udsa=udsk(uds.content2,udsc.U);udsg(udsb,udsa)}if(uds.phoneNumber){udsa=udsk(uds.phoneNumber,udsc.Tb);udsg(udsb,udsa)}udsa=udsp("#",uds.visibleUrl,null,udsc.v);var udsd=udsB(uds.impressionUrl,12,12,udsc.cb);udsg(udsa,udsd);udsg(udsb,
udsa);if(uds.streetAddress&&uds.city&&uds.region){var udsf=udsn(udsc.Rb);var udse=uds.streetAddress+", ";udsa=udsk(udse,udsc.Xb);udsg(udsf,udsa);udse=uds.city+", ";udsa=udsk(udse,udsc.Sb);udsg(udsf,udsa);udse=uds.region;udsa=udsk(udse,udsc.Vb);udsg(udsf,udsa);udsg(udsb,udsf)}uds.html=udsb;this.s(uds.html)}
;GlocalSearch.prototype.setCenterPoint=function(uds){if(uds.centerAndZoom){this.ja=true;this.o=uds;this.z=null;this.B="";if(this.i){this.i=null}}else if(uds.setCenter){this.ja=false;this.o=uds;this.z=null;this.B="";if(this.i){this.i=null}}else if(uds.x&&uds.y){this.ja=true;this.z=uds;this.o=null;this.B="";if(this.i){this.i=null}}else{if(uds!=null&&uds!=""){this.ja=true;this.o=null;this.B=uds;this.z=null;if(this.i){this.i=null}var udsb=new GlocalSearch;udsb.setSearchCompleteCallback(this,this.jd,[
udsb,uds]);udsb.execute(uds)}}}
;GlocalSearch.prototype.jd=function(uds,udsb){if(uds.results&&uds.results.length){if(window.GMap){var udsa=new GPoint(parseFloat(uds.results[0].lng),parseFloat(uds.results[0].lat));this.z=udsa}else{this.z=null}this.B=udsb;this.Ba=true;this.o=null}}
;GlocalSearch.prototype.ka=function(uds,udsb){if(udsb){if(this.i==null){var udsa=null;if(this.o==null){var udsd=udsn(udsc.Wa);this.i=udsR(null,udsc.xc,this.B==""?null:this.B);udsg(udsd,udsk(udsi["search-location"],udsc.wc));udsg(udsd,this.i);udsg(uds,udsd);udsa=this.i}udsd=udsn("gsc-configSetting");this.W=udsL(null,"0",this.X?true:false,udsc.Va);udsg(udsd,this.W);udsg(udsd,udsk(udsi["disable-address-lookup"],udsc.Ua));if(udsa==null){udsa=this.W}var udsf=udsk(null,"gsc-configSettingSubmit");udsg(udsf,
udsJ(udsi["close"],udsc.ea));udsg(udsd,udsf);udsg(uds,udsd);udsa.focus()}}else{if(this.i){if(this.i.value){this.B=this.i.value;this.setCenterPoint(this.B)}this.i=null}if(this.W){if(this.W.checked){this.X=true}else{this.X=false}this.W=null}udsD(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.k="blog";this.u="/GblogSearch";this.aa="http://blogsearch.google.com/blogsearch";this.f=null;this.n=false;this.Ba=true;this.Y=udsG(this,GblogSearch.prototype.ka);this.Aa="gsc-blogConfig";this.h=null}
GblogSearch.inherits(GSearch);GblogSearch.RESULT_CLASS="GblogSearch";GblogSearch.AD_CLASS="GwebSearch.ad";GblogSearch.c=new Array;GblogSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GblogSearch.c[udse];GblogSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GblogSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GblogSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GblogSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){var udsh;var udsj=uds;if(this.e){udsj=udsj+" "+this.e}if(this.f){udsj=udsj+" blogurl:"+this.f}udsh="&q="+encodeURIComponent(udsj);if(this.n){udsh=udsh+"&scoring=d"}udse=udse+udsh;this.K=udsh}return udse}
;GblogSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa;udsa=udsp(uds.postUrl,uds.title,this.d(),udsc.r);udsg(udsb,udsa);var udsd=new Date(uds.publishedDate);udsa=udsk(this.Ea(udsd),udsc.eb);udsg(udsb,udsa);udsd=new Date(uds.publishedDate);udsa=udsk(this.fc(udsd),udsc.Wb);udsg(udsb,udsa);udsa=udsk(uds.content,udsc.V);udsg(udsb,udsa);udsa=udsp(uds.blogUrl,uds.blogUrl,this.d(),udsc.v);udsg(udsb,udsa);uds.html=udsb;this.s(
uds.html)}
;GblogSearch.prototype.setSiteRestriction=function(uds){if(uds==null||uds==""){this.f=null}else{this.f=uds}}
;GblogSearch.prototype.setResultOrder=function(uds){if(uds==GSearch.ORDER_BY_DATE){this.n=true}else if(uds==GSearch.ORDER_BY_RELEVANCE){this.n=false}else{this.n=false}}
;GblogSearch.prototype.ka=function(uds,udsb){if(udsb){if(this.h==null){var udsa=udsn(udsc.Wa);this.h=udsL(null,"0",this.n?true:false,udsc.Va);udsg(udsa,this.h);udsg(udsa,udsk(udsi["sort-by-date"],udsc.Ua));var udsd=udsn(udsc.ea);udsg(udsd,udsJ(udsi["close"],udsc.ea));udsg(udsa,udsd);udsg(uds,udsa);this.h.focus()}else{this.h.checked=this.n?true:false;this.h.focus()}}else{if(this.h){if(this.h.checked){this.setResultOrder(GSearch.ORDER_BY_DATE)}else{this.setResultOrder(GSearch.ORDER_BY_RELEVANCE)}}}
}
;
function GvideoSearch(){GSearch.call(this);this.k="video";this.u="/GvideoSearch";this.aa="http://video.google.com/videosearch"}
GvideoSearch.inherits(GSearch);GvideoSearch.RESULT_CLASS="GvideoSearch";GvideoSearch.AD_CLASS="GwebSearch.ad";GvideoSearch.c=new Array;GvideoSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GvideoSearch.c[udse];GvideoSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GvideoSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GvideoSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GvideoSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){var udsh;var udsj=uds;if(this.e){udsj=udsj+" "+this.e}udsh="&q="+encodeURIComponent(udsj);udse=udse+udsh;this.K=udsh}return udse}
;GvideoSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa=udsn(udsc.db);var udsd=udsn(udsc.xa);var udsf=udsC();var udse=udsA(udsf,0);var udsh=udss(udse,udsc.db);var udsj=udss(udse,udsc.xa);udsg(udsh,udsa);udsg(udsj,udsd);udsg(udsb,udsf);var udsl=GSearch.scaleImage(uds.tbWidth,uds.tbHeight,this.N);var udso=udsB(uds.tbUrl,udsl.width,udsl.height,udsc.H);var udsq=udsM(uds.url,null,this.d(),udsc.H);udsz(udsq,udsc.H);udsg(udsq,
udso);udsg(udsa,udsq);var udsu;udsu=udsp(uds.url,uds.title,this.d(),udsc.r);udsg(udsd,udsu);var udsv=udsk(uds.content,udsc.V);if(udsK()){udsv.style.height="2.6em"}udsg(udsd,udsv);var udsy=new Date(uds.published);udsu=udsk(this.Ea(udsy),udsc.Xc);udsg(udsd,udsu);udsu=udsp("http://video.google.com",uds.publisher,this.d(),udsc.Ub);udsg(udsd,udsu);uds.html=udsb;this.s(uds.html)}
;
function GbookSearch(){GSearch.call(this);this.k="book";this.u="/GbookSearch";this.aa="http://books.google.com/books"}
GbookSearch.inherits(GSearch);GbookSearch.RESULT_CLASS="GbookSearch";GbookSearch.AD_CLASS="GwebSearch.ad";GbookSearch.c=new Array;GbookSearch.RawCompletion=function(uds,udsb,udsa,udsd,udsf){var udse=0;if(uds){udse=parseInt(uds)}var udsh=GbookSearch.c[udse];GbookSearch.c[udse]=null;udsh.onSearchComplete(udsb,udsa,udsd,udsf)}
;GbookSearch.prototype.m=function(uds,udsb,udsa){var udsd;if(udsa==null){udsd=GSearch.AllocateCompletionMapContext(GbookSearch.c,this)}else{udsd=udsa}var udsf;if(udsb==null){udsf="GbookSearch.RawCompletion"}else{udsf=udsb}var udse=this.G(udsf,udsd);if(uds){var udsh;var udsj=uds;if(this.e){udsj=udsj+" "+this.e}udsh="&q="+encodeURIComponent(udsj);udse=udse+udsh;this.K=udsh}return udse}
;GbookSearch.prototype.createResultHtml=function(uds){if(uds.html){delete uds.html}uds.thumbnailHtml=this.pd(uds);var udsb=udsn(this.I());udsm(udsb,udsc.q);var udsa=udsn(udsc.xa);var udsd=udsC();var udsf=udsA(udsd,0);var udse=udss(udsf,udsc.db);var udsh=udss(udsf,udsc.xa);udsg(udse,uds.thumbnailHtml.cloneNode(true));udsg(udsh,udsa);udsg(udsb,udsd);var udsj;udsj=udsp(uds.unescapedUrl,uds.title,this.d(),udsc.r);udsg(udsa,udsj);udsj=udsk(udsi["by"]+"&nbsp;"+uds.authors,udsc.Pc);udsg(udsa,udsj);udsj=
udsn(udsc.ed);udsg(udsa,udsj);if(uds.publishedYear){udsj=udsk(uds.publishedYear,udsc.eb);udsg(udsa,udsj)}if(parseInt(uds.pageCount)>0){udsj=udsk("-&nbsp;"+udsi["page-count"](uds.pageCount),udsc.Yc);udsg(udsa,udsj)}udsj=udsp("http://books.google.com","books.google.com",this.d(),udsc.v);udsg(udsa,udsj);uds.html=udsb;this.s(uds.html)}
;GbookSearch.prototype.pd=function(uds){var udsb="http://books.google.com/googlebooks/";var udsa=udsn(udsc.Qc);var udsd=udsn(udsc.bd);var udsf=udsB(udsb+"pages-trans.gif",null,null,udsc.$c);udsg(udsd,udsf);udsf=udsB(udsb+"p_edge-trans.gif",null,null,udsc.Zc);udsg(udsd,udsf);udsg(udsa,udsd);udsd=udsn(udsc.cd);var udse=GSearch.scaleImage(uds.tbWidth,uds.tbHeight,this.N);udsf=udsB(uds.tbUrl,udse.width,udse.height,udsc.H);var udsh=udsM(uds.unescapedUrl,null,this.d(),udsc.H);udsz(udsh,udsc.H);udsg(udsh,
udsf);udsg(udsd,udsh);udsg(udsa,udsd);return udsa}
;
function GsearcherOptions(){this.E=GSearchControl.EXPAND_MODE_PARTIAL;this.kc=this.E;this.root=null;this.N={width:54,height:40};this.ia=true;this.Ra={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.kc=this.E}
;GsearcherOptions.prototype.setRoot=function(uds){udsD(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.Ra.height=uds;this.Ra.width=Math.round(uds*1.33)}
;GsearcherOptions.prototype.setImageResultsHorizontal=function(){this.ia=true}
;GsearcherOptions.prototype.setImageResultsVertical=function(){this.ia=false}
;function GdrawOptions(){this.input=null;this.oc=null;this.A=GSearchControl.DRAW_MODE_LINEAR}
GdrawOptions.prototype.setInput=function(uds){this.input=uds}
;GdrawOptions.prototype.setSearchFormRoot=function(uds){this.oc=uds}
;GdrawOptions.prototype.setDrawMode=function(uds){if(uds==GSearchControl.DRAW_MODE_LINEAR||uds==GSearchControl.DRAW_MODE_TABBED){this.A=uds}else{this.A=GSearchControl.DRAW_MODE_LINEAR}}
;function udsr(uds,udsb,udsa){this.b=udsa;this.pb=false;this.kb=false;this.gs=uds;this.g=null;this.Jd=udst(udsb,GSearchControl.prototype.Dd,[this]);this.Md=udst(udsb,GSearchControl.prototype.vb,[this,udsr.SRC_ONE]);this.Ld=udst(udsb,GSearchControl.prototype.vb,[this,udsr.SRC_MORE]);this.Kd=udst(udsb,GSearchControl.prototype.vb,[this,udsr.SRC_ALL]);this.Id=udst(udsb,GSearchControl.prototype.Cd,[this]);this.Hd=udst(udsb,GSearchControl.prototype.zd,[this]);this.gs.setSearchCompleteCallback(udsb,GSearchControl.prototype.onSearchComplete,
[this]);this.gs.setResultSetSize(udsb.resultSetSize);this.gs.setLinkTarget(udsb.P);this.root=null;this.Qa=null;this.ba=null;this.xb=null;this.L=null;this.Z=null;this.t=null;this.Fa=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.A=GSearchControl.DRAW_MODE_LINEAR;this.root=null;this.La=null;this.input=
null;this.Oa=GSearchControl.TIMEOUT_MEDIUM;this.xd=udst(this,GSearchControl.prototype.Ad,[null]);this.yd=udst(this,GSearchControl.prototype.Bd,[null]);this.la=null;this.zb=null;this.yb=null;this.ca=null;this.hc=false;this.ya=false;this.P=GSearch.LINK_TARGET_BLANK;this.Ha=udsi["copy"];this.a=new Array;this.gb=new Array;var udsb;if(uds){for(var udsa=0;udsa<uds.length;udsa++){udsb=new udsr(uds[udsa],this,false);this.a.push(udsb)}}}
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,udsb){if(!udsb){udsb=new GsearcherOptions}if(uds.k=="ad"){this.gb.push(uds)}else{var udsa=new udsr(uds,this,udsb);this.a.push(udsa)}}
;GSearchControl.prototype.draw=function(uds,udsb){var udsa=null;var udsd=null;if(udsb){if(udsb.A){this.A=udsb.A;udsa=udsb.input;udsd=udsb.oc}else{this.A=GSearchControl.DRAW_MODE_LINEAR}}else{this.A=GSearchControl.DRAW_MODE_LINEAR}this.root=udsn(udsc.yc);if(udsa!=null){this.input=udsa;this.input.onkeyup=this.xd;this.input.onpaste=this.yd}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.ma=udsn(udsc.S);if(this.A==GSearchControl.DRAW_MODE_TABBED){this.O=udsn(udsc.Pb);udsg(this.root,this.O);this.j=new Array;this.w=0;for(var udse=0;udse<this.a.length;udse++){var udsh=new Object;udsh.J=udsk(this.a[udse].gs.wd());udsh.M=null;udsh.J.onclick=udst(this,GSearchControl.prototype.Nd,[udse]);this.j[udse]=udsh;udsg(this.O,udsh.J);this.a[udse].b.setExpandMode(GSearchControl.EXPAND_MODE_OPEN)}}udsg(this.root,this.ma);for(var udse=
0;udse<this.a.length;udse++){if(this.a[udse].b.root){this.a[udse].Fa=false;this.a[udse].root=this.a[udse].b.root;udsm(this.a[udse].root,udsc.Ya);udsx(this.a[udse].root,udsc.T);udsm(this.a[udse].root,udsc.S)}else{this.a[udse].root=udsn(udsc.Ya)}if(this.a[udse].gs.qa){var udsj=udsc.Ya+"-"+this.a[udse].gs.qa;udsm(this.a[udse].root,udsj)}if(this.A==GSearchControl.DRAW_MODE_TABBED){this.j[udse].M=this.a[udse].root}var udsl=udsC(null,null,udsc.Fc);var udso=udsA(udsl,0);this.a[udse].R=udss(udso,udsc.Nc)
;var udsq=udss(udso,udsc.tc);this.a[udse].Qa=udsk("",udsc.Oc);udsg(this.a[udse].R,this.a[udse].Qa);var udsu=udsk(this.a[udse].gs.ud(),udsc.Lc);udsg(this.a[udse].Qa,udsu);this.a[udse].ba=udsk("",udsc.Ic);udsg(this.a[udse].R,this.a[udse].ba);var udsv=udsk();var udsy=udsk(udsi["blank"],udsc.Ec);var udsE=udsk(udsi["blank"],udsc.Dc);var udsF=udsk(udsi["blank"],udsc.Cc);udsy.title=udsi["show-one-result"];udsE.title=udsi["show-more-results"];udsF.title=udsi["show-all-results"];udsg(udsv,udsy);udsg(udsv,
udsE);udsg(udsv,udsF);udsy.onclick=this.a[udse].Md;udsE.onclick=this.a[udse].Ld;udsF.onclick=this.a[udse].Kd;this.a[udse].xb=udsv;this.a[udse].Ab(udsr.SRC_INIT);udsg(this.a[udse].R,this.a[udse].xb);this.a[udse].Qa.onclick=this.a[udse].Jd;if(this.a[udse].gs.Y){this.a[udse].l=udsS("",udsc.uc);udsV(this.a[udse].l,udsi["blank"]);udsm(this.a[udse].l,udsc.fa);udsg(udsq,this.a[udse].l);this.a[udse].l.onclick=this.a[udse].Id;this.a[udse].l.title=udsi["settings"];this.a[udse].L=udsn(udsc.Ib);udsm(this.a[udse]
.L,this.a[udse].gs.Aa);this.a[udse].Z=udsQ(udsc.Ib);udsm(this.a[udse].Z,this.a[udse].gs.Aa);this.a[udse].Z.onsubmit=this.a[udse].Hd;udsg(this.a[udse].L,this.a[udse].Z);this.a[udse].L.style.display="none"}this.a[udse].t=udsn(udsc.Gc);udsm(this.a[udse].t,this.a[udse].gs.rb());if(this.a[udse].b.root==null){udsg(this.ma,this.a[udse].root)}udsg(this.a[udse].root,udsl);if(this.a[udse].L){udsg(this.a[udse].root,this.a[udse].L)}udsg(this.a[udse].root,this.a[udse].t)}if(this.A==GSearchControl.DRAW_MODE_TABBED)
{for(var udse=0;udse<this.a.length;udse++){udsm(this.j[udse].J,udsc.Kc);udsm(this.j[udse].M,udsc.Jc);if(udse==this.w){udsm(this.j[udse].J,udsc.ab);udsm(this.j[udse].M,udsc.Za)}else{udsm(this.j[udse].J,udsc.bb);udsm(this.j[udse].M,udsc.$a)}}}if(uds){udsU(uds,this.root);var udsY=this.td();if(udsY&&udsY<300){this.hc=true;udsm(this.root,udsc.Bc)}}}
;GSearchControl.prototype.setTimeoutInterval=function(uds){switch(uds){case GSearchControl.TIMEOUT_SHORT:case GSearchControl.TIMEOUT_MEDIUM:case GSearchControl.TIMEOUT_LONG:this.Oa=uds;break;default:this.Oa=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,udsb,udsa){if(udsa){switch(udsa){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.Ha=udsi[udsa];break;default:
this.Ha=udsa;break}}this.la=udsG(uds,udsb)}
;GSearchControl.prototype.Nd=function(uds){if(this.w==uds){return}udsx(this.j[this.w].J,udsc.ab);udsx(this.j[this.w].M,udsc.Za);udsm(this.j[this.w].J,udsc.bb);udsm(this.j[this.w].M,udsc.$a);this.w=uds;udsm(this.j[this.w].J,udsc.ab);udsm(this.j[this.w].M,udsc.Za);udsx(this.j[this.w].J,udsc.bb);udsx(this.j[this.w].M,udsc.$a)}
;GSearchControl.prototype.submit=function(){if(this.input.value.length){this.execute()}else{this.clearAllResults()}return false}
;GSearchControl.prototype.execute=function(uds){var udsb;if(uds){udsb=uds;this.input.value=udsb}else{udsb=this.input.value}if(udsb.length){this.ya=false;udsz(this.ma,udsc.T);if(this.O){udsz(this.O,udsc.Qb)}for(var udsa=0;udsa<this.a.length;udsa++){if(!this.a[udsa].Fa){udsx(this.a[udsa].root,udsc.S);udsm(this.a[udsa].root,udsc.T)}if(this.zb){this.zb(this,this.a[udsa].gs,udsb)}this.a[udsa].gs.execute(udsb)}for(var udsa=0;udsa<this.gb.length;udsa++){this.gb[udsa].execute(udsb)}}}
;GSearchControl.prototype.Ad=function(){var uds=this.input.value;if(uds&&uds!=""){if(this.ca){clearTimeout(this.ca)}this.ca=setTimeout(udst(this,GSearchControl.prototype.execute,[null]),this.Oa)}}
;GSearchControl.prototype.Bd=function(){if(this.ca){clearTimeout(this.ca)}this.ca=setTimeout(udst(this,GSearchControl.prototype.execute,[null]),this.Oa)}
;GSearchControl.prototype.setResultSetSize=function(uds){var udsb=true;switch(uds){case GSearch.LARGE_RESULTSET:this.resultSetSize=uds;udsb=true;break;default:case GSearch.SMALL_RESULTSET:this.resultSetSize=GSearch.SMALL_RESULTSET;udsb=false;break}for(var udsa=0;udsa<this.a.length;udsa++){this.a[udsa].gs.setResultSetSize(uds)}}
;GSearchControl.prototype.setLinkTarget=function(uds){this.P=uds;for(var udsb=0;udsb<this.a.length;udsb++){this.a[udsb].gs.setLinkTarget(uds)}}
;GSearchControl.prototype.Dd=function(uds){if(uds.pb){this.Q(uds,false)}else{this.Q(uds,true)}}
;GSearchControl.prototype.Q=function(uds,udsb,udsa){if(!udsb){udsx(uds.R,udsc.wa);udsm(uds.R,udsc.fa);uds.pb=false;uds.t.style.display="none";if(udsa){var udsd="(0)";uds.ba.innerHTML=udsd}else{var udsd="("+(uds.gs.results.length+uds.gs.adResults.length)+")";uds.ba.innerHTML=udsd}}else{udsx(uds.R,udsc.fa);udsm(uds.R,udsc.wa);uds.pb=true;uds.t.style.display="block"}}
;GSearchControl.prototype.zd=function(uds){this.oa(uds,false,true);return false}
;GSearchControl.prototype.Cd=function(uds){if(uds.gs.Ba){if(uds.kb){this.oa(uds,false,true)}else{this.oa(uds,true,true)}}}
;GSearchControl.prototype.oa=function(uds,udsb,udsa){if(!udsb){if(uds.l){udsx(uds.l,udsc.wa);udsm(uds.l,udsc.fa);uds.l.innerHTML=udsi["blank"];uds.kb=false;uds.gs.Y(uds.Z,false);uds.L.style.display="none";if(udsa){this.execute()}}}else{if(uds.l){udsm(uds.l,udsc.wa);udsx(uds.l,udsc.fa);uds.l.innerHTML=udsi["close"];uds.kb=true;uds.L.style.display="block";uds.gs.Y(uds.Z,true)}}}
;GSearchControl.prototype.ic=function(uds,udsb){if(this.la){udsb.gs.gc();this.la(uds)}}
;GSearchControl.prototype.cancelSearch=function(){this.ya=true}
;GSearchControl.prototype.clearAllResults=function(){this.input.value="";udsz(this.ma,udsc.S);if(this.O){udsz(this.O,udsc.Pb)}for(var uds=0;uds<this.a.length;uds++){if(!this.a[uds].Fa){udsx(this.a[uds].root,udsc.T);udsm(this.a[uds].root,udsc.S)}var udsb=this.a[uds];udsD(udsb.t);udsb.g=null;this.Q(udsb,false,true);this.oa(udsb,false,false)}}
;GSearchControl.prototype.onSearchComplete=function(uds){var udsb;var udsa;var udsd=false;var udsf;if(this.ya){return}udsD(uds.t);uds.g=null;this.Q(uds,false,true);this.oa(uds,false,false);uds.Ab(udsr.SRC_INIT);for(var udsa=0;udsa<uds.gs.results.length;udsa++){udsb=uds.gs.results[udsa];if(!udsb.html){uds.gs.createResultHtml(udsb)}if(udsb.html){udsd=true;udsf=udsn(uds.gs.rb());udsm(udsf,udsc.Xa);if(uds.gs.qa){var udse=udsc.Xa+"-"+uds.gs.qa;udsm(udsf,udse)}var udsh=udsb.html.cloneNode(true);if(udsb.GsearchResultClass==
GimageSearch.RESULT_CLASS){if(uds.b.ia){udsm(udsf,"horizontal")}else{udsm(udsf,"vertical")}if(uds.b.N){var udsj=udsh.getElementsByTagName("img");for(var udsl=0;udsl<udsj.length;udsl++){GSearch.scaleImage(udsb.tbWidth,udsb.tbHeight,uds.b.N,udsj[udsl])}}}else if(udsb.GsearchResultClass==GvideoSearch.RESULT_CLASS){if(uds.b.Ra){var udsj=udsh.getElementsByTagName("img");for(var udsl=0;udsl<udsj.length;udsl++){GSearch.scaleImage(udsb.tbWidth,udsb.tbHeight,uds.b.Ra,udsj[udsl])}}}udsg(udsf,udsh);if(this.la)
{var udso=this.Ha;if(udsb.GsearchResultClass==GimageSearch.RESULT_CLASS&&uds.b.ia){udso=udsi["blank"]}var udsq=udsk("",udsc.Kb);udsV(udsq,udso);udsg(udsf,udsq);udsq.onclick=udst(this,GSearchControl.prototype.ic,[udsb,uds])}var udsu=uds.gs.jc;if(udsb.GsearchResultClass==GimageSearch.RESULT_CLASS){if(uds.b.ia==false){udsu=1}else{if(this.hc){udsu=2}}}if(udsa>=udsu){if(!uds.g){uds.g=udsn(udsc.zc);udsg(uds.t,uds.g);if(uds.b.E==GSearchControl.EXPAND_MODE_PARTIAL){uds.g.style.display="none"}}udsg(uds.g,
udsf)}else{udsg(uds.t,udsf)}}}if(uds.g&&uds.gs.K&&uds.gs.gwsUrl){udsf=udsp(uds.gs.gwsUrl,udsi["more-results"]+"&nbsp;&raquo;",uds.gs.d(),udsc.Mc);udsg(uds.g,udsf)}var udsv=uds.g?uds.g:uds.t;if(uds.gs.adResults.length){var udsy=udsn(udsc.qc);for(var udsa=0;udsa<uds.gs.adResults.length;udsa++){if(udsa==0){var udsf=udsk(udsi["sponsored-links"],udsc.Uc);udsg(udsy,udsf)}udsb=uds.gs.adResults[udsa];if(!udsb.html){uds.gs.ga(udsb)}if(udsb.html){udsd=true;udsf=udsn(uds.gs.rb());udsm(udsf,udsc.Xa);udsg(udsf,
udsb.html.cloneNode(true));if(this.la){var udsq=udsk(this.Ha,udsc.Kb);udsg(udsf,udsq);udsq.onclick=udst(this,GSearchControl.prototype.ic,[udsb,uds])}udsg(udsy,udsf)}}udsg(udsv,udsy)}if(!udsd){uds.ba.innerHTML="(0)";uds.t.innerHTML="";this.Q(uds,false)}else{var udsE;var udsE="("+(uds.gs.results.length+uds.gs.adResults.length)+")";uds.ba.innerHTML=udsE;if(uds.b.E==GSearchControl.EXPAND_MODE_PARTIAL||uds.b.E==GSearchControl.EXPAND_MODE_OPEN){this.Q(uds,true)}else{this.Q(uds,false)}var udsF=uds.gs.getAttribution(
true);if(udsF){udsg(uds.t,udsF)}}uds.b.E=uds.b.kc;if(this.yb){this.yb(this,uds.gs)}}
;GSearchControl.ac={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,udsb){if(udsZ()){alert("GSearchControl.inlineCurrentStyle is not supported on Safari");return}var udsa=true;if(udsb){udsa=udsb}if(udsa){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 udsj=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 udsl in udsf){if(GSearchControl.ac[udsl]){var udso=GSearchControl.ac[udsl];var udsq=udsf[udsl];if(udsl=="display"&&udsq=="none"){uds.innerHTML="";udsj=true}if(udsf[udsl]
!=""){if(udse){uds.style.setProperty(udso,udsq,"")}else{uds.style.setAttribute(udso,udsq,"")}}}}if(udsj){if(udse==false){uds.outerHTML="<div style='display:none'/>"}}}}}
;GSearchControl.prototype.td=function(uds){var udsb=uds?uds:this.root;var udsa=null;if(window.getComputedStyle){udsa=window.getComputedStyle(udsb,null)}else if(udsb.currentStyle){udsa=udsb.currentStyle}else if(document.defaultView.getComputedStyle){udsa=document.defaultView.getComputedStyle(udsb,null)}if(udsa){return parseInt(udsa["width"])}else{return 300}}
;GSearchControl.prototype.setSearchCompleteCallback=function(uds,udsb){this.yb=udsG(uds,udsb)}
;GSearchControl.prototype.setSearchStartingCallback=function(uds,udsb){this.zb=udsG(uds,udsb)}
;udsr.SRC_INIT=0;udsr.SRC_ONE=1;udsr.SRC_MORE=2;udsr.SRC_ALL=3;udsr.prototype.Ab=function(uds){var udsb=udsc.Hc+" ";if(uds==udsr.SRC_INIT){if(this.b.E==GSearchControl.EXPAND_MODE_PARTIAL){udsb+=udsc.Mb}else if(this.gs.getResultSetSize()==GSearch.SMALL_RESULTSET){udsb+=udsc.Lb}else{udsb+=udsc.Fb}}else if(uds==udsr.SRC_ONE){udsb+=udsc.Mb}else if(uds==udsr.SRC_MORE){udsb+=udsc.Lb}else{udsb+=udsc.Fb}udsz(this.xb,udsb)}
;GSearchControl.prototype.vb=function(uds,udsb){uds.Ab(udsb);var udsa=false;switch(udsb){default:case udsr.SRC_ONE:if(uds.g){uds.g.style.display="none"}break;case udsr.SRC_MORE:if(uds.g){uds.g.style.display="block"}if(uds.gs.getResultSetSize()!=GSearch.SMALL_RESULTSET){udsa=true}uds.gs.setResultSetSize(GSearch.SMALL_RESULTSET);break;case udsr.SRC_ALL:if(uds.g){uds.g.style.display="block"}if(uds.gs.getResultSetSize()!=GSearch.LARGE_RESULTSET){udsa=true}uds.gs.setResultSetSize(GSearch.LARGE_RESULTSET)
;break}if(udsa){var udsd;udsd=this.input.value;if(udsd.length){this.ya=false;udsz(this.ma,udsc.T);if(this.O){udsz(this.O,udsc.Qb)}if(!uds.Fa){udsx(uds.root,udsc.S);udsm(uds.root,udsc.T)}uds.b.E=GSearchControl.EXPAND_MODE_OPEN;uds.gs.execute(udsd)}}}
;function GSearchForm(uds,udsb){var udsa=udsQ(udsc.Nb);udsa.acceptCharset="utf-8";var udsd=udsi["search-uc"];this.La=udsJ(udsd,udsc.Ob);this.La.title=udsi["search"];var udsf;if(uds){udsf=udsc.rc;this.ib=udsk(udsi["blank"],udsc.Hb);this.ib.title=udsi["clear-results"]}else{udsf=udsc.Ta}this.input=udsR(null,udsc.Jb,null);var udse=udsC(null,null,udsc.Nb);udsg(udsa,udse);var udsh=udsA(udse,0);var udsj=udss(udsh,udsc.Jb);var udsl=udss(udsh,udsc.Ob);if(uds){var udso=udss(udsh,udsc.Hb);udsg(udso,this.ib)
}udsg(udsj,this.input);udsg(udsl,this.La);var udsq=udsC(null,null,udsc.ta);udsg(udsa,udsq);udsh=udsA(udsq,0);this.userDefinedCell=udss(udsh,udsc.sc);var udsu=udss(udsh,udsc.va);var udsv=udss(udsh,udsf);var udsy=udsk(udsi["powered-by"],udsc.va);var udsE=UDS_ServiceBase+"/css/small-logo.png";var udsF=udsW(udsE,51,15,udsf);udsg(udsu,udsy);udsg(udsv,udsF);this.da=udsa;udsD(udsb);udsg(udsb,this.da)}
GSearchForm.prototype.setOnSubmitCallback=function(uds,udsb){this.Na=udst(uds,udsb,[this]);this.da.onsubmit=this.Na;this.La.onclick=this.Na}
;GSearchForm.prototype.setOnClearCallback=function(uds,udsb){this.ib.onclick=udst(uds,udsb,[this])}
;GSearchForm.prototype.execute=function(uds){if(uds){this.input.value=uds}if(this.Na){this.Na()}}
;

