<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="__MSG_wikipedia__"
    height="40"
    description="__MSG_description__" author="Benno Kruit" author_email="bennokr+be_gone_spammers@gmail.com" screenshot="http://homepages.ipact.nl/~kruit/benno/folder/Documents/Google/wikipedia.gif" author_location="Delft, The Netherlands" title_url="http://www.wikipedia.org/">
  <Locale messages="wpsearchbar_content/wk_msg_en.xml"/>
  <Locale lang="ja" messages="wpsearchbar_content/wk_msg_ja.xml"/>
  <Locale lang="pt-BR" messages="wpsearchbar_content/wk_msg_pt-br.xml"/>
  <Locale lang="pt-PT" messages="wpsearchbar_content/wk_msg_pt-br.xml"/>
  <Locale lang="ko" messages="wpsearchbar_content/wk_msg_ko.xml"/>
  <Locale lang="es" messages="wpsearchbar_content/wk_msg_es.xml"/>
  <Locale lang="fr" messages="wpsearchbar_content/wk_msg_fr.xml"/>
  <Locale lang="ru" messages="wpsearchbar_content/wk_msg_ru.xml"/>
  <Locale lang="zh-CN" messages="wpsearchbar_content/wk_msg_zh-cn.xml"/>
  <Locale lang="nl" messages="wpsearchbar_content/wk_msg_nl.xml"/>
  <Locale lang="de" messages="wpsearchbar_content/wk_msg_de.xml"/>
  <Locale lang="it" messages="wpsearchbar_content/wk_msg_it.xml"/>
  <Require feature="analytics"/>
</ModulePrefs>
<UserPref name="mylang" display_name="__MSG_language__" default_value="" datatype="enum">
   <EnumValue display_value="__MSG_en__" value="en"/>
   <EnumValue display_value="__MSG_de__" value="de"/>
   <EnumValue display_value="__MSG_fr__" value="fr"/>
   <EnumValue display_value="__MSG_ja__" value="ja"/>
   <EnumValue display_value="__MSG_pl__" value="pl"/>
   <EnumValue display_value="__MSG_it__" value="it"/>
   <EnumValue display_value="__MSG_sv__" value="sv"/>
   <EnumValue display_value="__MSG_nl__" value="nl"/>
   <EnumValue display_value="__MSG_pt__" value="pt"/>
   <EnumValue display_value="__MSG_es__" value="es"/>
   <EnumValue display_value="__MSG_zh__" value="zh"/>
   <EnumValue display_value="__MSG_ru__" value="ru"/>
   <EnumValue display_value="__MSG_no__" value="no"/>
   <EnumValue display_value="__MSG_fi__" value="fi"/>
   <EnumValue display_value="__MSG_da__" value="da"/>
   <EnumValue display_value="__MSG_eo__" value="eo"/>
   <EnumValue display_value="__MSG_he__" value="he"/>
   <EnumValue display_value="__MSG_hu__" value="hu"/>
   <EnumValue display_value="__MSG_ca__" value="ca"/>
   <EnumValue display_value="__MSG_uk__" value="uk"/>
   <EnumValue display_value="__MSG_cs__" value="cs"/>
   <EnumValue display_value="__MSG_bg__" value="bg"/>
   <EnumValue display_value="__MSG_sl__" value="sl"/>
   <EnumValue display_value="__MSG_sk__" value="sk"/>
   <EnumValue display_value="__MSG_ko__" value="ko"/>
   <EnumValue display_value="__MSG_sr__" value="sr"/>
   <EnumValue display_value="__MSG_ro__" value="ro"/>
   <EnumValue display_value="__MSG_id__" value="id"/>
   <EnumValue display_value="__MSG_et__" value="et"/>
   <EnumValue display_value="__MSG_io__" value="io"/>
   <EnumValue display_value="__MSG_tr__" value="tr"/>
   <EnumValue display_value="__MSG_nn__" value="nn"/>
   <EnumValue display_value="__MSG_hr__" value="hr"/>
   <EnumValue display_value="__MSG_gl__" value="gl"/>
   <EnumValue display_value="__MSG_lt__" value="lt"/>
</UserPref>
<Content type="html"><![CDATA[
<style>
  #subLang {
    font-family:arial, sans-serif;
    font-size:10px;
    color:#676767;
  }
  #wikiLink {
    font-family:Garamond, serif;
    font-size:32px;
    color:black;
    text-decoration:none;
  }
  #searchGoButton {
  font-weight:bold;
  }
</style>
<script>
function displaySearchBar (prefs) {
     var lang = _hesc( prefs.getString("mylang"));
     if (lang == "") {
       lang = prefs.getString(".lang");
     }
     var html =
         '<form target="_parent" name="searchform" action="http://' + lang +
           '.wikipedia.org/wiki/Special:Search" id="searchform">' +
           '<table style="width:100%">' +
             '<tr>' +
               '<td style="padding-bottom:4px">' +
                 '<a target="_parent" id=wikiLink href="http://' + lang +
                   '.wikipedia.org/wiki/">W</a>' +
                  '<span style="vertical-align: sub;">' + lang + '</span>' +
               '</td>' +
               '<td width=100%>' +
                 '<input id="searchInput" style="width:100%" name="search" type="text" accesskey="f" value="" />' +
               '</td>' +
               '<td>' +
                 '<input type="submit" name="go" id="searchGoButton" value="__MSG_go__" />' +
               '</td>' +
               '<td>' +
                 '<input type="submit" name="fulltext" value="__MSG_search__" />' +
               '</td>' +
             '</tr>' +
           '</table>'
         '<form>';
     document.write(html);
}
   displaySearchBar(new _IG_Prefs(__MODULE_ID__));
   _IG_Analytics("UA-1459042-2", "/wpsearchbar");
</script>
 ]]>
</Content>
</Module>
