<!-- Do not switch encoding - MSXML in many IE 5.5 installations cannot handle it - xml version="1.0" encoding="ISO-8859-1" -->

<search function="acine">
  <name>Allociné</name>
  <description>
    Search <i>the</i> french site about movies, stars, theaters schedules, critics, trailers, etc...<br/>
    <div class="helpboxDescLabels">Switches:</div>
    <table class="helpboxDescTable">
      <tr><td colspan="3">Narrow your search to...</td></tr>
      <tr><td>/place</td><td> - </td><td>movies playing near your place (name or zip code)</td></tr>
      <tr><td>/zip:[number]</td><td> - </td><td>movies playing near your zip code (direct search)<br/>
                                                optional : <i>number</i> forces to find <i>number</i> theaters</td></tr>
      <tr><td>/movie</td><td> - </td><td>informations on a movie (part or whole of the name)</td></tr>
      <tr><td>/theater</td><td> - </td><td>what's playing in a theater (theater or city name)</td></tr>
      <tr><td>/star</td><td> - </td><td>the biography of a celebrity</td></tr>
    </table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
      <tr><td>acine meilleurs copains</td></tr>
      <tr><td>acine marseille /place</td></tr>
      <tr><td>acine 13001 /zip:30</td></tr>
      <tr><td>acine meilleurs copains /movie</td></tr>
      <tr><td>acine le grand rex /theater</td></tr>
      <tr><td>acine cruise /news</td></tr>
      <tr><td>acine deneuve /star</td></tr>
    </table>
  </description>
  <category>Entertainment</category>
  <link>http://www.allocine.fr/</link>
  <contributor>MLL</contributor>


  <form name="acinef_general"
        action="http://www.allocine.fr/recherche/"
        method="get">
    <input type="hidden" name="motcle" value="" />
    <input type="hidden" name="f" value="3" />
    <input type="hidden" name="rub" value="0" />
  </form>

  <form name="acinef_salleproche"
        action="http://www.allocine.fr/seance/salleproche.html"
        method="get">
    <input type="hidden" name="codepostal" value=""/>
    <input type="hidden" name="maxlignes" value=""/>
    <input type="hidden" name="j" value="0" />
    <input type="hidden" name="version" value="0" />
  </form>

  
  <script><![CDATA[
    function acine(q)
    {
      if( nullArgs( "acine", q ) ) return false;
      
      var args = parseArgs(q, "place, bywith, movie, theater, news, star, video, zip");
      var mode, typerech="0";
      
      //eliminate cases where you got more than 1 switch
      if( args.switches.length > 1 )
      {
        nullArgs( "acine", "?" );
        return false;
      }

      //establish the mode the search will run in.
      if( args.switches.length == 1 ) mode = args.switches[0].name;

      //set some parameters and eliminate the unknown switch case
      switch( mode )
      {
        case "movie" : typerech = "1"; break;
        case "theater": typerech = "3"; break;
        case "place": typerech = "4"; break;
        case "star": typerech = "2"; break;
        case "news": typerech = "5"; break;
/* not active any more :(
        case "bywith": typerech = "4"; break;
        case "video": typerech = "7"; break;
*/

        case "zip": break;
            
        default:
          if( mode ) 
          { 
            nullArgs("acine","?"); 
            return false; 
          } 
          break;
      }
      
      //launch the search
      if ( mode == "zip" )
      {
        document.acinef_salleproche.codepostal.value = args.q;
        document.acinef_salleproche.maxlignes.value = args.switch_val["zip"];
        submitForm(acinef_salleproche);
      }
      else
      {
        document.acinef_general.motcle.value = args.q;
        document.acinef_general.rub.value = typerech;
        submitForm(acinef_general);
      }
    }
  ]]></script>

  <copyright>
	Copyright (c) 2002 David Bau
	Distributed under the terms of the
	GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
</search>
