/*
	-- Web Search Aggregator 1.2.1 --
	
	Presents
	    
	    Multi Web Search from one place.
	
	Features
	
	    * Multiple categories
	    * Type search term only once, see results on many sites
	    * Your last search and state of the tabs are remembered
	    * Navigate tabs with keyboard (ctrl+arrows+enter)
	    * Navigate tabs with mouse (hold ctrl key)
	    * Keep history of your searches (+statistics)
	
	Requirements
	
	    Any browser with javascript support and cookies enabled.
	    Tested on Firefox, IE, Opera.
	
	Changelog
	
	    1.2.1
	    * Fixed Firefox mouse navigation ctrl bug
	
	    1.2.0
	    * mouse navigation added (hold ctrl key)
	    * history of searches added (+statistics)
	
	    1.1.0
	    * keyboard navigation added (ctrl+arrows+enter)
	    * remembers last state for each category
	    * any key press automatically focuses search box
	    * other minor enhancements
	
	    1.0.2
	    * do not load selected site on initial page load
	
	    1.0.1
	    * all code merged into one html file
	    * fixed opera bug
	
	Bugs
	
	    * Wikipedia prevents frame busting, redirect is done, site cannot be loaded into frame
	
	Copyrights
	    
	    Author: Cezary Tomczak (cagret at gmail.com)
	    WWW: http://code.gosu.pl
	    License: free as long as copyrights are intact.
	
	688FAF
	
	
	*/


document.writeln('<table width="100%" border="0" cellspacing="0" class="bodytext"><tr><td>');

var urlAddress = "http://www.cancermonthly.com/mycancersearch.asp";
var pageName = "Cancer Monthly Multi-Site Search";

function addToFavorites(){
  if (window.external){
   window.external.AddFavorite(urlAddress,pageName)
  }else{ 
   alert("Sorry! Your browser doesn't support this function. \nYou will have to add it manually. \n(try hitting: Ctrl + d)");
  }
}



