(function(){var d={_otherWebSearches:function(a){var b="";b+='<a href="http://www.alltheweb.com/search?q='+a+'&cs=utf-8">AllTheWeb</a>, ';b+='<a href="http://fr.altavista.com/web/results?q='+a+'">Altavista</a>, ';b+='<a href="http://search.msn.fr/results.aspx?q='+a+'">MSN</a>, ';b+='<a href="http://s.teoma.com/search?q='+a+'">Teoma</a>, ';b+='<a href="http://vachercher.lycos.fr/cgi-bin/pursuit?query='+a+'">Lycos</a>, ';b+='<a href="http://fr.search.yahoo.com/search?p='+a+'&ei=UTF-8">Yahoo</a>, ';b+='<a href="http://search.ke.voila.fr/S/voila?kw='+a+'">Voila</a>';return b},_otherMovieReviews:function(a){var b="";b+='<a href="http://www.rottentomatoes.com/search/search.php?searchby=movies&amp;search='+a+'">Rotten Tomatoes</a>, ';b+='<a href="http://www.metacritic.com/search/process?ty=1&amp;ts='+a+'">Metacritic</a>, ';b+='<a href="http://movies.yahoo.com/mv/search?p='+a+'">Yahoo Movies</a>, ';b+='<a href="http://search.movies.go.com/movieSearch?search='+a+'">Movies.com</a>, ';b+='<a href="http://www.imdb.com/find?q='+a+';tt=on;mx=20">IMDb</a>';return b},_otherNewsResults:function(a){var b="";b+='<a href="http://news.search.yahoo.com/search/news/?p='+a+'">Yahoo News</a>, ';b+='<a href="http://news.ask.com/news?q='+a+'">Ask Jeeves</a>, ';b+='<a href="http://www.alltheweb.com/search?cat=news&q='+a+'">AllTheWeb</a>, ';b+='<a href="http://search.msn.com/news/results.aspx?q='+a+'">MSN</a>, ';b+='<a href="http://search.lycos.com/default.asp?tab=news&query='+a+'">Lycos</a>, ';b+='<a href="http://search.sky.com/search/skynews/results/1,,,00.html?QUERY='+a+'">Sky News</a>, ';b+='<a href="http://search.cnn.com/pages/search.jsp?query='+a+'">CNN</a>, ';b+='<a href="http://www.feedster.com/search.php?q='+a+'">Feedster</a>, ';b+='<a href="http://www.daypop.com/search?q='+a+'">Daypop</a>, ';b+='<a href="http://www.bloglines.com/search?t=1&amp;q='+a+">Bloglines</a>";return b},_otherWeatherForecasts:function(a){var b="";b+='<a href="http://weather.yahoo.com/search/weather2?p='+a+'">Yahoo</a>, ';b+='<a href="http://web.ask.com/web?q=weather+'+a+'">Ask Jeeves</a>, ';b+='<a href="http://channels.netscape.com/ns/weather/c_select2.jsp?where='+a+'">Netscape</a>, ';b+='<a href="http://weather.cnn.com/weather/search?wsearch='+a+'">CNN</a>, ';b+='<a href="http://asp.usatoday.com/weather/CityForecast.aspx?source=both&amp;txtSearchCriteria='+a+'">USA Today</a>, ';b+='<a href="http://www.wxforecasts.com/ameriwx/ameriwx.php?pands='+a+'">Ameriwx</a>, ';b+='<a href="http://www.wunderground.com/cgi-bin/findweather/getForecast?query='+a+'">Weather Underground</a>';b+='<br>Download <a href="http://forecastfox.mozdev.org/">ForecastFox</a> to get weather forecasts in your Firefox status bar';return b},_otherBookReviews:function(b){var a="";a+='<a href="http://www.amazon.com/exec/obidos/ASIN/'+b+'/quickclick-20">Amazon.com</a><br>';a+='<a href="http://barnesandnoble.bfast.com/booklink/click?ISBN='+b+'&sourceid=225076">Barnes&Noble</a><br>';a+='<a href="http://bookshop.blackwell.com/bobus/scripts/home.jsp?action=search&source=3246694795&type=isbn&term='+b+'">Blackwells</a><br>';return a},_otherProductSearches:function(a){var b="";b+='<a href="http://shopping.yahoo.com/search?p='+a+'">Yahoo Shopping</a>, ';b+='<a href="http://search.mysimon.com/search?qt='+a+'">MySimon</a>, ';b+='<a href="http://shopper-search.cnet.com/search?q='+a+'">CNET Shopper</a>, ';b+='<a href="http://www.nextag.com/serv/main/buyer/OutPDir.jsp?search='+a+'">NexTag</a>, ';b+='<a href="http://www.streetprices.com/x/search.cgi?query='+a+'">StreetPrices.com</a>, ';b+='<a href="http://www.shopping.com/xFS?KW='+a+'">Shopping.com</a>, ';b+='<a href="http://search.ebay.com/search/search.dll?query='+a+'">eBay</a>';return b},_otherImageSearches:function(a){var b="";b+='<a href="http://images.search.yahoo.com/search/images?p='+a+'">Yahoo</a>, ';b+='<a href="http://pictures.ask.com/pictures?q='+a+'">Ask Jeeves</a>, ';b+='<a href="http://www.alltheweb.com/search?cat=img&q='+a+'">AlltheWeb</a>, ';b+='<a href="http://search.msn.com/images/results.aspx?q='+a+'">MSN</a>, ';b+='<a href="http://www.picsearch.com/search.cgi?q='+a+'">PicSearch</a>, ';b+='<a href="http://www.ditto.com/searchResults.asp?ss='+a+'">Ditto</a>, ';b+='<a href="http://creative.gettyimages.com/source/classes/FrameSet.aspx?s=ImagesSearchState|3|5|0|15|2|1|0|0|1|60|ffff.ffff.ffff.ffff.ffff.ffff|1|0|'+a+'||1|0&pk=4">Getty</a>, ';b+='<a href="http://www.creatas.com/searchResults.aspx?searchString='+a+'">Creatas</a>, ';b+='<a href="http://www.freefoto.com/search.jsp?queryString='+a+'">FreeFoto</a>, ';b+='<a href="http://www.webshots.com/search?query='+a+'">WebShots</a>, ';b+='<a href="http://nix.larc.nasa.gov/search?qa='+a+'">NASA</a>, ';b+='<a href="http://www.flickr.com/photos/search/text:'+a+'">Flickr</a>';return b},_otherExtensions:function(){var a="";a+='<font size="-1">You may also be interested in these Google-related Firefox extensions:<ul>';a+='<li><a href="http://quirk.co.za/searchstatus/">SearchStatus</a> displays PageRank and Alexa information in status bar</li>';a+='<li><a href="http://bettersearch.g-blog.net/">BetterSearch</a> adds thumbnails and other features to search results</li>';a+='<li><a href="http://www.squarefree.com/extensions/search-keys/">Search Keys</a> adds keyboard shortcuts to search results</li>';a+="</ul></font>";return a}};get_search_form=function(){return document.evaluate("//form[@action='/search']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};selectAllNodes=function(a,b,c){var j=a.evaluate(c,b,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var k=new Array(j.snapshotLength);for(var l=0;l<k.length;l++){k[l]=j.snapshotItem(l)}return k};var f={addGlobalStyle:function(b){var a=document.createElement("style");a.type="text/css";a.innerHTML=b;document.getElementsByTagName("head")[0].appendChild(a)},removeSponsoredLinks:function(){var a=document.getElementById("aw1");while(a){var h=a.parentNode;while(h.nodeName!="TABLE"){h=h.parentNode}h.parentNode.removeChild(h);a=document.getElementById("aw1")}var b=document.getElementById("tpa1");if(b){var c=b.parentNode.parentNode.parentNode.parentNode;if(c){c.parentNode.removeChild(c)}}this.addGlobalStyle('iframe[name="google_ads_frame"] { display: none ! important }')},removeSponsoredLinksGmail:function(){var a=document.getElementById("ad");if(a){a.parentNode.removeChild(a)}},removeSponsoredLinksLocal:function(){var a=document.evaluate("//table[@class='la']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(a){a.parentNode.removeChild(a)}},addOtherWebSearches:function(){var a=document.evaluate("//table[@bgcolor='#e5ecf9']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!a){return}var b=encodeURIComponent(document.gs.q.value);var h=document.createElement("div");var c='<span style="font-size: small">Try your search on ';c+=d._otherWebSearches(b);c+="</span><br>";h.innerHTML=c;a.parentNode.insertBefore(h,a.nextSibling)},addOtherInlineMovieReviews:function(){var o=document.evaluate("//a[contains(@href, 'oi=showtimes')]",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(o){var l=document.evaluate("//a[contains(@href, 'oi=showtimes')]/ancestor::table",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!l){return}q=encodeURIComponent(document.gs.q.value);var p=document.createElement("div");var m='<span style="font-size: small; margin: 0 0 0 40px;">Find more reviews at ';m+=d._otherMovieReviews(q);m+="</span><br>";p.innerHTML=m;l.parentNode.insertBefore(p,l.nextSibling)}else{var n=document.evaluate("//a[starts-with(@href, '/reviews')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var b=n.snapshotItem(0);if(!b){return}b=b.innerHTML;b=b.replace(/<b>/g,"");b=b.replace(/<\/b>/g,"");var c=n.snapshotItem(2);var a=c.parentNode;while(a.nodeName!="DIV"){a=a.parentNode}q=encodeURIComponent(b);var p=document.createElement("div");var m='<span style="margin: 0; padding-bottom: 3px;">Find more reviews at ';m+=d._otherMovieReviews(q);m+="</span><br>";p.innerHTML=m;a.appendChild(p)}},addOtherInlineNewsResults:function(){var i=document.evaluate("//a[starts-with(@href, 'http://news.google.')][contains(@href, 'oi=newsr')]",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!i){return}var a=i.parentNode;while(a.nodeName!="TD"){a=a.parentNode}a=a.parentNode.nextSibling.lastChild;var b=encodeURIComponent(document.gs.q.value);var j=document.createElement("div");var c='<div style="margin-top: 3px; font-size: small;">Find more news at ';c+=d._otherNewsResults(b);c+="</div>";j.innerHTML=c;a.appendChild(j)},addOtherInlineForecasts:function(){var b=document.evaluate("//img[starts-with(@src, '/images/weather/')]/ancestor::table",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!b){return}var a=document.gs.q.value;a=a.replace(/\s*weather\s*/ig,"");a=a.replace(/\s*forecast\s*/ig,"");a=encodeURIComponent(a);var h=document.createElement("div");var c='<div style="margin-top: 7px; line-height: 140%; font-size: small;">Find more forecasts at ';c+=d._otherWeatherForecasts(a);c+="</div>";h.innerHTML=c;b.parentNode.insertBefore(h,b.nextSibling)},addOtherInlineProductSearches:function(){var b=document.evaluate("//a[contains(@href, 'oi=froogler')]/ancestor::table",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!b){return}var a=document.gs.q.value;a=encodeURIComponent(a);var h=document.createElement("div");var c='<div style="margin-left: 40px; line-height: 140%; font-size: small;">Find more products at ';c+=d._otherProductSearches(a);c+="</div>";h.innerHTML=c;b.parentNode.insertBefore(h,b.nextSibling)},addOtherImageSearches:function(){var c=document.evaluate("//a[starts-with(@href, '/images?q=')]/ancestor::table[@width='100%'][@border='0'][@cellpadding='0'][@cellspacing='0']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;var a=document.createElement("tr");var b=encodeURIComponent(document.gs.q.value);var h='<td align="left"><span style="font-size: small">Try your search on ';h+=d._otherImageSearches(b);h+="</span></td>";a.innerHTML=h;c.appendChild(a)},addOtherNewsSearches:function(){var c=document.evaluate("//table[@width='75%'][@cellpadding='2'][@cellspacing='7']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!c){return}var a=document.createElement("div");var b=encodeURIComponent(document.gs.q.value);var h='<span style="font-size: small; margin: 0;">Try your search on ';h+=d._otherNewsResults(b);h+="</span><br>";a.innerHTML=h;c.parentNode.insertBefore(a,c)},addOtherProductSearches:function(){var b=document.evaluate("//tr[@bgcolor='#ddf8cc']/ancestor::table[@width='100%'][@border='0'][@cellpadding='0'][@cellspacing='0']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;var a=encodeURIComponent(document.gs.q.value);var h=document.createElement("div");var c='<span style="font-size: small;">Try your search on ';c+=d._otherProductSearches(a);c+="</span><br>";h.innerHTML=c;b.parentNode.insertBefore(h,b.nextSibling)},restoreGooglePrint:function(){var b=document.evaluate("//img[@src='images/cleardot.gif']",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);var c,i,a,j;for(c=null,i=0;(c=b.snapshotItem(i));i++){a=c.parentNode;if(a.nodeName!="DIV"){a=a.parentNode}j=document.defaultView.getComputedStyle(a,"").backgroundImage;j=j.replace(/url\((.*?)\)/g,"$1");c.style.border="none";c.src=j}document.oncontextmenu=null},addOtherBookReviews:function(){var c=document.evaluate("//a[contains(@href, 'amazon.com')]",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!c){return}var j=c.href.match(/([0-9X]{10})/);if(!j){return}var k=document.createElement("div");var a='<font size="-1">'+d._otherBookReviews(j[1])+"</font>";k.innerHTML=a;c.parentNode.insertBefore(k,c);var b=selectAllNodes(document,document.body,"//a[contains(@href, 'pagead')]");if(b.length==0){return}for(var l=0;l<b.length;l++){b[l].parentNode.removeChild(b[l])}},addOtherExtensions:function(){var a=document.evaluate("//img[@src='googlebar_screenshot.gif']",document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!a){return}var b=document.createElement("p");b.style.textAlign="left";b.innerHTML=d._otherExtensions();a.parentNode.parentNode.insertBefore(b,a.parentNode.nextSibling)},addGoogleSuggest:function(){var a=get_search_form();if(!a){return}var c=document.createElement("script");c.src="http://www.google.com/ac.js";var b=new Object();b.handleEvent=function(g){InstallAC(a,a.q,a.btnG,"search","en")};c.addEventListener("load",b,true);document.getElementsByTagName("head")[0].appendChild(c);a.q.setAttribute("autocomplete","off")},checkForUpdate:function(){var a=document.createElement("script");a.src="http://www.customizegoogle.com/check-for-update.js?v=0.8&rnd=NH9CTZRT7K";document.getElementsByTagName("head")[0].appendChild(a)},pointLinksToImages:function(){var b=selectAllNodes(document,document.body,"//A[contains(@href,'/imgres?imgurl=')][contains(@href,'&imgrefurl=')]");var l=null;for(var n=0;n<b.length;n++){var m=null;l=b[n].href.match(/\&imgrefurl\=(.*?)\&h=/);if(l){m=decodeURI(l[1])}var k=null;l=b[n].href.match(/\/imgres\?imgurl\=(.*?)\&imgrefurl\=/);if(l){k=decodeURI(l[1]);b[n].href=k;var a=document.createElement("div");var c='<font size="-2">[ ';c+='<a class="fl" href="'+k+'">Origin Image</a>';if(m){c+=" | ";c+='<a class="fl" href="'+m+'">Origin Page</a>'}c+=" ]</font>";a.innerHTML=c;b[n].parentNode.appendChild(a)}}}};var e=window.location.href;if(e.match(/^http:\/\/www\.google\.[a-z\.]+\//i)){f.removeSponsoredLinks();f.addOtherWebSearches();f.addOtherInlineNewsResults();f.addOtherInlineMovieReviews();f.addOtherInlineForecasts();f.addOtherInlineProductSearches();f.addGoogleSuggest()}if(e.match(/^http:\/\/images\.google\.[a-z\.]+\/images/i)){f.addOtherImageSearches();f.pointLinksToImages()}if(e.match(/^http:\/\/groups-beta\.google\.[a-z\.]+\//i)){f.removeSponsoredLinks()}if(e.match(/^http:\/\/news\.google\.[a-z\.]+\/news/i)){f.addOtherNewsSearches()}if(e.match(/^http:\/\/froogle\.google\.[a-z\.]+\/froogle/i)){f.removeSponsoredLinks();f.addOtherProductSearches()}if(e.match(/^http:\/\/answers\.google\.[a-z\.]+\/answers/i)){f.removeSponsoredLinks()}if(e.match(/^http:\/\/print\.google\.[a-z\.]+\/print/i)){f.restoreGooglePrint();f.addOtherBookReviews()}if(e.match(/^http:\/\/toolbar\.google\.[a-z\.]+\/googlebar\.html$/i)){f.addOtherExtensions()}if(e.match(/^https?:\/\/gmail\.google\.[a-z\.]+\/gmail/i)){f.removeSponsoredLinksGmail();if(e.match(/^http:/i)){window.location.href=e.replace(/^http\:(.+)/,"https:$1")}}if(e.match(/^http:\/\/local\.google\.[a-z\.]+\/local/i)){f.removeSponsoredLinksLocal()}if(e.match(/^http:\/\//i)){f.checkForUpdate()}})();
