<?xml version="1.0" encoding="UTF-8"?>
<Module>
	<ModulePrefs title="Today's Reason to Drink"
		title_url="http://daysthatendiny.com"
		description="Need an excuse to celebrate with a drink? Here's today's holiday!"
		author="Michael Guo"
		author_email="gadgets@whapow.com"
		author_affiliation="Whapow! LLC"
		author_location="Boston, MA, USA"
		screenshot="http://daysthatendiny.googlepages.com/googleModule.png"
		thumbnail="http://daysthatendiny.googlepages.com/googleModuleThumb.png"
		height="180"
		scaling="false"
		author_link="http://whapow.com">
		<Require feature="analytics"/>
	</ModulePrefs>
	<Content type="html">
	<![CDATA[
		<!-- ALm6fM02rivLvGaVbt7HH5LZGWSEDScrvVCimxsw1hKwii7e7ObZfIXMriNb3X-InfgqgYUvFkEpNYtxP8cT25h8L6jc_gTysmLjZQiZPOCG6aUxJiYAYcZoO0HSnxkyVRQekD-fUnLC -->
		<style type="text/css">
		body {
			margin: 0;
			font-size: 10pt;
		}
		
		#content___MODULE_ID__ {
			padding-left: 51px;
			height: 180px;
		}
		
		#footer___MODULE_ID__ {
			position: absolute;
			bottom: 0px;
			left: 51px;
		}
		
		#footer___MODULE_ID__ a {
			text-decoration: none;
		}
		</style>
		<div id="content___MODULE_ID__"></div>
		<div id="footer___MODULE_ID__">
			<script type="text/javascript"><!--
			google_ad_client = "pub-2406007064351587";
			/* Days That End in Y Gadget 468x15 */
			google_ad_slot = "5514593503";
			google_ad_width = 468;
			google_ad_height = 15;
			//-->
			</script>
			<script type="text/javascript"
			src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>
		</div>
		<script>
			var prefs = new _IG_Prefs(__MODULE_ID__);
			var today = new Date();
			var month = today.getMonth() + 1;
			var url = 'http://whapow.com/gadgets/drink/reasons/'
				+ today.getFullYear() + '-' + month + '-' + today.getDate() + '.xml';
			_gel('content___MODULE_ID__').style.background = '#FFF url('
				+ _IG_GetCachedUrl('http://whapow.com/gadgets/drink/backgroundGoogleModule.jpg', { refreshInterval: (60 * 60 * 24) })
				+ ') no-repeat fixed left top';
			_IG_FetchXmlContent(url, function (response) {
				var content = '<div><b>' + response.getElementsByTagName('date').item(0).firstChild.nodeValue + '</b></div><div>'
					+ response.getElementsByTagName('description').item(0).firstChild.nodeValue
					+ '</div>';
				_gel('content___MODULE_ID__').innerHTML = content;
			});
			_IG_Analytics("UA-252998-1", "/googlemodule");
		</script>
	]]> 
	</Content>
</Module>
