<?xml version="1.0"?>

<!--
// *** Copyright (c)2002 Jim Massey. All rights reserved  ***********
// *** massey@stlouis-shopper.com ************
// *** No Warranty - certified to work with nothing ***
// *** developed to work with mozilla kiosk **** 
-->


<!DOCTYPE window [
<!ENTITY % kioskDTD SYSTEM "chrome://kiosk/locale/kiosk.dtd">
%kioskDTD;
<!ENTITY % bindingsDTD SYSTEM "chrome://kiosk/locale/bindings.dtd">
%bindingsDTD;
<!ENTITY % VKeyboardDTD SYSTEM "chrome://kiosk/locale/VKeyboard.dtd">
%VKeyboardDTD;
]>


<overlay id="VKeyboardOverlay"

	xmlns:html="http://www.w3.org/TR/REC-html40"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<window id="main-window">

<script type="text/javascript" src="VKeyboard.js" />
<toolbox id="VKboard_box">
 <toolbar id="VKboard1" grippytooltiptext="VKeyBoard click to Popup" >
  <vbox id="VKboard_alpha">
    <hbox id="VKeyboard" crop="right">
<!--	<button class="VKey" label="Tab" oncommand="VKtoggle_pad();"/> -->
<!--	<button class="VKey" label="&#81;" oncommand="VKhandlefocus('&#113;');"/> -->
	<button id="&kbd.key1.id;" class="&kbd.key1.class;" 
	    label="&kbd.key1.label;" oncommand="&kbd.key1.command;"/>
	<button class="VKey" label="W" oncommand="VKhandlefocus('w');"/>
	<button class="VKey" label="E" oncommand="VKhandlefocus('e');"/>
	<button class="VKey" label="R" oncommand="VKhandlefocus('r');"/>
	<button class="VKey" label="T" oncommand="VKhandlefocus('t');"/>
	<button class="VKey" label="Y" oncommand="VKhandlefocus('y');"/>
	<button class="VKey" label="U" oncommand="VKhandlefocus('u');"/>
	<button class="VKey" label="I" oncommand="VKhandlefocus('i');"/>
	<button class="VKey" label="O" oncommand="VKhandlefocus('o');"/>
	<button class="VKey" label="P" oncommand="VKhandlefocus('p');"/>
	<button class="VKey" label="?" oncommand="VKhandlefocus('?');"/>
	<button class="VKey" label="!" oncommand="VKhandlefocus('!');"/>
	<button class="VKey" label="@" oncommand="VKhandlefocus('@');"/>
	<button class="VKey" label="Tgl" oncommand="VKtoggle_pad();"
	        tooltiptext="Toggles the numeric/special keypad" />
    </hbox>
    <hbox>
  	<button class="VKey" label="A" oncommand="VKhandlefocus('a');"/>
	<button class="VKey" label="S" oncommand="VKhandlefocus('s');"/>
	<button class="VKey" label="D" oncommand="VKhandlefocus('d');"/>
	<button class="VKey" label="F" oncommand="VKhandlefocus('f');"/>
	<button class="VKey" label="G" oncommand="VKhandlefocus('g');"/>
	<button class="VKey" label="H" oncommand="VKhandlefocus('h');"/>
	<button class="VKey" label="J" oncommand="VKhandlefocus('j');"/>
	<button class="VKey" label="K" oncommand="VKhandlefocus('k');"/>
	<button class="VKey" label="L" oncommand="VKhandlefocus('l');"/>
	<button class="VKey" label=":" oncommand="VKhandlefocus(':');"/>
	<button id="VK_shift" class="VKeyB" label="shift/caps" oncommand="capslock();"/>
	<button class="VKeyB" label="bakspace" oncommand="VKbackspace();"/>
