<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
  <ModulePrefs
      title="ScribbleHere Chat __UP_pad_id__"
      directory_title="ScribbleHere Live Chat"
      description="Watch the conversation at it happens"
      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_combined.gif"
      thumbnail="http://www.scribblehere.com/img/gadget_combined_t.gif"
    >
    <Require feature="setprefs"/>
    <Require feature="analytics"/>
    <Require feature="tabs"/>
  </ModulePrefs>
  <UserPref name="pad_id"
            display_name="Chat ID"
            default_value="25"
            required="true" />
  <UserPref name="selectedTab" datatype="hidden"/>

  <Content type="html">
    <![CDATA[ 
      <style type="text/css">
        @import url(http://www.google.com/ig/tablib.css);
      </style>
      <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')

          //Generate the tab interface.
          var tabs = new _IG_Tabs(__MODULE_ID__);
          tabs.addTab("Posts", 'posts');
          tabs.addTab("Users", 'users');
          tabs.setSelectedTab(0);
        }
        // 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%" ></iframe>

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

