<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs
    title="Fame"
    title_url="http://chronita.com/gadgets.php"
    height="200"
    description="Do you know your celebrities?"
    directory_title="Fame: Celebrity Quiz"
    screenshot="http://chronita.com/fame/images/scr-fame.png"
    thumbnail="http://chronita.com/fame/images/scr-fame-thm.png"
    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="setprefs"/>
</ModulePrefs>
<UserPref name="fx" display_name="Function" datatype="enum">
  <EnumValue value="help" display_value="Help/About" />
  <EnumValue value="play" display_value="Play Fame" />
</UserPref>
<UserPref name="born" datatype="hidden"/>
  <Content type="html"> 
     <![CDATA[ 
<script type="text/javascript"><!--
function main()
{
  var prefs = new _IG_Prefs(__MODULE_ID__);
  var fx = prefs.getString('fx');
  if( fx.length<1 ) fx = "help";
  var born = prefs.getString("born");
  var name = _esc(prefs.getString("name"));
  var ok_born = 0;
  if( born.length<1 || (0 + born)<1 )
  { var now = new Date()
    born= now.getTime()
      + now.getTimezoneOffset()
      + Math.floor(1000 * Math.random());
    if( _args()['synd']=='ig' ) prefs.set("born",born);
  } else ok_born= 1; 
  if( fx!="help" )
  { var gadget_url = 'http://chronita.com/fame/module.php?quiz=1';
    if( ok_born ) gadget_url += '&born=' + born;
    window.location.href= gadget_url; 
  }
}
_IG_RegisterOnloadHandler(main);
//--></script>
<div style="font-size: 10pt; font-family: Arial; 
height: 270px; overflow-y: auto; padding: 4px;">
Thanks for choosing this Google Gadget!
Use the edit controls and select the function <i>Play Fame</i>
<p>
Most installations of <i>Fame</i> do not work as well
with Internet Explorer. If you are still using
IE this would be a good time to switch to 
<a target="_top" 
href="http://echo3.net/firefox/?fame">Firefox</a>.
<p>
You will be presented with a randomly selected celebrity
or historical figure and four surnames. Click the numbered
box (1,2,3, or 4) to the left of the correct surname.
</div>
     ]]> 
   </Content> 
</Module>
