<extension>
  <title>Topsan Grouping widget</title>
  <description>This extension allows you to group tagged pages. It collects a list of pages which are tagged as 'groupdefinition'. A list of these tagged pages are read as a list, using an xpath expressions (web.list("http://proteins.burnham.org/Edit_Groups", "//_:div[@id='pageContent']//_:ul/_:li/_:a") and web.list("http://proteins.burnham.org/Edit_Groups", "//_:div[@id='pageContent']//_:ul/_:li/_:a/@href"),and passed as arguments to this extension (groupNames and groupUris, respectively)</description>
  <namespace>structuresmall</namespace>
  <function>
    <name>image</name>
    <param name="pdbid" type="str">name of pdb id to retrieve and display</param>  
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <head>          
           <script type="text/javascript" src="http://www.rcsb.org/pdb/widgets/rcsbPdbImageLib.js"></script>
        </head>

        <body>
          <div style="width: 100px">
            <img style="image-orientation: 90deg" width="100px"  eval:src="'http://www.rcsb.org/pdb/images/'..args.pdbid..'_bio_r_250.jpg?bioNum=1'" eval:title="args.pdbid" />
          </div>        

        </body>

      </html>

    </return>

  </function>

</extension>
