<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs
    title="Dreamcatcher Clock"
    title_url="http://chronita.com/gadgets.php"
    directory_title="Dreamcatcher Clock"
    description="Over 16 million beautiful possibilities"
    height="200"
    scrolling="false"
    scaling="true"
    screenshot="http://michaelthompson.org/goo/images/scr-dreamcatcher.png"
    thumbnail="http://michaelthompson.org/goo/images/scr-dreamcatcher-thm.png"
    author="Michael"
    author_email="mt1955@gmail.com"
    author_affiliation="Echo3 Online Services, LLC"
    author_photo="http://echo3.net/images/echo3.gif"
    author_link="http://chronita.com/google_gadgets/"
  >
<Require feature="views" />
</ModulePrefs>
<UserPref name="fx" datatype="enum" display_name="Function" default_value="go" required="false">
<EnumValue value="help" display_value="Help/About"/>
<EnumValue value="go" display_value="Dreamcatcher Clock"/>
</UserPref> 
<UserPref name="bgclr" display_name="Background" default_value="ffffff" datatype="enum" >
  <EnumValue value="ffffff" display_value="White" />
  <EnumValue value="333333" display_value="Grey" />
  <EnumValue value="224499" display_value="Ocean" />
  <EnumValue value="ccccff" display_value="Sky" />
  <EnumValue value="994422" display_value="Copper" />
  <EnumValue value="990000" display_value="Red" />
  <EnumValue value="000000" display_value="Black" />
</UserPref> 
<Content type="html" view="home,canvas"> 
     <![CDATA[ 
<head>
<script type="text/javascript">
function init() { 
  var url = null;
  var prefs = new _IG_Prefs();
  var fx = prefs.getString('fx');
  if (fx.length < 1) {
    fx = 'go';
  }
  if (fx != 'go') {
    return;
  }
  var it = _gel('help');
  if (it) {
    it.style.display = 'none';
    it.style.height = '0';
  }

  var bgclr = prefs.getString('bgclr');
  if( bgclr.length<1 ) bgclr = 'ffffff';

  if (!url) {
    var url = 'http://michaelthompson.org/4th/dreamcatcher.php?';
    url += '&bgclr=' + bgclr;
  }
  var frm = document.createElement('iframe');
  frm.width = '100%';
  frm.height = '100%';
  frm.style.border = 'none';
  frm.style.overflow = 'hidden';
  frm.scrolling = 'no';
  frm.src = url;
  document.body.appendChild(frm);
}

_IG_RegisterOnloadHandler(init);
</script>
</head>
<body>
<div id="help" style="height:185px; overflow-y: auto;padding:2px; border: solid 1px #0000cc;">
Thank you for choosing this Google Gadget!
<p>
Use the edit controls to select the Function 'Dreamcatcher Clock'
to begin.
<p>
<img align="left"
src="http://michaelthompson.org/goo/images/dreamcatcher-example.png">
<p>
For a full screen version, just click anywhere in the white area
where the clock is being displayed.
<p>
Technically, this gadget does work with Internet
Explorer but the animations are much smoother
in the <a target="_blank"
href="http://echo3.net/firefox/?dreamcatcher">Firefox browser</a>.
If you are still using IE this would be a good time to switch.
</div> 
</body>
]]> 
</Content> 
</Module>