<!--	<button class="VKeyB" label="reset" oncommand="VKboard_reset();"/> -->
    </hbox>
    <hbox>
  	<button class="VKey" label="Z" oncommand="VKhandlefocus('z');"/>
	<button class="VKey" label="X" oncommand="VKhandlefocus('x');"/>
	<button class="VKey" label="C" oncommand="VKhandlefocus('c');"/>
	<button class="VKey" label="V" oncommand="VKhandlefocus('v');"/>
	<button class="VKey" label="B" oncommand="VKhandlefocus('b');"/>
	<button class="VKey" label="N" oncommand="VKhandlefocus('n');"/>
	<button class="VKey" label="M" oncommand="VKhandlefocus('m');"/>
	<button class="VKey" label="," oncommand="VKhandlefocus(',');"/>
	<button class="VKey" label="." oncommand="VKhandlefocus('.');"/>
	<button class="VKey" label="/" oncommand="VKhandlefocus('/');"/>
<!--	<button class="VKeyB" label="space" oncommand="VKhandlefocus('&#32;');"/> -->
	<button id="&kbd.key36.id;" class="&kbd.key36.class;"
	      label="&kbd.key36.label;"  oncommand="&kbd.key36.command;"/>
	<button class="VKeyB" label="delete" oncommand="VKhandledelete();"/>
    <button class="VKeyB" label="Return" oncommand="VKhandlefocus('\n');"/>
    </hbox>
   </vbox>
   <toolbar id="VKnumpad" class="VKaux_pad" grippytooltiptext="Numeric Keypad click to Popup">
   <vbox id="VKboard_numpad">
      <hbox>
	<button class="VKey" label="9" oncommand="VKhandlefocus('9');"/>
	<button class="VKey" label="8" oncommand="VKhandlefocus('8');"/>
	<button class="VKey" label="7" oncommand="VKhandlefocus('7');"/>
	<button class="VKey" label="-" oncommand="VKhandlefocus('-');"/>
      </hbox>
       <hbox>
	<button class="VKey" label="6" oncommand="VKhandlefocus('6');"/>
	<button class="VKey" label="5" oncommand="VKhandlefocus('5');"/>
	<button class="VKey" label="4" oncommand="VKhandlefocus('4');"/>
	<button class="VKey" label="+" oncommand="VKhandlefocus('+');"/>
      </hbox>
       <hbox>
	<button class="VKey" label="3" oncommand="VKhandlefocus('3');"/>
	<button class="VKey" label="2" oncommand="VKhandlefocus('2');"/>
	<button class="VKey" label="1" oncommand="VKhandlefocus('1');"/>
	<button class="VKey" label="0" oncommand="VKhandlefocus('0');"/>
      </hbox>
   </vbox>
   </toolbar>
   <toolbar id="VKspecialpad" class="VKaux_pad" 
	grippytooltiptext="Special Keypad click to Popup">
    <vbox id="VKspecialpadB">
      <hbox>
	<button id="&kbd.spec1.id;" class="&kbd.spec1.class;"
	      label="&kbd.spec1.label;" oncommand="&kbd.spec1.command;"/>
<!--	<button class="VKey" label="&#40;" oncommand="VKhandlefocus('(');"/> -->
	<button class="VKey" label=")" oncommand="VKhandlefocus(')');"/>
	<button class="VKey" label="#" oncommand="VKhandlefocus('#');"/>
	<button class="VKey" label="$" oncommand="VKhandlefocus('$');"/>
      </hbox>
      <hbox>
	<button class="VKey" label="_" oncommand="VKhandlefocus('_');"/>
	<button class="VKey" label="^" oncommand="VKhandlefocus('^');"/>
	<button class="VKey" label="&#38;" oncommand="VKhandlefocus('&#38;');"/>
	<button class="VKey" label="*" oncommand="VKhandlefocus('*');"/>
      </hbox>
      <hbox>
	<button class="VKey" label="&#59;" oncommand="VKhandlefocus('&#59;');"/>
	<button class="VKey" label="=" oncommand="VKhandlefocus('=');"/>
	<button class="VKey" label="%" oncommand="VKhandlefocus('%');"/>
	<button class="VKey" label="&#126;" oncommand="VKhandlefocus('~');"/>
      </hbox>
    </vbox>
  </toolbar>
  </toolbar>
  </toolbox>
</window>

</overlay>