function ById(id){return document.getElementById(id)};
lib={
	show:function(o){if(ById(o))ById(o).style.display=''},
	hide:function(o){if(ById(o))ById(o).style.display='none'},
	hasClass:function(el,cls){return el&&el.className?el.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')):!1},
	addClass:function(el,cls){if(el&&!this.hasClass(el,cls))el.className+=' '+cls},
	removeClass:function(el,cls){if(el&&this.hasClass(el,cls)){el.className=lib.trim(el.className.replace(new RegExp('(\\s|^)'+cls+'(\\s|$)'),' '))}},
	event:{
		add:function(el,event,handler){if(el.addEventListener)el.addEventListener(event,handler,!1);else if(el.attachEvent)el.attachEvent('on'+event,handler)},
		remove:function(el,event,handler){if(el.removeEventListener)el.removeEventListener(event,handler,!1);else if(el.detachEvent&&handler)el.detachEvent('on'+event,handler)}
		},
	trim:function(str){return str.replace(/^\s+/,'').replace(/\s+$/,'')},
	decode:function(str){return str==null?null:decodeURI(str).replace(/\+/g,' ')},
	EndsWith:function(str,suffix){return str.indexOf(suffix,str.length-suffix.length)!=-1},
	StartsWith:function(str,start){return str.slice(0,start.length)==start},
	isStor:function(){
		info=info||{};
		if(typeof(info.isStor)!=="undefined")return info.isStor;
		if(typeof(Storage)!=="undefined"){try{localStorage.setItem('tfd','tfd');localStorage.removeItem('tfd');info.isStor=1}catch(e){info.isStor=0}}
		else{info.isStor=0};
		return info.isStor;
	},
	cookie:{
		cookieName:function(permanent,domainWide){return'c'+(permanent?1:0)+(domainWide?1:0)},
		save:function(n,v,permanent,domainWide){
			var d=new Date();d.setFullYear(d.getFullYear()+10);
			document.cookie=n+'='+v+(permanent?'; expires='+d.toUTCString():'')+(domainWide?'; domain='+info.Domain:'')+'; path=/';
		},
		set:function(name,value,permanent,domainWide){
			var n=this.cookieName(permanent,domainWide);
			var v=this.getRaw(n),nv=value?name+'='+value:null;
			if(v){
				var d=v.split('&');
				for(var i=0;i<d.length;i++)if(lib.StartsWith(d[i],name+'=')){if(nv==null)d.splice(i,1);else d[i]=nv;break};
				if(nv!=null&&i>=d.length)d.push(nv);
				v=d.join('&');
			} else v=nv;
			this.save(n,v,permanent,domainWide);
		},
		remove:function(name,permanent,domainWide){
			var n=this.cookieName(permanent,domainWide);
			var v=this.getRaw(n);
			if(v)this.save(n,v.replace(new RegExp(name+"=[^&]*[&]?"),"").replace(/&$/,''),permanent,domainWide);
		},
		get:function(name,permanent,domainWide){
			if(arguments.length==3){
				var n=this.cookieName(permanent,domainWide);
				var v=this.getRaw(n);
				if(!v)return null;
				v=v.split('&');p=name+'=';
				for(var i=0;i<v.length;i++)if(lib.StartsWith(v[i],p))return decodeURIComponent(v[i].substring(p.length));
				return null;
			}
			else return this.get(name,0,0)||this.get(name,1,0)||this.get(name,0,1)||this.get(name,1,1);
		},
		enabled:function(){var ce=(navigator.cookieEnabled)?1:0;if(typeof navigator.cookieEnabled=="undefined"&&!ce){document.cookie="tfdtc";ce=(document.cookie.indexOf("tfdtc")!=-1)?1:0;document.cookie="tfdtc;expires=Thu, 01 Jan 1970 00:00:01 GMT;"}return ce},
		getRaw:function(name){var d=document.cookie.split('; '),p=name+'=';for(var i=0;i<d.length;i++)if(lib.StartsWith(d[i],p))return d[i].substring(p.length);return null}
		},
	flashInstalled:function(){
		if(info.IsApp&&nav.andr)return false;
		if(navigator.plugins&&navigator.mimeTypes.length){if(navigator.plugins["Shockwave Flash"])return true}
		else{try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return true}catch(e){}}
		return false;
	},
	AsyncRequest:function(url,t,callback,onerror,id){
		var scr=document.createElement('script');
		scr.type='text/javascript';
		//scr.defer=true;
		scr.async=true;
		if(id)scr.id=id;
		if(t)scr.text=t;
		scr.src=url;
		if(callback){scr.onreadystatechange=callback;scr.onload=callback}
		if(onerror){scr.onerror=onerror}
		document.getElementsByTagName('head').item(0).appendChild(scr);
	},
	delayedFunctions:[],
	delayedPush:function(f){
	if(window.completed)f();else this.delayedFunctions.push(f)},
	delayedExec:function(){for(var i=0;i<this.delayedFunctions.length;i++){if(i<=3)this.delayedFunctions[i]();else setTimeout('lib.delayedFunctions['+i+']()',100+i*2)}}
};

function showPopup(evt,id,cls,popupId){
	var to=evt.target||evt.toElement;
	if(evt.preventDefault)evt.preventDefault();
	var el=ById(id);
	if(lib.hasClass(el,cls))hidePopup(el,cls);
	else{
		el.och=function(e){
			e=e||window.event;
			if(!e.target)e.target=e.srcElement;
			var currentNode=(e.changedTouches?e.changedTouches[0]:e).target;
			var popup=(typeof popupId!=="undefined")?ById(popupId):el;

			while(currentNode.parentNode){
				if(currentNode===to||currentNode===popup)return;
				currentNode=currentNode.parentNode;
			}
			hidePopup(el,cls);
		};
		lib.addClass(el,cls);
		var c=document.querySelector('.hpCol0');
		if(id=='w1'&&c){c=c.style;c.top='230px';var dw=window.innerWidth||document.documentElement.clientWidth;c.left=dw+'px';c.width=(dw-80)+'px';c.zIndex=99}
		else{lib.event.add(document,'click',el.och);lib.event.add(document,'touchstart',el.och)};
		if(id=='w1'&&!c){var a=ById('ac5'),b=ById('accopy');if(a&&b){b.innerHTML=a.innerHTML;b.style.margin='10px 0';b.style.textAlign='center'}}
	}
}
function hidePopup(el,cls){
	lib.removeClass(el,cls);
	lib.event.remove(document,'click',el.och);
	lib.event.remove(document,'touchstart',el.och);
	try{delete el.och}catch(e){};
	var c=document.querySelector('.hpCol0');
	if(c){c=c.style;c.top=c.left=0;c.width=c.zIndex=''};
}

var nav={
	andr:navigator.userAgent.indexOf('Android')>0?1:0,
	IE:(navigator.appName=='Microsoft Internet Explorer'||navigator.userAgent.indexOf('Trident/')>0)&&navigator.userAgent.indexOf("Opera")==-1?1:0,
	IE11:!!navigator.userAgent.match(/Trident.*rv[ :]*11\./),
	Edge:(navigator.appName=="Netscape"&&/Edge\/12./i.test(navigator.userAgent)),
	init:function(){
		nav.dw=document.body.offsetWidth;
		nav.dh=document.body.offsetHeight;
		nav.ww=window.innerWidth||document.documentElement.clientWidth;
		nav.wh=window.innerHeight||document.documentElement.clientHeight;
	},
	sw:screen.width,
	sh:screen.height,
	loc:(function(){var l=document.location,s=l.toString();return s.substr(0,s.length-l.hash.length)})(),
	ref:document.referrer
};
lib.delayedPush(nav.init);

var Sticky={
o:[],
init:function(){
	this.o=[];
	var l=document.querySelectorAll('div.sticky');
	if(l.length==0||nav.ww<760)return 0;
	this.o=[];
	for(var i=0;i<l.length;i++){
		var e=l[i];e.style.position='';
		var d={id:e.id,y:0,x:0,op:e.offsetTop};
		while(e.offsetParent){d.y+=e.offsetTop-e.scrollTop;d.x+=e.offsetLeft;e=e.offsetParent}
		this.o.push(d);
	}
	if(this.o.length){lib.event.add(window,'scroll',Sticky.scroll);lib.event.add(window,'resize',Sticky.scroll)}
},
scroll:function(){
	var p=document.querySelector('.main-holder').offsetHeight+ById('main').offsetTop;
	for(var i in Sticky.o){
		var e=ById(Sticky.o[i].id);
		if(p>(e.offsetHeight+Sticky.o[i].y+100)){
		var s=e.style;ds=document.body.scrollTop+document.documentElement.scrollTop;
		if(ds>Sticky.o[i].y){s.position="fixed";s.top=Math.min(p-ds-e.offsetHeight,0)+"px"}
		else{s.position="absolute";s.zIndex=0;s.top=Sticky.o[i].op+"px"}}
	}}
};

