<?xml version="1.0" encoding="UTF-8" ?><Module>
  <ModulePrefs 
  	title="Word of the Day" 
  	title_url="http://www.thefreedictionary.com/"
  	directory_title="Word of the Day"
  	description="Word of the Day - includes word synonyms, usage example"
  	author ="Farlex"
  	author_email="info@farlex.com"
  	author_affiliation="Farlex, Inc."
  	author_photo="http://img.tfd.com/modules/tfd.png"
  	author_aboutme="English, Medical, Legal, Financial, and Computer Dictionaries, Thesaurus, Acronyms, Idioms, Encyclopedia, and a Literature Reference Library"
  	author_link="http://www.thefreedictionary.com/"
  	author_quote="The next best thing to knowing something is knowing where to find it. --Samuel Johnson"
  	screenshot="http://img.tfd.com/modules/wod.png"
  	thumbnail="http://img.tfd.com/modules/thm_wod.png"
  	height="100"
  	>
  		<Require feature="dynamic-height"/>
  		<Locale lang="en" />
  	</ModulePrefs>
  	<UserPref name="Format" datatype="enum" default_value="0">
		<EnumValue value="1" display_value="Concise" />
		<EnumValue value="0" display_value="Comprehensive" />
	</UserPref>
  	<UserPref name="Days" datatype="enum" default_value="1">
		<EnumValue value="1" display_value="1" />
		<EnumValue value="2" display_value="2" />
		<EnumValue value="3" display_value="3" />
	</UserPref>
   <Content type="html"> 
     <![CDATA[ 
     <style>#div__MODULE_ID__, #div__MODULE_ID__ TD {font-size:smaller;vertical-align:top}</style>
     <div id="div__MODULE_ID__"><img width=24 height=24 src=http://img.tfd.com/m/wait24.gif></div>
     <script>
     	if (navigator.appName=='Microsoft Internet Explorer' && navigator.userAgent.indexOf("Opera")<0)
     		document.write('<'+'script src="http://img.tfd.com/modules/flash.js"></sc'+'ript>');
     	else
     		tfd_set_div=function (e,html){e.innerHTML=html};

	function tfd__MODULE_ID__() {
		var prefs = new _IG_Prefs(__MODULE_ID__);
		var d = prefs.getString('Days');
		var f = prefs.getString('Format');
		var dt = new Date();
		var r= dt.getUTCDate();
		if (dt.getUTCHours()<6) r-=1;     
	   	var url = 'http://www.thefreedictionary.com/_/WoD/all-t.aspx?t=wod&d='+d+'&f='+f+'&r=r'+r;

		_IG_FetchContent(url, function (html){
		function Pron(html) {
			function flashInstalled(){
				if(navigator.plugins && navigator.mimeTypes.length){
					var x=navigator.plugins["Shockwave Flash"];
					if(x) return true;
				}else{
					try{
					var x=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
					if(x) return true;
					}catch(e){}
				}
				return false;
			}
			var a=html.split('|');
			for (i=1;i<a.length;i+=2){				
				if(flashInstalled())
					a[i]='<object 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=http://img.tfd.com/hm/mp3/'+a[i]+'.mp3"><embed style="margin:0" src="http://img.tfd.com/m/sound.swf"  FlashVars="sound_src=http://img.tfd.com/hm/mp3/'+a[i]+'.mp3" menu="false" width="10" height="13" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>';
				else 
					a[i]='<a href="javascript:play__MODULE_ID__(\''+a[i]+'\')"><img alt="Pronunciation" width="13" align=middle style="margin0" height="21" border="0" src="http://img.tfd.com/hm/pron.gif"></a>';				
			}
			return a.join(' ');
		}

		tfd_set_div(_gel('div__MODULE_ID__'), Pron(html));
		 _IG_AdjustIFrameHeight();
		 if(_IG_Analytics) _IG_Analytics("UA-5484856-1", "/wod");
		});
	}
	 _IG_RegisterOnloadHandler(tfd__MODULE_ID__);
	 
	var sound_timeout__MODULE_ID__=null;
	function play__MODULE_ID__(File){
	var s='http://img.tfd.com/hm/prons/'+File+'.wav';
	if (sound_timeout__MODULE_ID__) clearTimeout(sound_timeout__MODULE_ID__);
	if (navigator.appName=='Microsoft Internet Explorer' && navigator.userAgent.indexOf("Opera")<0 && navigator.platform=='Win32'){
		document.all.bgsound__MODULE_ID__.src=s;
		sound_timeout__MODULE_ID__=setTimeout('document.all.bgsound__MODULE_ID__.src="about:blank"', 8000);
	} else if(_gel("sound_frame__MODULE_ID__")) {
		var snd=_gel("sound_frame__MODULE_ID__");
		snd.src='about:blank';
		snd.src=s;
		sound_timeout=setTimeout('ById("sound_frame__MODULE_ID__").src="about:blank"', 8000);
	} else 
		window.location=s;
	window.status='';
	}

  </script>
  <iframe id=sound_frame__MODULE_ID__ style="position:absolute" frameborder=0 width=1 height=1></iframe><bgsound id=bgsound__MODULE_ID__></bgsound>
     ]]> 
   </Content> 
</Module>
	
