﻿

$(document).ready(function(){

search_autocomplete('title');




$('#keyboard').keyboard({
      // *** choose layout ***
    layout : 'custom',
  customLayout : { default: ['0 9 8 7 6 5 4 3 2 1 {Bksp}','פ ם ן ו ט א ר ק \' /',', ף ך ל ח י ע כ ג ד ש','. ץ ת צ מ נ ה ב ס ז','{Cancel} {Space}'] },
  position     : {
    of : null, // optional - null (attach to input/textarea) or a jQuery object (attach elsewhere)
    my : 'center top',
    at : 'center top'
  },

  // *** change keyboard language & look ***
display : {
    'cancel' : 'Cancel:Cancel',
    'bksp'   : 'Bksp:Backspace',
    'space'  : 'Space:Space',
  },
  // Message added to the key title while hovering, if the mousewheel plugin exists
  wheelMessage : 'Use mousewheel to see other keys',

  // Class added to the Accept and cancel buttons (originally 'ui-state-highlight')
  actionClass : 'ui-state-active',

  // *** Useability ***
  // Prevents direct input in the preview window when true
  lockInput    : false,

  // Set the max number of characters allowed in the input, setting it to false disables this option
  maxLength    : false,

  // When the character is added to the input
  keyBinding : 'mousedown',

  // combos (emulate dead keys : http://en.wikipedia.org/wiki/Keyboard_layout#US-International)
  // if user inputs `a the script converts it to à, ^o becomes ô, etc.
  useCombos  : true,

  // *** Methods ***
  // Callbacks - attach a function to any of these callbacks as desired
  accepted : null,
  canceled : null,
  hidden   : null,
  visible  : null

});

 });

function showkeyboard()
{
    var keyboard = $('#keyboard').getkeyboard();
    keyboard.reveal();
    
    $('.ui-keyboard').css('position','absolute'); 
    $('.ui-keyboard').css('top','105px');
    $('.ui-keyboard').css('padding','10px'); 
    $('.ui-keyboard').draggable();

    return false;
}