var acs={
a:0,
ab:function(){var ad=document.querySelector('.afs_ads');if(!ad||ad.innerHTML.length==0||ad.clientHeight===0)return 1},
chk:function(bf){
	var d=ById('Definition'),l=document.querySelectorAll('div.'+info.a);this.a=[];;
	if(l.length&&d&&nav.ww<760&&!ById(info.a+'7')&&d.scrollHeight>700&&(ById('Thesaurus')||ById('Translations'))){
		var e=document.createElement('div');		
		e.className=info.a;
		e.style.textAlign='center';
		e.id=info.a+'7';
		d.appendChild(e);
		l=document.querySelectorAll('div.'+info.a);
	};
	for(i=0;i<l.length;i++){
		var e=l[i],c=e.firstChild,d={id:e.id.substr(e.id.length-1,1),y:0,x:0,h:e.clientHeight,w:e.clientWidth,v:(e.innerHTML==''||(c&&c.style&&(c.style.display=='none'||c.style.visibility=='hidden'))?0:1)};
		while(e.offsetParent){d.y+=e.offsetTop;d.x+=e.offsetLeft;e=e.offsetParent}
		var q=d.id+'+'+d.x+'+'+d.y+'+'+d.h+'+'+d.w;
		if(!bf||!d.h||!d.v)this.a.push(q);
	}
},
bf:function(){
	if(this.ab()){this.fill(1);return};
	this.chk(1);var i;
	for(i=0;i<this.a.length;i++){
		var n=this.a[i].split('+')[0];
		if(n<=5){
		var e=ById(info.a+n);
		e.style.height='auto';
		e.innerHTML='<ins class="adsbygoogle" style="display:block" data-ad-format="'+(e.id=='ac2'||e.id=='ac3'?'auto':'horizontal')+'" data-ad-client="'+this.gpub+'" data-ad-channel="'+this.c_afc+'+'+this.c_bf+'" data-color-link="#2eb398" data-color-url="#2eb398" data-font-face="Arial" data-alternate-ad-url="//a.farlex.com/_/bnrsrv.ashx?bf=1"></ins>';
		(adsbygoogle=window.adsbygoogle||[]).push({});
	}
	}
	if(i)lib.AsyncRequest('//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
	},
fill:function(bf){
	if(this.ab()&&window.abu){lib.cookie.set('abu',encodeURIComponent(nav.loc),0,0);lib.AsyncRequest(abu)}else{
	var u='//w'+'ww.thefreedictionary.com/_/tr.ashx?r='+Math.random()+'&';
	if(info.isExtDomain&&(nav.IE||nav.Edge)&&lib.cookie.get('premium',1,1)){
		var prm=lib.cookie.get('premium',1,1),usId=(lib.cookie.get('userNfo',1,1)?lib.cookie.get('userNfo',1,1).split('//')[0]:'');
		u+='prm='+prm+'&usid='+usId+'&';
	}
	this.chk(bf);
	if(this.a.length==0&&(bf||lib.cookie.get('track',0,1))){if(!bf)Sticky.init();return};
	var s=lib.cookie.get('langTo',1,0);if(s)u+='lto='+s+'&';
	for(i in nav)if(i!='init')u+=i+'='+encodeURIComponent(nav[i])+'&';
	for(i in info)u+=i+'='+encodeURIComponent(info[i])+'&';
	u+='l='+this.a.join(',');
	lib.AsyncRequest(u)}
	}
};
lib.delayedPush(function(){acs.fill(0)});
lib.delayedPush(function(){if(!document.location.hash&&ById('f1Word')&&nav.ww>760&&ById('f1Word').focus)ById('f1Word').focus()});

var snd={
	fill:function(d){
		var l=d||document.querySelectorAll('span.snd,span.snd2');
		var f=0,h5=0;
		var a=document.createElement('audio');
		function cp(t){return!!(a.canPlayType&&a.canPlayType('audio/'+t+';').replace(/no/,''))}
		if(cp('mpeg')||cp('mp3'))h5='mp3';else if(cp('wav'))h5='wav';
		if(h5)snd.play=function(s){a.src=s;if(nav.IE&&nav.IE11){a.autoplay=true;a.load()}else{a.load();a.play()}};
		else{
			f=lib.flashInstalled();
			if(!f){
				if(nav.IE&&navigator.platform=='Win32'){
					var a=document.createElement('bgsound');
					a.id='bgsound';
					document.lastChild.appendChild(a);
					snd.play=function(s){ById('bgsound').src=s.replace('/mp3/','/prons/').replace('.mp3','.wav')};
				}else{
					var a=document.createElement('iframe');
					a.style.display='none';
					a.id='bgsound';
					document.lastChild.appendChild(a);
					snd.play=function(s){if(snd.tm)clearTimeout(snd.tm);ById('bgsound').src=s;snd.tm=setTimeout('ById(\'bgsound\').src="about:blank"',8000)};
				}
			}
		}
		for(var i=0;i<l.length;i++){
			var e=l[i],s=e.getAttribute('data-snd'),ttl=e.getAttribute('data-ttl'),ph=e.getAttribute('data-ph'),c=e.className=='snd',h='',title='',img;
			var t=s.replace('-','/').substr(2,1)=='/'?s.substr(3,2):'';
			if(t=='UK'||t=='US')title=t;else if(t=='ES')title='España';else if(t=='BR')title='Brasil';else if(t=='41')title='Latinoamérica';else if(t=='PT')title='Portugal';else t='plain';
			if(ttl)title=ttl;
			if(c){if(s.indexOf('/')<0)s='hm/mp3/'+s;s='http:/'+'/img.tfd.com/'+s}
			else{
				ph=(ph?(ph=='1'?'phrase':ph):'pron');
				s='http:/'+'/img2.tfd.com/'+ph+'/mp3/'+s;
				img='http:/'+'/img.tfd.com/m/flags/18_'+t;
			};
			if(window.tfd&&tfd.playSound)h='<span title="'+title+'" class="i snd-icon-'+t+'" onclick="tfd.playSound(\''+s+'.mp3\')"></span> ';
			else if(f){var fv='"sound_src='+s+'.mp3'+(c?'':'&image_src='+img+'.jpg')+'"',sz='width="'+(c?13:28)+'" height="'+(c?21:18)+'"';h='<o'+'bject style="margin:0 0 -4px 0" title="'+title+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '+sz+'><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='+fv+'><embed style="margin:0 0 -4px 0" src="http:/'+'/img.tfd.com/m/sound.swf" FlashVars='+fv+' menu="false" '+sz+' wmode="transparent" type="application/x-shockwave-flash" pluginspage="https://get.adobe.com/flashplayer/"></object>'}
			else{s=(h5!='wav'?s+'.mp3':s.replace('/mp3/','/prons/')+'.wav');h='<span title="'+title+'" class="i snd-icon-'+t+'" onclick="snd.play(\''+s+'\')"></span> '}
			e.innerHTML=h;
		}
	},
	tm:null,
	play:function(s){
		var andr=navigator.userAgent.indexOf('Android')>0;
		if(!andr)s=s.replace('/mp3/','/prons/').replace('.mp3','.wav');
		if(snd.tm)clearTimeout(snd.tm);
		var sndfr=ById("sound_frame");
		if(IE&&navigator.platform=='Win32'){
			document.all.bgsound.src=File;
			sound_timeout=setTimeout('document.all.bgsound.src="about:blank"',8000);
		}else if(sndfr&&!andr){
			sndfr.src='about:blank';
			sndfr.src=File;
			sound_timeout=setTimeout('ById("sound_frame").src="about:blank"',8000);
		}else location=s;
	}
};
lib.delayedPush(snd.fill);


lib.delayedPush(function(){if(window.fullload)clearTimeout(fullload)});
if(!info.IsApp)lib.delayedPush(function(){lib.AsyncRequest('https://apis.google.com/js/platform.js');lib.AsyncRequest('https://plus.google.com/js/client:plusone.js?onload=gpRender');lib.AsyncRequest('https://connect.facebook.net/en_US/sdk.js#xfbml=1&appId=209093762443963&version=v2.0');
	var l=document.querySelectorAll('#MainTxt img'),c=0;
	if(l.length){for(var i=0;i<l.length;i++)if(l[i].width>200){c+=1;l[i].setAttribute('data-pin-hover', true)};
	if(c){
	var scr=document.createElement('script');
	scr.type='text/javascript';
	scr.async=true;
	scr.src='//assets.pinterest.com/js/pinit.js';
	scr.setAttribute('data-pin-hover', true);
	document.getElementsByTagName('head').item(0).appendChild(scr)}}
});

var sources=[];
lib.delayedPush(function(){
	var l;
	if(info.PageLang!='es'){
		if(l=document.querySelector('div[data-periodicals]'))l.innerHTML='<a style="margin-top:12px;float:right" rel=nofollow href="http:/'+'/www.thefreelibrary.com/_/search/Search.aspx?By=0&SearchBy='+l.getAttribute('data-periodicals')+'&q='+encodeURIComponent(info.word)+'"><b>More results ►</b></a>';
	}
	l=ById('thes_link');if(l&&ById('Thesaurus'))l.style.display='inline-block';
	l=ById('trans_link');if(l&&ById('Translations'))l.style.display='inline-block';
	function src(s,p,e){
	var h='';
	function warn(s) {
		var div=document.createElement('DIV');
		div.innerHTML='<span class="i wrn"></span><div>'+s+'</div>';
		div.className='warning';
		e.insertBefore(div,e.firstChild);
	}
	switch(s){
		case 'wiki':break;
		case 'wikiInfo':break;
		case 'acr':h='Copyright 1988-2014 <a target=_blank href="http://www.acronymfinder.com">AcronymFinder.com</a>, All rights reserved.';
		(function(){
			var tr=document.querySelectorAll('#AcrFinder TR[data-cat]');
			if(tr.length>15){
				var div=document.createElement('DIV');
				var c=0,t=0,m=0,s=0,o=0,j=0,b=0;
				for(var i=0;i<tr.length;i++){
					var d=Number(tr[i].getAttribute('data-cat'));
					if(d&1)c++;if(d&2)t++;if(d&4)m++;if(d&8)s++;if(d&16)o++;if(d&32)j++;if(d&64)b++;
				}
				div.innerHTML='Category filter: <select><option selected value=0>Show All ('+tr.length+')<option value=1>Most Common ('+c+')<option value=2>Technology ('+t+')<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>';
				e.insertBefore(div,e.firstChild);
				div.lastChild.onchange=function(){
					var cat=Number(this.options[this.selectedIndex].value);
					var tr=document.querySelectorAll('#AcrFinder TR[data-cat]');
					for(var i=0;i<tr.length;i++){
						var n=tr[i];
						n.style.display=(!cat||(Number(n.getAttribute('data-cat'))&cat)?'':'none');
					}
				}
			}})();
			break;
		case 'foldoc':h='This article is provided by FOLDOC - Free Online Dictionary of Computing (<a rel=nofollow target=_blank href="http:/'+'/foldoc.org">foldoc.org</a>)';break;
		case 'cde':h='Computer Desktop Encyclopedia copyright ©1981-2016 by <a rel=nofollow 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.';break;
		case 'law':h='Copyright © 1981-2005 by Gerald N. Hill and Kathleen T. Hill. All Right reserved.';break;
		case 'chron':h='This chronology is © Research Machines plc 2009. All rights reserved. <a rel=nofollow target=_blank href=href="/_/gr.aspx?url=-helicon.co.uk">Helicon Publishing</a> is a division of Research Machines plc.';break;
		case 'columbia':h='The Columbia Electronic Encyclopedia&trade; Copyright © 2013, Columbia University Press. Licensed from Columbia University Press. All rights reserved. <a rel=nofollow target=_blank href="/_/gr.aspx?url=-cc.columbia.edu/cu/cup/">www.cc.columbia.edu/cu/cup/</A>';break;
		case 'harvey':h='Copyright © 2012, <a rel=nofollow target=_blank href="/_/gr.aspx?url=-duke.edu/~charvey/">Campbell R. Harvey</a>. All Rights Reserved.';break;
		case 'hm':h='American Heritage® Dictionary of the English Language, Fifth Edition. Copyright © 2016 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.';break;
		case 'hm_med':h='The American Heritage&reg; Medical Dictionary Copyright © 2007, 2004 by Houghton Mifflin Company. Published by <a rel=nofollow target=_blank href="/_/gr.aspx?url=-eref-trade.hmco.com/">Houghton Mifflin Company</a>. All rights reserved.';break;
		case 'hm_thes':h='The American Heritage&reg; Roget\'s Thesaurus. Copyright © 2013, 2014 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.';break;
		case 'hm_sci':h='The American Heritage® Student Science Dictionary, Second Edition. Copyright © 2014 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.';break;
		case 'hm_wsw':h='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 rel=nofollow href="/_/gr.aspx?url=-eref-trade.hmco.com/">Houghton Mifflin Company</a>. All rights reserved.';break;
		case 'HM_Idi':h='The American Heritage® Dictionary of Idioms by Christine Ammer. Copyright © 2003, 1997 by The Christine Ammer 1992 Trust. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.';break;
		case 'HM_PhrVerb':h='The American Heritage® Dictionary of Phrasal Verbs. Copyright © 2005 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.';break;
		case 'dorland':h='Dorland\'s Medical Dictionary for Health Consumers. © 2007 by Saunders, an imprint of Elsevier, Inc. All rights reserved.';break;
		case 'IdiI':h='<i><a target=_blank rel=nofollow href="/_/gr.aspx?url=-cambridge.org/elt/elt_projectpage.asp?id=2501153">Cambridge Idioms Dictionary, 2nd ed.</a></i> Copyright © Cambridge University Press 2006. Reproduced with permission.';break;
		case 'IdiA':h='<i><a target=_blank rel=nofollow href="/_/gr.aspx?url=-cambridge.org/cdai">Cambridge Dictionary of American Idioms</a></i> Copyright © Cambridge University Press 2003. Reproduced with permission.';break;
		case 'vet':h='Saunders Comprehensive Veterinary Dictionary, 3 ed. © 2007 Elsevier, Inc. All rights reserved';break;
		case 'millodot':h='Millodot: Dictionary of Optometry and Visual Science, 7th edition. © 2009 Butterworth-Heinemann';break;
		case 'mosby':h='Mosby\'s Dental Dictionary, 2nd edition. © 2008 Elsevier, Inc. All rights reserved.';break;
		case 'MillerKeane':h='Miller-Keane Encyclopedia and Dictionary of Medicine, Nursing, and Allied Health, Seventh Edition. © 2003 by Saunders, an imprint of Elsevier, Inc. All rights reserved.';break;
		case 'mosbyCAM':h='Jonas: Mosby\'s Dictionary of Complementary and Alternative Medicine. (c) 2005, Elsevier.';break;
		case 'mosbyMD':h='Mosby\'s Medical Dictionary, 9th edition. © 2009, Elsevier.';break;
		case 'Counties':h='Counties USA: A Directory of United States Counties, 3rd Edition. © 2006 by Omnigraphics, Inc.';break;
		case 'Holidays':h='Holidays, Festivals, and Celebrations of the World Dictionary, Fourth Edition. © 2010 by Omnigraphics, Inc.';break;
		case 'Parks':h='Parks Directory of the United States, 5th Edition. © 2007 by Omnigraphics, Inc.';break;
		case 'Segen':h='Segen\'s Medical Dictionary. © 2012 Farlex, Inc. All rights reserved.';break;
		case 'WordTrivia':h='Farlex Trivia Dictionary. © 2012 Farlex, Inc. All rights reserved.';break;
		case 'weal':h='West\'s Encyclopedia of American Law, edition 2. Copyright 2008 The Gale Group, Inc. All rights reserved.';break;
		case 'bouvier':h='A Law Dictionary, Adapted to the Constitution and Laws of the United States. By John Bouvier. Published 1856.';break;
		case 'mili':h='Dictionary of Military and Associated Terms. US Department of Defense 2005.';break;
		case 'webster':h='Webster\'s Revised Unabridged Dictionary, published 1913 by C. & G. Merriam Co.';break;
		case 'wn':h='Based on WordNet 3.0, Farlex clipart collection. © 2003-2012 Princeton University, Farlex Inc.';break;
		case 'gem':h='Gale Encyclopedia of Medicine. Copyright 2008 The Gale Group, Inc. All rights reserved.';break;
		case 'dcng':h='Dictionary of Collective Nouns and Group Terms. Copyright 2008 The Gale Group, Inc. All rights reserved.';break;
		case 'allusions':h='Allusions&#x2014;Cultural, Literary, Biblical, and Historical: A Thematic Dictionary. Copyright 2008 The Gale Group, Inc. All rights reserved.';break;
		case 'ologies':h='-Ologies & -Isms. Copyright 2008 The Gale Group, Inc. All rights reserved.';break;
		case 'HC_Discovery':h='Collins Discovery Encyclopedia, 1st edition © HarperCollins Publishers 2005';break;
		case 'hc_dict':h='Collins English Dictionary – Complete and Unabridged, 12th Edition 2014 © HarperCollins Publishers 1991, 1994, 1998, 2000, 2003, 2006, 2007, 2009, 2011, 2014';break;
		case 'hc_thes':h='Collins Thesaurus of the English Language – Complete and Unabridged 2nd Edition. 2002 © HarperCollins Publishers 1995, 2002';break;
		case 'hc_En_Es':;case 'hc_Es_En':h='Collins Spanish Dictionary - Complete and Unabridged 8th Edition 2005 © William Collins Sons & Co. Ltd. 1971, 1988 © HarperCollins Publishers 1992, 1993, 1996, 1997, 2000, 2003, 2005';break;
		case 'hc_En_Fr':;case 'hc_Fr_En':h='Collins English/French Electronic Resource. © HarperCollins Publishers 2005';break;
		case 'hc_En_De':;case 'hc_De_En':h='Collins German Dictionary – Complete and Unabridged 7th Edition 2005. © William Collins Sons & Co. Ltd. 1980 © HarperCollins Publishers 1991, 1997, 1999, 2004, 2005, 2007';break;
		case 'hc_En_It':;case 'hc_It_En':h='Collins Italian Dictionary 1st Edition © HarperCollins Publishers 1995';break;
		case 'hc_mlt':h='Multilingual Translator © HarperCollins Publishers 2009';break;
		case 'cabio':h='<a target=_blank rel=nofollow href="/_/gr.aspx?url=-cambridge.org/us/academic/subjects/general/cambridge-dictionary-american-biography?format=HB">The Cambridge Dictionary of American Biography</a>, by John S. Bowman. Copyright © Cambridge University Press 1995. Reproduced with permission.';break;
		case 'vox1':h='Diccionario Enciclopédico Vox 1. © 2009 Larousse Editorial, S.L.';break;
		case 'vox_thes':h='Diccionario Manual de Sinónimos y Antónimos Vox © 2016 Larousse Editorial, S.L.';break;
		case 'Larousse_GDLE':h='Gran Diccionario de la Lengua Española © 2016 Larousse Editorial, S.L.';break;
		case 'larousse_thes':h='Le Grand Dictionnaire des Synonymes et Contraires © Larousse 2004';break;
		case 'larousse_practice':h='Larousse Pratique. © 2005 Editions Larousse.';break;
		case 'larousse_pocket':h='Maxipoche 2014 © Larousse 2013';break;
		case 'farlex_acr':h='Farlex Acronyms and Abbreviations. © 2012 Farlex, Inc. All Rights Reserved';break;
		case 'Farlex_fin':h='Farlex Financial Dictionary. © 2012 Farlex, Inc. All Rights Reserved';break;
		case 'farlex_partner':h='TheFreeDictionary.com ';switch(p){case'1':h+='Deutsches Wörterbuch';break;case'2':h+='Dizionario italiano';break;case'3':h+='Großwörterbuch Deutsch als Fremdsprache'};h+='. © 2009 Farlex, Inc. and partners.';sources.push('farlex_partner_'+p);break;
		case 'lightbulb':h='Dictionary of Financial Terms. Copyright © 2008 <a rel=nofollow href="/_/gr.aspx?url=-lightbulbpress.com">Lightbulb Press, Inc.</a> All Rights Reserved.';break;
		case 'MGH_Drugs':h='McGraw-Hill Nurse\'s Drug Handbook, 7th Ed. Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved';break;
		case 'MGH_ceb':h='McGraw-Hill Concise Encyclopedia of Bioscience. © 2002 by The McGraw-Hill Companies, Inc.';break;
		case 'MGH_Idi':h='McGraw-Hill Dictionary of American Idioms and Phrasal Verbs. © 2002 by The McGraw-Hill Companies, Inc.';break;
		case 'MGH_cep':h='McGraw-Hill Concise Encyclopedia of Physics. © 2002 by The McGraw-Hill Companies, Inc.';break;
		case 'MGH_cee':h='McGraw-Hill Concise Encyclopedia of Engineering. © 2002 by The McGraw-Hill Companies, Inc.';break;
		case 'MGH_Med':h='McGraw-Hill Concise Dictionary of Modern Medicine. © 2002 by The McGraw-Hill Companies, Inc.';break;
		case 'MGH_arc':h='McGraw-Hill Dictionary of Architecture and Construction. Copyright © 2003 by McGraw-Hill Companies, Inc.';break;
		case 'MGH_avi':h='An Illustrated Dictionary of Aviation Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved';break;
		case 'MGH_Slang':h='McGraw-Hill\'s Dictionary of American Slang and Colloquial Expressions Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.';break;
		case 'SciTech':h='McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.';break;
		case 'mghIArc':h='Illustrated Dictionary of Architecture Copyright © 2012, 2002, 1998 by The McGraw-Hill Companies, Inc. All rights reserved';break;
		case 'mghEnEs':case'mghEsEn':h='English-Spanish/Spanish-English Medical Dictionary Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.';break;
		case 'burton':h='Burton\'s Legal Thesaurus, 4E. Copyright © 2007 by William C. Burton. Used with permission of The McGraw-Hill Companies, Inc.';break;
		case 'RealEstateEncyclopedia':h='The Complete Real Estate Encyclopedia by Denise L. Evans, JD & O. William Evans, JD. Copyright © 2007 by The McGraw-Hill Companies, Inc.';break;
		case 'MortgageEncyclopedia':h='The Mortgage Encyclopedia. Copyright © 2004 by Jack Guttentag. Used with permission of The McGraw-Hill Companies, Inc.';break;
		case 'Investopedia':h='Investopedia\'s Guide To Wall Speak, Edited by Jack Guinan. Copyright © 2009 by Investopedia®. Used with permission of The McGraw-Hill Companies, Inc.';break;
		case 'HRBlock':h='Copyright © 2008 H&R Block. All Rights Reserved. Reproduced with permission from <a target=_blank rel=nofollow href="/_/gr.aspx?url=-hrblock.com/taxes/fast_facts/glossary/glossary_detail.jsp?'+p+'">H&R Block Glossary</a>';break;
		case 'GSE':h='The Great Soviet Encyclopedia, 3rd Edition (1970-1979). © 2010 The Gale Group, Inc. All rights reserved.';
			warn("The following article is from <i>The Great Soviet Encyclopedia</i> (1979). It might be outdated or ideologically biased.");
			break;
		case 'Similes':h='Similes Dictionary, 1st Edition. © 1988 The Gale Group, Inc. All rights reserved.';break;
		case 'Picturesque':h='Picturesque Expressions: A Thematic Dictionary, 1st Edition. © 1980 The Gale Group, Inc. All rights reserved.';break;
		case 'open_thes':h=''+(info.PageLang=='de'?'<a rel=nofollow href="/_/gr.aspx?url=-openthesaurus.de">OpenThesaurus</a>':'OpenThesaurus')+'. Distributed under <a rel=nofollow href="/'+'/encyclopedia.thefreedictionary.com/GNU+public+licence">GNU General Public License</a>.';break;
		case 'DictCC':h='<a rel=nofollow href="/_/gr.aspx?url=-'+encodeURIComponent('dict.cc/?s='+encodeURIComponent(p))+'" target=_blank rel=nofollow>More translations</a> from Dict.cc© 2002 - 2009 <a rel=nofollow href=http:/'+'/www.dict.cc>Paul Hemetsberger</a>';break;
		case 'kdict':h=''+(info.PageLang=='en'?'Kernerman English Multilingual Dictionary © 2006-2013':'Copyright © 2013')+' <a rel=nofollow href="/_/gr.aspx?url=-kdictionaries.com">K Dictionaries Ltd</a>.';break;
		case 'wkEpo':h='Medical Eponyms © Farlex 2012';break;
		case 'wkDen':h='Medical Dictionary for the Dental Professions © Farlex 2012';break;
		case 'wkHP':h='Medical Dictionary for the Health Professions and Nursing © Farlex 2012';break;
		case 'wkMed':h='Farlex Partner Medical Dictionary © Farlex 2012';break;
		case 'wkEnEs':h='English-Spanish Medical Dictionary © Farlex 2012';break;
		case 'wkEsEn':h='Spanish-English Medical Dictionary © Farlex 2012';break;
		case 'evSport':h='Dictionary of Sport and Exercise Science and Medicine by Churchill Livingstone © 2008 Elsevier Limited. All rights reserved.';break;
		case 'evPod':h='Illustrated Dictionary of Podiatry and Foot Science by Jean Mooney © 2009 Elsevier Limited. All rights reserved.';break;
		case 'rHouse':h='Random House Kernerman Webster\'s College Dictionary, © 2010 K Dictionaries Ltd. Copyright 2005, 1997, 1991 by Random House, Inc. All rights reserved.';break;
		case 'hcPhrase':h='Collins Multilingual Translator © HarperCollins Publishers 2009';break;
		case 'hcUsage':h='Collins COBUILD English Usage © HarperCollins Publishers 1992, 2004, 2011, 2012';break;
		case 'hcVerbTblEn':h='Collins English Verb Tables © HarperCollins Publishers 2011';break;
		case 'hcVerbTblFr':h='Collins French Verb Tables © HarperCollins Publishers 2011';break;
		case 'hcVerbTblDe':h='Collins German Verb Tables © HarperCollins Publishers 2011';break;
		case 'hcVerbTblEs':h='Collins Spanish Verb Tables © HarperCollins Publishers 2011';break;
		case 'aaHoliday':h='African-American Holidays, Festivals, and Celebrations, 1st ed. © Omnigraphics, Inc. 2007';break;
		case 'eCristmas':h='Encyclopedia of Christmas and New Year\'s Celebrations, 2nd ed. © Omnigraphics, Inc. 2003';break;
		case 'eEaster':h='Encyclopedia of Easter, Carnival, and Lent, 1st ed. © Omnigraphics, Inc. 2002';break;
		case 'holidaySym':h='Holiday Symbols and Customs, 4th ed. © Omnigraphics, Inc. 2009';break;
		case 'iMedix':h='This content is provided by iMedix and is subject to iMedix Terms. The Questions and Answers are not endorsed or recommended and are made available by patients, not doctors.';break;
		case 'wld':h='These questions and answers are provided by WORLDLawDirect.com. ©2000 - 2007 by WORLDLawDirect.com, Inc.';
			var c=document.createElement('DIV');
			c.innerHTML='<br>Do you have a legal question? <a rel=nofollow href="/_/gr.aspx?url=-worldlawdirect.com/asklawyer/">Ask a lawyer now</a>.';
			e.appendChild(c);
			c=document.createElement('SPAN');
			c.innerHTML='<span onmouseover="t_i(1,event)" onmouseout="t_o(1)" style="margin-left:12pt;font-size:8pt;font-weight:normal;text-decoration:underline;cursor:help">what\'s this?</span><aside 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.</aside>';
			e.querySelector('h2').appendChild(c);
		break;
		case 'shUnfW':h='Dictionary of Unfamiliar Words by Diagram Group Copyright © 2008 by Diagram Visual Information Limited';break;
		case 'sh1000W':h='1001 Words and Phrases You Never Knew You Didn’t Know by W.R. Runyan Copyright © 2011 by W.R. Runyan';break;
		case 'shBed':h='Bedside Dream Dictionary by Silvana Amar Copyright © 2007 by Skyhorse Publishing, Inc.';break;
		case 'SH_EndPhr':h='Endangered Phrases by Steven D. Price Copyright © 2011 by Steven D. Price';break;
		case 'wikt':h='This entry is copied from a <a target="_blank" href="'+"https://"+info.PageLang+".wiktionary.org/wiki/"+encodeURIComponent(info.word)+'">Wiktionary&reg; page</a> - the free dictionary created and edited by its online user community. The text has not been checked or edited by anyone on our staff. Although the vast majority of Wiktionary® definitions provide accurate and timely information, please do not assume the accuracy of any particular entry. This article is distributed under the terms of <a target="_blank" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>.';break;
		case 'FarlexIdi':h='Farlex Dictionary of Idioms. © 2015 Farlex, Inc, all rights reserved.';break;
		case 'davisDD':h='Diseases and Disorders, © 2011 Farlex and Partners';break;
		case 'davisDrug':h='Drug Guide, © 2015 Farlex and Partners';break;
		case 'davisLab':h='Handbook of Laboratory and Diagnostic Tests, © 2013 Farlex and Partners';break;
		case 'davisTab':h='Medical Dictionary, © 2009 Farlex and Partners';break;
		case 'crusca':h='Accademia della Crusca © 1612';break;
		case 'littre':h='Émile Littré\'s Dictionnaire de la langue française © 1872-1877';break;
		case 'nicot':h='Jean Nicot\'s Thresor de la langue française © 1606';break;
		case 'feraud':h='Jean-François Féraud\'s Dictionaire critique de la langue française © 1787-1788';break;
		case 'acadFr1':h='Dictionnaire de L\'Académie française 1st Edition © 1694';break;
		case 'acadFr4':h='Dictionnaire de L\'Académie française 4th Edition © 1762';break;
		case 'acadFr5':h='Dictionnaire de L\'Académie française 5th Edition © 1798';break;
		case 'acadFr6':h='Dictionnaire de L\'Académie française 6th Edition © 1835';break;
		case 'acadFr8':h='Dictionnaire de L\'Académie française 8th Edition © 1932-5';break;
		case 'novoPt':h='Novo Diccionário Da Língua Portuguesa © 1913';break;
		case 'plants':h='Edible Plant Guide © 2012 Markus Rothkranz';break;
		case 'hcAstr':h='Collins Dictionary of Astronomy © Market House Books Ltd, 2006';break;
		case 'hcBio':h='Collins Dictionary of Biology, 3rd ed. © W. G. Hale, V. A. Saunders, J. P. Margham 2005';break;
		case 'hcBus':h='Collins Dictionary of Business, 3rd ed. © 2002, 2005 C Pass, B Lowes, A Pendleton, L Chadwick, D O’Reilly and M Afferson';break;
		case 'hcEco':h='Collins Dictionary of Economics, 4th ed. © C. Pass, B. Lowes, L. Davies 2005';break;
		case 'hcLaw':h='Collins Dictionary of Law © W.J. Stewart, 2006';break;
		case 'hcMed':h='Collins Dictionary of Medicine © Robert M. Youngson 2004, 2005';break;
		case 'hcSoc':h='Collins Dictionary of Sociology, 3rd ed. © HarperCollins Publishers 2000';break;
		case 'viAstr':h='The Astrology Book, Second Edition © 2003 Visible Ink Press®. All rights reserved.';break;
		case 'viDream':h='The Dream Encyclopedia, Second Edition © 2009 Visible Ink Press®. All rights reserved.';break;
		case 'viHero':h='The Superhero Book: The Ultimate Encyclopedia of Comic-Book Icons and Hollywood Heroes © 2012 Visible Ink Press®. All rights reserved.';break;
		case 'viRelBook':h='The Religion Book: Places, Prophets, Saints, and Seers © 2004 Visible Ink Press®. All rights reserved.';break;
		case 'viRelPh':h='The Encyclopedia of Religious Phenomena © 2008 Visible Ink Press®. All rights reserved.';break;
		case 'viSecret':
			h='Conspiracies and Secret Societies, Second Edition © 2013 Visible Ink Press®. All rights reserved.';
			warn("The following article is from Conspiracies and Secret Societies. It is a summary of a conspiracy theory, not a statement of fact.");
			break;
		case 'viSpirit':h='The Spirit Book © 2006 Visible Ink Press®. All rights reserved.';break;
		case 'viSupvil':h='The Supervillain Book: The Evil Side of Comics and Hollywood © 2006 Visible Ink Press®. All rights reserved.';break;
		case 'viVamp':h='The Vampire Book, Second Edition © 2011 Visible Ink Press®. All rights reserved.';break;
		case 'viWitch':h='The Witch Book: The Encyclopedia of Witchcraft, Wicca, and Neo-paganism © 2002 Visible Ink Press®. All rights reserved.';break;
		case 'farlexGrammar':h='The Farlex Grammar Book © 2016 Farlex International. All rights reserved.';break;
		};
		return h;
	};
	if(info.tab==16)sources.push('wiki');else{
	var l=document.querySelectorAll('#MainTxt section');
	for(var i=0;i<l.length;i++){
		var e=l[i],s=e.getAttribute('data-src'),p=e.getAttribute('data-src-p');
		if(!s)continue;
		var copy=src(s,p,e);
		if(!copy)continue;
		sources.push(s);
		var c=document.createElement('div');
		c.className='brand_copy';
		c.innerHTML=(info.IsApp?'':'<span onclick="location=\'/_/cite.aspx?url=\'+encodeURIComponent(info.canonical)+\'&word=\'+encodeURIComponent(info.word)+\'&sources=\'+sources" style="margin-right:7px;position:relative;top:-2px"><span class="i A" style="width:42px;height:13px;background-position:0 -37px"></span><span class="i A" style="width:20px;height:7px;background-position:-10px -52px"></span></span>')+copy;
		e.appendChild(c);
		
		var z=e.getAttribute('data-zip'),n=e.getAttribute('data-name');
		if((z&&z.length==5)||n){
			var c=document.createElement('DIV');
			c.innerHTML='';
			if(z&&z.length==5){var no=Math.random();c.innerHTML+='<br><div id="WTHR_'+no+'"></div><iframe src="/_/hp/Controls/AsyncWeatherControl.aspx?location='+z+'&contentId=WTHR'+no+'&NOD=5&Unit=F" id="wrifrm'+no+'" style="position:absolute;z-index:-100"></iframe><br>'};
			if(n){n=encodeURIComponent(n);c.innerHTML+='<br><img style="margin:0 15px 15px 0;width:320px;height:280px" src="//maps.google.com/maps/api/staticmap?center='+n+'&zoom=5&size=320x280&maptype=map&markers=color:red|color:red|label:|'+n+'&sensor=false"><img style="margin:0 15px 15px 0;width:320px;height:280px" src="//maps.google.com/maps/api/staticmap?center='+n+'&&size=320x280&maptype=terrain&markers=color:red|color:red|label:|'+n+'&sensor=false">'};
			e.appendChild(c);	
		};
	}};
});

function t_i(id,event){
	var hlp=ById('Tp'+id);
	if(!hlp)return;
	hlp.style.top=((event.clientY||event.y)-ById('main').offsetTop+document.body.scrollTop+10)+'px';
	var nsx=(event.clientX||event.x)+document.body.scrollLeft;
	hlp.style.left=(document.body.offsetWidth-nsx>510&&nsx>105?nsx-100:5)+'px';
	hlp.style.width=Math.min(500,document.body.offsetWidth-10)+'px';
	hlp.style.visibility='visible';
}
function t_o(id){var hlp=ById('Tp'+id);if(hlp)hlp.style.visibility='hidden'}

window.Langs={
'af':['Afrikaans','Afrikaans',''],
'ar':['Arabic','العربية','اختر لغة'],
'bg':['Bulgarian','Български','Изберете език'],
'ca':['Catalan','Català',''],
'zh':['Chinese Simplified','中文简体','选择一种语言'],
'tw':['Chinese Traditional','中文繁體','選擇一種語言'],
'hr':['Croatian','Hrvatski','Odaberite jezik'],
'cs':['Czech','Česky','Zvolte si jazyk'],
'da':['Danish','Dansk','Vælg et sprog'],
'nl':['Dutch','Nederlands','Selecteer een taal'],
'en':['English','','Select a language'],
'eo':['Esperanto','Esperanto',''],
'et':['Estonian','eesti keel',''],
'fa':['Farsi','فارسی',''],
'fi':['Finnish','Suomi','Valitse kieli'],
'fr':['French','Français','Sélectionnez une langue'],
'de':['German','Deutsch','Wählen Sie eine Sprache'],
'el':['Greek','Ελληνική','Για χρήστες'],
'he':['Hebrew','עִבְרִית',''],
'hi':['Hindi','हिन्दी','कोई भाषा चुनें'],
'hu':['Hungarian','magyar',''],
'is':['Icelandic','íslenska',''],
'id':['Indonesian','Indonesia',''],
'ia':['Interlingua','Interlingua',''],
'it':['Italian','Italiano','Seleziona una lingua'],
'ja':['Japanese','日本語','希望の言語を選択'],
'ko':['Korean','한국어','언어를 선택'],
'la':['Latin','Lingua Latina',''],
'lv':['Latvian','Latviešu',''],
'lt':['Lithuanian','Lietuvių',''],
'ml':['Malay','Bahasa Melayu',''],
'no':['Norwegian','Norsk','Velg et språk'],
'ps':['Pashto','پښتو,پشتو',''],
'pl':['Polish','Polski','Wybierz język'],
'pt':['Portuguese','Português','Selecione um idioma'],
'ro':['Romanian','Română','Selectaţi o limbă'],
'ru':['Russian','Русский','Выберите язык'],
'sr':['Serbian','српски',''],
'sk':['Slovak','slovenčina',''],
'sl':['Slovenian','slovenski',''],
'es':['Spanish','Español','Seleccione un idioma'],
'sw':['Swahili','Kiswahili',''],
'sv':['Swedish','Svenska','Välj ett språk'],
'th':['Thai','ภาษาไทย',''],
'tr':['Turkish','Türkçe','Bir dil seç'],
'uk':['Ukrainian','українська',''],
'ur':['Urdu','اردو',''],
'vi':['Vietnamese','Tiếng Việt','']
};

lib.delayedPush(function(){
var t=document.querySelector('#translbody[data-lang]');
if(!t)return;
var list=t.getAttribute('data-lang');
if(!list)return;
window.lngbar={
tm:null,
LangNone:'-----------------------',
LangHideUnhide:function(Node,l){
	if(Node.getAttribute&&Node.getAttribute('lang')){Node.style.display=(Node.getAttribute('lang')==l?(Node.tagName=='SECTION'?'block':'inline'):'none');return};
	var children=Node.childNodes;
	for(i in children)this.LangHideUnhide(children[i],l);
},
LangChange:function(l){
	if(l&&l.length==2)lib.cookie.set('langTo',escape(l),1,0);
	else l=(info.PageLang=='en'?'es':'en');
	var a=Langs[l];
	if(ById('LangDropdownMob')){
		var cnt=0;
		for(var li in Langs){
			var a=Langs[li];
			if(a.active){
				if(li==l){
					ById('LangDropdownMob').selectedIndex=cnt;
					break;
				}
				cnt++;
			}
		}
	}
	else{
		this.LangHide();
		if(ById('selectedLang'))ById('selectedLang').innerHTML='<div>'+(Langs[l]&&Langs[l].active?'<span class="fl_'+l+'"></span>'+a[0]+(a[1]?(l=='tw'||l=='zh'?'/':' / ')+a[1]:''):lngbar.LangNone)+'</div>';
	}
	this.LangHideUnhide(ById('translbody'),l);
	window.resizeBy(0,0);
	return false;
},
ClearTM:function(){if(lngbar.tm)clearTimeout(lngbar.tm)},
ClearTMonScroll:function(){	
	setTimeout("lngbar.ClearTM()",200);
	if(lngbar.tm)clearTimeout(lngbar.tm);
},
LangReveal:function(){
	if(lngbar.tm)clearTimeout(lngbar.tm);
	ById('LangDropdown').style.display='';
},
LangHide:function(){
	var langDropdown=ById('LangDropdown');
	if(langDropdown)langDropdown.style.display='none';
}
};
var div=document.createElement('span'),h,cnt=0,found=0;
div.id='LangBar';
var s=lib.cookie.get('langTo',1,0);if(!s||s=="null")s=(info.PageLang=='en'?'es':'en');
for(var i=0;i<list.length;i+=2){
	var l=list.substr(i,2);
	Langs[l].active=1;
}
h='';
if(window.IsGlass){
	for(var li in Langs){
		var a=Langs[li];
		if(a.active){
			h+='<a href="#" onclick="lngbar.LangChange(\''+li+'\');return false;" class="fl_'+li+'">'+a[0]+(a[1]?' / '+a[1]:'')+'</a>&nbsp; ';
			cnt++;
		}
	}
}else{
	if(info.IsApp||info.IsMob||info.tbl||window.outerWidth<760){
		h+='<select id=LangDropdownMob onChange="var s=this.options[this.selectedIndex].value;if(s!=lib.cookie.get(\'langTo\',1,0))lngbar.LangChange(s)">';
		for(var li in Langs){
			var a=Langs[li];
			if(a.active){
				if(li==s)found=1;
				h+='<option value='+li+(li==s?' selected':'')+'>'+a[0]+(a[1]&&li!='zh'&&li!='tw'?' / '+a[1]:'')+'</option>';
				cnt++;
			}
		}
		if(!found)h+='<option selected>----------</option>';
		h+='</select>';
	}
	else{
		h+='<span id=DropDownHolder><span id=LangDropdown style="display:none" onmousemove="lngbar.ClearTM()" onscroll="lngbar.ClearTMonScroll()" onmouseout="lngbar.tm=setTimeout(\'lngbar.LangHide()\',400)">';
		for(var li in Langs){
			var a=Langs[li];
			if(a.active){
				h+='<a onclick="javascript:lngbar.LangChange(\''+li+'\');return false;" href="#"><div class="lcd"><span class="fl_'+li+'"></span>'+a[0]+(a[1]?' / '+a[1]:'')+'</div></a>';
				cnt++;
			}
		}
		h+='</span><div id=selectedLang class=lcd onmouseover="lngbar.LangReveal()" onmouseout="if(lngbar.tm)clearTimeout(lngbar.tm);lngbar.tm=setTimeout(\'lngbar.LangHide()\',800)"><div>'+lngbar.LangNone+'</div></div></span>';
	}
}
if(!info.hideLangBar)div.innerHTML=h+'<span class=label>'+Langs[info.PageLang][2]+':</span>';
var p=ById('TranslationsHead');
if(p)p.appendChild(div); else ById('translbody').insertBefore(div,ById('translbody').firstChild);
lngbar.LangChange((info.hideLangBar?'en':lib.cookie.get('langTo',1,0)));
});

if(!/bot|crawl|spider|http/i.test(navigator.userAgent))lib.delayedPush(function(){
	var ens=["Content_CA_AOD_0_BC","Content_CA_DIH_0_BC","Content_CA_TB_0_BC","Content_CA_WOD_0_BC","Content_CA_TB_0_BC", "Content_CA_QOD_0_BC","Definition","Thesaurus"];
	for(var ei=0;ei<ens.length;ei++){
		var el=ById(ens[ei]);
		if(!el)continue;
		if(!document.createTreeWalker||info.IsApp||nav.ww<760){
			var d=function(){opennewdictwin(window.getSelection?window.getSelection().toString():document.getSelection())};
			if(nav.IE)d=function(){var t=document.selection.createRange();if(document.selection.type!='Text'||!t.text)return;document.selection.empty();opennewdictwin(t.text)};
			lib.event.add(el,'dblclick',d);
			continue;
		}
		var node,textNodes=[];
		var walker=document.createTreeWalker(el,NodeFilter.SHOW_TEXT,Filter,false);
		while(node=walker.nextNode())textNodes.push(node);
		for(var i=0;i<textNodes.length;i++){
			var textNode=textNodes[i];
			var text=textNode.textContent;
			if(/\S/.test(text)&&/[\u00C0-\u1FFF\u2C00-\uD7FF\w]+/.test(text)){
				var pNode=textNode.parentNode;
				var words=text.split(" ");
				for(var j=words.length-1;j>=0;j--){
					var word=words[j];
					if(word){
						var prefix="www";
						if(pNode.hasAttribute("lang"))prefix=pNode.getAttribute("lang");
						var span=CreateSpan(word,prefix);
						var next=textNode.nextSibling;
						if(lib.StartsWith(text," "))pNode.insertBefore(document.createTextNode(" "),next);
						pNode.insertBefore(span,next);
						if(j!=words.length-1||lib.EndsWith(text," "))pNode.insertBefore(document.createTextNode(" "),next);
					}
				}
				pNode.removeChild(textNode);
			}
		}
	}
	function Filter(node){
		function bad(pn){return ',A,ASIDE,H1,H2,H3,H4,SCRIPT,'.indexOf(','+pn.tagName+',')>=0||',hw,pron,brand_copy,lcd,'.indexOf(','+pn.className+',')>=0||pn.id=="Translations"||lib.EndsWith(pn.id,"Head")||pn.style.textDecoration=="underline"};
		return(bad(node.parentNode)||bad(node.parentNode.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);
	}
	function CreateSpan(str,prefix){
		var t=document.createTextNode(str);
		if(str.length<3)return t;
		var e=document.createElement("span");
		e.className="hvr";
		e.onclick=function(e){opennewdictwin(str,prefix)}
		e.appendChild(t);
		return e;
	}
});

function opennewdictwin(text,prefix){
	if(text.slice(0,4)=='http'){window.open(text);return}
	if(text.slice(0,4)=='www.'){window.open('//'+text);return}
	prefix=prefix||'www';
	text=text.replace(/[́!.:?,;"·\[\]\(\)]/g,'').replace(/[\n\t ]/g,' ').replace(/^\s+|\s+$/,'');
	if(!text||text.toUpperCase()==info.word.toUpperCase())return;
	var newloc;
	if(info.PageLang!='en')newloc='/'+encodeURIComponent(text);
	else newloc='/'+'/'+prefix+'.'+info.Domain+'/_/search.aspx?tab='+info.tab+'&word='+encodeURIComponent(text);
	if(document.location.toString().toLowerCase()!=newloc.toLowerCase())document.location=newloc;
}

function SelectVT(sel){
	var v=sel.options[sel.selectedIndex].value;
	if(v=="0")return;
	var i=1,tbl;
	while((tbl=ById("VerbTableN"+v.split("_")[0]+"_"+i))!=undefined){
		tbl.className="prettytable hiddenStructure";
		i++;
	}
	ById("VerbTableN"+v).className="prettytable";
}
lib.delayedPush(function(){
var l=document.querySelectorAll('#browsers .list-holder');
for(var i=0;i<l.length;i++){
	var e=l[i];
	if(e.childNodes.length!=3)continue;
	var c=e.querySelector('li.current');
	if(!c)continue;
	e.scrollTop=e.scrollHeight/2-e.clientHeight/2+c.scrollHeight/2;
}});

var searchTextfieldID="f1Word";
function ToggleKeyboard(){
	SAYT.disabled=true;
	ById(searchTextfieldID).onblur=null;
	if(!window.popKeyboard)lib.AsyncRequest('//img.tfd.com/m/keyboard.js')
	else{popKeyboard(!isKbVisible);restoreCaret()};
}

var iSavedCaretIndex=0;
function restoreCaret(){
	var tf=ById(searchTextfieldID);
	if(!tf.selectionStart)
	setCaretPos(tf,++iSavedCaretIndex,false);
}
function saveCaret(oField){
	if(nav.IE&&!oField.selectionStart){
		var Sel=document.selection.createRange();
		Sel.moveStart('character',-oField.value.length);
		iSavedCaretIndex=Sel.text.length;
	}
}
lib.delayedPush(function(){var f=document.querySelector('form.search-form');if(f){f.onsubmit=function(){return!!ById(searchTextfieldID).value}}});
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=!1;
	this.Tab=info.tab;
	this.HoverColor='#eeeeee';
	this.NormalBg='white';
	this.QueryURL='/'+'/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=[];
	this.Values=[];
	this.Count=[];
	this.rsp=null;
}
SearchAhead.prototype={
	Disable:function(){
		lib.cookie.set('sayt',1,1,1);
		location.reload();
	},
	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)+"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(lib.cookie.get('sayt',1,1))this.disabled=true;
		if(this.disabled)return;
		var tt=function(nm){var vv=document.querySelectorAll("input[name='"+nm+"']");for(var i=0;i<vv.length;i++){if(vv[i].checked)return vv[i].value}};
		this.LinkURL='/'+'/www.'+info.Domain+'/_/search.aspx?SearchBy='+tt("SearchBy")+'&TFDBy='+tt("TFDBy")+'&ScrBy='+tt("ScrBy")+'&Word=';
		if(event.keyCode==13){
			if(!ById(searchTextfieldID).value)return;
			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){
				if(typeof(this.LastTF.savedText)!='undefined')this.LastTF.value=this.LastTF.savedText;
				var elem=ById("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;
				}
			}
			lib.AsyncRequest(this.QueryURL+encodeURIComponent(obj.value));
		}
	},
	Keep:function(evt){
		if(this.IsInside(evt||window.event))clearTimeout(this.TimeID);
	},
	Hide:function(evt){
		if(this.IsInside(evt||window.event))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=ById("SAYTk"+this.SelIndex);
			if(elem!=null)elem.style.backgroundColor=this.NormalBg;
			this.SelIndex=-1;
			this.SugDiv.style.display="none";
		}
	},
	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.display="block";
		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();
		ById("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++)
			ById("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:18px;cursor:pointer;display:block;vertical-align:middle;padding-bottom:3px" 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])+'" class="fl_'+l[i][0]+'" style="margin-bottom:4px"></a>';
			txt+='</div>';
			iCount++;
		}
		txt+='<a style="float:right;font-size:12px;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){
			for(var ix=this.Keys.length-1;ix>=0;ix--){
				if(rsp[0]==this.Keys[ix]){
					this.Keys.push(rsp[0]);
					this.Values.push(txt);
					this.Count.push(iCount);
					break;
				}
			}
			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.display="block";
	}
};
lib.delayedPush(function(){window.SAYT=new SearchAhead});

