<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
  <ModulePrefs
      title="ScribbleHere Chat __UP_pad_id__"
      directory_title="ScribbleHere Live Chat"
      description="Watch the conversation in a chat room"
      author="Alex Pooley"
      author_email="ampooley@gmail.com"
      author_location="Perth, Australia"
      author_affiliation="Msgpad (http://www.msgpad.com)"
      author_photo="http://www.scribblehere.com/img/alex_pooley.jpg"
      author_aboutme="I'm a software developer/entrepreneur from Perth, Australia."
      author_link="http://www.alexpooley.com"
      author_quote="success = ambition * persistence * luck"
      screenshot="http://www.scribblehere.com/img/gadget_posts.gif"
      thumbnail="http://www.scribblehere.com/img/gadget_posts_t.gif"
    >
    <Require feature="setprefs"/>
    <Require feature="analytics"/>
  </ModulePrefs>
  <UserPref name="pad_id"
            display_name="Chat ID"
            default_value="25"
            required="true" />

  <Content type="html">
    <![CDATA[ 
      <script type="text/javascript">
        _IG_Analytics("UA-107359-9", "/google_gadget");
      
        function init() {
          // Get user preferences
          var prefs = new _IG_Prefs(__MODULE_ID__);
          var pad_id = prefs.getInt('pad_id')
        }
        // Call init function to initialize and display tabs.
        _IG_RegisterOnloadHandler(init);
      </script>

      <iframe id="posts"
          src="http://www.scribblehere.com/widgets/posts/__UP_pad_id__"
          scrolling="no"
          frameborder="0"
          allowtransparency="true"
          hspace="0"
          vspace="0"
          marginheight="0"
          marginwidth="0"
          width="100%"
          height="100%" ></iframe>
    ]]>
  </Content> 
</Module>

