<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
title="Dreamachine of the day"
title_url="http://www.dreamachine-motorcycles.com/"
description="Dreamachine of the day. Find your dreamachine on www.dreamachine-motorcycles.com!" 
author="AdaptA d.o.o." 
author_email="info@adapta.si"
author_location="Ljubljana, Slovenia, EU"
author_affiliation="AdaptA"
author_photo="http://www.meteo-si.com/adapta-sign.png"
author_aboutme="We develop for you gadgets and gadget ads!"  
author_link="http://www.adapta-solutions.com/solutions/gadgets.html" 
author_quote="Simplify!" 
screenshot="http://www.meteo-si.com/pic/dreamachine/dreamachine280.png" 
thumbnail="http://www.meteo-si.com/pic/dreamachine/dreamachine_120.png" 
category="lifestyle"
category2="funandgames"
>
<Require feature="analytics" />
<Require feature="dynamic-height"/>
<Require feature="minimessage" /> 
</ModulePrefs>
<UserPref name="today" datatype="hidden" default_value="" />
<Content type="html"><![CDATA[

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
    <script type="text/javascript">
	datum=new Date();
	//y = datum.getFullYear();
	//m = (datum.getMonth() + 1);
	d = datum.getDate();

	document.write("<img src=http://www.meteo-si.com/pic/dreamachine/"+d+".jpg width=100%>");

        _IG_AdjustIFrameHeight();
    </script>
  <script type="text/javascript">
// Get a reference to user preferences
var prefs = new _IG_Prefs();
// Get the user's current date/time
var now = new Date();
// Create a date string of the form yyyy-m-d
var today = (now.getFullYear?now.getFullYear():now.getYear())+'-'+(now.getMonth()+1)+'-'+now.getDate();
// Get the stored value of the "today" user preference.
var prefs_today = prefs.getString('today');

// If the "today" user preference is blank, then the user has never loaded
// this gadget. They must have just added it!
if (prefs_today=='') {
    _IG_Analytics("UA-6660391-1", "/novigadget/pic/dreamachine");
}
// If the generated date string doesn't match the one stored in the
// preferences, then this is the first time the user has loaded the
// gadget today. Record a hit and change the preferernce to be
// today's date string so it won't get recorded again.
if (prefs_today!=today) {
    prefs.set('today',today);
    _IG_Analytics("UA-6660391-1", "/gadget/pic/dreamachine");
}
</script>
</body>
</html>
]]></Content>
</Module>