function ChangeTextSize(s){
	if(info.PageLang=='ar')s+=3;
	lib.cookie.set('font',escape(s),1,1);
	document.documentElement.style.fontSize=s+'px';
};

function eml2(p,n){
	if(!p&&nav.loc.indexOf('medical-dictionary')>0)p='dorland';
	var url='/_/viewer'+(info.IsApp?'-app':'')+'.aspx?path='+encodeURIComponent(p)+'&name='+encodeURIComponent(n)+'&url='+encodeURIComponent(info.canonical);
	if(lib.StartsWith(nav.loc,'/_/viewer')||info.IsApp||nav.ww<760)
		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 pron_key(t){
var pkw=open('//www.thefreedictionary.com/_/pk'+(t==1?'_ipa':'')+'.htm'+(info.IsApp?'?h=1':''),'pk','width='+(t==1?'800':'630')+',height='+(t==1?'865':'710')+',statusbar=0,menubar=0');
if(window.focus)pkw.focus();
return false;
};

lib.delayedPush(function(){
window.fconn=new function(){
	var th=this;
	var evnts='';
	this.isFC=function(){return typeof fc!='undefined'};
	this.URL='//secure.thefreedictionary.com/';
	this.SURL='https://secure.thefreedictionary.com/';
	this.homepageChanged=function(){if(th.isFC())fc.sync()};
	this.ev=function(event){
		if(th.isFC())fc.regEv(event);
		else{if(evnts.length<500)evnts+=event+','}
	};
	this.pushEvts=function(FC){
		if(!evnts)return;
		var evs=evnts.split(',');
		for(var i in evs)if(evs[i])FC.regEv(evs[i]);
		evnts='';
	};
	this.evSh=function(nfo){lib.cookie.set('rff',escape(nfo),1,1);lib.AsyncRequest(th.URL+'api/regSh.ashx?d='+nfo)};
	this.userId=function(){return(info.isLogin&&lib.cookie.get('userNfo'))?lib.cookie.get('userNfo').split('/')[0]:""};
	this.shP=function(){return(info.isLogin)?"?sr="+th.userId():""};
	this.loginErr=function(){lib.hide('fcLoading');lib.show('loginErr')};
	this.loginClick=function(){
		var u=ById('fcUn').value,p=ById('fcPsw').value;
		if(!u||!p){th.loginErr()}
		else{
			if(info.isExtDomain){return true}
			var r=ById('fcRem').checked?"&rememberMe=1":"",hp2=lib.cookie.get('hp2',1,0);
			lib.AsyncRequest(th.SURL+'Login.aspx?js='+(th.isFC()?'1':'2')+'&usrName='+encodeURIComponent(u)+'&usrPwd='+encodeURIComponent(p)+'&d='+encodeURIComponent(document.domain.split('.')[0])+r+(hp2?'&hp2='+encodeURIComponent(hp2):'')+'&x='+(new Date()).getTime());
			lib.show('fcLoading');
			lib.hide('loginErr');
		}
		return false;
	};
	this.exCN=["userNfo","userTicket","premium","notif"];
	this.syncCookie=function(c){
		if(!info.isExtDomain)return;
		for(var i=0;i<th.exCN.length;i++){lib.cookie.set(th.exCN[i],c[i]||'',1,1)}
	};
	this.usrTicket=function(){return (info.isExtDomain&&(nav.IE||nav.Edge)?lib.cookie.get('userTicket',1,1):'')};
	this.init=function(){
		var b=+lib.cookie.get('brain',0,1);
		b+=20;if(b>60)b=60;
		lib.cookie.set('brain',escape(b),0,1);
		if(ById('regButton'))ById('regButton').className='reg-button br'+b;
		if(ById('fHP')||ById('shPg')||ById('matchUpShare')||window.isCustomTfdHp)
			lib.AsyncRequest('//img.tfd.com/hp/hp.js'+(window._cb||''));
		else{
			if(info.isLogin&&!th.isFC())lib.AsyncRequest(th.URL+'static/js/fc2.js'+(window._cb||''));
		};
		if(!info.isLogin&&(rff=lib.cookie.get('rff',1,1)))lib.AsyncRequest(th.URL+'api/regSh.ashx?rff='+rff);
		if((x=location.search.indexOf("sr="))>=0)th.evSh('p@'+location.search.substring(x+3));
		if(!info.isLogin&&lib.cookie.get('occup',1,1)&&!lib.cookie.get('occSent',0,1)){
			lib.AsyncRequest(th.URL+'api/school/regStat.ashx');
			lib.cookie.set('occSent',1,0,1);
		}
	};
	if(!info.isExtDomain)th.init();
};

window.social={
	u:encodeURIComponent((info.canonical||nav.loc)+fconn.shP()),
	t:encodeURIComponent((function(){var t=document.querySelector('meta[property="og:title"]');if(t)return t.getAttribute('content')})()||document.title),
	s_u:encodeURIComponent(window.location.protocol+'//'+(info.PageLang=='en'?'www':info.PageLang)+'.thefreedictionary.com'),
	s_t:encodeURIComponent(hp_title),
	d:encodeURIComponent((function(){var t=document.querySelector('meta[property="og:description"]');if(t)return t.getAttribute('content')})()),
	facebook:function(s){this.open('https://www.facebook.com/sharer/sharer.php?u='+(s?this.s_u:this.u))},
	twitter:function(s){this.open('http://twitter.com/share?url='+(s?this.s_u+'&text='+this.s_t:this.u+'&text='+this.t)+'&via=farlex')},	
	googleplus:function(s){this.open('https://plus.google.com/share?url='+(s?this.s_u+'&word='+this.s_t:this.u+'&word='+this.d||this.t))},
	linkedin:function(){this.open('http://www.linkedin.com/shareArticle?mini=true&url='+this.s_u+'&title='+this.s_t+(this.d?'&summary'+this.d:'')+'&source=TheFreeDictionary.com')},
	email:function(){location='mailto'+':?subject='+encodeURIComponent(info.word+(info.word?' - ':'')+'TheFreeDictionary.com')+'&body='+(this.d||this.t)+'%0d%0a%0d%0aURL%3a '+this.u},
	feedback:function(){this.open('http://'+'app.thefreedictionary.com/feedback.aspx?url='+encodeURIComponent(nav.loc)+'&ref='+encodeURIComponent(nav.ref))},
	open:function(u){if(nav.ww<760||nav.d<760)location=u;else open(u,'_blank','width=600,height=400,resizable=1,top='+Math.max(0,screen.height/2-300)+',left='+Math.max(0,screen.width/2-200))}
};
});
function gpRender(){
	var btns=document.querySelectorAll('.gpBtn');
	for(var i=0;i<btns.length;i++){
		gapi.signin.render(btns[i].id,{callback:'gpSignIn',clientid:'491489187941-li860niuhee17nr5sa8frglin1n7speu.apps.googleusercontent.com',cookiepolicy:window.location.protocol+'//thefreedictionary.com',apppackagename:'com.tfd.mobile.TfdSearch',scope:'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile'});
	}
}
function gpSignIn(authResult){
	if(authResult['code']){
		lib.cookie.set('gpAT',escape(authResult['access_token']),1,1);
		lib.AsyncRequest(fconn.SURL+"ExtLogin/GoogleLogin.ashx?js=2&code="+authResult['code']);
	}
}
if(window.safari&&window.safari.pushNotification)lib.delayedPush(function(){lib.AsyncRequest('//img.tfd.com/safariPush.js')});

if(info.isExtDomain){lib.delayedPush(function(){
window.thes=new function(){
	var th=this;
	this.initFc=function(c){
		if(info.IsApp)return;
		fconn.syncCookie(c);
		info.isLogin=!!lib.cookie.get('userNfo',1,1);
		if(!info.isLogin){
			var lp=ById('loginBlock');
			var lbh=window.loginBlockHtml||lp.innerHTML;
			lp.innerHTML=lbh;
			lp.style.cursor="default";
			lp.style.padding="0px";
		}
		fconn.init();
	};
	var ut=[];
	for(var i=0;i<fconn.exCN.length;i++){ut.push(lib.cookie.get(fconn.exCN[i],1,1))}
	lib.AsyncRequest('//www.thefreedictionary.com/_/misc/sso.ashx?callback=thes.initFc'+(nav.IE||nav.Edge?'&ut='+encodeURIComponent(ut.join('##')):'')+'&r='+Math.random());
	
	var mean=document.querySelectorAll('.TM h3'),tabs=document.querySelectorAll('#pstabs li'),lnk=document.querySelectorAll('.TCont a.tw');
	if(mean.length==0)return;
	
	this.actSrc='';this.prefSrc='';this.actPOS='';this.sources=[];
	this.nextElSibl=function(el){
		do{el=el.nextSibling} while(el&&el.nodeType!==1);
		return el;
	};
	this.vote=function(tg){
		var hasvoted=(tg.className.indexOf('tvoted')>-1);
		tg.className=lib.trim(tg.className.replace('tvoted','').replace('tvote','')+' '+(hasvoted?'tvote':'tvoted'));
	};
	this.exCol=function(m,ex){
		var mc=m.nextElementSibling||this.nextElSibl(m);
		if(!mc)return;
		var cls=lib.trim(m.className.replace('expanded','').replace('collapsed',''));
		m.className=cls+(ex?' expanded':' collapsed');
		mc.style.display=(ex?'block':'none');
	};
	this.chSrcPos=function(pos){
		for(var i=0;i<this.sources.length;i++){
			var s=this.sources[i],sw=document.querySelectorAll('ul.thsrc li[data-target-src="'+s.src+'"]');
			var cn=(pos==''||s.parts[pos]==1?'':' srcdisabled');
			for(var j=0;j<sw.length;j++){sw[j].className=lib.trim(sw[j].className.replace('srcdisabled','')+cn)}
		}
	};
	this.showPOS=function(pos){
		this.actPOS=pos;
		var srcs=[],src=this.prefSrc;
		for(var j=0;j<this.sources.length;j++){if(this.sources[j].src==this.prefSrc){srcs.push(this.sources[j]);break}}
		for(j=0;j<this.sources.length;j++){if(this.sources[j].src==this.actSrc){srcs.push(this.sources[j]);break}}
		for(j=0;j<this.sources.length;j++){if(this.sources[j].src!=this.prefSrc&&this.sources[j].src!=this.actSrc){srcs.push(this.sources[j])}}
		if(pos!=''){
			for(j=0;j<srcs.length;j++){if(srcs[j].parts[pos]==1){src=srcs[j].src;break}}
		}
		if(src!=this.actSrc){this.showSrc(src);return}
		this.chSrcPos(pos);
		var ps=document.querySelectorAll('section[data-src="'+this.actSrc+'"] div[data-part]');
		var bls=[];
		for(var i=0;i<ps.length;i++){
			var it=ps[i],itp=it.getAttribute('data-part');
			var vis=(itp==pos||pos=='');
			it.style.display=(vis?'block':'none');
			if(vis)bls.push(it.firstElementChild||it.firstChild);
		}
		this.showBls(bls);
		for(i=0;i<tabs.length;i++){
			it=tabs[i],itp=it.getAttribute('data-part');
			it.className=lib.trim(it.className.replace('psactive',''))+(itp==pos?' psactive':'');
		}
	};
	this.showBls=function(bls){
		for(var i=0;i<bls.length;i++){
			var b=bls[i],cls=lib.trim(b.className.replace('expanded','').replace('collapsed',''));
			this.exCol(b,i<3);
		}
	};
	this.hShowSrc=function(tg){
		var clsn=tg.className||"";
		if(clsn.indexOf('srcactive')>-1||clsn.indexOf('srcdisabled')>-1)return;
		var src=tg.getAttribute('data-target-src');
		th.prefSrc=src;
		if(lib.isStor())localStorage.setItem("prefSrc", src);
		th.showSrc(src);
	};
	this.showSrc=function(src){
		var secs=document.querySelectorAll('#MainTxt section');
		for(var i=0;i<secs.length;i++){secs[i].style.display=(secs[i].getAttribute('data-src')==src?'block':'none')}
		th.actSrc=src;
		th.showPOS(this.actPOS);
	};
	this.srcTit=function(s){
		switch(s){case 'hc_thes':return'Collins';case 'wn':return'WordNet';case 'hm_thes':return'Roget\'s';case 'open_thes':return'OpenThesaurus';case 'vox_thes':return'Larousse';default:return''}
	};
	this.getParts=function(src){
		var r={};
		var tps=document.querySelectorAll('section[data-src="'+src+'"] div[data-part]');
		for(var i=0;i<tps.length;i++){var it=tps[i],itp=it.getAttribute('data-part');r[itp]=1}
		return r;
	};
	this.isSrcEx=function(src){
		for(var i=0;i<this.sources.length;i++){if(this.sources[i].src==src)return 1}
		return 0;
	};
	this.initSrc=function(){
		var sech=document.querySelectorAll('#MainTxt section h2');
		var tsrc=[],src1='';
		for(var i=0;i<sech.length;i++){
			var src=sech[i].parentNode.getAttribute('data-src');
			if(!src1)src1=src;
			tsrc.push(src);
			var p=this.getParts(src);
			this.sources.push({src:src,parts:p});
		}
		var inSrc=(sech.length>1&&lib.isStor()?localStorage.getItem("prefSrc"):"");
		if(!this.isSrcEx(inSrc))inSrc="";
		this.actSrc=src1;
		this.prefSrc=inSrc||src1;
		if(sech.length<2)return;
		for(i=0;i<sech.length;i++){
			var h=sech[i];
			var srcSw='<ul class="thsrc">';
			for(var j=0;j<tsrc.length;j++){srcSw+='<li '+(i==j?'class="srcactive"':'')+' onclick="thes.hShowSrc(this)" data-target-src="'+tsrc[j]+'">'+this.srcTit(tsrc[j])+'</li>'}
			srcSw+='</ul><div style="clear:both"></div>';
			h.outerHTML=h.outerHTML.replace('<h2>','<h2 style="float:left">')+srcSw;
		}
		this.showSrc(src1);
	};
	this.initMean=function(){
		var bls=[];
		for(var i=0;i<mean.length;i++){
			var w=mean[i];
			var f=w.parentNode.getAttribute('data-part-full');
			w.innerHTML='<span class="TPSP"'+(f?' title="'+f+'"':"")+'>'+w.parentNode.getAttribute('data-part')+'</span>'+w.innerHTML;
			bls.push(w);
			lib.event.add(w,'click',function(e){
				e=e||window.event;
				var tgt=e.target||e.srcElement;
				th.exCol(tgt,tgt.className.indexOf('collapsed')>-1);
			});
		}
		this.showBls(bls);
	};
	this.initTabs=function(){
		var tab1=null;
		for(var i=0;i<tabs.length;i++){
			var tb=tabs[i];
			if(tab1===null)tab1=tb.getAttribute('data-part');
			lib.event.add(tb,'click',function(e){
				e=e||window.event;
				var tgt=e.target||e.srcElement;
				var tpos=tgt.getAttribute('data-part');
				th.showPOS(tpos);
			});
		}
		this.showPOS(tab1);
	};
	this.initAct=function(){
		var ws=document.querySelectorAll('.TCont li .tw');
		if(ws.length==0)return;
		for(var i=0;i<ws.length;i++){
			var wsi=ws[i],wsp=wsi.parentNode,wp=encodeURIComponent(wsi.innerText);
			wsp.innerHTML+='<i class="tvote" title="This is the word I was looking for!" data-href="'+wp+'" onclick="thes.vote(this)"></i>';
		}
	};
	var ltHint=(info.PageLang=='es'?"Buscar en Sinónimos":"Look up in Thesaurus");
	for(var i=0;i<lnk.length;i++){lnk[i].setAttribute("title",ltHint)}
	this.initSrc();
	this.initMean();
	this.initTabs();
}})};
lib.delayedPush(function(){if(ById('gameSearch')) { 
window.gameSearch=new function(){
	this.setTab=function(f,L){
		var t=ById('tab'+f);
		if(!t||t.className.indexOf('off')>0){if(!L)return;var i=1;while(i<=8){if(ById('tab'+i).className.indexOf('off')==-1){f=i;break}i*=2}};
		var i=1;while(i<=8){t=ById('tab'+i);if(f==i)lib.addClass(t,'psactive');else lib.removeClass(t,'psactive');i*=2};
		if(!L)lib.cookie.set('gmSRCH',f,1,1);
		var dd=document.querySelectorAll('[data-f]');
		for(var i=0;i<dd.length;i++){var cf=+dd[i].getAttribute('data-f');dd[i].style.display=(f&cf)!=0?'':'none'};
	}
	this.setTab(lib.cookie.get('gmSRCH',1,1),1);
	lib.show('dCont');lib.hide('dWait');
}}});
if(!info.IsApp && info.word && nav.sw > 1000 && lib.cookie.enabled()){lib.delayedPush(function(){
	var slider;
	if (info.PageLang=="en" && info.Domain=="thefreedictionary.com" && !lib.cookie.get('occup', 1, 1) && !lib.StartsWith(location.search,"?task=") && !lib.cookie.get('hideOccupSl',1,1))
	slider = window.occupSl = new function () {
		var th = this, shown = 0;
		this.close = function () { 
			if (lib.hasClass(ById("OccupClose"), "back")) th.firstStep(); 
			else {lib.cookie.set('hideOccupSl',1,1,1); lib.hide("OccupSlider");}
			return true; 
		}
		this.nextStep = function (v, e) {
			lib.addClass(ById("OccupClose"), 'back');
			if (e) {
				lib.cookie.set('occup', v, 1, 1);
				lib.cookie.set('newOccup', 1, 0, 1);
				lib.removeClass(ById("OccupClose"), 'back');
				if (info.isLogin && fconn.isFC()) fc.setOccupation(v);
				if (info.isLogin) {	
					if (lib.StartsWith(v,"Teacher")) ById("occDt").innerHTML = '<span>Send your students grammar lessons.</span> \
					<a class="bigBtn" href="http://www.thefreedictionary.com/The-Farlex-Grammar-Book.htm">Get started</a>';
					else lib.hide("OccupSlider"); 
				} else {
					ById("occDt").innerHTML =
						'<span>Log in now to save your preferences</span><div id="occReg"><ul class="social-networks"><li class="facebook"><a href="https://secure.thefreedictionary.com/ExtLogin/FacebookLogin.aspx" rel="nofollow">Facebook</a></li>\
						<li class="twitter"><a href="https://secure.thefreedictionary.com/Login.aspx?twitter" rel="nofollow">Twitter</a></li><li class="googleplus"><span id="googleLoginSchool" class="gpBtn" data-gapiattached="true"><a>Google+</a></span></li>\
						<li class="yahoo"><a href="https://secure.thefreedictionary.com/ExtLogin/Yahoo.aspx" rel="nofollow">Yahoo</a></li></ul><span style="padding:0 41px">or</span>\
						<a class="reg" href="https://secure.thefreedictionary.com/Registration.aspx">Register</a></div>';
					gpRender();
				}
			} else {
				if (v == "student") ById("occDt").innerHTML = '<span>Great! Choose your grade level:</span><div id="OccBtnsBig"> \
				<div onclick="occupSl.nextStep(\'StudentElemSchool\',1)">Elementary school</div> \
				<div onclick="occupSl.nextStep(\'StudentMiddleSchool\',1)">Middle school</div> \
				<div onclick="occupSl.nextStep(\'StudentHighSchool\',1)">High school</div> \
				<div onclick="occupSl.nextStep(\'StudentCollege\',1)">College</div><div onclick="occupSl.nextStep(\'StudentESL\',1)">ESL</div><div onclick="occupSl.nextStep(\'StudentOther\',1)" class="gray">Other</div></div>';
				else ById("occDt").innerHTML = '<span>Great! Do you teach <strong>English</strong>?</span><div id="OccBtnsBig"> \
				<div onclick="occupSl.nextStep(\'TeacherElemSchool\',1)">Yes, elementary school</div> \
				<div onclick="occupSl.nextStep(\'TeacherMiddleSchool\',1)">Yes, middle school</div> \
				<div onclick="occupSl.nextStep(\'TeacherHighSchool\',1)">Yes, high school</div> \
				<div onclick="occupSl.nextStep(\'TeacherCollege\',1)">Yes, college</div><div onclick="occupSl.nextStep(\'TeacherESL\',1)">Yes, ESL</div><div onclick="occupSl.nextStep(\'NonEnglishTeacher\',1)" class="gray">No</div></div>';
			}
		};
		this.firstStep = function () {
			lib.removeClass(ById("OccupClose"), 'back');
			ById("occDt").innerHTML = '<span>Get access to learning tools just for you.<br>Choose one:</span><div id="OccBtns"><div onclick="occupSl.nextStep(\'teacher\')">Teacher</div><div onclick="occupSl.nextStep(\'student\')">Student</div><div onclick="occupSl.nextStep(\'Translator\', 1)">Translator</div><div onclick="occupSl.nextStep(\'Other\',1)" class="gray">Other</div></div>';
		}
		this.get = function() {
			if (shown || lib.cookie.get('occup', 1, 1)) return;
			var sl = document.createElement('div');
			sl.innerHTML = '<div id="OccupInner"><span id="OccupClose" onclick="occupSl.close()"></span><h3>Optimize your experience</h3><div id="occDt"></div></div>';
			sl.id = "OccupSlider";
			return sl;
		}
		this.go = function() {
			th.firstStep();
			shown=1;
		}
	}
	else if((info.tab==1||info.tab==1024) && !lib.cookie.get('hideSubscrSl',1,1))
	slider = window.subSl = new function(){
		var th=this,shown=0;
		this.closeSubscr=function(){
			lib.cookie.set('hideSubscrSl',1,1,1);
			var el=ById("SubscrSlider");
			if(el){
				el.style.visibility="hidden";
				el.style.opacity=0;
				el.style.filter="alpha(Opacity=0)";
			}
			return true;
		};
		this.get = function() {
			if(shown) return;
			var sl=document.createElement('div');
			sl.innerHTML='<div id="SubscrInner"><span id="SubscrClose" onclick="subSl.closeSubscr()"></span><h3>'+(info.tab==1?"Love words?":"Love idioms?")+'</h3><span>'+(info.tab==1?"Subscribe to our free Word of the Day email!":"Subscribe to our free daily email with<br> Idiom of the Day!")+'</span><form name="ccoptin" id="SubscrForm" action="http://ui.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-top:5px" onsubmit="subSl.closeSubscr();return true"><input id="SubscrEm" type=text name="ea" style="height:28px" placeholder="Email"><input type=hidden name="m" value="1100394066513"><input type=hidden name="p" value="oi"><input type=submit name="go" value="Go" style="height:28px"></form></div>';
			sl.id="SubscrSlider";
			return sl;
		}
		this.go = function() {
			if(ById("VideoSubscrFrm"))lib.event.add(ById("VideoSubscrFrm"),'submit',th.closeSubscr);
			shown=1;
		}
	};
	if (slider) {
		function onScroll(e) {
			e=e||window.event;
			if(!e.target)e.target=e.srcElement;
			var eventDoc=e.target.ownerDocument||document,doc=eventDoc.documentElement,body=eventDoc.body;
			var docY=(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc&&doc.clientTop||body&&body.clientTop||0);
			var mt=ById("MainTxt");
			if (!mt || docY < mt.scrollHeight-300) return;
			var sl = slider.get();
			if (sl) {
				document.body.appendChild(sl);
				setTimeout(function(){
					sl.style.bottom="0px";
					sl.style.opacity=0.97;
					sl.style.filter="alpha(Opacity=97)";
				},500);
				slider.go();
			}
			lib.event.remove(document,'scroll',onScroll);
		}
		lib.event.add(document,'scroll',onScroll);
	}
})};
lib.delayedPush(function(){lib.loaded=1;if("quiz" in window && quiz.init)quiz.init()});
(function(){if(document.addEventListener){
	var css="@font-face{font-family:'TFDfont';src: url('//img.tfd.com/font/TFDfont1.eot');src: url('//img.tfd.com/font/TFDfont1.eot#iefix') format('embedded-opentype'),url('//img.tfd.com/font/TFDfont1.woff') format('woff'),url('//img.tfd.com/font/TFDfont1.ttf') format('truetype'),url('//img.tfd.com/font/TFDfont1.svg') format('svg');font-weight: normal;font-style: normal} [class^=\"tab\"]:before{visibility:visible!important}";
	var style=document.createElement('style');
	style.type='text/css';
	if(style.styleSheet)style.styleSheet.cssText=css;else style.appendChild(document.createTextNode(css));
	document.getElementsByTagName('head').item(0).appendChild(style);
}})();