<search function="fl">
  <name>Flickr search</name>
  <category>Search the Web</category>
  <contributor>mll</contributor>
  <link>http://flickr.com/</link>
  <email>http://mll02.free.fr</email>
  <description>
  Search Flickr, one of the best photo sharing websites.
    <div class="helpboxDescLabels">Switches:</div>
    <table class="helpboxDescTable">
      <tr><td>/relevant (default)|recent| interesting</td><td> - </td><td>view the most relevant / recent / interesting photos</td></tr>
      <tr><td>/text (default)|tags</td><td> - </td><td>search in full text / tags only</td></tr>
    </table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
      <tr><td>fl boat</td></tr>
      <tr><td>fl sunset /int</td></tr>
      <tr><td>fl parry arc /int /t</td></tr>
    </table>
  </description>
  <form name="flf"
        method="get"
        action="http://flickr.com/search/">
    <input type="hidden" name="q" value="" />
    <input type="hidden" name="s" value="" />
    <input type="hidden" name="m" value="" />
  </form>
  <script><![CDATA[
    function fl(q)
    {
      var args = parseArgs(q, "relevant, recent, interesting, text, tags");
      if( nullArgs("fl", args.q) ) return false;
      
      //set default values for optional fields
      document.flf.s.value = "";
      document.flf.m.value = "text";
      
      //define the options
      if ( args.switches.length > 0 && args.switches.length <= 2 )
      {
        switch( args.switches[0].name )
        {
          case "recent":
            document.flf.s.value = "rec";
            break;
          case "interesting":
            document.flf.s.value = "int";
            break;
          case "relevant":
            break;
        }
        switch( args.switches[1].name )
        {
          case "text":
            document.flf.m.value = "text";
            break;
          case "tags":
            document.flf.m.value = "tags";
            break;
        }
      //error if more than 2 arguments provided
      } else if ( args.switches.length > 2 ) {
        return false;
      }
      document.flf.q.value = args.q;
      submitForm(flf);
    }
  ]]></script>
  <copyright>
    The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
    Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
  <created_by>
    This search file was initially created by Dave's Quick Search Deskbar Search Wizard version 1.3,
    Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2
  </created_by>
</search>
