<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs
        title="&#x627;&#x631;&#x62F;&#x648; On-Screen Keyboard"
        directory_title="Urdu On-Screen Keyboard iGoogle Gadget"
        description="Official Google on-screen keyboard gadget for entering search queries in Urdu"
        author="M. T. Raghunath"
        author_affiliation="Google Inc."
        author_location="Bangalore, India"
        author_email="indialabs+indickeyboard@google.com"
        screenshot="/ig/modules/urdu_keyboard.png"
        thumbnail="/ig/modules/urdu_keyboard-thm.png"
        scrolling="false"
        render_inline="never"
        category="tools">
        <Locale lang="ALL" language_direction="rtl" />
        <Require feature="dynamic-height"/>
        <Require feature="analytics"/>
  </ModulePrefs>
  <UserPref name="restrict" display_name="Site restrict or Custom Search Engine ID:"
        datatype="string" default_value="" />
  <UserPref name="new_window" display_name="Results in new window?"
        datatype="bool" default_value="true" />

  <Content type="html"> <![CDATA[
    <style type="text/css">
      @import url(http://www.google.com/ig/modules/indic.css);
    </style>
    <script language="Javascript" type="text/javascript">
      var RR_inGadget=true;
    </script>
    <script type="text/javascript" src="http://www.google.com/ig/modules/urdu_keyboard.js"></script>
    <script type="text/javascript" src="http://www.google.com/ig/modules/indic-rtl.js"></script>

    <script language="Javascript" type="text/javascript">
      var restrict;
      function onLoad() {
        var prefs = new _IG_Prefs();
        restrict = prefs.getString("restrict");
        if (restrict.indexOf("http://") == 0) restrict = restrict.substr(7);
        if (restrict.indexOf(":") != -1) {
          // Custom Search Engine Requested
          document.getElementById("f").action = "http://www.google.co.in/cse";
          cseid_leading = restrict.substr(0, restrict.indexOf(":"));
          cseid_trailing = restrict.substr(restrict.indexOf(":")+1);
          document.getElementById("contain").innerHTML += "<input name='cx' value=" + _esc(cseid_leading) + ":" + _esc(cseid_trailing) + " type='hidden' />";
        }
        var newwindow = prefs.getBool("new_window");
        if (!newwindow) document.getElementById('f').target = "_top";
        _RR_populateKeyboard();
      }
      function patchsite() {
        if ((restrict != "") && (restrict.indexOf(":") == -1)) {
          document.getElementById("q").value += " site:" + _esc(restrict);
        }
        return(true);
      }
      _IG_RegisterOnloadHandler(onLoad);
    </script>
    <script type="text/javascript">
      _IG_Analytics("UA-2050665-1","/Urdu/Circ");
    </script>
    <div id="findwidth" lang="ur" style="display:none">
      <table id="fw" cellspacing="0" cellpadding="1" border="1"></table>
    </div>
    <center lang="ur">
      <form id ="f" name="f" method="get" action="http://www.google.co.in/search" target="_blank">
        <div id="contain">
          <input type="text" id="q" name="q" value="" maxlength="2048" style="width:100%;" ><br/>
          <input id="btnG" name="btnG" type="submit" onClick="patchsite();" value="Google &#x062A;&#x0644;&#x0627;&#x0634;" style="font-family: sans-serif;"/>&nbsp;
          <input id="btnI" name="btnI" type="submit" onClick="patchsite();" value="&#x0645;&#x06CC;&#x06BA; &#x062E;&#x0648;&#x0634; &#x0642;&#x0633;&#x0645;&#x062A; &#x06C1;&#x0648;&#x06BA;" style="font-family: sans-serif;"/>&nbsp;
          <input name="hl" type="hidden" id="langcode" value=""/>
          <input name="source" type="hidden" id="source" value="ioskg_ur"/>
        </div>
      </form>

      <p/>
      <table id="kb" cellspacing="0" cellpadding="0"></table>
      <div id="mdiv" style="display:none">
        <table id="mt" cellspacing="0" cellpadding="0"></table>
      </div>
    </center>
  ]]>
  </Content>
</Module>