/*
	    NOTE:
	    * url contains "%s" that is replaced with your search.
	    * do not use special characters in category and site names (allowed: [ ._a-zA-Z0-9])
	*/
	var CATS = {};
	CATS["General"] = {
	    "Google": "http://www.google.pl/search?hl=en&q=%s&btnG=Szukaj+w+Google&lr=",
	    "Yahoo": "http://search.yahoo.com/search?ei=UTF-8&fr=sfp&p=%s",
	    "DMOZ": "http://search.dmoz.org/cgi-bin/search?search=%s"
	   
	};
	CATS["Audio/Visual"] = {
	    "Images (Google)": "http://images.google.com/images?q=%s&hl=en&btnG=Search+Images",
	    "Images (Yahoo)": "http://images.search.yahoo.com/search/images?p=%s&fr=yfp-t-500&toggle=1&cop=mss&ei=UTF-8",
	    "Videos (Google)": "http://video.google.com/videosearch?hl=en&q=%s&btnG=Google+Search&sa=N&tab=wv",
	    "Videos (You Tube)": "http://youtube.com/results?search_query=%s&search=Search",
	    "Audio Recordings": "http://audio.search.yahoo.com/search/audio?p=%s&fr=yfp-t-500&toggle=1&cop=mss&ei=UTF-8",
	    "Podcasts": "http://podcastalley.com/search.php?searchterm=%s"
	};
	CATS["News"] = {
	    "Google News": "http://news.google.com/news?hl=en&ned=us&q=%s&btnG=Search+News",
	    "Yahoo News": "http://news.search.yahoo.com/search/news?p=%s&fr=yfp-t-500&toggle=1&cop=mss&ei=UTF-8",
	    "Alta Vista News": "http://www.altavista.com/news/results?q=%s&nc=0&nr=0&nd=2"
	};
	CATS['People'] = {
	    "Groups (Google)": "http://groups.google.com/groups?lnk=hpsg&hl=en&q=%s",
	    "Groups (Yahoo)": "http://groups.yahoo.com/search?query=%s",
	    "Message Boards (Yahoo)": "http://betasearch.messages.yahoo.com/search?.mbintl=us&q=%s&type=xuFftD2RBpk-&action=Search&srch=1&v=&b=&within=subject&within=msgtext&showthread=tm&thisuser=&postedon=pd&sMonth=10&sDay=11&sYear=2006&eMonth=10&eDay=11&eYear=2006",
	    "Blogs": "http://blogsearch.google.com/blogsearch?hl=en&q=%s&btnG=Search+Blogs"	
	};
	CATS["Books"] = {
	    "Amazon": "http://amazon.com/s/ref=nb_ss_gw/104-0746208-5834308?url=search-alias=stripbooks&field-keywords=%s&Go.x=15&Go.y=5&",
	    "Google Books": "http://books.google.com/books?q=%s&btnG=Search+Books&as_brr=0",
	    "National Library of Medicine": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=books&term=%s"
	};
	CATS["Reference"] = {
	    "Medical Dictionary": "http://www2.merriam-webster.com/cgi-bin/mwmednlm?book=Medical&va=%s",
		"World Book Encyclopedia": "http://www.worldbook.com/wb/Search?st1=%s",
		"Medical Encyclopedia": "http://www.umm.edu/fcgi-bin/search//search.fcgi?searchSite=this&category=1%285%29%2C+15%285%29%2C+16%285%29%2C+18%285%29%2C+17%285%29%2C+7%285%29%2C+3%285%29%2C+22%285%29%2C+5%285%29%2C+9%285%29%2C+10%285%29%2C+2%285%29%2C+11%285%29%2C+19%285%29%2C+21%285%29%2C+6%285%29&showMode=showthis&showPosition=&p=1&lang=en&mode=all&q=%s&image.x=55&image.y=13",
		"Medcyclopaedia": "http://www.medcyclopaedia.com/search.aspx?s=%s&mode=1&scope=&syn="
	};
	CATS["Scientific"] = {
	    "Pubmed": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=pubmed&term=%s",
		"Cochrane Reviews":"http://search.cochrane.org/search?q=%s&restrict=cochrane_org&scso_cochrane_org=this+site&scso_review_abstracts=reviews+only&scso_evidence_aid=evidence+aid&scso_colloquia_abstracts=colloquia+abstracts&scso_newsletters=newsletters&ie=&site=my_collection&output=xml_no_dtd&client=my_collection&lr=&proxystylesheet=http%3A%2F%2Fwww.cochrane.org%2Fsearch%2Fgoogle_mini_xsl%2Fcochrane_org.xsl&oe=&filter=0&btnG=Search&sub_site_name=Cochrane.org+search",
		"Clinical Trials": "http://clinicaltrials.gov/ct/gui/search;jsessionid=5854CF1660A5ABB116CE7273442C88DA?term=%s&submit=Search"
	};
	CATS["Government"] = {
	    "NIH": "http://search2.google.cit.nih.gov/search?site=NIH_Master&client=NIH_frontend&proxystylesheet=NIH_frontend&output=xml_no_dtd&filter=0&getfields=*&q=%s&btnG.x=31&btnG.y=8",
	    "FDA": "http://google2.fda.gov/search?client=FDA&site=FDA&oe=&lr=&proxystylesheet=FDA&output=xml_no_dtd&getfields=*&q=%s",
	    "CDC": "http://www.cdc.gov/search.do?action=search&queryText=%s&x=12&y=10",
		"EPA": "http://nlquery.epa.gov/epasearch/epasearch?typeofsearch=epa&areaname=&areasidebar=epahome_sidebar&filter=&result_template=epafiles_default.xsl&querytext=%s",
		"WHO": "http://search.who.int/search?ie=utf8&site=default_collection&client=WHO&proxystylesheet=WHO&output=xml_no_dtd&oe=utf8&q=%s"
	};

	
	
	


