﻿var click_block=0;
var IsTFD=0, PageLang='en',Help='Help';
var word='';
var Domain='thefreedictionary.com';
var Sources,sources=[];
var AdResults=0;var OvResults=0;var OResults='';var GResults='';var IsG=false;var IsMSN=false;IsY=false;
var AdsNum=3;var Ads=[];var RAd;var kw='';var kw2='';var g_kw=1;var CurrentAd=0;var CurrentRad=0;
google_ad_client = "ca-pub-2694630391511205";google_kw_type="broad";google_ad_output = "js";google_encoding="utf-8";
google_afs_ad = 'w6';google_afs_client = "pub-2694630391511205";google_afs_adsafe = 'high';google_afs_ie = "utf-8";google_afs_oe = "utf-8";
google_num_radlinks = '10';google_max_radlink_len = '17';
var ImgAd='<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=70 SRC="http:/'+'/a.thefreedictionary.com/get.aspx?site=dictionary&size=120x60"></IFRAME>';
var ad_channel='';
var OriginalURL=document.location;
var loc=encodeURIComponent(document.location);
var IE=(navigator.appName=='Microsoft Internet Explorer' && navigator.userAgent.indexOf("Opera")==-1?1:0);
function ById(id){return document.getElementById(id)}
function langHost(){return 'http://'+(PageLang=='en'?'www':PageLang)+'.thefreedictionary.com/'}
function dictionary(){
if (click_block){
click_block=0;
return;
}
if (!IE){
t = (typeof(window["getSelection"])=="undefined"?document.getSelection():window.getSelection().toString());
opennewdictwin(t);
}
else {
t = document.selection.createRange();
if (document.selection.type == 'Text' && t.text != '') {
document.selection.empty();
opennewdictwin(t.text);
}}}
function opennewdictwin(text){
text=text.replace(/[́!.:?,;"]/g, '');
while (text.substr(text.length-1,1)==' ') text=text.substr(0,text.length-1)
while (text.substr(0,1)==' ') text=text.substr(1)
if (text > '') {
var newloc;
if (text.toUpperCase()==word.toUpperCase()) return;
if (PageLang!='en') newloc='/'+encodeURIComponent(text);
else newloc='http://www.'+Domain+'/'+encodeURIComponent(text);
if (document.location.toString().toLowerCase()!=newloc.toLowerCase()) document.location=newloc;
}}
function dw(t){document.write(t)}
var Langs =new Object;
function LangsInit(){
var l=Langs;
l.af=['Afrikaans','Afrikaans',''];
l.ar=['Arabic','العربية','اختر لغة'];
l.bg=['Bulgarian','Български','Изберете език'];
l.ca=['Catalan','Català',''];
l.zh=['Chinese Simplified','中文简体','选择一种语言'];
l.tw=['Chinese Traditional','中文繁體','選擇一種語言'];
l.hr=['Croatian','Hrvatski','Odaberite jezik'];
l.cs=['Czech','Česky','Zvolte si jazyk'];
l.da=['Danish','Dansk','Vælg et sprog'];
l.nl=['Dutch','Nederlands','Selecteer een taal'];
l.en=['English','','Select a language'];
l.eo=['Esperanto','Esperanto',''];
l.et=['Estonian','eesti keel',''];
l.fa=['Farsi','فارسی',''];
l.fi=['Finnish','Suomi','Valitse kieli'];
l.fr=['French','Français','Sélectionnez une langue'];
l.de=['German','Deutsch','Wählen Sie eine Sprache'];
l.el=['Greek','Ελληνική','Για χρήστες'];
l.he=['Hebrew','עִבְרִית',''];
l.hi=['Hindi','हिन्दी','कोई भाषा चुनें'];
l.hu=['Hungarian','magyar',''];
l.is=['Icelandic','íslenska',''];
l.id=['Indonesian','Indonesia',''];
l.ia=['Interlingua','Interlingua',''];
l.it=['Italian','Italiano','Seleziona una lingua'];
l.ja=['Japanese','日本語','希望の言語を選択'];
l.ko=['Korean','한국어','언어를 선택'];
l.la=['Latin','Lingua Latina',''];
l.lv=['Latvian','Latviešu',''];
l.lt=['Lithuanian','Lietuvių',''];
l.ml=['Malay','Bahasa Melayu',''];
l.no=['Norwegian','Norsk','Velg et språk'];
l.pl=['Polish','Polski','Wybierz język'];
l.pt=['Portuguese','Português','Selecione um idioma'];
l.ro=['Romanian','Română','Selectaţi o limbă'];
l.ru=['Russian','Русский','Выберите язык'];
l.sr=['Serbian','српски',''];
l.sk=['Slovak','slovenčina',''];
l.sl=['Slovenian','slovenski',''];
l.es=['Spanish','Español','Seleccione un idioma'];
l.sw=['Swahili','Kiswahili',''];
l.sv=['Swedish','Svenska','Välj ett språk'];
l.th=['Thai','ภาษาไทย',''];
l.tr=['Turkish','Türkçe','Bir dil seç'];
l.uk=['Ukrainian','українська',''];
l.ur=['Urdu','اردو',''];
l.vi=['Vietnamese','Tiếng Việt',''];
}
LangsInit();
function wiki(){sources.push('wiki')}
function foldoc(){sources.push('foldoc');dw('<br><div class=brand_copy>This article is provided by FOLDOC - Free Online Dictionary of Computing (<a target=_blank href="http:/'+'/www.foldoc.org">www.foldoc.org</a>)</div><br>')};
function cde(){sources.push('cde');dw('<br><div class=brand_copy>Computer Desktop Encyclopedia copyright ©1981-2009 by <a target=_blank href=http:/'+'/www.computerlanguage.com/tfd.html>The Computer Language Company Inc</a>. All Right reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.</div><br>')}
function law(){sources.push('hills');dw('<div class=brand_copy>Copyright © 1981-2005 by <a target=_blank href=http:/'+'/www.farlex.com/hills.htm>Gerald N. Hill and Kathleen T. Hill</a>. All Right reserved.</div>')};
function hm(){sources.push('hm');dw('<p class=brand_copy>The American Heritage&reg; Dictionary of the English Language, Fourth Edition copyright ©2000 by Houghton Mifflin Company. Updated in 2009. Published by <a target=_blank href="http:/'+'/www.eref-trade.hmco.com/">Houghton Mifflin Company</a>. All rights reserved.</p>')}
function hut(f){
var t=' please sign-in or <a href="https:/'+'/secure.farlex.com/protected/subscribe.aspx?url='+loc+'">register</a> for a free trial.</p>'
if (!SignedIn)
	switch(f){
	case 1:dw('<p><b><font color=red>This article is available to subscribers only.</font></b> To read this article'+t);break;
	case 3:dw('<p><b><font color=red>Only a portion of this article is shown. The entire article is available to subscribers.</font></b> To read this article in its entirety'+t);break;
	}
hutch();
}
function hutch(){sources.push('hutch');dw('<div class=brand_copy>This article is © Research Machines plc 2009. All rights reserved. <a target=_blank href=http:/'+'/www.helicon.co.uk>Helicon Publishing</a> is a division of Research Machines plc.</div>')};
function chron(){sources.push('chron');dw('<div class=brand_copy>This chronology is © Research Machines plc 2009. All rights reserved. <a target=_blank href=http:/'+'/www.helicon.co.uk>Helicon Publishing</a> is a division of Research Machines plc.</div>')};
function columbia(){sources.push('columbia');dw('<br><div class=brand_copy>The Columbia Electronic Encyclopedia&reg; Copyright © 2007, Columbia University Press. Licensed from Columbia University Press. All rights reserved. <A target=_blank href="http:/'+'/www.cc.columbia.edu/cu/cup/">www.cc.columbia.edu/cu/cup/</A></div>')}
function harvey(){sources.push('harvey');dw('<p class=brand_copy>Copyright © 2004, <A target=_blank href="http:/'+'/www.duke.edu/~charvey/">Campbell R. Harvey</A>. All Rights Reserved.</p>')};
function hm_med(){sources.push('hm_med');dw('<div class=brand_copy>The American Heritage&reg; Medical Dictionary Copyright © 2007, 2004 by Houghton Mifflin Company. Published by <a target=_blank href="http:/'+'/www.eref-trade.hmco.com/">Houghton Mifflin Company</a>. All rights reserved.</div>')}
function dorland(){sources.push('dorland');dw('<br><div class=brand_copy>Dorland\'s Medical Dictionary for Health Consumers. © 2007 by Saunders, an imprint of Elsevier, Inc. All rights reserved.</div>')};
function acr(){sources.push('af');dw('<p><a target=_blank href="http:/'+'/www.acronymfinder.com/add.asp?acronym='+encodeURIComponent(word)+'">submit new definition</a></p>');
acr_copy();};
function acr_copy(){sources.push('af');dw('<div class=brand_copy>Copyright 1988-2008 <a target=_blank href="http:/'+'/www.acronymfinder.com">AcronymFinder.com</a>, All rights reserved.</div>')};
function acro_nav(a,c,i,m,s,o,j,b){if (a>15) dw('Category filter: <select onchange="acro_cat(this)"><option selected value=0>Show All ('+a+')<option value=1>Most Common ('+c+')<option value=2>Technology ('+i+')<option value=4>Government & Military ('+m+')<option value=8>Science & Medicine ('+s+')<option value=64>Business ('+b+')<option value=16>Organizations ('+o+')<option value=32>Slang / Jargon ('+j+')</select>')}
function acro_cat(sel){
	var cat=Number(sel.options[sel.selectedIndex].value);
	var tr=ById('AcrFinder').childNodes[0].childNodes;
	for (i in tr){
		var n=tr[i];
		if (n.getAttribute && n.getAttribute('cat')) n.style.display=(!cat || (Number(n.getAttribute('cat')) & cat)?'':'none');
	}
}
function IdiI(){sources.push('IdiI');dw('<p class=brand_copy><i><a target=_blank href="http:/'+'/www.cambridge.org/elt/elt_projectpage.asp?id=2501153">Cambridge Idioms Dictionary, 2nd ed.</a></i> Copyright © Cambridge University Press 2006. Reproduced with permission.</p>')}
function IdiA(){sources.push('IdiA');dw('<p class=brand_copy><i><a target=_blank href="http:/'+'/www.cambridge.org/us/esl/cdai/">Cambridge Dictionary of American Idioms</a></i> Copyright © Cambridge University Press 2006. Reproduced with permission.</p>')}
function aboutAskALawyer(){dw('<span onmouseover="t_i(1)" onmouseout="t_o(1)" style="margin-left:12pt;font-size:8pt;font-weight:normal;text-decoration:underline;cursor:help">what\'s this?</span>');}
function wld_ask(){return}
function wld_ask2(){dw('<div style="margin-top:18pt">Do you have a legal question? <a href="http:/'+'/www.farlex.com/asklawyer.html">Ask a lawyer now</a>.</div>')};//<div><a href="/_/gr.aspx?url=http:/'+'/www.uslegalforms.com/?auslf=thefreedict">Download legal forms for all your legal needs</a>.  Wills, Power of Attorney, Living Will, Real Estate, Landlord Tenant, Corporate and more!</div>')}
function wld(){wld_ask2();sources.push('wld');dw('<div class=brand_copy style="margin-top:18pt">These questions and answers are provided by WORLDLawDirect.com. ©2000 - 2007 by WORLDLawDirect.com, Inc.</div>');
dw('<span ID=Tp1 class=hint>This is a sample question from the WORLDLawDirect database. WLD is the leading interactive provider of U.S.and international legal solutions. WLD has resolved legal issues for over 110,000 clients. Click the link below to ask your own question. Experienced attorneys will personally answer and advise you--within hours.</span>')};
function vet() {sources.push('vet'); dw('<div class=brand_copy>Saunders Comprehensive Veterinary Dictionary, 3 ed. © 2007 Elsevier, Inc. All rights reserved</div>') }
function millodot() {sources.push('millodot'); dw('<div class=brand_copy>Millodot: Dictionary of Optometry and Visual Science, 7th edition. © 2009 Butterworth-Heinemann</div>') }
function hm_sci() {sources.push('hm_sci'); dw('<p class=brand_copy>The American Heritage&reg; Science Dictionary Copyright © 2005 by Houghton Mifflin Company. Published by <a target=_blank href="http:/' + '/www.eref-trade.hmco.com/">Houghton Mifflin Company</a>. All rights reserved.</p>') }
function hm_wsw(){sources.push('hm_wsw');dw('<div class=brand_copy>Wall Street Words: An A to Z Guide to Investment Terms for Today\'s Investor by David L. Scott. Copyright © 2003 by Houghton Mifflin Company. Published by <a target=_blank href="http:/'+'/www.eref-trade.hmco.com/">Houghton Mifflin Company</a>. All rights reserved.</div>')}
function mosby(){sources.push('mosby');dw('<div class=brand_copy>Mosby\'s Dental Dictionary, 2nd edition. © 2008 Elsevier, Inc. All rights reserved.</div>')};
function mosbyCAM(){sources.push('mosbyCAM');dw('<div class=brand_copy>Jonas: Mosby\'s Dictionary of Complementary and Alternative Medicine. (c) 2005, Elsevier.</div>')};
function mosbyMD(){sources.push('mosbyMD');dw('<div class=brand_copy>Mosby\'s Medical Dictionary, 8th edition. © 2009, Elsevier.</div>')};
function weal(){sources.push('weal');dw('<div class=brand_copy>West\'s Encyclopedia of American Law, edition 2. Copyright 2008 The Gale Group, Inc. All rights reserved.</div>')};
function bouvier(){sources.push('bouvier');dw('<p class=brand_copy>A Law Dictionary, Adapted to the Constitution and Laws of the United States. By John Bouvier. Published 1856.</p>')};
function mili(){sources.push('mili');dw('<div class=brand_copy>Dictionary of Military and Associated Terms. US Department of Defense 2005.</div>')}
function webster(){sources.push('webster');dw('<div class=brand_copy>Webster\'s Revised Unabridged Dictionary, published 1913 by C. & G. Merriam Co.</div>')}
function wn(){sources.push('wn');dw('<div class=brand_copy>Based on WordNet 3.0, Farlex clipart collection. © 2003-2008 Princeton University, Farlex Inc.</div>')}
function gem(){sources.push('gem');dw('<div class=brand_copy>Gale Encyclopedia of Medicine. Copyright 2008 The Gale Group, Inc. All rights reserved.</div>')}
function dcng(){sources.push('dcng');dw('<div class=brand_copy>Dictionary of Collective Nouns and Group Terms. Copyright 2008 The Gale Group, Inc. All rights reserved.</div>')}
function allusions(){sources.push('allusions');dw('<div class=brand_copy>Allusions&#x2014;Cultural, Literary, Biblical, and Historical: A Thematic Dictionary. Copyright 2008 The Gale Group, Inc. All rights reserved.</div>')}
function ologies(){sources.push('ologies');dw('<p class=brand_copy>-Ologies & -Isms. Copyright 2008 The Gale Group, Inc. All rights reserved.</p>')}
function HC_Discovery(){sources.push('HC_Discovery');dw('<p class=brand_copy>Collins Discovery Encyclopedia, 1st edition © HarperCollins Publishers 2005</p>')}
function hc_dict(){sources.push('hc_dict');dw('<p class=brand_copy><a href="/_/misc/HarperCollinsProducts.aspx?English">Collins English Dictionary</a> – Complete and Unabridged 6th Edition 2003. © William Collins Sons & Co. Ltd  1979, 1986 © HarperCollins Publishers 1991, 1994, 1998, 2000, 2003</p>')}
function hc_thes(){sources.push('hc_thes');dw('<p class=brand_copy><a href="/_/misc/HarperCollinsProducts.aspx?EnglishThesaurus">Collins Thesaurus of the English Language</a> – Complete and Unabridged 2nd Edition. 2002 © HarperCollins Publishers 1995, 2002</p>')}
function hc_En_Es(){sources.push('hc_Es');dw('<div class=brand_copy><a href="/_/misc/HarperCollinsProducts.aspx?Spanish">Collins Spanish Dictionary</a> - Complete and Unabridged 8th Edition 2005 © William Collins Sons & Co. Ltd.  1971, 1988 © HarperCollins Publishers 1992, 1993, 1996, 1997, 2000, 2003, 2005</div>')}
function hc_En_Fr(){sources.push('hc_Fr');dw('<div class=brand_copy><a href="/_/misc/HarperCollinsProducts.aspx?French">Collins English/French Electronic Resource</a>. © HarperCollins Publishers 2005</div>')}
function hc_En_De(){sources.push('hc_De');dw('<div class=brand_copy><a href="/_/misc/HarperCollinsProducts.aspx?German">Collins German Dictionary</a> – Complete and Unabridged 7th Edition 2005. © William Collins Sons & Co. Ltd. 1980 © HarperCollins Publishers 1991, 1997, 1999, 2004, 2005, 2007</div>')}
function hc_En_It(){sources.push('hc_It');dw('<div class=brand_copy><a href="/_/misc/HarperCollinsProducts.aspx?Italian">Collins Italian Dictionary</a> 1st Edition © HarperCollins Publishers 1995</div>')}
var hc_Es_En=hc_En_Es,hc_Fr_En=hc_En_Fr,hc_De_En=hc_En_De,hc_It_En=hc_En_It;
function hc_mlt(){sources.push('hc_mlt');dw('<div class=brand_copy>Multilingual Translator © HarperCollins Publishers 2009</div>')}
function eb(l,w){sources.push('eb');dw('<p class=brand_copy>For more information on <a href="/_/gr.aspx?url='+encodeURIComponent(l)+'&source=Britannica">'+w+'</a>, visit Britannica.com. Britannica Concise Encyclopedia. Copyright © 1994-2008 Encyclop&aelig;dia Britannica, Inc.</p>')}
function cabio(){sources.push('cabio');dw('<p class=brand_copy><a target=_blank href="http:/'+'/www.cambridge.org/us/catalogue/catalogue.asp?isbn=9780521402583">The Cambridge Dictionary of American Biography</a>, by John S. Bowman. Copyright © Cambridge University Press 1995. Reproduced with permission.</p>')}
function vox1(){sources.push('vox1');dw('<p class=brand_copy>Diccionario Enciclopédica Vox 1. © 2009 Larousse Editorial, S.L.</p>')}
function vox_manual(){sources.push('vox_manual');dw('<p class=brand_copy>Diccionario Manual de la Lengua Española Vox. © 2007 Larousse Editorial, S.L.</p>')}
function vox_thes(){sources.push('vox_thes');dw('<p class=brand_copy>Diccionario Manual de Sinónimos y Antónimos de la Lengua Española Vox. © 2007 Larousse Editorial, S.L.</p>')}
function larousse_thes(){sources.push('larousse_thes');dw('<p class=brand_copy>Larousse Le Grand Dictionnaire des Synonymes et Contraires. © 2004 Editions Larousse.</p>')}
function larousse_practice(){sources.push('larousse_practice');dw('<p class=brand_copy>Larousse Pratique. © 2005 Editions Larousse.</p>')}
function larousse_pocket(){sources.push('larousse_pocket');dw('<p class=brand_copy>Larousse Maxipoche. © 2007 Editions Larousse.</p>')}
function farlex_acr() { sources.push('farlex_acr'); dw('<p class=brand_copy>Farlex Acronyms and Abbreviations. © 2009 Farlex, Inc. All Rights Reserved</p>') }
function Farlex_fin() { sources.push('farlex_fin'); dw('<p class=brand_copy>Farlex Financial Dictionary. © 2009 Farlex, Inc. All Rights Reserved</p>') }
function farlex_partner(n) { sources.push('farlex_partner_' + n); dw('<p class=brand_copy>TheFreeDictionary.com '); switch (n) { case 1: dw('Deutsches Wörterbuch'); break; case 2: dw('Dizionario italiano'); break; case 3: dw('Großwörterbuch Deutsch als Fremdsprache') }; dw('. © 2009 Farlex, Inc. and partners.</p>') }
function lightbulb(){sources.push('lightbulb');dw('<p class=brand_copy>Dictionary of Financial Terms. Copyright © 2008 <a href="http:/'+'/lightbulbpress.com">Lightbulb Press, Inc.</a> All Rights Reserved.</p>')}
function MGH_Drugs(){sources.push('MGH_Drugs');dw('<p class=brand_copy>Nursing Spectrum Drug Handbook 2009. © 2009 by The McGraw-Hill Companies, Inc.</p>')}
function MGH_ceb(){sources.push('MGH_ceb');dw('<p class=brand_copy>McGraw-Hill Concise Encyclopedia of Bioscience. © 2002 by The McGraw-Hill Companies, Inc.</p>')}
function MGH_Idi(){sources.push('MGH_Idi');dw('<p class=brand_copy>McGraw-Hill Dictionary of American Idioms and Phrasal Verbs. © 2002 by The McGraw-Hill Companies, Inc.</p>')}
function MGH_cep(){sources.push('MGH_cep');dw('<p class=brand_copy>McGraw-Hill Concise Encyclopedia of Physics. © 2002 by The McGraw-Hill Companies, Inc.</p>')}
function MGH_cee(){sources.push('MGH_cee');dw('<p class=brand_copy>McGraw-Hill Concise Encyclopedia of Engineering. © 2002 by The McGraw-Hill Companies, Inc.</p>')}
function MGH_Med(){sources.push('MGH_Med');dw('<p class=brand_copy>McGraw-Hill Concise Dictionary of Modern Medicine. © 2002 by The McGraw-Hill Companies, Inc.</p>')}
function SciTech(){sources.push('SciTech');dw('<p class=brand_copy>McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.</p>')}
function burton(){sources.push('burton');dw('<p class=brand_copy>Burton\'s Legal Thesaurus, 4E. Copyright © 2007 by William C. Burton. Used with permission of The McGraw-Hill Companies, Inc.</p>')}
function RealEstateEncyclopedia(){sources.push('RealEstateEncyclopedia');dw('<p class=brand_copy>The Complete Real Estate Encyclopedia by Denise L. Evans, JD & O. William Evans, JD. Copyright © 2007 by The McGraw-Hill Companies, Inc.</p>')}
function MortgageEncyclopedia(){sources.push('MortgageEncyclopedia');dw('<p class=brand_copy>The Mortgage Encyclopedia. Copyright © 2004 by Jack Guttentag. Used with permission of The McGraw-Hill Companies, Inc.</p>')}
function Investopedia(){sources.push('Investopedia');dw('<p class=brand_copy>Investopedia\'s Guide To Wall Speak, Edited by Jack Guinan. Copyright © 2009 by Investopedia®. Used with permission of The McGraw-Hill Companies, Inc.</p>')}
function HRBlock(l){sources.push('HRBlock');dw('<p class=brand_copy>Copyright © 2008 H&R Block. All Rights Reserved. Reproduced with permission from <a target=_blank href="http:/'+'/www.hrblock.com/taxes/fast_facts/glossary/glossary_detail.jsp?'+l+'">H&R Block Glossary</a></p>')}
function iMedixLink(u){open('/_/gr.aspx?url='+encodeURIComponent('http:/'+'/www.imedix.com/lobby?src=farlex&RedirectPage='+encodeURIComponent(u)),'iMedix','')}
function iMedix(t){sources.push('imedix');if(t==2) dw('<p>Read more questions and answers on <a href="javascript:iMedixLink(\''+encodeURIComponent(word)+'/questions'+'\')">iMedix website</a></p>');dw('<p class=brand_copy>This content is provided by iMedix and is subject to <a href="javascript:iMedixLink(\'terms\')">iMedix Terms</a>. The Questions and Answers are not endorsed or recommended and are made available by patients, not doctors.</p>')}
function iMedix2(){dw('<p><b>!!!</b> The questions and answers on this page are written by patients and are not reviewed by health professionals. You can find more information and submit your own questions on <a href="javascript:iMedixLink(\''+encodeURIComponent(word)+'/questions'+'\')">iMedix website</a></p>')}
function open_thes(l) { sources.push('open_thes'); dw('<p class=brand_copy>' + (PageLang == 'de' ? '<a href="http:/' + '/www.openthesaurus.de">OpenThesaurus</a>' : 'OpenThesaurus') + '. Distributed under <a href="http:/' + '/encyclopedia.thefreedictionary.com/GNU+public+licence">GNU General Public License</a>.</p>') };
function DictCC(w){sources.push('DictCC');dw('<br><a href="/_/gr.aspx?url='+encodeURIComponent('http:/'+'/www.dict.cc/?s='+encodeURIComponent(w))+'" target=_blank>More translations</a> from Dict.cc<p class=brand_copy>© 2002 - 2009 <a href=http:/'+'/www.dict.cc>Paul Hemetsberger</a></p>')};
function Chemnitz() { sources.push('Chemnitz'); dw('<p class=brand_copy>Beolingus. © <a href="http:/'+'/dict.tu-chemnitz.de/">TU Chemnitz</a>, 2006-2009</p>') }
function kdict() {sources.push('kdict');dw('<p class=brand_copy>Copyright © 2009 <a href=http:/' + '/kdictionaries.com>K Dictionaries Ltd</a>.</p>')}
var nsx;
var nsy;
if (!document.all){
	document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove=get_mouse;
}
function get_mouse(e){
	nsx=e.pageX-10;
	nsy=e.pageY+5;
}
function t_i(id){
	var hlp=ById('Tp'+id);
	if (hlp){
	if (document.all){
	 nsy=event.y+document.body.scrollTop;
	 nsx=event.x+document.body.scrollLeft;
	}
	hlp.style.top=nsy+20;
	hlp.style.left=(nsx>610?nsx-470:140);
	hlp.style.visibility='visible';
}}
function t_o(id){
	var hlp=ById('Tp'+id);
	if(hlp) hlp.style.visibility='hidden';
}
function el(a){if (a.indexOf('://')<0) a='http://'+a;open(a, '_blank')}
function eml2(p,n){
	if (! p && document.location.href.indexOf('medical-dictionary')>0) p='dorland';
	var url='/_/viewer.aspx?path='+encodeURIComponent(p)+'&name='+encodeURIComponent(n);
	if (document.location.href.substr(0,9)=='/_/viewer')
		location=url;
	else
		open(url,'img','');
};
function eml(p,n){eml2(p,n)};
function hil(n){eml2('hut',n)};
function hmil(n){eml2('hm',n)};
function hmil_med(n){eml2('hm/med',n)};
function hmil_wsw(n){eml2('hm/wsw',n)};
function hmil_sci(n){eml2('hm/sci',n)};
function openerlink(l){
opener.location='http:/'+'/encyclopedia.'+Domain+'/'+l;
self.close();
return false;
}
function wklnk(w) {location='http:/'+'/encyclopedia.'+Domain+'/'+w}
g_kw=0;
function g_attr(){
var g_fburl='http:/'+'/services.google.com/feedback/online_hws_feedback';
return '<a onMouseOver="return m_over(\''+g_fburl+'\')" onMouseOut="m_out()" href="/_/gr.aspx?url='+encodeURIComponent(g_fburl)+'">Ads by Google</a>';
}
function google_radlink_request_done(radlinks) {if (radlinks.length) RAd=radlinks};
function google_ad_request_done(google_ads, g_afs){
	google_ad_client = "ca-pub-2694630391511205";
	if (google_ads.length==0 && !g_afs) {
		if (g_kw && Ads.length==0 && !OvResults){
			google_ad_channel =ad_channel+"+8922314704";
			google_ad_output="js";
			google_prev_ad_formats_by_region=null;
			google_encoding="iso-8859-1";
			google_page_url=OriginalURL;
			dw('<script language="JavaScript1.1" src="http:/'+'/pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
		}
		g_kw=0;
		return;
	}
	if (google_ads[0].type.substring(0,4)=='text' && (Ads.length==0 || (Ads.length<3 && google_ads.length>15))) {
		Ads=google_ads;
		IsG=true;
		if (g_kw && !g_afs) GResults=google_ads.length;
	}
	else if (google_ads[0].type == 'image')
		ImgAd='<a href="'+google_ads[0].url+'"><img src="'+google_ads[0].image_url+'" height="'+google_ads[0].image_height+'" width="'+google_ads[0].image_width+'" border="0"></a>';
	else if (google_ads[0].type == "flash") {
		ImgAd='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:/'+'/download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'"><PARAM NAME="movie" VALUE="'+google_ad.image_url+'"><PARAM NAME="quality" VALUE="high"><PARAM NAME="AllowScriptAccess" VALUE="never"><EMBED src="'+google_ad.image_url+'" WIDTH="'+google_ad.image_width+'" HEIGHT="'+google_ad.image_height+'" TYPE="application/x-shockwave-flash" AllowScriptAccess="never" PLUGINSPAGE="http:/'+'/www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';
	}
	if (!g_afs) g_kw=0;
}
function google_afs_request_done(a) {google_ad_request_done(a,1)}
function ad(url,visible_url,line1,line2,line3){this.url=url;this.visible_url=visible_url;this.line1=line1;this.line2=line2;this.line3=line3;}
function write_ad(ad, pos){
	var t1=ad.line1, t2=ad.line2+' '+ad.line3;
	var link='<a href="http:/'+'/www.thefreedictionary.com/_/gr.aspx?pos='+pos+'&source='+encodeURIComponent(top.location)+'&url='+encodeURIComponent(ad.url)+'" onMouseOver="return m_over(\''+(IsG?'go to ':'http://')+encodeURIComponent(ad.visible_url)+'\')" onMouseOut="m_out()">';
	if (IsG) dw(link+'<span class=OvTitle>'+highlight(t1)+'</span></a><br><span class=OvDescr>'+highlight(t2)+'</span><br>'+link+'<span class=OvURL>'+ad.visible_url+'</span></a>');
 	else dw(link+'<span class=OvTitle>'+t1+'</span><br><span class=OvDescr>'+t2+'</span><br><span class=OvURL>'+ad.visible_url+'</span></a>');
}
function write_ads(AdsNum, Br, pos){
	if (IsMSN && pos==2) return;
	if (Ads.length && Ads.length>CurrentAd){
	var attr='Sponsored links';
	if (IsMSN || IsY) {
		var attrURL=escape('/_/about-sponsored-results.html');
		if (IsMSN) attrURL=escape('http:/'+'/adcenter.microsoft.com/');	
		attr='<a style="font-size:8pt" href="#" onclick="open(\'/_/gr.aspx?url='+attrURL+'\', \'w\',\'width=600,height=330,resizable=1\');return false">Sponsored links</a>';
	}
	if (IsG) attr=g_attr();
	dw('<div class=Ov'+(pos==3?' style="width:300px;padding:0"':'')+'><div class=OvBorder><span class=by>'+attr+'</span>');
	for (i=0;CurrentAd<Ads.length && i<AdsNum;i++){
		if (i) dw('<div class=AdSep></div>');
		write_ad(Ads[CurrentAd], pos);
		CurrentAd+=1;
		}
	dw('</div></div>');
	if (Br) dw('<br>');
	}
}
function myerror(){
window.onerror=null;
return true;
}
function highlight(t) {
	var k = (kw2 ? kw2 : word);
	if (k) k = k.replace(/[(),.:;"]/g, '');
	if (k && t > '') {
		var q = k.split(' ');
		for (var i = 0; i < q.length; i++)
			if (q[i].length > 2) {
				var rexp = new RegExp(q[i], 'ig');
				t = t.replace(rexp, '<b>' + q[i] + '</b>');
			}
	}
return t;
}
function WriteRAd1(p){
	if (RAd && RAd.length && RAd.length>CurrentRad){
	dw('<table width="100%" class=sbox1 cellspacing=0');
	if (PageLang=='ar') dw(' dir="rtl"');
	dw('><tr><th nowrap>'+p+'</th></tr><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td width=50% valign=top>');
	var cnt=Math.min(10,RAd.length-CurrentRad)
	for(i=0;i<cnt;++i) {
		if (i>0 && i==Math.ceil(cnt/2)) dw('</td><td width=50% valign=top>');
		dw('&#x25AA; <a href="/_/related-ads.aspx?w='+encodeURIComponent(word)+'&q='+RAd[CurrentRad].url_escaped_term+'&c='+encodeURIComponent(ad_channel)+'&rt='+RAd[i].radlink_token+'&google_page_url='+encodeURIComponent(window.location)+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'\';return true;">'+highlight(RAd[CurrentRad].term)+'</a><br>');
		CurrentRad+=1;
	}
	dw('</td></tr></table></td></tr></table>');
}}
function m_over(url){
window.status=url;
return true;
}
function m_out(){
window.status = '';
}
var sound_timeout=null;
function play(File){
var s=File.replace('/mp3/','/prons/')+'.wav';
if (sound_timeout) clearTimeout(sound_timeout);
if (IE && navigator.platform=='Win32'){
	document.all.bgsound.src=s;
	sound_timeout=setTimeout('document.all.bgsound.src="about:blank"', 8000);
} else if(ById("sound_frame")) {
	var snd=ById("sound_frame");
	snd.src='about:blank';
	snd.src=s;
	sound_timeout=setTimeout('ById("sound_frame").src="about:blank"', 8000);
} else 
	window.location=s;
window.status='';
}
function play_w(snd){
if (snd.indexOf('/')<0)	snd='hm/mp3/'+snd;
snd='http:/'+'/img.tfd.com/'+snd;
if(flashInstalled())
dw('<object style="margin:1px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:/'+'/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="13" height="21"><param name="movie" value="http:/'+'/img.tfd.com/m/sound.swf"><param name="menu" value="false"><param name="wmode" value="transparent"><param name="FlashVars" value="sound_src='+snd+'.mp3"><embed src="http:/'+'/img.tfd.com/m/sound.swf"  FlashVars="sound_src='+snd+'.mp3" menu="false" width="13" height="21" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http:/'+'/www.macromedia.com/go/getflashplayer"></object>');
else {
dw('<a href="javascript:play(\''+snd+'\')" onMouseOver="return m_over(\'Click to hear pronunciation\')" onMouseOut="m_out()"><img alt="Pronunciation" width="13" align=absbottom style="margin-bottom:2px" height="21" border="0" src="http:/'+'/img.tfd.com/hm/pron.gif"></a>');
if (typeof(window["sound_frame"])=="undefined") dw('<iframe id=sound_frame style="position:absolute" frameborder=0 width=1 height=1></iframe>');
if (typeof(window["bgsound"])=="undefined") dw('<bgsound id=bgsound></bgsound>');
}}
play_w2=play_w;
function playV2(snd){
var t=snd.substr(3,2);
if (t!='UK' && t!='US') t='plain';
if(flashInstalled())
dw('<object style="margin:0 0 0 3px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:/'+'/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="28" height="18"><param name="movie" value="http:/'+'/img.tfd.com/m/sound.swf"><param name="menu" value="false"><param name="wmode" value="transparent"><param name="FlashVars" value="sound_src=http:/'+'/img.tfd.com/pron/mp3/'+snd+'.mp3&image_src=http:/'+'/img.tfd.com/m/flags/18_'+t+'.jpg"><embed style="margin:0 0 0 3px;" src="http:/'+'/img.tfd.com/m/sound.swf"  FlashVars="sound_src=http:/'+'/img.tfd.com/pron/mp3/'+snd+'.mp3&image_src=http:/'+'/img.tfd.com/m/flags/18_'+t+'.jpg" menu="false" width="28" height="18" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http:/'+'/www.macromedia.com/go/getflashplayer"></object>');
else {
if (typeof(window["InstallFlash"])=="undefined") dw('<a id=InstallFlash href="http:/'+'/www.macromedia.com/go/getflash" onclick="return confirm(\'Flash is required to play sound. Would you like to install flash?\')" style="margin:0 0 0 3px;"><img border=0 src="http:/'+'/img.tfd.com/m/flags/no-flash.png"></a>');
}}
function flashInstalled(){
var obj;
if(navigator.plugins && navigator.mimeTypes.length){
	obj=navigator.plugins["Shockwave Flash"];
	if(obj) return true;
}else{
	try{
	obj=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
	if(obj) return true;
	}catch(e){}
}
return false;
}
function pron_key(t){
var pkw=open('/_/pk.htm','pk','width=630,height=675,statusbar=0,menubar=0');
return false;
}
var SignedIn=0;
function toggle(id){
	var img=ById('toggle_img_'+id);
	var span=ById('toggle_span_'+id);
	if (span) var y=(span.getAttribute('y')?Number(span.getAttribute('y')):115)
	var td=ById('toggle_td_'+id).style;
	if (td.display=='none'){
		td.display='';
		toggle_store(id,0);
		if (img) img.src=img.src.replace('right','down');
		if (span) span.style.backgroundPosition='0 -'+y+'px';
	}
	else {
		td.display='none';
		toggle_store(id,1);
		if (img) img.src=img.src.replace('down','right');
		if (span) span.style.backgroundPosition='0 -'+(y+12)+'px';
	}
}
function toggle_store(id, hide){
	var c='0'+getCookie('t2');
	if (hide)
		c=c|(1<<(id-1));
	else
		c=c & (~(1<<(id-1)));
	setCookie('t2',c);
}
function toggle_retrieve(id){
	var c=getCookie('t2');
	if (c) c=Number(c);
	else c=1;
	if (c&(1<<(id-1))) toggle(id);
}
function getCookie(name){
	var dc=document.cookie;
	var prefix=name+'=';
	var s = dc.indexOf('; ' + prefix);
	if (s==-1){
		s=dc.indexOf(prefix);
		if (s != 0) return null;
	}
	else
		 s+=2;
	var e=dc.indexOf(';', s);
	if (e==-1)
		 e=dc.length;
	return unescape(dc.substring(s+prefix.length, e));
}
function setCookie(name, value){
	document.cookie=name+'='+escape(value)+
	(name=='t2'||name=='lang'?'; expires=Thu, 1 Jan 2018 05:00:00 UTC':'')+'; path=/; '+(name=='lang'?'':'domain='+Domain);
}
function AsyncRequest(url){
	var scr=document.createElement('script');
	scr.type='text/javascript';
	scr.defer=true;
	scr.src=url;
	document.getElementsByTagName('head').item(0).appendChild(scr);
}
function AddFavorite(url, title){ 
  if(window.sidebar){
	window.sidebar.addPanel(title, url,''); 
  }else if(window.opera){
	var a = document.createElement("A"); 
	a.rel = "sidebar"; 
	a.target = "_search"; 
	a.title = title; 
	a.href = url; 
	a.click(); 
  } else if(document.all){
	window.external.AddFavorite(url, title); 
  } 
}
var tfd_searchby_HTML=null;
var tfd_searchby=0;
function UpdadeSearchForms(){
var SearchCookie=getCookie('searchBy');
if (SearchCookie)tfd_searchby=SearchCookie

for (var f=1;f<=2;f++){
	var form=eval('document.f'+f);
	if (form) {
		var f_sd=ById('f'+f+'_sd');
		if (f_sd) {		
			if (f_sd.innerHTML.indexOf('worD')<0) tfd_searchby_HTML=f_sd.innerHTML;
			if (tfd_searchby!=8 && tfd_searchby!=9 && f_sd.innerHTML.indexOf('worD')>0) 
				f_sd.innerHTML=tfd_searchby_HTML;
			if (tfd_searchby==8)
				f_sd.innerHTML='<table cellspacing=0 cellpadding=2><tr><td valign=bottom>First Name<div style="font-size:8pt;height:20px"><input type=checkbox name=firstname_begins_with value=1 checked>Begins with</div><input size=8 name=worD maxlength=25><td><td valign=bottom>Last Name<div style="font-size:8pt;height:20px"><input type=checkbox name=name_begins_with value=1>Begins with</div><input size=8 name=name maxlength=25></td><td valign=bottom>Location<div style="font-size:8pt;padding-top:4px;padding-bottom:1px">(City, State, Area code or ZIP)</div><input size=20 name=where maxlength=100></td><td valign=bottom><input type=submit value=Search></td></tr></table>';
			if (tfd_searchby==9)
				f_sd.innerHTML='<table cellspacing=0 cellpadding=2><tr><td valign=bottom>Keyword<div style="font-size:8pt;padding-top:4px;padding-bottom:1px">&nbsp;</div><input size=20 name=worD maxlength=300><td><td valign=bottom>Location<div style="font-size:8pt;padding-top:4px;padding-bottom:1px">(ex: Boston MA, or MA, or 02114)</div><input size=23 name=L maxlength=100></td><td valign=bottom><input type=submit value=Search></td></tr></table>';
		}
		for (var i=0;i<form.elements.length;i++){
			var bt=form.elements[i];
			if (bt.type) if (bt.type=='radio') if (bt.value==tfd_searchby && tfd_searchby!=3) bt.checked=true;
		}
		var search_by_obj=ById('f'+f+'_tfd_searchby');
		if (search_by_obj) search_by_obj.style.visibility=((tfd_searchby>3 && tfd_searchby!=8 && tfd_searchby!=9) || PageLang!='en'?'hidden':'');
		SAYT.disabled =(tfd_searchby!=0);
	}
}}
function _SearchBy(by){
	tfd_searchby=by.value
	setCookie('searchBy', tfd_searchby);
	UpdadeSearchForms();
}
function scrollPos(){
if (IE) return document.body.scrollTop ;
return window.pageYOffset;
}
function homepage(f,txt){
if (txt=='1') txt='Set as Home Page';
var ua=navigator.userAgent;
if (IE && ua.indexOf("Win")!=-1 && !eval('shp.is'+'Homepage(\''+langHost()+'\')')){
	dw('<a href="/" title="'+txt+'" onMouseOver="return m_over(\''+txt.replace("'", "\\'")+'\')" onMouseOut="m_out()" onClick="style.b'+'ehavior=\'url(#'+'default#'+'homepage)\';setHome'+'Page(\''+langHost()+'\');">');
	dw((f?txt+'</a> |':'<span class="img A" style="background-position:-139px 0;width:11px"></span></a>'));
	}
}
function addFav(a2f,hmt){
if (IE) try{
	if (window.external && ("AddFavorite" in window.external))
		document.write(' <a title="'+a2f+'" href="javascript:external.AddFavorite(\''+langHost()+'\',\''+hmt+'\')"><span class="img A" style="background-position:-121px 0;width:12px"></span></a>')
	}catch(e){}
}
function TestSB(){
if (IE) {try {if (window.external && ("AddSearchProvider" in window.external)) return 1} catch(e){return 0}}
else if (window.sidebar && ("addSearchEngine" in window.sidebar)) return 2;
return 0;
}
function WriteSB(){
if (TestSB())
document.write('<a href="#" title="Add The Free Dictionary to your search bar" onclick="if(TestSB()==1) window.external.AddSearchProvider(\'http:/'+'/www.thefreedictionary.com/_/open-search.xml\'); else window.sidebar.addSearchEngine(\'http:/'+'/mycroft.mozdev.org/plugins/freedict.src\',\'http:/'+'/mycroft.mozdev.org/plugins/freedict.png\',\'freedict\',\'Language dictionary\');return false"><span class="img A" style="background-position:-160px 0;width:26px"></span></a>');
}
function changeTextSize(size){
	if (!size && PageLang=='ar') size=10;
	if (size){
	var customStyles = document.styleSheets.item("mainCSS");
	var Rules;
	if (customStyles.rules)
		Rules=customStyles.rules;
	else
		Rules=customStyles.cssRules;

	var TD=Rules[0].style;
	TD.fontSize=(PageLang=='ar'?Number(size)+6:size)+'pt';
	setCookie('fontSize', size)
}}
function WF(s,l){
document.write('<a title="Change Text Size" style="text-decoration:none;font-size:'+(s-2)+'pt" href="javascript:changeTextSize('+s+')">'+l+'&nbsp;</a>')
}
function FontSize(){
WF(8,'T');
WF(10,'E');
WF(11,'X');
WF(13,'T');
changeTextSize(getCookie('fontSize'));
}
function SocialNetworks(p){
if (PageLang=='de') dw('<p>Mehr zur Wortbildung, Grammatik und Schreibweise von <a target=_blank href="http://www.canoo.net/services/Controller?input='+encodeURIComponent(word)+'">'+word+' unter Canoo.net.</a></p>');
var dttl=encodeURIComponent(document.title);
dw('<p>');
dw(p);
var link='&lt;a href=&quot;'+document.location+'&quot;&gt;'+word+'&lt;/a&gt;';
if (link.length>105)
	dw('<br><textarea style="direction:ltr" onDblClick="click_block=1" rows=3 cols=70 readonly=readonly onclick="this.focus(); this.select();">'+link+'</textarea>');
else
	dw(' <input style="direction:ltr" onDblClick="click_block=1" size='+Math.ceil(link.length*1.4-55)+' readonly=readonly value="'+link+'" onclick="this.focus(); this.select();">');
function img(w,p,h){return '<span class="img A" style="width:'+w+'px;height:32px;margin-right:4px;margin-top:4px;background-position:-'+p+'px -'+h+'px"></span></a>'};
var pr='<a target=_blank href="http:/';
if (PageLang=='en') dw('<br><br>Please bookmark with social media, your votes are noticed and appreciated:<br>'+
pr+'/digg.com/submit?phase=2&url='+loc+'&title='+dttl+'" title="Digg it!">'+img(32,0,277)+
pr+'/www.facebook.com/share.php?u='+loc+'" title="Add to Facebook">'+img(32,35,277)+
pr+'/del.icio.us/post?v=4;url='+loc+';title='+dttl+'" title="Bookmark on del.icio.us">'+img(32,70,277)+
pr+'/www.google.com/bookmarks/mark?op=add&bkmk='+loc+'&title='+dttl+'" title="Bookmark on Google History Bookmarks">'+img(30,106,277)+
pr+'/myweb2.search.yahoo.com/myresults/bookmarklet?u='+loc+'&t='+dttl+'" title="Bookmark on Yahoo!">'+img(36,138,277)+
pr+'/twitter.com/farlex" title="Follow on Twitter">'+img(25,0,312)+
pr+'/reddit.com/submit?url='+loc+'&title='+dttl+'" title="Reddit">'+img(35,177,277)+
'<br><br>');
dw('</p>');
}
function TopLinks(bh, A2Gu, A2G, BoY) {
var t= encodeURIComponent(word);
var u=encodeURIComponent('http://' + bh+ '/' + t);
dw('<a target=_blank href="http:/'+'/digg.com/submit?phase=2&url='+u+'&title='+t+'+-+TheFreeDictionary.com+-+Comprehensive+Online+Reference" title="Digg it!"><span class="img A" style="background-position:-24px 0;width:13px"></span></a>');
dw('<a target=_blank href="http:/' + '/del.icio.us/post?v=4;url=' + u + ';title=' + t + '+-+TheFreeDictionary.com+-+Comprehensive+Online+Reference" title="Bookmark on del.icio.us"><span class="img A" style="background-position:-40px 0;width:12px"></span></a>');
dw('<a target=_blank href="'+A2Gu+'" title="'+A2G+'"><span class="img A" style="background-position:-55px 0;width:13px"></span></a>');
dw('<a target=_blank href="http:/' + '/myweb2.search.yahoo.com/myresults/bookmarklet?u=http:/' + '/www.' + Domain + '&t=Online+Dictionary+and+Encyclopedia" title="' + BoY + '"><span class="img A" style="background-position:-71px 0;width:13px"></span></a>');
if (PageLang=='en') dw('<a target=_blank href="http://twitter.com/farlex" title="Follow on Twitter"><span class="img A" style="background-position:-100px -16px;width:10px"></span></a>');
}
function Translate(){
	dw('<div style="margin-top:6px;white-space:nowrap">');
	var l=['es','de','fr','it','ar','zh','pl','pt','nl','no','el','ru','tr'];
	for (var i in l) dw('<a href="http://'+l[i]+'.thefreedictionary.com" title="'+Langs[l[i]][1]+'"><span class="img A flag F'+l[i]+'"></span></a>');
	dw('</div>');
}
function Charity(cc){
if (PageLang!='en') return;
dw('<table width="100%" class=sbox1 cellspacing=0><tr><th nowrap><a title="'+Help+'" class="help help7" href="http://www.'+Domain+'/_/help/help3.htm#328">?</a>Charity</th></tr><tr><td>');
var code='<a href="/_/gr.aspx?source='+loc+'&url=http%3A%2F%2Fwww.friendsofwfp.org%2Ffarlex" style="text-decoration:none"><img src=http:/'+'/img.tfd.com/m/child.jpg border=0 align=left> Feed a hungry child - donate to school feeding program</a>';
/*if (cc=='US')
	code='<a href="/_/gr.aspx?source='+loc+'&url='+encodeURIComponent('http:/'+'/american.redcross.org')+'" style="text-decoration:none"><img src=http:/'+'/img.tfd.com/m/red-cross.gif width=42 height=42 border=0 align=left> Donate to American Red Cross</a>';
else
	code='<a href="/_/gr.aspx?source='+loc+'&url='+encodeURIComponent('http:/'+'/www.icrc.org/web/eng/siteeng0.nsf/iwpList2/Help_the_ICRC?OpenDocument')+'" style="text-decoration:none"><img src=http:/'+'/img.tfd.com/m/red-cross.gif width=42 height=42 border=0 align=left> Donate to International Red Cross</a>';
*/
dw(code);
dw('</td></tr></table>');
}
var WordListHost='';
function WordList(p,a){
dw('<table width="100%" class=sbox1 cellspacing=0');
if (PageLang=='ar') dw(' dir="rtl"');
dw('><tr><th nowrap><a title="'+Help+'" class="help help7" href="http://www.'+Domain+'/_/help/help2.htm#22115">?</a>'+p+'</th></tr><tr><td>');
dw('<div style="width:16px;float:right" id=wd_excel></div>');
dw('<a href="javascript:WordListAdd()"><span class="img A ico ico_a"></span>'+a+'</a>');
dw('<div id=word_list></div></td></tr></table>');
};
function WordListAdd(){AsyncRequest('http://'+WordListHost+'/_/wordList.ashx?o=add&u='+(OriginalURL?OriginalURL:loc))};
function WordListDelete(i){AsyncRequest('http://'+WordListHost+'/_/wordList.ashx?o=delete&i='+i)};
function dWL(i){return '&nbsp;<a title=Delete style="font-weight:bold;font-family:Verdana;color:red;text-decoration:none" href="javascript:WordListDelete('+i+')">X</a><br>'};
function KWTrack(wl){
//if (kw>'' && (OResults>0 || GResults>0)) dw('<img width=1 height=1 style="display:none" src=http:/'+'/img2.tfd.com/aa/pix.ashx?w='+encodeURIComponent(kw)+'&o='+OResults+'&g='+GResults+'>');
UpdadeSearchForms();
if (document.f1 && window.location.toString().indexOf('#')<0) window.setTimeout('if (scrollPos()==0) document.f1.Word.focus()',300);
if (wl && WordListHost) AsyncRequest('http://'+WordListHost+'/_/wordList.ashx?r='+Math.random());
if (!getCookie('track')) AsyncRequest('http:/' + '/www.thefreedictionary.com/_/misc/track.ashx?ref=' + encodeURIComponent(document.referrer) + '&loc=' + loc + '&r=' + Math.random());
if (ById('AADiv')) AsyncRequest('http:/' + '/img2.tfd.com/aa/js.ashx?u=' + encodeURIComponent(OriginalURL));
}
function SelfAds(){
	//dw('<div style="text-align:left" id=AADiv></div><div style="text-align:center"><a href="http:/' + '/img2.tfd.com/aa/?u=' + encodeURIComponent(OriginalURL) + '" target=_blank style="color:red">Place your link here for just $5</a></div><br>');
}
var tm=null,arrnext=' <span class="img A imgnext"></span>&nbsp;',LangNone='-----------------------';
function LangHideUnhide(Node, l){
	if (Node.getAttribute && Node.getAttribute('lang')) {Node.style.display=(Node.getAttribute('lang')==l?'inline':'none');return};
	var children=Node.childNodes;
	for (i in children) LangHideUnhide(children[i], l);
}
function LangChange(l){
	setCookie('lang',l);
	LangHide();
	var a=Langs[l];
	ById('selectedLang').innerHTML=arrnext+(Langs[l] && Langs[l].active?'<span class="img A flag F'+l+'"></span>'+a[0]+(a[1]?' / '+a[1]:''):LangNone)+arrnext;
	LangHideUnhide(ById('translbody'), l);
	return false;
}
function LangBar(list){
	if (!list) return;
	var s=getCookie('lang'); if (!s) s='none';
	//dw('<div id=LangBar>'+Langs[PageLang][2]+': <span id=LangDropdown style="overflow-y:auto;position:absolute;height:100px;width:220px;visibility:hidden;margin-top:16pt;padding:3px;background-color:white" onmousemove="if (tm) clearTimeout(tm);clearTimeout(tm)" onmouseout="tm=setTimeout(\'LangHide()\',400)">');
	dw('<div id=LangBar>'+Langs[PageLang][2]+': <span id=LangDropdown style="overflow-y:auto;position:absolute;height:100px;width:220px;visibility:hidden;margin-top:16pt;padding:3px;background-color:white" onmousemove="if (tm) clearTimeout(tm);clearTimeout(tm)" onmouseout="tm=setTimeout(\'LangHide()\',400)">');
	for (var i=0;i<list.length;i+=2){
		var l=list.substr(i,2);
		Langs[l].active=1;
	}
	var cnt=0;
	for (var li in Langs){	
		var a=Langs[li];		
		if (a.active) {
			dw('<a href="javascript:" onclick="LangChange(\''+li+'\')"><DIV><span class="img A flag F'+li+'"></span>'+a[0]+(a[1]?' / '+a[1]:'')+'</DIV></a>');
			cnt++;
		}
	}
	dw('</span><span id=selectedLang onDblClick="click_block=1" onmouseover="LangReveal()" onmouseout="if (tm) clearTimeout(tm);tm=setTimeout(\'LangHide()\',800)">'+arrnext+LangNone+arrnext+'</span></div><br>')
	if (navigator.userAgent.indexOf("Mobile")>0 && navigator.userAgent.indexOf("Safari")>0) 
		ById('LangDropdown').style.height=cnt*18+'px'
}
function LangReveal(){
if (tm) clearTimeout(tm)
ById('LangDropdown').style.visibility='';
}
function LangHide(){
ById('LangDropdown').style.visibility='hidden';
}
function extLink(u){if (u.indexOf('://')<0) u='http://'+u;open(u);return};
function ToggleKeyboard() {
SAYT.disabled = true;
ById('f1Word').onblur = null;
if (typeof(window["popKeyboard"])=="undefined") AsyncRequest('http:/'+'/img.tfd.com/m/keyboard.js'); else {popKeyboard(!isKbVisible);restoreCaret()};
}
var iSavedCaretIndex=0;
var searchTextfieldID="f1Word";
function restoreCaret() {
var tf=ById(searchTextfieldID);
if(!tf.selectionStart)
setCaretPos(tf,++iSavedCaretIndex,false);
};
function saveCaret(oField) {
	if (IE && !oField.selectionStart) {
		var Sel = document.selection.createRange();
		Sel.moveStart('character', -oField.value.length);
		iSavedCaretIndex = Sel.text.length;
	}
}

function SAYTBind(fn, self, var_args) {
	var ba = fn.boundArgs_ || [];
	ba = ba.concat(Array.prototype.slice.call(arguments, 2));
	if (typeof fn.boundSelf_ != "undefined") self = fn.boundSelf_;
	if (typeof fn.foundFn_ != "undefined") fn = fn.boundFn_;
	var nf = function() {
		var args = ba.concat(Array.prototype.slice.call(arguments));
		return fn.apply(self, args);
	}
	nf.boundArgs_ = ba;
	nf.boundSelf_ = self;
	nf.boundFn_ = fn;
	return nf;
}
function SearchAhead() {
	this.disabled = false;
	this.Tab = 1;
	this.HoverColor = '#E4EAED';
	this.NormalBg = 'white';
	this.QueryURL = 'http:/'+'/www.thefreedictionary.com/_/search/suggest.ashx?jsonp=SAYT.Callback&query=';
	this.LinkURL;
	this.MIN_STRING = 3;

	this.LastTF = null;
	this.SugDiv = null;
	this.SelIndex = -1;
	this.TimeID;
	this.Keys = new Array();
	this.Values = new Array();
	this.Count = new Array();
	this.rsp = null;
}
SearchAhead.prototype = {
	"Disable": function() {		
		setCookie('sayt', 1);
		this.disabled=true;
		this.JustHide();
	},
	
	"OnBlur": function(event) {
		if (this.disabled) return;
			if (this.LastTF && this.LastTF.savedText != null) setTimeout('SAYT.LastTF.value = SAYT.LastTF.savedText', 800);
			this.JustHide();
	},

	"Morph": function() {
		if (this.SugDiv != null) {
			this.SugDiv.style.width = (this.LastTF.offsetWidth - (IE?1:7)) + "px";
			this.SugDiv.style.left = (this.GetLoc(this.LastTF, true)) + "px";
			this.SugDiv.style.top = (this.GetLoc(this.LastTF, false) + this.LastTF.offsetHeight) + "px";
		}
	},

	"Suggest": function(obj, event) {
		if (getCookie('sayt')) this.disabled=true;
		if (this.disabled) return;		
		this.LinkURL = 'http:/'+'/www.'+Domain+'/_/search.aspx?SearchBy=0&TFDBy=0&Word=';
		if (event.keyCode == 13) {
			var str = this.LinkURL + encodeURIComponent(this.LastTF.value)+'&tab='+this.Tab;
			window.location.href = str;
			return;
		}

		if (this.LastTF && this.LastTF.found) clearTimeout(this.TimeID);

		this.LastTF = obj;
		this.LastTF.onblur = SAYTBind(this.OnBlur, this);
		this.Morph();

		if (event.keyCode == 27) {//esc
			if (this.LastTF != null) {
				this.LastTF.value = this.LastTF.savedText;
				var elem = document.getElementById("SAYTk" + this.SelIndex);
				if (elem != null) {
					elem.style.backgroundColor = this.NormalBg;
				}
			}
			this.Popup(null, false);
			return;
		}

		var sValue = obj.value;
		if (sValue.length < this.MIN_STRING) {
			this.Popup(null, false);
			return;
		}

		if (this.SugDiv == null) {
			this.SugDiv = document.createElement("DIV");
			this.SugDiv.className = "sayt"
			document.body.appendChild(this.SugDiv);
			this.SugDiv.onmouseover = SAYTBind(this.Keep, this);
			this.SugDiv.onmouseout = SAYTBind(this.Hide, this);
		}

		var keyUp = event.keyCode == 38;
		var keyDown = event.keyCode == 40;

		if ((keyUp || keyDown)) this.KeyUp(keyUp);
		else {

			var sKey = this.LastTF.value;
			this.LastTF.savedText = sKey;

			for (var i = this.Keys.length - 1; i >= 0; i--) {
				if (sKey == this.Keys[i]) {
					this.SugDiv.innerHTML = this.Values[i];
					this.LastTF.elCount = this.Count[i];
					this.LastTF.found = true;

					if (event.type != "click") this.Popup(sKey, true);
					return;
				}
			}
			AsyncRequest(this.QueryURL + encodeURIComponent(obj.value));
		}
	},

	"Keep": function(evt) {
		if (!evt) evt = window.event;
		if (this.IsInside(evt)) clearTimeout(this.TimeID);
	},

	"Hide": function(evt) {
		if (!evt) evt = window.event;
		if (this.IsInside(evt)) return;

		this.TimeID = setTimeout(SAYTBind(this.JustHide, this), 2000);
	},

	"IsInside": function(evt) {
		var x = evt.clientX;
		var y = evt.clientY;

		var dx = this.GetLoc(this.SugDiv, true);
		var dy = this.GetLoc(this.SugDiv, false);

		var cornerX = dx + this.SugDiv.offsetWidth;
		var cornerY = dy + this.SugDiv.offsetHeight;

		if (x > dx && x < cornerX && y > dy && y < cornerY) return true;
		return false;
	},

	"JustHide": function() {
		if (this.SugDiv != null) {
			var elem = document.getElementById("SAYTk" + this.SelIndex);
			if (elem != null) elem.style.backgroundColor = this.NormalBg;
			this.SelIndex = -1;
			this.SugDiv.style.visibility = "hidden";
		}
	},


	"GetLoc": function(elem, left) {
		var ret = 0;
		while (elem != null) {
			ret += (left ? elem.offsetLeft : elem.offsetTop);
			elem = elem.offsetParent;
		}
		return ret;
	},

	"KeyUp": function(keyUp) {
		if (this.LastTF.found) this.SugDiv.style.visibility = "visible";
		else return;

		var savedIndex = this.SelIndex;

		if (keyUp) {
			if (this.SelIndex > 0) this.SelIndex--;
			else this.Popup(null, false);
		} else {
			if (this.SelIndex == -1) this.SelIndex = 0;
			else if (this.SelIndex < this.LastTF.elCount - 1) this.SelIndex++;
		}

		if (savedIndex == this.SelIndex) return;

		this.UnSelectAll();
		document.getElementById("SAYTk" + this.SelIndex).style.backgroundColor = this.HoverColor;
		this.LastTF.value = this.LastTF.rsp[1][this.SelIndex][0];
	},

	"UnSelectAll": function() {
		for (var i = 0; i < this.LastTF.elCount; i++)
			document.getElementById("SAYTk" + i).style.backgroundColor = this.NormalBg;
	},

	"Mouse": function(obj, isOver, idx) {
		this.UnSelectAll();
		if (isOver) {
			obj.style.backgroundColor = this.HoverColor;
			this.SelIndex = idx;
		}
	},

	"Submit": function(idx) {
		if (SAYT.LastTF.onblur) {
			this.LastTF.onblur = null;
			location=this.LinkURL+encodeURIComponent(this.LastTF.rsp[1][idx][0])+'&tab='+this.Tab;
		}
	},

	"Callback": function(rsp) {
		var txt = ''
		var iCount = 0;
		var u = this.LinkURL;
		function link(tab, idx) {return '<a href="'+u+encodeURIComponent(rsp[1][idx][0])+'&tab='+tab+'">';}
		for (var idx in rsp[1]) {
			txt += '<div style="clear:both;height:'+(IE?11:14)+'px;cursor:pointer;cursor:hand" onmousedown="SAYT.Submit('+idx+')" onmouseover="SAYT.Mouse(this,true,'+idx+')" onmouseout="SAYT.Mouse(this,false)" id="SAYTk'+idx+'">';
			txt += '<a onmousedown="SAYT.LastTF.onblur=null" style="float:left" href="'+u+encodeURIComponent(rsp[1][idx][0])+'&tab='+this.Tab+'">';
			txt += rsp[1][idx][0] + '</a>';
			function p(n) { return Math.pow(2, n) };
			var l = [['en', 1919], ['es', p(16)], ['de', p(18)], ['fr', p(17)], ['it', p(19)], ['pt', p(24)], ['nl', p(22)], ['no', p(21)], ['el', p(20)], ['zh', p(25)], ['ru', p(23)], ['ar', p(26)], ['tr', p(27)], ['pl', p(28)]];
			for (var i=l.length-1;i>=0;i--) if (rsp[1][idx][1] & l[i][1]) txt += '<a onmousedown="SAYT.LastTF.onblur=null" style="float:right" href="'+u+encodeURIComponent(rsp[1][idx][0])+'&tab='+(rsp[1][idx][1] & l[i][1])+'"><span class="img A flag F' + l[i][0] + '"></span></a>';
			txt += '</div>';
			iCount++;
		}
		txt += '<a style="float:right;font-size:8pt;text-decoration:underline" href="javascript:void()" onmousedown="SAYT.Disable()">Disable suggestions</a>'	
		this.SugDiv.innerHTML = txt;
		this.LastTF.elCount = iCount;
		this.LastTF.rsp = rsp;
		this.LastTF.found = iCount > 0;

		if (rsp[1].length > 0) {
			var found = false;

			for (var ix = this.Keys.length - 1; ix >= 0; ix--) {
				if (rsp[0] == this.Keys[ix]) {
					found = true;
					break;
				}
			}

			if (!found) {
				this.Keys.push(rsp[0]);
				this.Values.push(txt);
				this.Count.push(iCount);
			}

			this.Popup(rsp[0], true);

		} else this.Popup(null, false);
	},

	"Popup": function(key, showElem) {

		if (!showElem || (key != this.LastTF.value)) {
			this.JustHide();
			return;
		}

		this.Morph();
		this.SugDiv.style.visibility = "visible";
	}
};
var SAYT = new SearchAhead;
var tbInterval;
function movetoolbar(id, n){e=ById(id);var tm=parseInt(e.style.marginTop); if (tm<n-1) { e.style.marginTop=(tm+1)+'px'; } else { clearInterval(tbInterval); } }
function toolbar(){dw('<div id=toggle_td_30 style="margin-top:-28px;margin-right:-7px;margin-left:-7px;display:block; height: 28px; background: #ccc;"><a style="display: block; float: right; height: 28px; width: 28px; line-height: 28px; background: transparent url(http:/'+'/img.tfd.com/m/toolbarpromo.png) no-repeat right 0" href="javascript:toggle(30)" title="remove toolbar banner"></a><a style="background:  #ccc url(http:/'+'/img.tfd.com/m/toolbarpromo.png) no-repeat 0 0; position: absolute; display: block; width: 970px; height: 28px; line-height: 28px; margin: 0 auto; font-family:Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #333333; font-weight: bold; text-indent: 20px" href="http:/'+'/thefreedictionarycom.ourtoolbar.com/">Download our official FREE toolbar</a></div>'); toggle_retrieve(30); if (getCookie('track')) ById('toggle_td_30').style.marginTop='-1px'; else tbInterval = setInterval('movetoolbar("toggle_td_30", 0)', 10)}
