var iEngSize = 90; var sezGuide = "ezGuide"; function MakeArray(n) { for (var i = 1; i <= n; i++) { this[i] = 0; } this.maxlen = n; this.len = 0; return this; } var engs = new MakeArray(iEngSize); function find_substring(needle, haystack) { var i, needlen = needle.length, haylen = haystack.length; for (i=0; i<=haylen-needlen; i++) { if (needle == haystack.substring(i,i+needlen)) return i; } return false; } function Engine(name, opts, home, search) { var ezGuide = find_substring(sezGuide, search); this.name = name; this.opts = opts; this.home = home; this.pre_ezGuide = search.substring(0,ezGuide); this.post_ezGuide= search.substring(ezGuide+sezGuide.length, search.length); } function Add(name, opts, home, search) { engs.len++; if (engs.len <= engs.maxlen) { engs[engs.len] = new Engine(name, opts, home, search); } else { alert("Better increase iEngSize: " + engs.len + ">" + engs.maxlen) } } function SelectChannel(channel) { if (channel=="tek") { //tek Add("MSDN", "tek", "http://msdn.microsoft.com/", "http://search.microsoft.com/search/results.aspx?qu=ezGuide" ); Add("Java Forums", "tek", "http://developers.sun.com/", "http://onesearch.sun.com/search/developers/index.jsp?qt=ezGuide" ); Add("Oracle Forums", "tek", "http://forums.oracle.com/forums/index.jsp?cat=18", "http://forums.oracle.com/forums/search.jsp?search=true&q=ezGuide&forums=-1" ); Add("Dev Shed", "tek", "http://forums.devshed.com", "http://forums.devshed.com/search.php?query=ezGuide&action=simplesearch&searchdate=-1&s=" ); Add("Excel Forums", "tek", "http://www.ozgrid.com", "http://www.ozgrid.com/forum/search.php?&do=process&query=ezGuide" ); Add("Google Groups", "tek", "http://groups.google.com/", "http://groups.google.com/groups?q=booxle" ); Add("Google Answers", "tek", "http://answers.google.com", "http://answers.google.com/answers/search?q=booxle&qtype=all" ); Add("Google Sets", "tek", "http://labs.google.com/sets/", "http://labs.google.com/sets?hl=en&q1=booxle&q2=&q3=&q4=&q5=&btn=Large+Set" ); Add("DNS Timing", "tek", "http://www.dnsstuff.com/", "http://www.dnsstuff.com/tools/dnstime.ch?name=ezGuide&type=A" ); Add("Domain WhoIs", "tek", "http://www.dnsstuff.com/", "http://www.dnsstuff.com/tools/whois.ch?ip=ezGuide" ); Add("Ping Pong", "tek", "http://www.dnsstuff.com/", "http://www.dnsstuff.com/tools/ping.ch?ip=ezGuide" ); Add("Resolve IP", "tek", "http://www.tehbox.com/", "http://www.tehbox.com/serverinfo/?target=ezGuide&info=1" ); Add("Security Focus", "tek", "http://www.securityfocus.com/", "http://securityfocus.com/search?category=-1&query=ezGuide&rank=&submit=Search" ); Add("Trace Route", "tek", "http://www.dnsstuff.com/", "http://www.dnsstuff.com/tools/tracert.ch?ip=ezGuide" ); Add("Security Focus", "tek", "http://www.securityfocus.com/", "http://securityfocus.com/search?category=-1&query=ezGuide&rank=&submit=Search" ); } if (channel=="movies") { //entertainment Add("MTV", "movies", "http://www.mtv.com/", "http://www.mtv.com/search/searchdirector.jhtml?searchterm=ezGuide&searchtype=sitewide" ); Add("Idlebrain", "movies", "http://www.idlebrain.com", "http://www.google.com/custom?&q=ezGuide&sitesearch=www.idlebrain.com"); Add("Movie Mojo", "movies", "http://www.boxofficemojo.com/", "http://www.boxofficemojo.com/search/?title=ezGuide&p=.htm" ); Add("Movie Database", "movies", "http://www.imdb.com/", "http://www.imdb.com/find?q=ezGuide" ); Add("Movie Yahoo!", "movies", "http://movies.yahoo.com/", "http://search.movies.yahoo.com/moviesintgsearch?search=all&p=ezGuide" ); Add("Music Database", "movies", "http://www.gracenote.com/", "http://www.gracenote.com/music/search.html?q=ezGuide&f=artist&f=disc&f=track&x=30&y=6" ); Add("Music Lyrics (by artist)", "movies", "http://www.lyricsfind.com", "http://www.lyricsfind.com/list.php?stype=artist&q=ezGuide" ); Add("Shoutcast Music", "movies", "http://www.shoutcast.com/", "http://yp.shoutcast.com/directory/?s=ezGuide" ); } if (channel=="news") { //news Add("-- Select News Channel --", "SELECTED", "http://www.google.com/custom?q=&sa=Search&client=pub-9937357443159967&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A48%3BLW%3A165%3BL%3Ahttp%3A%2F%2Fwww.apnasamachar.com%2Fimages%2Fapna_logo.jpg%3BS%3Ahttp%3A%2F%2F%3BFORID%3A1%3B&hl=en", "http://www.google.com/custom?q=&sa=Search&client=pub-9937357443159967&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A48%3BLW%3A165%3BL%3Ahttp%3A%2F%2Fwww.apnasamachar.com%2Fimages%2Fapna_logo.jpg%3BS%3Ahttp%3A%2F%2F%3BFORID%3A1%3B&hl=en" ); Add("AllTheWeb", "news", "http://www.alltheweb.com/", "http://www.alltheweb.com/search?cat=news&cs=utf8&q=ezGuide" ); Add("BBC News", "news", "http://news.bbc.co.uk/", "http://newssearch.bbc.co.uk/cgi-bin/search/results.pl?scope=newsifs&tab=news&q=ezGuide"); Add("CBS News", "news", "http://www.cbsnews.com/", "http://search.atomz.com/search/?sp-q=ezGuide&sp-k=&sp-a=sp1001c63c&sp-p=all&sp-f=ISO-8859-1&sp-s=doc_date"); Add("CNN News", "news", "http://www.cnn.com/", "http://search.cnn.com/cnn/search?source=cnn&invocationType=search%2Ftop&sites=cnn&query=ezGuide"); Add("Fox News", "", "http://www.foxnews.com/", "http://search.foxnews.com/_1_2G8WUOJ04P75T88__info.foxnws/dog/results?otmpl=dog/webresults.htm&qkw=ezGuide&qcat=web&top=1&start=&ver=29375&nextPageNum=&fastSearch=" ); Add("Google News", "news", "http://news.google.com/news?q=apnasamachar&client=pub-9937357443159967", "http://news.google.com/news?q=ezGuide&client=pub-9937357443159967" ); Add("MSN News", "news", "http://www.msn.com/", "http://search.msn.com/results.aspx?FORM=MSNHNS&ds=en-us-p13ni&q=ezGuide" ); Add("NewsNow", "news", "http://www.newsnow.com/", "http://www.newsnow.co.uk/newsfeed/?search=ezGuide" ); Add("Reuters News", "news", "http://www.reuters.com/", "http://reuters.com/newsSearchResultsHome.jhtml;j?qtype=a&position=1&query=ezGuide" ); Add("Sify News", "news", "http://www.sify.com/", "http://sitesearch.sify.com/search.php?q=ezGuide" ); Add("Washington Post", "news", "http://www.washingtonpost.com/", "http://www.washingtonpost.com/cgi-bin/search99.pl?searchsection=news&searchtext=ezGuide&searchdatabase=ap" ); Add("Yahoo! News", "news", "http://www.yahoo.com/", "http://search.news.yahoo.com/search/news/?p=ezGuide" ); } //education if (channel=="edu") { Add("Encyclopedia", "edu", "http://www.encyclopedia.com", "http://www.encyclopedia.com/searchpool.asp?target=ezGuide" ); Add("E-Opinions", "edu", "http://www.epinions.com", "http://www.epinions.com/search/?submitted_form=searchbar&search_string=ezGuide&tax_name=&search_vertical=all" ); Add("Thesaurus", "edu", "http://www.dictionary.com/", "http://thesaurus.reference.com/search?q=ezGuide" ); Add("Spell Check", "edu", "http://www.spellcheck.net/", "http://www.spellcheck.net/cgi-bin/spell.exe?action=CHECKWORD&string=ezGuide" ); Add("Google Sets", "edu", "http://labs.google.com/sets/", "http://labs.google.com/sets?hl=en&q1=booxle&q2=&q3=&q4=&q5=&btn=Large+Set" ); Add("Google Answers", "edu", "http://answers.google.com", "http://answers.google.com/answers/search?q=booxle&qtype=all" ); } //finance if (channel=="fin") { Add("Forbes", "fin", "http://www.forbes.com", "http://www.forbes.com/search/results.jhtml?MT=ezGuide&sort=&aname=&author=&date=&pub=forbes.com%2Cmagazine%2Cglobal%2Cfyi%2Casap%2Cbest%2Cbow%2Cap%2Cpinnacor" ); Add("Yahoo Quotes", "fin", "http://finance.yahoo.com", "http://finance.yahoo.com/q?s=ezGuide" ); Add("Yahoo Symbol Lookup", "fin", "http://finance.yahoo.com/l", "http://finance.yahoo.com/l?s=ezGuide&t=S&m=" ); Add("CNNfn", "fin", "http://www.cnnfn.com", "http://money.cnn.com/news/companies/research/research.html?osymb=ezGuide&symbtype=0" ); Add("CNBC", "fin", "http://moneycentral.msn.com", "http://moneycentral.msn.com/scripts/webquote.dll?iPage=qd&Symbol=ezGuide" ); Add("CBS Market Watch", "fin", "http://cbs.marketwatch.com", "http://cbs.marketwatch.com/tools/quotes/quotes.asp?symb=ezGuide&siteid=mktw&dist=mktwqn" ); Add("Sify-Walletwatch", "fin", "http://www.walletwatch.com", "http://sify.com/finance/equity/quotes/eqmultiple.php?codes=ezGuide" ); Add("Sharekhan", "fin", "http://www.sharekhan.com", "http://www.sharekhan.com/Common/ScripListing.asp?Q=ezGuide" ); } if (channel=="hlt") { //health Add("Intelihealth", "hlt", "http://www.intelihealth.com", "http://www.intelihealth.com/cgi-bin/avsearch.mpl?&criteria=ezGuide" ); Add("RxList", "hlt", "http://www.rxlist.com", "http://www.rxlist.com/cgi/rxlist.cgi?drug=ezGuide" ); Add("Web MD", "hlt", "http://www.webmd.com", "http://my.webmd.com/search/search_results?query=ezGuide" ); Add("Accent Health", "hlt", "http://accenthealth.com", "http://accenthealth.com/search/?q=ezGuide" ); Add("Health Central", "hlt", "http://www.healthcentral.com", "http://search.healthcentral.com/search.asp?query=ezGuide" ); Add("Vault of Erovid", "hlt", "http://www.erowid.org", "http://www.erowid.org/cgi-bin/search/htsearch.php?exclude=&words=ezGuide" ); Add("Google Answers", "hlt", "http://answers.google.com", "http://answers.google.com/answers/search?q=ezGuide&qtype=all" ); } if (channel=="kid") { //kids Add("Question Answering", "kid", "http://www.ai.mit.edu/projects/infolab/", "http://www.ai.mit.edu/projects/infolab/startfarm.cgi?query=ezGuide" ); Add("Dictionary", "kid", "http://www.dictionary.com/", "http://dictionary.reference.com/search?q=ezGuide" ); } if (channel=="edl") { //edeals Add("Froogle", "edl", "http://froogle.google.com", "http://froogle.google.com/froogle?q=ezGuide" ); Add("Ebay", "edl", "http://www.ebay.com/", "http://search.ebay.com/search/search.dll?cgiurl=http%3A%2F%2Fcgi.ebay.com%2Fws%2F&krd=1&from=R8&MfcISAPICommand=GetResult&ht=1&SortProperty=MetaEndSort&query=ezGuide" ); Add("Amazon", "edl", "http://www.amazon.com/", "http://www.amazon.com/exec/obidos/search-handle-url/index%3Dblended%26field-keywords%3DezGuide%26store-name%3Dall-product-search/103-1174102-7465413" ); } if (channel=="spo") { //sports Add("ESPN", "spo", "http://www.espn.com/", "http://proxy.espn.go.com/keyword/searchResults?search=ezGuide&searchType=0&site=espn" ); } if (channel=="tra") { //travel Add("White Pages (by last)", "tra", "http://www.whitepages.com/", "http://refdesk.whitepages.com/find_person_results.pl?fid=n&f=&l=ezGuide&c=&s=" ); } if (channel=="") { //general Add("Google", "", "http://www.google.com/", "http://www.google.com/search?q=ezGuide" ); Add("Google Images", "", "http://images.google.com/", "http://images.google.com/images?q=ezGuide" ); Add("Google Directory", "", "http://www.google.com/", "http://www.google.com/search?num=20&hl=en&lr=&ie=ISO-8859-1&safe=off&cat=gwd%2FTop&q=ezGuide" ); Add("Google Groups", "", "http://groups.google.com/", "http://groups.google.com/groups?q=ezGuide" ); Add("Google Dictionary", "", "http://labs.google.com/glossary", "http://labs.google.com/glossary?q=ezGuide" ); Add("Yahoo!", "", "http://www.yahoo.com/", "http://search.yahoo.com/search?p=ezGuide" ); Add("Yahoo! News Photos", "", "http://www.yahoo.com/", "http://search.news.yahoo.com/search/news/?c=news_photos&p=ezGuide" ); Add("Yahoo! Audio Video", "", "http://www.yahoo.com/", "http://search.news.yahoo.com/search/news/?c=av&p=ezGuide" ); Add("AltaVista", "", "http://www.altavista.com/", "http://www.altavista.com/cgi-bin/query?q=ezGuide&kl=XX&pg=q&Translate=on" ); Add("Ask Jeeves","", "http://www.ask.com/", "http://www.ask.com/main/askjeeves.asp?ask=ezGuide&origin=0&site_name=Jeeves&metasearch=yes&ads=" ); Add("C-SPAN Video", "", "http://www.c-span.org/", "http://www.c-span.org/search/basic.asp?ResultStart=1&ResultCount=10&BasicQueryText=ezGuide"); Add("Digital City (by zip)", "", "http://www.digitalcity.com/", "http://www.digitalcity.com/main.adp?type=search&search=ezGuide" ); Add("Dogpile", "", "http://www.dogpile.com/", "http://search.dogpile.com/texis/search?q=ezGuide" ); Add("HotBot", "", "http://www.hotbot.com/", "http://hotbot.lycos.com/?query=ezGuide" ); Add("Looksmart", "", "http://www.looksmart.com/", "http://www.looksmart.com/r_search?look=&key=ezGuide" ); Add("Lycos", "", "http://www.lycos.com/", "http://search.lycos.com/main/default.asp?lpv=1&loc=searchhp&query=ezGuide" ); Add("Mamma", "", "http://www.mamma.com/", "http://www.mamma.com/Mamma?query=ezGuide&qtype=0" ); Add("Overture", "", "http://www.overture.com/", "http://www.overture.com/d/search/?type=home&tm=1&Keywords=ezGuide" ); Add("Weather (by zip)", "", "http://www.weather.com/", "http://www.weather.com/weather/local/ezGuide" ); Add("WebCrawler", "", "http://www.webcrawler.com/", "http://dpxml.webcrawler.com/info.wbcrwl/search/web/ezGuide" ); // ADD SEARCH ENGINES ABOVE. } } // JavaScript Document function bookmarkus(){ if (document.all) { window.external.AddFavorite ( document.location.href , document.location.href ); } else { var msg = "Press CTRL-D to bookmark us!"; if(navigator.appName == "Netscape") alert(msg); } } function snark() { if (top.location != location) { top.location.href = document.location.href ; } } function setPreference() { if (document.preference.newwindow.checked) setNavigationStyle(1); else setNavigationStyle(0); alert("Your preference has been saved"); } function getCookieExpireDate(noDays){ var today = new Date() var expr = new Date(today.getTime()+noDays*24*60*60*1000) return expr.toGMTString() } function setCookie (name, value, noOfDays, path, domain, secure) { document.cookie = name + "=" + escape (value) + ((noOfDays) ? "; expires=" + getCookieExpireDate(noOfDays) : "") + ((path) ? "; path=" + path : "/") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookie(name) { var start = document.cookie.indexOf(name+"="); var len = start+name.length+1; if ((!start) && (name != document.cookie.substring(0,name.length))) return null; if (start == -1) return null; var end = document.cookie.indexOf(";",len); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(len,end)); } function deleteCookie(name) { var cookieValue = getCookie(name); if ((cookieValue != null) && (cookieValue != "")) { var exp = new Date(); exp.setTime(exp.getTime() - 1); document.cookie = name + "=" + "; expires=" + exp.toGMTString(); } } function maximizeWindow(){ top.window.moveTo(0,0); top.window.resizeTo(screen.width,screen.height); } var navigationStyle = 0; var agent_isIE = true; var agent_isNS = false; var detect = navigator.userAgent.toLowerCase(); var OS,browser,version,total,thestring; doBrowserCheck(); getNavigationStyle(); function checkIt(string) { place = detect.indexOf(string) + 1; thestring = string; return place; } function getBrowserName() { if (checkIt('konqueror')) { browser = "Konqueror"; OS = "Linux"; } else if (checkIt('omniweb')) browser = "OmniWeb" else if (checkIt('opera')) browser = "Opera" else if (checkIt('webtv')) browser = "WebTV"; else if (checkIt('icab')) browser = "iCab" else if (checkIt('msie')) browser = "Internet Explorer" else if (!checkIt('compatible')) { browser = "Netscape Navigator" version = detect.charAt(8); } else browser = "An unknown browser"; if (!version) version = detect.charAt(place + thestring.length); if (!OS) { if (checkIt('linux')) OS = "Linux"; else if (checkIt('x11')) OS = "Unix"; else if (checkIt('mac')) OS = "Mac" else if (checkIt('win')) OS = "Windows" else OS = "an unknown operating system"; } return browser; } function doBrowserCheck() { var ap = getBrowserName(); agent_isNS = ap.indexOf('Netscape') >= 0; if (agent_isNS) agent_isIE = false; } function getNavigationStyle() { navigationStyle = getCookie("navigationStyle"); if (navigationStyle == null) navigationStyle = 0; else navigationStyle = parseInt(navigationStyle); return navigationStyle; } function openPopWindow(url, name, popw, poph) { x = (640 - popw)/2, y = (480 - poph)/2; if (screen) { y = (screen.availHeight - poph)/2; x = (screen.availWidth - popw)/2; } window.open(url, name, 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + popw + ',height='+ poph +',screenX='+x+',screenY='+y+',top='+y+',left='+x); } function openMainLink(link) { var returnValue = true; if (navigationStyle == 1) { window.open(link.href,"_blank"); returnValue = false; } return returnValue; } function open_link(link) { var returnValue = true; // if (navigationStyle == 1) // { window.open(link.href,"_blank"); returnValue = false; //} return returnValue; } function setNavigationStyle(input) { setCookie("navigationStyle", input, 365, "/", "andhraguide.com"); }