
var language = 0;
var prelanguage = 0;

var processhtmltags = 0;
var processbbcodetags = 0;

var agt=navigator.userAgent.toLowerCase();
var is_opera = (agt.indexOf("opera") != -1);

function setfoc() 
{
	document.searchform.subject.focus();
	return false;
}

function highlightall()
{
	document.searchform.subject.focus(); 
	document.searchform.subject.select(); 
	return false;
}

function getselectedtext()
{
	document.searchform.selsubject.value = gettextareaval(document.searchform.subject);
	return false;
}

function set_cookie(name,cval) // set cookies
{
	var cexpire = new Date();
	var year = cexpire.getTime() + (365 * 24 * 60 * 60 * 1000);
	cexpire.setTime(year);
	document.cookie = name+"="+cval+"; expires=" + cexpire.toGMTString();
}

/*function toggledropdown(obj, event,width)
{
	if (document.getElementById(obj).className=='dropdownitem') 
	{
		document.getElementById(obj).className='hiddenitem';
	}
	else 
	{
		//document.getElementById(obj).style.top = event.clientY;
		//document.getElementById(obj).style.left = event.clientX-width;
		document.getElementById(obj).className='dropdownitem'
	}
}
*/
var translitLetterArr = new Array();
var translitBackArr = new Array();
var middleLetterArr = new Array();
var startLetterArr = new Array();
var lonelyLetterArr = new Array();
var endLetterArr = new Array();
var isArabic=false;
var isFirstLetter=true;
var wasFirstLetter=false
var translitFirstToLonely = new Array();
var translitMiddleToLast = new Array();


//TAJIK
function initDefaultsTajik()
{
translitLetterArr[String.fromCharCode(97)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(97)] = new Array ('ыа','Йа','Ыа','йа','Я','я','я','Я','а','a');

translitLetterArr[String.fromCharCode(98)] = new Array ('','');
middleLetterArr[String.fromCharCode(98)] = new Array ('б','b');

translitLetterArr[String.fromCharCode(118)] = new Array ('','');
middleLetterArr[String.fromCharCode(118)] = new Array ('в','v');

translitLetterArr[String.fromCharCode(103)] = new Array ('','');
middleLetterArr[String.fromCharCode(103)] = new Array ('г','g');

translitLetterArr[String.fromCharCode(100)] = new Array ('','');
middleLetterArr[String.fromCharCode(100)] = new Array ('д','d');

translitLetterArr[String.fromCharCode(101)] = new Array ('Й+','й+','Й','й','','');
middleLetterArr[String.fromCharCode(101)] = new Array ('Йе','йе','Э','э','е','e');

translitLetterArr[String.fromCharCode(111)] = new Array ('ы+','Й+','Ы+','й+','Ы','ы','Й','й','','');
middleLetterArr[String.fromCharCode(111)] = new Array ('ыо','Йо','Ыо','йо','Ё','ё','Ё','ё','о','o');

translitLetterArr[String.fromCharCode(246)] = new Array ('','');
middleLetterArr[String.fromCharCode(246)] = new Array ('ё','ц');

translitLetterArr[String.fromCharCode(104)] = new Array ('сх+','Сх+','з+','Сх','с+','ш+','Ц+','Ш+','С+','сх','ц+','З+','Ш','с','ц','ш','З','С','Ц','з','','');
middleLetterArr[String.fromCharCode(104)] = new Array ('схх','Схх','зх','Щ','сх','шх','Цх','Шх','Сх','щ','цх','Зх','Щ','ш','ч','щ','Ж','Ш','Ч','ж','х','h');

translitLetterArr[String.fromCharCode(122)] = new Array ('','');
middleLetterArr[String.fromCharCode(122)] = new Array ('з','z');

translitLetterArr[String.fromCharCode(105)] = new Array ('','');
middleLetterArr[String.fromCharCode(105)] = new Array ('и','i');

translitLetterArr[String.fromCharCode(106)] = new Array ('','');
middleLetterArr[String.fromCharCode(106)] = new Array ('й','j');

translitLetterArr[String.fromCharCode(107)] = new Array ('','');
middleLetterArr[String.fromCharCode(107)] = new Array ('к','k');

translitLetterArr[String.fromCharCode(108)] = new Array ('','');
middleLetterArr[String.fromCharCode(108)] = new Array ('л','l');

translitLetterArr[String.fromCharCode(109)] = new Array ('','');
middleLetterArr[String.fromCharCode(109)] = new Array ('м','m');

translitLetterArr[String.fromCharCode(110)] = new Array ('','');
middleLetterArr[String.fromCharCode(110)] = new Array ('н','n');

translitLetterArr[String.fromCharCode(112)] = new Array ('','');
middleLetterArr[String.fromCharCode(112)] = new Array ('п','p');

translitLetterArr[String.fromCharCode(114)] = new Array ('','');
middleLetterArr[String.fromCharCode(114)] = new Array ('р','r');

translitLetterArr[String.fromCharCode(115)] = new Array ('','');
middleLetterArr[String.fromCharCode(115)] = new Array ('с','s');

translitLetterArr[String.fromCharCode(116)] = new Array ('','');
middleLetterArr[String.fromCharCode(116)] = new Array ('т','t');

translitLetterArr[String.fromCharCode(117)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(117)] = new Array ('ыу','Йу','Ыу','йу','Ю','ю','ю','Ю','у','u');

translitLetterArr[String.fromCharCode(102)] = new Array ('','');
middleLetterArr[String.fromCharCode(102)] = new Array ('ф','f');

translitLetterArr[String.fromCharCode(120)] = new Array ('','');
middleLetterArr[String.fromCharCode(120)] = new Array ('х','x');

translitLetterArr[String.fromCharCode(99)] = new Array ('','');
middleLetterArr[String.fromCharCode(99)] = new Array ('ц','c');

translitLetterArr[String.fromCharCode(119)] = new Array ('','');
middleLetterArr[String.fromCharCode(119)] = new Array ('щ','w');

translitLetterArr[String.fromCharCode(35)] = new Array ('ъ+','ъ','','');
middleLetterArr[String.fromCharCode(35)] = new Array ('ъъ','Ъ','ъ','#');

translitLetterArr[String.fromCharCode(121)] = new Array ('','');
middleLetterArr[String.fromCharCode(121)] = new Array ('ы','y');

translitLetterArr[String.fromCharCode(39)] = new Array ('ь+','ь','','');
middleLetterArr[String.fromCharCode(39)] = new Array ('ьь','Ь','ь','\'');

translitLetterArr[String.fromCharCode(228)] = new Array ('','');
middleLetterArr[String.fromCharCode(228)] = new Array ('э','д');

translitLetterArr[String.fromCharCode(252)] = new Array ('','');
middleLetterArr[String.fromCharCode(252)] = new Array ('ю','ь');

translitLetterArr[String.fromCharCode(65)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(65)] = new Array ('ЫА','ЙА','Я','Я','А','A');

translitLetterArr[String.fromCharCode(66)] = new Array ('','');
middleLetterArr[String.fromCharCode(66)] = new Array ('Б','B');

translitLetterArr[String.fromCharCode(86)] = new Array ('','');
middleLetterArr[String.fromCharCode(86)] = new Array ('В','V');

translitLetterArr[String.fromCharCode(71)] = new Array ('','');
middleLetterArr[String.fromCharCode(71)] = new Array ('Г','G');

translitLetterArr[String.fromCharCode(68)] = new Array ('','');
middleLetterArr[String.fromCharCode(68)] = new Array ('Д','D');

translitLetterArr[String.fromCharCode(69)] = new Array ('Й+','Й','','');
middleLetterArr[String.fromCharCode(69)] = new Array ('ЙЕ','Э','Е','E');

translitLetterArr[String.fromCharCode(79)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(79)] = new Array ('ЫО','ЙО','Ё','Ё','О','O');

translitLetterArr[String.fromCharCode(214)] = new Array ('','');
middleLetterArr[String.fromCharCode(214)] = new Array ('Ё','Ц');

translitLetterArr[String.fromCharCode(72)] = new Array ('СХ+','Ц+','СХ','С+','З+','Ш+','Ш','Ц','С','З','','');
middleLetterArr[String.fromCharCode(72)] = new Array ('СХХ','ЦХ','Щ','СХ','ЗХ','ШХ','Щ','Ч','Ш','Ж','Х','H');

translitLetterArr[String.fromCharCode(90)] = new Array ('','');
middleLetterArr[String.fromCharCode(90)] = new Array ('З','Z');

translitLetterArr[String.fromCharCode(73)] = new Array ('','');
middleLetterArr[String.fromCharCode(73)] = new Array ('И','I');

translitLetterArr[String.fromCharCode(74)] = new Array ('','');
middleLetterArr[String.fromCharCode(74)] = new Array ('Й','J');

translitLetterArr[String.fromCharCode(75)] = new Array ('','');
middleLetterArr[String.fromCharCode(75)] = new Array ('К','K');

translitLetterArr[String.fromCharCode(76)] = new Array ('','');
middleLetterArr[String.fromCharCode(76)] = new Array ('Л','L');

translitLetterArr[String.fromCharCode(77)] = new Array ('','');
middleLetterArr[String.fromCharCode(77)] = new Array ('М','M');

translitLetterArr[String.fromCharCode(78)] = new Array ('','');
middleLetterArr[String.fromCharCode(78)] = new Array ('Н','N');

translitLetterArr[String.fromCharCode(80)] = new Array ('','');
middleLetterArr[String.fromCharCode(80)] = new Array ('П','P');

translitLetterArr[String.fromCharCode(82)] = new Array ('','');
middleLetterArr[String.fromCharCode(82)] = new Array ('Р','R');

translitLetterArr[String.fromCharCode(83)] = new Array ('','');
middleLetterArr[String.fromCharCode(83)] = new Array ('С','S');

translitLetterArr[String.fromCharCode(84)] = new Array ('','');
middleLetterArr[String.fromCharCode(84)] = new Array ('Т','T');

translitLetterArr[String.fromCharCode(85)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(85)] = new Array ('ЫУ','ЙУ','Ю','Ю','У','U');

translitLetterArr[String.fromCharCode(70)] = new Array ('','');
middleLetterArr[String.fromCharCode(70)] = new Array ('Ф','F');

translitLetterArr[String.fromCharCode(88)] = new Array ('','');
middleLetterArr[String.fromCharCode(88)] = new Array ('Х','X');

translitLetterArr[String.fromCharCode(67)] = new Array ('','');
middleLetterArr[String.fromCharCode(67)] = new Array ('Ц','C');

translitLetterArr[String.fromCharCode(87)] = new Array ('','');
middleLetterArr[String.fromCharCode(87)] = new Array ('Щ','W');

translitLetterArr[String.fromCharCode(89)] = new Array ('','');
middleLetterArr[String.fromCharCode(89)] = new Array ('Ы','Y');

translitLetterArr[String.fromCharCode(196)] = new Array ('','');
middleLetterArr[String.fromCharCode(196)] = new Array ('Э','Д');

translitLetterArr[String.fromCharCode(220)] = new Array ('','');
middleLetterArr[String.fromCharCode(220)] = new Array ('Ю','Ь');



translitLetterArr[String.fromCharCode(42)] = new Array ('г+','Г+','к+','К+','й+','Й+','у+','У+','х+','Х+','ч+','Ч+','г','Г','к','К','й','Й','у','У','х','Х','ч','Ч','','');    
middleLetterArr[String.fromCharCode(42)] = new Array   ('г*','Г*','к*','К*','й*','Й*','у*','У*','х*','Х*','ч*','Ч*','ғ','Ғ','қ','Қ','ӣ','Ӣ','ӯ','Ӯ','ҳ','Ҳ','ҷ','Ҷ','*','*');


translitBackArr['ғ'] = 'г*';
translitBackArr['Ғ'] = 'Г*';
translitBackArr['қ'] = 'к*';
translitBackArr['Қ'] = 'К*';
translitBackArr['ӣ'] = 'й*';
translitBackArr['Ӣ'] = 'Й*';
translitBackArr['ӯ'] = 'у*';
translitBackArr['Ӯ'] = 'У*';
translitBackArr['ҳ'] = 'х*';
translitBackArr['Ҳ'] = 'Х*';
translitBackArr['ҷ'] = 'ч*';
translitBackArr['Ҷ'] = 'Ч*';


translitBackArr['а'] = 'a';
translitBackArr['б'] = 'b';
translitBackArr['в'] = 'v';
translitBackArr['г'] = 'g';
translitBackArr['д'] = 'd';
translitBackArr['е'] = 'e';
translitBackArr['ё'] = 'jo';
translitBackArr['ж'] = 'zh';
translitBackArr['з'] = 'z';
translitBackArr['и'] = 'i';
translitBackArr['й'] = 'j';
translitBackArr['к'] = 'k';
translitBackArr['л'] = 'l';
translitBackArr['м'] = 'm';
translitBackArr['н'] = 'n';
translitBackArr['о'] = 'o';
translitBackArr['п'] = 'p';
translitBackArr['р'] = 'r';
translitBackArr['с'] = 's';
translitBackArr['т'] = 't';
translitBackArr['у'] = 'u';
translitBackArr['ф'] = 'f';
translitBackArr['х'] = 'h';
translitBackArr['ц'] = 'c';
translitBackArr['ч'] = 'ch';
translitBackArr['ш'] = 'sh';
translitBackArr['щ'] = 'w';
translitBackArr['ъ'] = '#';
translitBackArr['ы'] = 'y';
translitBackArr['ь'] = '\'';
translitBackArr['э'] = 'je';
translitBackArr['ю'] = 'ju';
translitBackArr['я'] = 'ja';
translitBackArr['А'] = 'A';
translitBackArr['Б'] = 'B';
translitBackArr['В'] = 'V';
translitBackArr['Г'] = 'G';
translitBackArr['Д'] = 'D';
translitBackArr['Е'] = 'E';
translitBackArr['Ё'] = 'JO';
translitBackArr['Ж'] = 'ZH';
translitBackArr['З'] = 'Z';
translitBackArr['И'] = 'I';
translitBackArr['Й'] = 'J';
translitBackArr['К'] = 'K';
translitBackArr['Л'] = 'L';
translitBackArr['М'] = 'M';
translitBackArr['Н'] = 'N';
translitBackArr['О'] = 'O';
translitBackArr['П'] = 'P';
translitBackArr['Р'] = 'R';
translitBackArr['С'] = 'S';
translitBackArr['Т'] = 'T';
translitBackArr['У'] = 'U';
translitBackArr['Ф'] = 'F';
translitBackArr['Х'] = 'H';
translitBackArr['Ц'] = 'C';
translitBackArr['Ч'] = 'CH';
translitBackArr['Ш'] = 'SH';
translitBackArr['Щ'] = 'W';
translitBackArr['Ъ'] = '##';
translitBackArr['Ы'] = 'Y';
translitBackArr['Ь'] = '\'\'';
translitBackArr['Э'] = 'JE';
translitBackArr['Ю'] = 'JU';
translitBackArr['Я'] = 'JA';
}

//KYRGYZ
function initDefaultsKyrgyz()
{
translitLetterArr[String.fromCharCode(97)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(97)] = new Array ('ыа','Йа','Ыа','йа','Я','я','я','Я','а','a');

translitLetterArr[String.fromCharCode(98)] = new Array ('','');
middleLetterArr[String.fromCharCode(98)] = new Array ('б','b');

translitLetterArr[String.fromCharCode(118)] = new Array ('','');
middleLetterArr[String.fromCharCode(118)] = new Array ('в','v');

translitLetterArr[String.fromCharCode(103)] = new Array ('','');
middleLetterArr[String.fromCharCode(103)] = new Array ('г','g');

translitLetterArr[String.fromCharCode(100)] = new Array ('','');
middleLetterArr[String.fromCharCode(100)] = new Array ('д','d');

translitLetterArr[String.fromCharCode(101)] = new Array ('Й+','й+','Й','й','','');
middleLetterArr[String.fromCharCode(101)] = new Array ('Йе','йе','Э','э','е','e');

translitLetterArr[String.fromCharCode(111)] = new Array ('ы+','Й+','Ы+','й+','Ы','ы','Й','й','','');
middleLetterArr[String.fromCharCode(111)] = new Array ('ыо','Йо','Ыо','йо','Ё','ё','Ё','ё','о','o');

translitLetterArr[String.fromCharCode(246)] = new Array ('','');
middleLetterArr[String.fromCharCode(246)] = new Array ('ё','ц');

translitLetterArr[String.fromCharCode(104)] = new Array ('сх+','Сх+','з+','Сх','с+','ш+','Ц+','Ш+','С+','сх','ц+','З+','Ш','с','ц','ш','З','С','Ц','з','','');
middleLetterArr[String.fromCharCode(104)] = new Array ('схх','Схх','зх','Щ','сх','шх','Цх','Шх','Сх','щ','цх','Зх','Щ','ш','ч','щ','Ж','Ш','Ч','ж','х','h');

translitLetterArr[String.fromCharCode(122)] = new Array ('','');
middleLetterArr[String.fromCharCode(122)] = new Array ('з','z');

translitLetterArr[String.fromCharCode(105)] = new Array ('','');
middleLetterArr[String.fromCharCode(105)] = new Array ('и','i');

translitLetterArr[String.fromCharCode(106)] = new Array ('','');
middleLetterArr[String.fromCharCode(106)] = new Array ('й','j');

translitLetterArr[String.fromCharCode(107)] = new Array ('','');
middleLetterArr[String.fromCharCode(107)] = new Array ('к','k');

translitLetterArr[String.fromCharCode(108)] = new Array ('','');
middleLetterArr[String.fromCharCode(108)] = new Array ('л','l');

translitLetterArr[String.fromCharCode(109)] = new Array ('','');
middleLetterArr[String.fromCharCode(109)] = new Array ('м','m');

translitLetterArr[String.fromCharCode(110)] = new Array ('','');
middleLetterArr[String.fromCharCode(110)] = new Array ('н','n');

translitLetterArr[String.fromCharCode(112)] = new Array ('','');
middleLetterArr[String.fromCharCode(112)] = new Array ('п','p');

translitLetterArr[String.fromCharCode(114)] = new Array ('','');
middleLetterArr[String.fromCharCode(114)] = new Array ('р','r');

translitLetterArr[String.fromCharCode(115)] = new Array ('','');
middleLetterArr[String.fromCharCode(115)] = new Array ('с','s');

translitLetterArr[String.fromCharCode(116)] = new Array ('','');
middleLetterArr[String.fromCharCode(116)] = new Array ('т','t');

translitLetterArr[String.fromCharCode(117)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(117)] = new Array ('ыу','Йу','Ыу','йу','Ю','ю','ю','Ю','у','u');

translitLetterArr[String.fromCharCode(102)] = new Array ('','');
middleLetterArr[String.fromCharCode(102)] = new Array ('ф','f');

translitLetterArr[String.fromCharCode(120)] = new Array ('','');
middleLetterArr[String.fromCharCode(120)] = new Array ('х','x');

translitLetterArr[String.fromCharCode(99)] = new Array ('','');
middleLetterArr[String.fromCharCode(99)] = new Array ('ц','c');

translitLetterArr[String.fromCharCode(119)] = new Array ('','');
middleLetterArr[String.fromCharCode(119)] = new Array ('щ','w');

translitLetterArr[String.fromCharCode(35)] = new Array ('ъ+','ъ','','');
middleLetterArr[String.fromCharCode(35)] = new Array ('ъъ','Ъ','ъ','#');

translitLetterArr[String.fromCharCode(121)] = new Array ('','');
middleLetterArr[String.fromCharCode(121)] = new Array ('ы','y');

translitLetterArr[String.fromCharCode(39)] = new Array ('ь+','ь','','');
middleLetterArr[String.fromCharCode(39)] = new Array ('ьь','Ь','ь','\'');

translitLetterArr[String.fromCharCode(228)] = new Array ('','');
middleLetterArr[String.fromCharCode(228)] = new Array ('э','д');

translitLetterArr[String.fromCharCode(252)] = new Array ('','');
middleLetterArr[String.fromCharCode(252)] = new Array ('ю','ь');

translitLetterArr[String.fromCharCode(65)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(65)] = new Array ('ЫА','ЙА','Я','Я','А','A');

translitLetterArr[String.fromCharCode(66)] = new Array ('','');
middleLetterArr[String.fromCharCode(66)] = new Array ('Б','B');

translitLetterArr[String.fromCharCode(86)] = new Array ('','');
middleLetterArr[String.fromCharCode(86)] = new Array ('В','V');

translitLetterArr[String.fromCharCode(71)] = new Array ('','');
middleLetterArr[String.fromCharCode(71)] = new Array ('Г','G');

translitLetterArr[String.fromCharCode(68)] = new Array ('','');
middleLetterArr[String.fromCharCode(68)] = new Array ('Д','D');

translitLetterArr[String.fromCharCode(69)] = new Array ('Й+','Й','','');
middleLetterArr[String.fromCharCode(69)] = new Array ('ЙЕ','Э','Е','E');

translitLetterArr[String.fromCharCode(79)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(79)] = new Array ('ЫО','ЙО','Ё','Ё','О','O');

translitLetterArr[String.fromCharCode(214)] = new Array ('','');
middleLetterArr[String.fromCharCode(214)] = new Array ('Ё','Ц');

translitLetterArr[String.fromCharCode(72)] = new Array ('СХ+','Ц+','СХ','С+','З+','Ш+','Ш','Ц','С','З','','');
middleLetterArr[String.fromCharCode(72)] = new Array ('СХХ','ЦХ','Щ','СХ','ЗХ','ШХ','Щ','Ч','Ш','Ж','Х','H');

translitLetterArr[String.fromCharCode(90)] = new Array ('','');
middleLetterArr[String.fromCharCode(90)] = new Array ('З','Z');

translitLetterArr[String.fromCharCode(73)] = new Array ('','');
middleLetterArr[String.fromCharCode(73)] = new Array ('И','I');

translitLetterArr[String.fromCharCode(74)] = new Array ('','');
middleLetterArr[String.fromCharCode(74)] = new Array ('Й','J');

translitLetterArr[String.fromCharCode(75)] = new Array ('','');
middleLetterArr[String.fromCharCode(75)] = new Array ('К','K');

translitLetterArr[String.fromCharCode(76)] = new Array ('','');
middleLetterArr[String.fromCharCode(76)] = new Array ('Л','L');

translitLetterArr[String.fromCharCode(77)] = new Array ('','');
middleLetterArr[String.fromCharCode(77)] = new Array ('М','M');

translitLetterArr[String.fromCharCode(78)] = new Array ('','');
middleLetterArr[String.fromCharCode(78)] = new Array ('Н','N');

translitLetterArr[String.fromCharCode(80)] = new Array ('','');
middleLetterArr[String.fromCharCode(80)] = new Array ('П','P');

translitLetterArr[String.fromCharCode(82)] = new Array ('','');
middleLetterArr[String.fromCharCode(82)] = new Array ('Р','R');

translitLetterArr[String.fromCharCode(83)] = new Array ('','');
middleLetterArr[String.fromCharCode(83)] = new Array ('С','S');

translitLetterArr[String.fromCharCode(84)] = new Array ('','');
middleLetterArr[String.fromCharCode(84)] = new Array ('Т','T');

translitLetterArr[String.fromCharCode(85)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(85)] = new Array ('ЫУ','ЙУ','Ю','Ю','У','U');

translitLetterArr[String.fromCharCode(70)] = new Array ('','');
middleLetterArr[String.fromCharCode(70)] = new Array ('Ф','F');

translitLetterArr[String.fromCharCode(88)] = new Array ('','');
middleLetterArr[String.fromCharCode(88)] = new Array ('Х','X');

translitLetterArr[String.fromCharCode(67)] = new Array ('','');
middleLetterArr[String.fromCharCode(67)] = new Array ('Ц','C');

translitLetterArr[String.fromCharCode(87)] = new Array ('','');
middleLetterArr[String.fromCharCode(87)] = new Array ('Щ','W');

translitLetterArr[String.fromCharCode(89)] = new Array ('','');
middleLetterArr[String.fromCharCode(89)] = new Array ('Ы','Y');

translitLetterArr[String.fromCharCode(196)] = new Array ('','');
middleLetterArr[String.fromCharCode(196)] = new Array ('Э','Д');

translitLetterArr[String.fromCharCode(220)] = new Array ('','');
middleLetterArr[String.fromCharCode(220)] = new Array ('Ю','Ь');



translitLetterArr[String.fromCharCode(42)] = new Array ('н+','Н+','о+','О+','у+','У+','н','Н','о','О','у','У','','');    
middleLetterArr[String.fromCharCode(42)] = new Array   ('н*','Н*','о*','О*','у*','У*','ң','Ң','ө','Ө','ү','Ү','*','*');


 

translitBackArr['ң'] = 'н*';
translitBackArr['Ң'] = 'Н*';
translitBackArr['ө'] = 'о*';
translitBackArr['Ө'] = 'О*';
translitBackArr['ү'] = 'у*';
translitBackArr['Ү'] = 'У*';



translitBackArr['а'] = 'a';
translitBackArr['б'] = 'b';
translitBackArr['в'] = 'v';
translitBackArr['г'] = 'g';
translitBackArr['д'] = 'd';
translitBackArr['е'] = 'e';
translitBackArr['ё'] = 'jo';
translitBackArr['ж'] = 'zh';
translitBackArr['з'] = 'z';
translitBackArr['и'] = 'i';
translitBackArr['й'] = 'j';
translitBackArr['к'] = 'k';
translitBackArr['л'] = 'l';
translitBackArr['м'] = 'm';
translitBackArr['н'] = 'n';
translitBackArr['о'] = 'o';
translitBackArr['п'] = 'p';
translitBackArr['р'] = 'r';
translitBackArr['с'] = 's';
translitBackArr['т'] = 't';
translitBackArr['у'] = 'u';
translitBackArr['ф'] = 'f';
translitBackArr['х'] = 'h';
translitBackArr['ц'] = 'c';
translitBackArr['ч'] = 'ch';
translitBackArr['ш'] = 'sh';
translitBackArr['щ'] = 'w';
translitBackArr['ъ'] = '#';
translitBackArr['ы'] = 'y';
translitBackArr['ь'] = '\'';
translitBackArr['э'] = 'je';
translitBackArr['ю'] = 'ju';
translitBackArr['я'] = 'ja';
translitBackArr['А'] = 'A';
translitBackArr['Б'] = 'B';
translitBackArr['В'] = 'V';
translitBackArr['Г'] = 'G';
translitBackArr['Д'] = 'D';
translitBackArr['Е'] = 'E';
translitBackArr['Ё'] = 'JO';
translitBackArr['Ж'] = 'ZH';
translitBackArr['З'] = 'Z';
translitBackArr['И'] = 'I';
translitBackArr['Й'] = 'J';
translitBackArr['К'] = 'K';
translitBackArr['Л'] = 'L';
translitBackArr['М'] = 'M';
translitBackArr['Н'] = 'N';
translitBackArr['О'] = 'O';
translitBackArr['П'] = 'P';
translitBackArr['Р'] = 'R';
translitBackArr['С'] = 'S';
translitBackArr['Т'] = 'T';
translitBackArr['У'] = 'U';
translitBackArr['Ф'] = 'F';
translitBackArr['Х'] = 'H';
translitBackArr['Ц'] = 'C';
translitBackArr['Ч'] = 'CH';
translitBackArr['Ш'] = 'SH';
translitBackArr['Щ'] = 'W';
translitBackArr['Ъ'] = '##';
translitBackArr['Ы'] = 'Y';
translitBackArr['Ь'] = '\'\'';
translitBackArr['Э'] = 'JE';
translitBackArr['Ю'] = 'JU';
translitBackArr['Я'] = 'JA';
}



//MONGOLIAN
function initDefaultsMongolian()
{
translitLetterArr[String.fromCharCode(97)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(97)] = new Array ('ыа','Йа','Ыа','йа','Я','я','я','Я','а','a');

translitLetterArr[String.fromCharCode(98)] = new Array ('','');
middleLetterArr[String.fromCharCode(98)] = new Array ('б','b');

translitLetterArr[String.fromCharCode(118)] = new Array ('','');
middleLetterArr[String.fromCharCode(118)] = new Array ('в','v');

translitLetterArr[String.fromCharCode(103)] = new Array ('','');
middleLetterArr[String.fromCharCode(103)] = new Array ('г','g');

translitLetterArr[String.fromCharCode(100)] = new Array ('','');
middleLetterArr[String.fromCharCode(100)] = new Array ('д','d');

translitLetterArr[String.fromCharCode(101)] = new Array ('Й+','й+','Й','й','','');
middleLetterArr[String.fromCharCode(101)] = new Array ('Йе','йе','Э','э','е','e');

translitLetterArr[String.fromCharCode(111)] = new Array ('ы+','Й+','Ы+','й+','Ы','ы','Й','й','','');
middleLetterArr[String.fromCharCode(111)] = new Array ('ыо','Йо','Ыо','йо','Ё','ё','Ё','ё','о','o');

translitLetterArr[String.fromCharCode(246)] = new Array ('','');
middleLetterArr[String.fromCharCode(246)] = new Array ('ё','ц');

translitLetterArr[String.fromCharCode(104)] = new Array ('сх+','Сх+','з+','Сх','с+','ш+','Ц+','Ш+','С+','сх','ц+','З+','Ш','с','ц','ш','З','С','Ц','з','','');
middleLetterArr[String.fromCharCode(104)] = new Array ('схх','Схх','зх','Щ','сх','шх','Цх','Шх','Сх','щ','цх','Зх','Щ','ш','ч','щ','Ж','Ш','Ч','ж','х','h');

translitLetterArr[String.fromCharCode(122)] = new Array ('','');
middleLetterArr[String.fromCharCode(122)] = new Array ('з','z');

translitLetterArr[String.fromCharCode(105)] = new Array ('','');
middleLetterArr[String.fromCharCode(105)] = new Array ('и','i');

translitLetterArr[String.fromCharCode(106)] = new Array ('','');
middleLetterArr[String.fromCharCode(106)] = new Array ('й','j');

translitLetterArr[String.fromCharCode(107)] = new Array ('','');
middleLetterArr[String.fromCharCode(107)] = new Array ('к','k');

translitLetterArr[String.fromCharCode(108)] = new Array ('','');
middleLetterArr[String.fromCharCode(108)] = new Array ('л','l');

translitLetterArr[String.fromCharCode(109)] = new Array ('','');
middleLetterArr[String.fromCharCode(109)] = new Array ('м','m');

translitLetterArr[String.fromCharCode(110)] = new Array ('','');
middleLetterArr[String.fromCharCode(110)] = new Array ('н','n');

translitLetterArr[String.fromCharCode(112)] = new Array ('','');
middleLetterArr[String.fromCharCode(112)] = new Array ('п','p');

translitLetterArr[String.fromCharCode(114)] = new Array ('','');
middleLetterArr[String.fromCharCode(114)] = new Array ('р','r');

translitLetterArr[String.fromCharCode(115)] = new Array ('','');
middleLetterArr[String.fromCharCode(115)] = new Array ('с','s');

translitLetterArr[String.fromCharCode(116)] = new Array ('','');
middleLetterArr[String.fromCharCode(116)] = new Array ('т','t');

translitLetterArr[String.fromCharCode(117)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(117)] = new Array ('ыу','Йу','Ыу','йу','Ю','ю','ю','Ю','у','u');

translitLetterArr[String.fromCharCode(102)] = new Array ('','');
middleLetterArr[String.fromCharCode(102)] = new Array ('ф','f');

translitLetterArr[String.fromCharCode(120)] = new Array ('','');
middleLetterArr[String.fromCharCode(120)] = new Array ('х','x');

translitLetterArr[String.fromCharCode(99)] = new Array ('','');
middleLetterArr[String.fromCharCode(99)] = new Array ('ц','c');

translitLetterArr[String.fromCharCode(119)] = new Array ('','');
middleLetterArr[String.fromCharCode(119)] = new Array ('щ','w');

translitLetterArr[String.fromCharCode(35)] = new Array ('ъ+','ъ','','');
middleLetterArr[String.fromCharCode(35)] = new Array ('ъъ','Ъ','ъ','#');

translitLetterArr[String.fromCharCode(121)] = new Array ('','');
middleLetterArr[String.fromCharCode(121)] = new Array ('ы','y');

translitLetterArr[String.fromCharCode(39)] = new Array ('ь+','ь','','');
middleLetterArr[String.fromCharCode(39)] = new Array ('ьь','Ь','ь','\'');

translitLetterArr[String.fromCharCode(228)] = new Array ('','');
middleLetterArr[String.fromCharCode(228)] = new Array ('э','д');

translitLetterArr[String.fromCharCode(252)] = new Array ('','');
middleLetterArr[String.fromCharCode(252)] = new Array ('ю','ь');

translitLetterArr[String.fromCharCode(65)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(65)] = new Array ('ЫА','ЙА','Я','Я','А','A');

translitLetterArr[String.fromCharCode(66)] = new Array ('','');
middleLetterArr[String.fromCharCode(66)] = new Array ('Б','B');

translitLetterArr[String.fromCharCode(86)] = new Array ('','');
middleLetterArr[String.fromCharCode(86)] = new Array ('В','V');

translitLetterArr[String.fromCharCode(71)] = new Array ('','');
middleLetterArr[String.fromCharCode(71)] = new Array ('Г','G');

translitLetterArr[String.fromCharCode(68)] = new Array ('','');
middleLetterArr[String.fromCharCode(68)] = new Array ('Д','D');

translitLetterArr[String.fromCharCode(69)] = new Array ('Й+','Й','','');
middleLetterArr[String.fromCharCode(69)] = new Array ('ЙЕ','Э','Е','E');

translitLetterArr[String.fromCharCode(79)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(79)] = new Array ('ЫО','ЙО','Ё','Ё','О','O');

translitLetterArr[String.fromCharCode(214)] = new Array ('','');
middleLetterArr[String.fromCharCode(214)] = new Array ('Ё','Ц');

translitLetterArr[String.fromCharCode(72)] = new Array ('СХ+','Ц+','СХ','С+','З+','Ш+','Ш','Ц','С','З','','');
middleLetterArr[String.fromCharCode(72)] = new Array ('СХХ','ЦХ','Щ','СХ','ЗХ','ШХ','Щ','Ч','Ш','Ж','Х','H');

translitLetterArr[String.fromCharCode(90)] = new Array ('','');
middleLetterArr[String.fromCharCode(90)] = new Array ('З','Z');

translitLetterArr[String.fromCharCode(73)] = new Array ('','');
middleLetterArr[String.fromCharCode(73)] = new Array ('И','I');

translitLetterArr[String.fromCharCode(74)] = new Array ('','');
middleLetterArr[String.fromCharCode(74)] = new Array ('Й','J');

translitLetterArr[String.fromCharCode(75)] = new Array ('','');
middleLetterArr[String.fromCharCode(75)] = new Array ('К','K');

translitLetterArr[String.fromCharCode(76)] = new Array ('','');
middleLetterArr[String.fromCharCode(76)] = new Array ('Л','L');

translitLetterArr[String.fromCharCode(77)] = new Array ('','');
middleLetterArr[String.fromCharCode(77)] = new Array ('М','M');

translitLetterArr[String.fromCharCode(78)] = new Array ('','');
middleLetterArr[String.fromCharCode(78)] = new Array ('Н','N');

translitLetterArr[String.fromCharCode(80)] = new Array ('','');
middleLetterArr[String.fromCharCode(80)] = new Array ('П','P');

translitLetterArr[String.fromCharCode(82)] = new Array ('','');
middleLetterArr[String.fromCharCode(82)] = new Array ('Р','R');

translitLetterArr[String.fromCharCode(83)] = new Array ('','');
middleLetterArr[String.fromCharCode(83)] = new Array ('С','S');

translitLetterArr[String.fromCharCode(84)] = new Array ('','');
middleLetterArr[String.fromCharCode(84)] = new Array ('Т','T');

translitLetterArr[String.fromCharCode(85)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(85)] = new Array ('ЫУ','ЙУ','Ю','Ю','У','U');

translitLetterArr[String.fromCharCode(70)] = new Array ('','');
middleLetterArr[String.fromCharCode(70)] = new Array ('Ф','F');

translitLetterArr[String.fromCharCode(88)] = new Array ('','');
middleLetterArr[String.fromCharCode(88)] = new Array ('Х','X');

translitLetterArr[String.fromCharCode(67)] = new Array ('','');
middleLetterArr[String.fromCharCode(67)] = new Array ('Ц','C');

translitLetterArr[String.fromCharCode(87)] = new Array ('','');
middleLetterArr[String.fromCharCode(87)] = new Array ('Щ','W');

translitLetterArr[String.fromCharCode(89)] = new Array ('','');
middleLetterArr[String.fromCharCode(89)] = new Array ('Ы','Y');

translitLetterArr[String.fromCharCode(196)] = new Array ('','');
middleLetterArr[String.fromCharCode(196)] = new Array ('Э','Д');

translitLetterArr[String.fromCharCode(220)] = new Array ('','');
middleLetterArr[String.fromCharCode(220)] = new Array ('Ю','Ь');



translitLetterArr[String.fromCharCode(42)] = new Array ('о+','О+','о','О','','');    
middleLetterArr[String.fromCharCode(42)] = new Array   ('о*','О*','ө','Ө','*','*');


translitBackArr['ө'] = 'о*';
translitBackArr['Ө'] = 'О*';



translitBackArr['а'] = 'a';
translitBackArr['б'] = 'b';
translitBackArr['в'] = 'v';
translitBackArr['г'] = 'g';
translitBackArr['д'] = 'd';
translitBackArr['е'] = 'e';
translitBackArr['ё'] = 'jo';
translitBackArr['ж'] = 'zh';
translitBackArr['з'] = 'z';
translitBackArr['и'] = 'i';
translitBackArr['й'] = 'j';
translitBackArr['к'] = 'k';
translitBackArr['л'] = 'l';
translitBackArr['м'] = 'm';
translitBackArr['н'] = 'n';
translitBackArr['о'] = 'o';
translitBackArr['п'] = 'p';
translitBackArr['р'] = 'r';
translitBackArr['с'] = 's';
translitBackArr['т'] = 't';
translitBackArr['у'] = 'u';
translitBackArr['ф'] = 'f';
translitBackArr['х'] = 'h';
translitBackArr['ц'] = 'c';
translitBackArr['ч'] = 'ch';
translitBackArr['ш'] = 'sh';
translitBackArr['щ'] = 'w';
translitBackArr['ъ'] = '#';
translitBackArr['ы'] = 'y';
translitBackArr['ь'] = '\'';
translitBackArr['э'] = 'je';
translitBackArr['ю'] = 'ju';
translitBackArr['я'] = 'ja';
translitBackArr['А'] = 'A';
translitBackArr['Б'] = 'B';
translitBackArr['В'] = 'V';
translitBackArr['Г'] = 'G';
translitBackArr['Д'] = 'D';
translitBackArr['Е'] = 'E';
translitBackArr['Ё'] = 'JO';
translitBackArr['Ж'] = 'ZH';
translitBackArr['З'] = 'Z';
translitBackArr['И'] = 'I';
translitBackArr['Й'] = 'J';
translitBackArr['К'] = 'K';
translitBackArr['Л'] = 'L';
translitBackArr['М'] = 'M';
translitBackArr['Н'] = 'N';
translitBackArr['О'] = 'O';
translitBackArr['П'] = 'P';
translitBackArr['Р'] = 'R';
translitBackArr['С'] = 'S';
translitBackArr['Т'] = 'T';
translitBackArr['У'] = 'U';
translitBackArr['Ф'] = 'F';
translitBackArr['Х'] = 'H';
translitBackArr['Ц'] = 'C';
translitBackArr['Ч'] = 'CH';
translitBackArr['Ш'] = 'SH';
translitBackArr['Щ'] = 'W';
translitBackArr['Ъ'] = '##';
translitBackArr['Ы'] = 'Y';
translitBackArr['Ь'] = '\'\'';
translitBackArr['Э'] = 'JE';
translitBackArr['Ю'] = 'JU';
translitBackArr['Я'] = 'JA';
}


//KAZAKH
function initDefaultsKazakh()
{
translitLetterArr[String.fromCharCode(97)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(97)] = new Array ('ыа','Йа','Ыа','йа','Я','я','я','Я','а','a');

translitLetterArr[String.fromCharCode(98)] = new Array ('','');
middleLetterArr[String.fromCharCode(98)] = new Array ('б','b');

translitLetterArr[String.fromCharCode(118)] = new Array ('','');
middleLetterArr[String.fromCharCode(118)] = new Array ('в','v');

translitLetterArr[String.fromCharCode(103)] = new Array ('','');
middleLetterArr[String.fromCharCode(103)] = new Array ('г','g');

translitLetterArr[String.fromCharCode(100)] = new Array ('','');
middleLetterArr[String.fromCharCode(100)] = new Array ('д','d');

translitLetterArr[String.fromCharCode(101)] = new Array ('Й+','й+','Й','й','','');
middleLetterArr[String.fromCharCode(101)] = new Array ('Йе','йе','Э','э','е','e');

translitLetterArr[String.fromCharCode(111)] = new Array ('ы+','Й+','Ы+','й+','Ы','ы','Й','й','','');
middleLetterArr[String.fromCharCode(111)] = new Array ('ыо','Йо','Ыо','йо','Ё','ё','Ё','ё','о','o');

translitLetterArr[String.fromCharCode(246)] = new Array ('','');
middleLetterArr[String.fromCharCode(246)] = new Array ('ё','ц');

translitLetterArr[String.fromCharCode(104)] = new Array ('сх+','Сх+','з+','Сх','с+','ш+','Ц+','Ш+','С+','сх','ц+','З+','Ш','с','ц','ш','З','С','Ц','з','','');
middleLetterArr[String.fromCharCode(104)] = new Array ('схх','Схх','зх','Щ','сх','шх','Цх','Шх','Сх','щ','цх','Зх','Щ','ш','ч','щ','Ж','Ш','Ч','ж','х','h');

translitLetterArr[String.fromCharCode(122)] = new Array ('','');
middleLetterArr[String.fromCharCode(122)] = new Array ('з','z');

translitLetterArr[String.fromCharCode(105)] = new Array ('','');
middleLetterArr[String.fromCharCode(105)] = new Array ('и','i');

translitLetterArr[String.fromCharCode(106)] = new Array ('','');
middleLetterArr[String.fromCharCode(106)] = new Array ('й','j');

translitLetterArr[String.fromCharCode(107)] = new Array ('','');
middleLetterArr[String.fromCharCode(107)] = new Array ('к','k');

translitLetterArr[String.fromCharCode(108)] = new Array ('','');
middleLetterArr[String.fromCharCode(108)] = new Array ('л','l');

translitLetterArr[String.fromCharCode(109)] = new Array ('','');
middleLetterArr[String.fromCharCode(109)] = new Array ('м','m');

translitLetterArr[String.fromCharCode(110)] = new Array ('','');
middleLetterArr[String.fromCharCode(110)] = new Array ('н','n');

translitLetterArr[String.fromCharCode(112)] = new Array ('','');
middleLetterArr[String.fromCharCode(112)] = new Array ('п','p');

translitLetterArr[String.fromCharCode(114)] = new Array ('','');
middleLetterArr[String.fromCharCode(114)] = new Array ('р','r');

translitLetterArr[String.fromCharCode(115)] = new Array ('','');
middleLetterArr[String.fromCharCode(115)] = new Array ('с','s');

translitLetterArr[String.fromCharCode(116)] = new Array ('','');
middleLetterArr[String.fromCharCode(116)] = new Array ('т','t');

translitLetterArr[String.fromCharCode(117)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(117)] = new Array ('ыу','Йу','Ыу','йу','Ю','ю','ю','Ю','у','u');

translitLetterArr[String.fromCharCode(102)] = new Array ('','');
middleLetterArr[String.fromCharCode(102)] = new Array ('ф','f');

translitLetterArr[String.fromCharCode(120)] = new Array ('','');
middleLetterArr[String.fromCharCode(120)] = new Array ('х','x');

translitLetterArr[String.fromCharCode(99)] = new Array ('','');
middleLetterArr[String.fromCharCode(99)] = new Array ('ц','c');

translitLetterArr[String.fromCharCode(119)] = new Array ('','');
middleLetterArr[String.fromCharCode(119)] = new Array ('щ','w');

translitLetterArr[String.fromCharCode(35)] = new Array ('ъ+','ъ','','');
middleLetterArr[String.fromCharCode(35)] = new Array ('ъъ','Ъ','ъ','#');

translitLetterArr[String.fromCharCode(121)] = new Array ('','');
middleLetterArr[String.fromCharCode(121)] = new Array ('ы','y');

translitLetterArr[String.fromCharCode(39)] = new Array ('ь+','ь','','');
middleLetterArr[String.fromCharCode(39)] = new Array ('ьь','Ь','ь','\'');

translitLetterArr[String.fromCharCode(228)] = new Array ('','');
middleLetterArr[String.fromCharCode(228)] = new Array ('э','д');

translitLetterArr[String.fromCharCode(252)] = new Array ('','');
middleLetterArr[String.fromCharCode(252)] = new Array ('ю','ь');

translitLetterArr[String.fromCharCode(65)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(65)] = new Array ('ЫА','ЙА','Я','Я','А','A');

translitLetterArr[String.fromCharCode(66)] = new Array ('','');
middleLetterArr[String.fromCharCode(66)] = new Array ('Б','B');

translitLetterArr[String.fromCharCode(86)] = new Array ('','');
middleLetterArr[String.fromCharCode(86)] = new Array ('В','V');

translitLetterArr[String.fromCharCode(71)] = new Array ('','');
middleLetterArr[String.fromCharCode(71)] = new Array ('Г','G');

translitLetterArr[String.fromCharCode(68)] = new Array ('','');
middleLetterArr[String.fromCharCode(68)] = new Array ('Д','D');

translitLetterArr[String.fromCharCode(69)] = new Array ('Й+','Й','','');
middleLetterArr[String.fromCharCode(69)] = new Array ('ЙЕ','Э','Е','E');

translitLetterArr[String.fromCharCode(79)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(79)] = new Array ('ЫО','ЙО','Ё','Ё','О','O');

translitLetterArr[String.fromCharCode(214)] = new Array ('','');
middleLetterArr[String.fromCharCode(214)] = new Array ('Ё','Ц');

translitLetterArr[String.fromCharCode(72)] = new Array ('СХ+','Ц+','СХ','С+','З+','Ш+','Ш','Ц','С','З','','');
middleLetterArr[String.fromCharCode(72)] = new Array ('СХХ','ЦХ','Щ','СХ','ЗХ','ШХ','Щ','Ч','Ш','Ж','Х','H');

translitLetterArr[String.fromCharCode(90)] = new Array ('','');
middleLetterArr[String.fromCharCode(90)] = new Array ('З','Z');

translitLetterArr[String.fromCharCode(73)] = new Array ('','');
middleLetterArr[String.fromCharCode(73)] = new Array ('И','I');

translitLetterArr[String.fromCharCode(74)] = new Array ('','');
middleLetterArr[String.fromCharCode(74)] = new Array ('Й','J');

translitLetterArr[String.fromCharCode(75)] = new Array ('','');
middleLetterArr[String.fromCharCode(75)] = new Array ('К','K');

translitLetterArr[String.fromCharCode(76)] = new Array ('','');
middleLetterArr[String.fromCharCode(76)] = new Array ('Л','L');

translitLetterArr[String.fromCharCode(77)] = new Array ('','');
middleLetterArr[String.fromCharCode(77)] = new Array ('М','M');

translitLetterArr[String.fromCharCode(78)] = new Array ('','');
middleLetterArr[String.fromCharCode(78)] = new Array ('Н','N');

translitLetterArr[String.fromCharCode(80)] = new Array ('','');
middleLetterArr[String.fromCharCode(80)] = new Array ('П','P');

translitLetterArr[String.fromCharCode(82)] = new Array ('','');
middleLetterArr[String.fromCharCode(82)] = new Array ('Р','R');

translitLetterArr[String.fromCharCode(83)] = new Array ('','');
middleLetterArr[String.fromCharCode(83)] = new Array ('С','S');

translitLetterArr[String.fromCharCode(84)] = new Array ('','');
middleLetterArr[String.fromCharCode(84)] = new Array ('Т','T');

translitLetterArr[String.fromCharCode(85)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(85)] = new Array ('ЫУ','ЙУ','Ю','Ю','У','U');

translitLetterArr[String.fromCharCode(70)] = new Array ('','');
middleLetterArr[String.fromCharCode(70)] = new Array ('Ф','F');

translitLetterArr[String.fromCharCode(88)] = new Array ('','');
middleLetterArr[String.fromCharCode(88)] = new Array ('Х','X');

translitLetterArr[String.fromCharCode(67)] = new Array ('','');
middleLetterArr[String.fromCharCode(67)] = new Array ('Ц','C');

translitLetterArr[String.fromCharCode(87)] = new Array ('','');
middleLetterArr[String.fromCharCode(87)] = new Array ('Щ','W');

translitLetterArr[String.fromCharCode(89)] = new Array ('','');
middleLetterArr[String.fromCharCode(89)] = new Array ('Ы','Y');

translitLetterArr[String.fromCharCode(196)] = new Array ('','');
middleLetterArr[String.fromCharCode(196)] = new Array ('Э','Д');

translitLetterArr[String.fromCharCode(220)] = new Array ('','');
middleLetterArr[String.fromCharCode(220)] = new Array ('Ю','Ь');



translitLetterArr[String.fromCharCode(42)] = new Array ('а+','А+','г+','Г+','к+','К+','н+','Н+','о+','О+','у+','У+','х+','Х+','ы+','Ы+','а','А','г','Г','к','К','н','Н','о','О','у','У','х','Х','ы','Ы','','');    
middleLetterArr[String.fromCharCode(42)] = new Array   ('а*','А*','г*','Г*','к*','К*','н*','Н*','о*','О*','у*','У*','х*','Х*','ы*','Ы*','ә','Ә','ғ','Ғ','қ','Қ','ң','Ң','ө','Ө','ұ','Ұ','һ','Һ','і','І','*','*');


translitBackArr['ә'] = 'a*';
translitBackArr['Ә'] = 'А*';
translitBackArr['ғ'] = 'г*';
translitBackArr['Ғ'] = 'Г*';
translitBackArr['қ'] = 'к*';
translitBackArr['Қ'] = 'К*';
translitBackArr['ң'] = 'н*';
translitBackArr['Ң'] = 'Н*';
translitBackArr['ө'] = 'о*';
translitBackArr['Ө'] = 'О*';
translitBackArr['ұ'] = 'у*';
translitBackArr['Ұ'] = 'У*';
translitBackArr['һ'] = 'х*';
translitBackArr['Һ'] = 'Х*';
translitBackArr['і'] = 'ы*';
translitBackArr['І'] = 'Ы*';


translitBackArr['а'] = 'a';
translitBackArr['б'] = 'b';
translitBackArr['в'] = 'v';
translitBackArr['г'] = 'g';
translitBackArr['д'] = 'd';
translitBackArr['е'] = 'e';
translitBackArr['ё'] = 'jo';
translitBackArr['ж'] = 'zh';
translitBackArr['з'] = 'z';
translitBackArr['и'] = 'i';
translitBackArr['й'] = 'j';
translitBackArr['к'] = 'k';
translitBackArr['л'] = 'l';
translitBackArr['м'] = 'm';
translitBackArr['н'] = 'n';
translitBackArr['о'] = 'o';
translitBackArr['п'] = 'p';
translitBackArr['р'] = 'r';
translitBackArr['с'] = 's';
translitBackArr['т'] = 't';
translitBackArr['у'] = 'u';
translitBackArr['ф'] = 'f';
translitBackArr['х'] = 'h';
translitBackArr['ц'] = 'c';
translitBackArr['ч'] = 'ch';
translitBackArr['ш'] = 'sh';
translitBackArr['щ'] = 'w';
translitBackArr['ъ'] = '#';
translitBackArr['ы'] = 'y';
translitBackArr['ь'] = '\'';
translitBackArr['э'] = 'je';
translitBackArr['ю'] = 'ju';
translitBackArr['я'] = 'ja';
translitBackArr['А'] = 'A';
translitBackArr['Б'] = 'B';
translitBackArr['В'] = 'V';
translitBackArr['Г'] = 'G';
translitBackArr['Д'] = 'D';
translitBackArr['Е'] = 'E';
translitBackArr['Ё'] = 'JO';
translitBackArr['Ж'] = 'ZH';
translitBackArr['З'] = 'Z';
translitBackArr['И'] = 'I';
translitBackArr['Й'] = 'J';
translitBackArr['К'] = 'K';
translitBackArr['Л'] = 'L';
translitBackArr['М'] = 'M';
translitBackArr['Н'] = 'N';
translitBackArr['О'] = 'O';
translitBackArr['П'] = 'P';
translitBackArr['Р'] = 'R';
translitBackArr['С'] = 'S';
translitBackArr['Т'] = 'T';
translitBackArr['У'] = 'U';
translitBackArr['Ф'] = 'F';
translitBackArr['Х'] = 'H';
translitBackArr['Ц'] = 'C';
translitBackArr['Ч'] = 'CH';
translitBackArr['Ш'] = 'SH';
translitBackArr['Щ'] = 'W';
translitBackArr['Ъ'] = '##';
translitBackArr['Ы'] = 'Y';
translitBackArr['Ь'] = '\'\'';
translitBackArr['Э'] = 'JE';
translitBackArr['Ю'] = 'JU';
translitBackArr['Я'] = 'JA';
}


//TATAR
function initDefaultsTatar()
{
translitLetterArr[String.fromCharCode(97)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(97)] = new Array ('ыа','Йа','Ыа','йа','Я','я','я','Я','а','a');

translitLetterArr[String.fromCharCode(98)] = new Array ('','');
middleLetterArr[String.fromCharCode(98)] = new Array ('б','b');

translitLetterArr[String.fromCharCode(118)] = new Array ('','');
middleLetterArr[String.fromCharCode(118)] = new Array ('в','v');

translitLetterArr[String.fromCharCode(103)] = new Array ('','');
middleLetterArr[String.fromCharCode(103)] = new Array ('г','g');

translitLetterArr[String.fromCharCode(100)] = new Array ('','');
middleLetterArr[String.fromCharCode(100)] = new Array ('д','d');

translitLetterArr[String.fromCharCode(101)] = new Array ('Й+','й+','Й','й','','');
middleLetterArr[String.fromCharCode(101)] = new Array ('Йе','йе','Э','э','е','e');

translitLetterArr[String.fromCharCode(111)] = new Array ('ы+','Й+','Ы+','й+','Ы','ы','Й','й','','');
middleLetterArr[String.fromCharCode(111)] = new Array ('ыо','Йо','Ыо','йо','Ё','ё','Ё','ё','о','o');

translitLetterArr[String.fromCharCode(246)] = new Array ('','');
middleLetterArr[String.fromCharCode(246)] = new Array ('ё','ц');

translitLetterArr[String.fromCharCode(104)] = new Array ('сх+','Сх+','з+','Сх','с+','ш+','Ц+','Ш+','С+','сх','ц+','З+','Ш','с','ц','ш','З','С','Ц','з','','');
middleLetterArr[String.fromCharCode(104)] = new Array ('схх','Схх','зх','Щ','сх','шх','Цх','Шх','Сх','щ','цх','Зх','Щ','ш','ч','щ','Ж','Ш','Ч','ж','х','h');

translitLetterArr[String.fromCharCode(122)] = new Array ('','');
middleLetterArr[String.fromCharCode(122)] = new Array ('з','z');

translitLetterArr[String.fromCharCode(105)] = new Array ('','');
middleLetterArr[String.fromCharCode(105)] = new Array ('и','i');

translitLetterArr[String.fromCharCode(106)] = new Array ('','');
middleLetterArr[String.fromCharCode(106)] = new Array ('й','j');

translitLetterArr[String.fromCharCode(107)] = new Array ('','');
middleLetterArr[String.fromCharCode(107)] = new Array ('к','k');

translitLetterArr[String.fromCharCode(108)] = new Array ('','');
middleLetterArr[String.fromCharCode(108)] = new Array ('л','l');

translitLetterArr[String.fromCharCode(109)] = new Array ('','');
middleLetterArr[String.fromCharCode(109)] = new Array ('м','m');

translitLetterArr[String.fromCharCode(110)] = new Array ('','');
middleLetterArr[String.fromCharCode(110)] = new Array ('н','n');

translitLetterArr[String.fromCharCode(112)] = new Array ('','');
middleLetterArr[String.fromCharCode(112)] = new Array ('п','p');

translitLetterArr[String.fromCharCode(114)] = new Array ('','');
middleLetterArr[String.fromCharCode(114)] = new Array ('р','r');

translitLetterArr[String.fromCharCode(115)] = new Array ('','');
middleLetterArr[String.fromCharCode(115)] = new Array ('с','s');

translitLetterArr[String.fromCharCode(116)] = new Array ('','');
middleLetterArr[String.fromCharCode(116)] = new Array ('т','t');

translitLetterArr[String.fromCharCode(117)] = new Array ('ы+','Й+','Ы+','й+','Ы','й','ы','Й','','');
middleLetterArr[String.fromCharCode(117)] = new Array ('ыу','Йу','Ыу','йу','Ю','ю','ю','Ю','у','u');

translitLetterArr[String.fromCharCode(102)] = new Array ('','');
middleLetterArr[String.fromCharCode(102)] = new Array ('ф','f');

translitLetterArr[String.fromCharCode(120)] = new Array ('','');
middleLetterArr[String.fromCharCode(120)] = new Array ('х','x');

translitLetterArr[String.fromCharCode(99)] = new Array ('','');
middleLetterArr[String.fromCharCode(99)] = new Array ('ц','c');

translitLetterArr[String.fromCharCode(119)] = new Array ('','');
middleLetterArr[String.fromCharCode(119)] = new Array ('щ','w');

translitLetterArr[String.fromCharCode(35)] = new Array ('ъ+','ъ','','');
middleLetterArr[String.fromCharCode(35)] = new Array ('ъъ','Ъ','ъ','#');

translitLetterArr[String.fromCharCode(121)] = new Array ('','');
middleLetterArr[String.fromCharCode(121)] = new Array ('ы','y');

translitLetterArr[String.fromCharCode(39)] = new Array ('ь+','ь','','');
middleLetterArr[String.fromCharCode(39)] = new Array ('ьь','Ь','ь','\'');

translitLetterArr[String.fromCharCode(228)] = new Array ('','');
middleLetterArr[String.fromCharCode(228)] = new Array ('э','д');

translitLetterArr[String.fromCharCode(252)] = new Array ('','');
middleLetterArr[String.fromCharCode(252)] = new Array ('ю','ь');

translitLetterArr[String.fromCharCode(65)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(65)] = new Array ('ЫА','ЙА','Я','Я','А','A');

translitLetterArr[String.fromCharCode(66)] = new Array ('','');
middleLetterArr[String.fromCharCode(66)] = new Array ('Б','B');

translitLetterArr[String.fromCharCode(86)] = new Array ('','');
middleLetterArr[String.fromCharCode(86)] = new Array ('В','V');

translitLetterArr[String.fromCharCode(71)] = new Array ('','');
middleLetterArr[String.fromCharCode(71)] = new Array ('Г','G');

translitLetterArr[String.fromCharCode(68)] = new Array ('','');
middleLetterArr[String.fromCharCode(68)] = new Array ('Д','D');

translitLetterArr[String.fromCharCode(69)] = new Array ('Й+','Й','','');
middleLetterArr[String.fromCharCode(69)] = new Array ('ЙЕ','Э','Е','E');

translitLetterArr[String.fromCharCode(79)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(79)] = new Array ('ЫО','ЙО','Ё','Ё','О','O');

translitLetterArr[String.fromCharCode(214)] = new Array ('','');
middleLetterArr[String.fromCharCode(214)] = new Array ('Ё','Ц');

translitLetterArr[String.fromCharCode(72)] = new Array ('СХ+','Ц+','СХ','С+','З+','Ш+','Ш','Ц','С','З','','');
middleLetterArr[String.fromCharCode(72)] = new Array ('СХХ','ЦХ','Щ','СХ','ЗХ','ШХ','Щ','Ч','Ш','Ж','Х','H');

translitLetterArr[String.fromCharCode(90)] = new Array ('','');
middleLetterArr[String.fromCharCode(90)] = new Array ('З','Z');

translitLetterArr[String.fromCharCode(73)] = new Array ('','');
middleLetterArr[String.fromCharCode(73)] = new Array ('И','I');

translitLetterArr[String.fromCharCode(74)] = new Array ('','');
middleLetterArr[String.fromCharCode(74)] = new Array ('Й','J');

translitLetterArr[String.fromCharCode(75)] = new Array ('','');
middleLetterArr[String.fromCharCode(75)] = new Array ('К','K');

translitLetterArr[String.fromCharCode(76)] = new Array ('','');
middleLetterArr[String.fromCharCode(76)] = new Array ('Л','L');

translitLetterArr[String.fromCharCode(77)] = new Array ('','');
middleLetterArr[String.fromCharCode(77)] = new Array ('М','M');

translitLetterArr[String.fromCharCode(78)] = new Array ('','');
middleLetterArr[String.fromCharCode(78)] = new Array ('Н','N');

translitLetterArr[String.fromCharCode(80)] = new Array ('','');
middleLetterArr[String.fromCharCode(80)] = new Array ('П','P');

translitLetterArr[String.fromCharCode(82)] = new Array ('','');
middleLetterArr[String.fromCharCode(82)] = new Array ('Р','R');

translitLetterArr[String.fromCharCode(83)] = new Array ('','');
middleLetterArr[String.fromCharCode(83)] = new Array ('С','S');

translitLetterArr[String.fromCharCode(84)] = new Array ('','');
middleLetterArr[String.fromCharCode(84)] = new Array ('Т','T');

translitLetterArr[String.fromCharCode(85)] = new Array ('Ы+','Й+','Ы','Й','','');
middleLetterArr[String.fromCharCode(85)] = new Array ('ЫУ','ЙУ','Ю','Ю','У','U');

translitLetterArr[String.fromCharCode(70)] = new Array ('','');
middleLetterArr[String.fromCharCode(70)] = new Array ('Ф','F');

translitLetterArr[String.fromCharCode(88)] = new Array ('','');
middleLetterArr[String.fromCharCode(88)] = new Array ('Х','X');

translitLetterArr[String.fromCharCode(67)] = new Array ('','');
middleLetterArr[String.fromCharCode(67)] = new Array ('Ц','C');

translitLetterArr[String.fromCharCode(87)] = new Array ('','');
middleLetterArr[String.fromCharCode(87)] = new Array ('Щ','W');

translitLetterArr[String.fromCharCode(89)] = new Array ('','');
middleLetterArr[String.fromCharCode(89)] = new Array ('Ы','Y');

translitLetterArr[String.fromCharCode(196)] = new Array ('','');
middleLetterArr[String.fromCharCode(196)] = new Array ('Э','Д');

translitLetterArr[String.fromCharCode(220)] = new Array ('','');
middleLetterArr[String.fromCharCode(220)] = new Array ('Ю','Ь');



translitLetterArr[String.fromCharCode(42)] = new Array ('а+','А+','ж+','Ж+','н+','Н+','о+','О+','у+','У+','х+','Х+','а','А','ж','Ж','н','Н','о','О','у','У','х','Х','','');    
middleLetterArr[String.fromCharCode(42)] = new Array   ('а*','А*','ж*','Ж*','н*','Н*','о*','О*','у*','У*','х*','Х*','ә','Ә','җ','Җ','ң','Ң','ө','Ө','ү','Ү','һ','Һ','*','*');


translitBackArr['ә'] = 'a*';
translitBackArr['Ә'] = 'А*';
translitBackArr['җ'] = 'ж*';
translitBackArr['Җ'] = 'Ж*';
translitBackArr['ң'] = 'н*';
translitBackArr['Ң'] = 'Н*';
translitBackArr['ө'] = 'о*';
translitBackArr['Ө'] = 'О*';
translitBackArr['Ү'] = 'у*';
translitBackArr['ү'] = 'У*';
translitBackArr['һ'] = 'х*';
translitBackArr['Һ'] = 'Х*';


translitBackArr['а'] = 'a';
translitBackArr['б'] = 'b';
translitBackArr['в'] = 'v';
translitBackArr['г'] = 'g';
translitBackArr['д'] = 'd';
translitBackArr['е'] = 'e';
translitBackArr['ё'] = 'jo';
translitBackArr['ж'] = 'zh';
translitBackArr['з'] = 'z';
translitBackArr['и'] = 'i';
translitBackArr['й'] = 'j';
translitBackArr['к'] = 'k';
translitBackArr['л'] = 'l';
translitBackArr['м'] = 'm';
translitBackArr['н'] = 'n';
translitBackArr['о'] = 'o';
translitBackArr['п'] = 'p';
translitBackArr['р'] = 'r';
translitBackArr['с'] = 's';
translitBackArr['т'] = 't';
translitBackArr['у'] = 'u';
translitBackArr['ф'] = 'f';
translitBackArr['х'] = 'h';
translitBackArr['ц'] = 'c';
translitBackArr['ч'] = 'ch';
translitBackArr['ш'] = 'sh';
translitBackArr['щ'] = 'w';
translitBackArr['ъ'] = '#';
translitBackArr['ы'] = 'y';
translitBackArr['ь'] = '\'';
translitBackArr['э'] = 'je';
translitBackArr['ю'] = 'ju';
translitBackArr['я'] = 'ja';
translitBackArr['А'] = 'A';
translitBackArr['Б'] = 'B';
translitBackArr['В'] = 'V';
translitBackArr['Г'] = 'G';
translitBackArr['Д'] = 'D';
translitBackArr['Е'] = 'E';
translitBackArr['Ё'] = 'JO';
translitBackArr['Ж'] = 'ZH';
translitBackArr['З'] = 'Z';
translitBackArr['И'] = 'I';
translitBackArr['Й'] = 'J';
translitBackArr['К'] = 'K';
translitBackArr['Л'] = 'L';
translitBackArr['М'] = 'M';
translitBackArr['Н'] = 'N';
translitBackArr['О'] = 'O';
translitBackArr['П'] = 'P';
translitBackArr['Р'] = 'R';
translitBackArr['С'] = 'S';
translitBackArr['Т'] = 'T';
translitBackArr['У'] = 'U';
translitBackArr['Ф'] = 'F';
translitBackArr['Х'] = 'H';
translitBackArr['Ц'] = 'C';
translitBackArr['Ч'] = 'CH';
translitBackArr['Ш'] = 'SH';
translitBackArr['Щ'] = 'W';
translitBackArr['Ъ'] = '##';
translitBackArr['Ы'] = 'Y';
translitBackArr['Ь'] = '\'\'';
translitBackArr['Э'] = 'JE';
translitBackArr['Ю'] = 'JU';
translitBackArr['Я'] = 'JA';
}





// PERSIAN

function initDefaultsArabic()
{
//;
translitLetterArr[String.fromCharCode(59)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(59)] = new Array (String.fromCharCode(0x061b),';'); 
//initial
startLetterArr[String.fromCharCode(59)] = new Array (String.fromCharCode(0x061b),';');
//isolated
lonelyLetterArr[String.fromCharCode(59)] = new Array (String.fromCharCode(0x061b),';');
//final 
endLetterArr[String.fromCharCode(59)] = new Array (String.fromCharCode(0x061b),';');

//;
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x061b)] = String.fromCharCode(0x061b);
//medial to final
translitMiddleToLast[String.fromCharCode(0x061b)] = String.fromCharCode(0x061b);
//medial to latin
translitBackArr[String.fromCharCode(0x061b)] = ';';
//initial  to latin
translitBackArr[String.fromCharCode(0x061b)] = ';';
//isolated to latin
translitBackArr[String.fromCharCode(0x061b)] = ';';
//final to latin
translitBackArr[String.fromCharCode(0x061b)] = ';';




//?
translitLetterArr[String.fromCharCode(63)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(63)] = new Array (String.fromCharCode(0x061f),'?'); 
//initial
startLetterArr[String.fromCharCode(63)] = new Array (String.fromCharCode(0x061f),'?');
//isolated
lonelyLetterArr[String.fromCharCode(63)] = new Array (String.fromCharCode(0x061f),'?');
//final 
endLetterArr[String.fromCharCode(63)] = new Array (String.fromCharCode(0x061f),'?');

//?
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x061f)] = String.fromCharCode(0x061f);
//medial to final
translitMiddleToLast[String.fromCharCode(0x061f)] = String.fromCharCode(0x061f);
//medial to latin
translitBackArr[String.fromCharCode(0x061f)] = '?';
//initial  to latin
translitBackArr[String.fromCharCode(0x061f)] = '?';
//isolated to latin
translitBackArr[String.fromCharCode(0x061f)] = '?';
//final to latin
translitBackArr[String.fromCharCode(0x061f)] = '?';



//,
translitLetterArr[String.fromCharCode(44)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(44)] = new Array (String.fromCharCode(0x060c),','); 
//initial
startLetterArr[String.fromCharCode(44)] = new Array (String.fromCharCode(0x060c),',');
//isolated
lonelyLetterArr[String.fromCharCode(44)] = new Array (String.fromCharCode(0x060c),',');
//final 
endLetterArr[String.fromCharCode(44)] = new Array (String.fromCharCode(0x060c),',');

//,
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x060c)] = String.fromCharCode(0x060c);
//medial to final
translitMiddleToLast[String.fromCharCode(0x060c)] = String.fromCharCode(0x060c);
//medial to latin
translitBackArr[String.fromCharCode(0x060c)] = ',';
//initial  to latin
translitBackArr[String.fromCharCode(0x060c)] = ',';
//isolated to latin
translitBackArr[String.fromCharCode(0x060c)] = ',';
//final to latin
translitBackArr[String.fromCharCode(0x060c)] = ',';



//0
translitLetterArr[String.fromCharCode(48)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(48)] = new Array (String.fromCharCode(0x06F0),'0'); 
//initial
startLetterArr[String.fromCharCode(48)] = new Array (String.fromCharCode(0x06F0),'0');
//isolated
lonelyLetterArr[String.fromCharCode(48)] = new Array (String.fromCharCode(0x06F0),'0');
//final 
endLetterArr[String.fromCharCode(48)] = new Array (String.fromCharCode(0x06F0),'0');

//0
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F0)] = String.fromCharCode(0x06F0);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F0)] = String.fromCharCode(0x06F0);
//medial to latin
translitBackArr[String.fromCharCode(0x06F0)] = '0';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F0)] = '0';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F0)] = '0';
//final to latin
translitBackArr[String.fromCharCode(0x06F0)] = '0';



//1
translitLetterArr[String.fromCharCode(49)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(49)] = new Array (String.fromCharCode(0x06F1),'1'); 
//initial
startLetterArr[String.fromCharCode(49)] = new Array (String.fromCharCode(0x06F1),'1');
//isolated
lonelyLetterArr[String.fromCharCode(49)] = new Array (String.fromCharCode(0x06F1),'1');
//final 
endLetterArr[String.fromCharCode(49)] = new Array (String.fromCharCode(0x06F1),'1');

//1
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x0661)] = String.fromCharCode(0x06F1);
//medial to final
translitMiddleToLast[String.fromCharCode(0x0661)] = String.fromCharCode(0x06F1);
//medial to latin
translitBackArr[String.fromCharCode(0x06F1)] = '1';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F1)] = '1';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F1)] = '1';
//final to latin
translitBackArr[String.fromCharCode(0x06F1)] = '1';




//2
translitLetterArr[String.fromCharCode(50)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(50)] = new Array (String.fromCharCode(0x06F2),'2'); 
//initial
startLetterArr[String.fromCharCode(50)] = new Array (String.fromCharCode(0x06F2),'2');
//isolated
lonelyLetterArr[String.fromCharCode(50)] = new Array (String.fromCharCode(0x06F2),'2');
//final 
endLetterArr[String.fromCharCode(50)] = new Array (String.fromCharCode(0x06F2),'2');

//2
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F2)] = String.fromCharCode(0x06F2);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F2)] = String.fromCharCode(0x06F2);
//medial to latin
translitBackArr[String.fromCharCode(0x06F2)] = '2';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F2)] = '2';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F2)] = '2';
//final to latin
translitBackArr[String.fromCharCode(0x06F2)] = '2';




//3
translitLetterArr[String.fromCharCode(51)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(51)] = new Array (String.fromCharCode(0x06F3),'3'); 
//initial
startLetterArr[String.fromCharCode(51)] = new Array (String.fromCharCode(0x06F3),'3');
//isolated
lonelyLetterArr[String.fromCharCode(51)] = new Array (String.fromCharCode(0x06F3),'3');
//final 
endLetterArr[String.fromCharCode(51)] = new Array (String.fromCharCode(0x06F3),'3');


//3
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F3)] = String.fromCharCode(0x06F3);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F3)] = String.fromCharCode(0x06F3);
//medial to latin
translitBackArr[String.fromCharCode(0x06F3)] = '3';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F3)] = '3';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F3)] = '3';
//final to latin
translitBackArr[String.fromCharCode(0x06F3)] = '3';




//4
translitLetterArr[String.fromCharCode(52)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(52)] = new Array (String.fromCharCode(0x06F4),'4'); 
//initial
startLetterArr[String.fromCharCode(52)] = new Array (String.fromCharCode(0x06F4),'4');
//isolated
lonelyLetterArr[String.fromCharCode(52)] = new Array (String.fromCharCode(0x06F4),'4');
//final 
endLetterArr[String.fromCharCode(52)] = new Array (String.fromCharCode(0x06F4),'4');

//4
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F4)] = String.fromCharCode(0x06F4);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F4)] = String.fromCharCode(0x06F4);
//medial to latin
translitBackArr[String.fromCharCode(0x06F4)] = '4';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F4)] = '4';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F4)] = '4';
//final to latin
translitBackArr[String.fromCharCode(0x06F4)] = '4';




//5
translitLetterArr[String.fromCharCode(53)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(53)] = new Array (String.fromCharCode(0x06F5),'5'); 
//initial
startLetterArr[String.fromCharCode(53)] = new Array (String.fromCharCode(0x06F5),'5');
//isolated
lonelyLetterArr[String.fromCharCode(53)] = new Array (String.fromCharCode(0x06F5),'5');
//final 
endLetterArr[String.fromCharCode(53)] = new Array (String.fromCharCode(0x06F5),'5');

//5
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F5)] = String.fromCharCode(0x06F5);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F5)] = String.fromCharCode(0x06F5);
//medial to latin
translitBackArr[String.fromCharCode(0x06F5)] = '5';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F5)] = '5';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F5)] = '5';
//final to latin
translitBackArr[String.fromCharCode(0x06F5)] = '5';




//6
translitLetterArr[String.fromCharCode(54)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(54)] = new Array (String.fromCharCode(0x06F6),'6'); 
//initial
startLetterArr[String.fromCharCode(54)] = new Array (String.fromCharCode(0x06F6),'6');
//isolated
lonelyLetterArr[String.fromCharCode(54)] = new Array (String.fromCharCode(0x06F6),'6');
//final 
endLetterArr[String.fromCharCode(54)] = new Array (String.fromCharCode(0x06F6),'6');

//6
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F6)] = String.fromCharCode(0x06F6);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F6)] = String.fromCharCode(0x06F6);
//medial to latin
translitBackArr[String.fromCharCode(0x06F6)] = '6';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F6)] = '6';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F6)] = '6';
//final to latin
translitBackArr[String.fromCharCode(0x06F6)] = '6';




//7
translitLetterArr[String.fromCharCode(55)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(55)] = new Array (String.fromCharCode(0x06F7),'7'); 
//initial
startLetterArr[String.fromCharCode(55)] = new Array (String.fromCharCode(0x06F7),'7');
//isolated
lonelyLetterArr[String.fromCharCode(55)] = new Array (String.fromCharCode(0x06F7),'7');
//final 
endLetterArr[String.fromCharCode(55)] = new Array (String.fromCharCode(0x06F7),'7');

//7
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F7)] = String.fromCharCode(0x06F7);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F7)] = String.fromCharCode(0x06F7);
//medial to latin
translitBackArr[String.fromCharCode(0x06F7)] = '7';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F7)] = '7';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F7)] = '7';
//final to latin
translitBackArr[String.fromCharCode(0x06F7)] = '7';




//8
translitLetterArr[String.fromCharCode(56)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(56)] = new Array (String.fromCharCode(0x06F8),'8'); 
//initial
startLetterArr[String.fromCharCode(56)] = new Array (String.fromCharCode(0x06F8),'8');
//isolated
lonelyLetterArr[String.fromCharCode(56)] = new Array (String.fromCharCode(0x06F8),'8');
//final 
endLetterArr[String.fromCharCode(56)] = new Array (String.fromCharCode(0x06F8),'8');

//8
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F8)] = String.fromCharCode(0x06F8);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F8)] = String.fromCharCode(0x06F8);
//medial to latin
translitBackArr[String.fromCharCode(0x06F8)] = '8';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F8)] = '8';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F8)] = '8';
//final to latin
translitBackArr[String.fromCharCode(0x06F8)] = '8';





//9
translitLetterArr[String.fromCharCode(57)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(57)] = new Array (String.fromCharCode(0x06F9),'9'); 
//initial
startLetterArr[String.fromCharCode(57)] = new Array (String.fromCharCode(0x06F9),'9');
//isolated
lonelyLetterArr[String.fromCharCode(57)] = new Array (String.fromCharCode(0x06F9),'9');
//final 
endLetterArr[String.fromCharCode(57)] = new Array (String.fromCharCode(0x06F9),'9');


//9
//initial to isolated
translitFirstToLonely[String.fromCharCode(0x06F9)] = String.fromCharCode(0x06F9);
//medial to final
translitMiddleToLast[String.fromCharCode(0x06F9)] = String.fromCharCode(0x06F9);
//medial to latin
translitBackArr[String.fromCharCode(0x06F9)] = '9';
//initial  to latin
translitBackArr[String.fromCharCode(0x06F9)] = '9';
//isolated to latin
translitBackArr[String.fromCharCode(0x06F9)] = '9';
//final to latin
translitBackArr[String.fromCharCode(0x06F9)] = '9';



//a
translitLetterArr[String.fromCharCode(97)] = new Array (String.fromCharCode(0xfee0)+'+',String.fromCharCode(0xfee0),String.fromCharCode(0xfedf)+'+',String.fromCharCode(0xfedf),'','');
//medial
  middleLetterArr[String.fromCharCode(97)] = new Array (String.fromCharCode(0xfee0)+'a',String.fromCharCode(0xfefb),String.fromCharCode(0xfedf)+'a',String.fromCharCode(0xfefb),String.fromCharCode(0xFE8D),'a');  
//initial
   startLetterArr[String.fromCharCode(97)] = new Array (String.fromCharCode(0xfee0)+'a',String.fromCharCode(0xfefb),String.fromCharCode(0xfedf)+'a',String.fromCharCode(0xfefb),String.fromCharCode(0xFE8D),'a');
//isolated
  lonelyLetterArr[String.fromCharCode(97)] = new Array (String.fromCharCode(0xfee0)+'a',String.fromCharCode(0xfefb),String.fromCharCode(0xfedf)+'a',String.fromCharCode(0xfefb),String.fromCharCode(0xFE8D),'a'); 
//final 
     endLetterArr[String.fromCharCode(97)] = new Array (String.fromCharCode(0xfee0)+'a',String.fromCharCode(0xfefc),String.fromCharCode(0xfedf)+'a',String.fromCharCode(0xfefb),String.fromCharCode(0xFE8E),'a');


//a
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEfb)] = String.fromCharCode(0xFEfb);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEfb)] = String.fromCharCode(0xFEfc);
//medial to latin
translitBackArr[String.fromCharCode(0xFEfb)] = 'la';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEfb)] = 'la';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEfb)] = 'la';
//final to latin
translitBackArr[String.fromCharCode(0xFEfc)] = 'la';



//a
translitFirstToLonely[String.fromCharCode(0xFE8D)] = String.fromCharCode(0xFE8D);
translitMiddleToLast[String.fromCharCode(0xFE8D)] = String.fromCharCode(0xFE8E);
translitBackArr[String.fromCharCode(0xFE8D)] = 'a';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE8D)] = 'a';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE8D)] = 'a';
//final to latin
translitBackArr[String.fromCharCode(0xFE8E)] = 'a';


//b
translitLetterArr[String.fromCharCode(98)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(98)] = new Array (String.fromCharCode(0xFE92),'b');  
//initial
startLetterArr[String.fromCharCode(98)] = new Array (String.fromCharCode(0xFE91),'b');
//isolated
lonelyLetterArr[String.fromCharCode(98)] = new Array (String.fromCharCode(0xFE8F),'b');
//final 
endLetterArr[String.fromCharCode(98)] = new Array (String.fromCharCode(0xFE90),'b');

//b
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE91)] = String.fromCharCode(0xFE8f);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE92)] = String.fromCharCode(0xFE90);
//medial to latin
translitBackArr[String.fromCharCode(0xFE92)] = 'b';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE91)] = 'b';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE8f)] = 'b';
//final to latin
translitBackArr[String.fromCharCode(0xFE90)] = 'b';


//p
translitLetterArr[String.fromCharCode(112)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(112)] = new Array (String.fromCharCode(0xFE92),'p');  
//initial
startLetterArr[String.fromCharCode(112)] = new Array (String.fromCharCode(0xFE91),'p');
//isolated
lonelyLetterArr[String.fromCharCode(112)] = new Array (String.fromCharCode(0xfb56),'p');
//final 
endLetterArr[String.fromCharCode(112)] = new Array (String.fromCharCode(0xFE90),'p');

//p
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE91)] = String.fromCharCode(0xfb56);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE92)] = String.fromCharCode(0xFE90);
//medial to latin
translitBackArr[String.fromCharCode(0xFE92)] = 'p';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE91)] = 'p';
//isolated to latin
translitBackArr[String.fromCharCode(0xfb56)] = 'p';
//final to latin
translitBackArr[String.fromCharCode(0xFE90)] = 'p';

//t
translitLetterArr[String.fromCharCode(116)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(116)] = new Array (String.fromCharCode(0xFE98),'t');  
//initial
startLetterArr[String.fromCharCode(116)] = new Array (String.fromCharCode(0xFE97),'t');
//isolated
lonelyLetterArr[String.fromCharCode(116)] = new Array (String.fromCharCode(0xFE95),'t');
//final 
endLetterArr[String.fromCharCode(116)] = new Array (String.fromCharCode(0xFE96),'t');

//t
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE97)] = String.fromCharCode(0xFE95);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE98)] = String.fromCharCode(0xFE96);
//medial to latin
translitBackArr[String.fromCharCode(0xFE98)] = 't';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE97)] = 't';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE95)] = 't';
//final to latin
translitBackArr[String.fromCharCode(0xFE96)] = 't';

//T
translitLetterArr[String.fromCharCode(84)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(84)] = new Array (String.fromCharCode(0xFE9c),'T');  
//initial
startLetterArr[String.fromCharCode(84)] = new Array (String.fromCharCode(0xFE9b),'T');
//isolated
lonelyLetterArr[String.fromCharCode(84)] = new Array (String.fromCharCode(0xFE99),'T');
//final 
endLetterArr[String.fromCharCode(84)] = new Array (String.fromCharCode(0xFE9a),'T');

//T
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE9b)] = String.fromCharCode(0xFE99);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE9c)] = String.fromCharCode(0xFE9a);
//medial to latin
translitBackArr[String.fromCharCode(0xFE9c)] = 'T';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE9b)] = 'T';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE99)] = 'T';
//final to latin
translitBackArr[String.fromCharCode(0xFE9a)] = 'T';




//g
translitLetterArr[String.fromCharCode(103)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(103)] = new Array (String.fromCharCode(0xFEA0),'g');  
//initial
startLetterArr[String.fromCharCode(103)] = new Array (String.fromCharCode(0xFE9F),'g');
//isolated
lonelyLetterArr[String.fromCharCode(103)] = new Array (String.fromCharCode(0xFE9D),'g');
//final 
endLetterArr[String.fromCharCode(103)] = new Array (String.fromCharCode(0xFE9E),'g');


//g
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE9F)] = String.fromCharCode(0xFE9D);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEA0)] = String.fromCharCode(0xFE9E);
//medial to latin
translitBackArr[String.fromCharCode(0xFEA0)] = 'g';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE9f)] = 'g';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE9d)] = 'g';
//final to latin
translitBackArr[String.fromCharCode(0xFE9e)] = 'g';

//c
translitLetterArr[String.fromCharCode(99)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(99)] = new Array (String.fromCharCode(0xFB7D),'c');  
//initial
startLetterArr[String.fromCharCode(99)] = new Array (String.fromCharCode(0xFB7C),'c');
//isolated
lonelyLetterArr[String.fromCharCode(99)] = new Array (String.fromCharCode(0xFB7A),'c');
//final 
endLetterArr[String.fromCharCode(99)] = new Array (String.fromCharCode(0xFB7B),'c');


//c
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFB7C)] = String.fromCharCode(0xFB7A);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFB7D)] = String.fromCharCode(0xFB7B);
//medial to latin
translitBackArr[String.fromCharCode(0xFB7D)] = 'c';
//initial  to latin
translitBackArr[String.fromCharCode(0xFB7C)] = 'c';
//isolated to latin
translitBackArr[String.fromCharCode(0xFB7A)] = 'c';
//final to latin
translitBackArr[String.fromCharCode(0xFB7B)] = 'c';



//!!'
translitLetterArr[String.fromCharCode(39)] = new Array (String.fromCharCode(0x0667)+'+',String.fromCharCode(0x0667),String.fromCharCode(0x0663)+'+',String.fromCharCode(0x0663),String.fromCharCode(0x0669)+'+',String.fromCharCode(0x0669),String.fromCharCode(0x0666)+'+',String.fromCharCode(0x0666),String.fromCharCode(0xfe98)+'+',String.fromCharCode(0xFE98),String.fromCharCode(0xfe97)+'+',String.fromCharCode(0xFE97),String.fromCharCode(0xfe8d)+'+',String.fromCharCode(0xFE8d),String.fromCharCode(0xfefb)+'+',String.fromCharCode(0xFEfb),String.fromCharCode(0xfefc)+'+',String.fromCharCode(0xFEfc),'','');
//medial
middleLetterArr[String.fromCharCode(39)] = new Array (String.fromCharCode(0x0667)+'\'',String.fromCharCode(0xFEa4),String.fromCharCode(0x0663)+'\'',String.fromCharCode(0xFEcc),String.fromCharCode(0x0669)+'\'',String.fromCharCode(0xFEbc),String.fromCharCode(0x0666)+'\'',String.fromCharCode(0xFEc4),String.fromCharCode(0xfe98)+'\'',String.fromCharCode(0xFE93),String.fromCharCode(0xfe97)+'\'',String.fromCharCode(0xFE93),String.fromCharCode(0xfe8d)+'\'',String.fromCharCode(0xFE81),String.fromCharCode(0xfefb)+'\'',String.fromCharCode(0xFEf5),String.fromCharCode(0xfefc)+'\'',String.fromCharCode(0xFEf5),'\'','\'');
//initial
startLetterArr[String.fromCharCode(39)] = new Array (String.fromCharCode(0x0667)+'\'',String.fromCharCode(0xFEa3),String.fromCharCode(0x0663)+'\'', String.fromCharCode(0xFEcb),String.fromCharCode(0x0669)+'\'',String.fromCharCode(0xFEbb),String.fromCharCode(0x0666)+'\'',String.fromCharCode(0xFEc3),String.fromCharCode(0xfe98)+'\'',String.fromCharCode(0xFE93),String.fromCharCode(0xfe97)+'\'',String.fromCharCode(0xFE93),String.fromCharCode(0xfe8d)+'\'',String.fromCharCode(0xFE81),String.fromCharCode(0xfefb)+'\'',String.fromCharCode(0xFEf5),String.fromCharCode(0xfefc)+'\'',String.fromCharCode(0xFEf5),'\'','\'');
//isolated
lonelyLetterArr[String.fromCharCode(39)] = new Array (String.fromCharCode(0x0667)+'\'',String.fromCharCode(0xFEa1),String.fromCharCode(0x0663)+'\'',String.fromCharCode(0xFEc9),String.fromCharCode(0x0669)+'\'',String.fromCharCode(0xFEb9),String.fromCharCode(0x0666)+'\'',String.fromCharCode(0xFEc1),String.fromCharCode(0xfe98)+'\'',String.fromCharCode(0xFE93),String.fromCharCode(0xfe97)+'\'',String.fromCharCode(0xFE93),String.fromCharCode(0xfe8d)+'\'',String.fromCharCode(0xFE81),String.fromCharCode(0xfefb)+'\'',String.fromCharCode(0xFEf5),String.fromCharCode(0xfefc)+'\'',String.fromCharCode(0xFEf5),'\'','\'');
//final
endLetterArr[String.fromCharCode(39)] = new Array (String.fromCharCode(0x0667)+'\'',String.fromCharCode(0xFEa2),String.fromCharCode(0x0663)+'\'',String.fromCharCode(0xFEca),String.fromCharCode(0x0669)+'\'',String.fromCharCode(0xFEba),String.fromCharCode(0x0666)+'\'',String.fromCharCode(0xFEc2),String.fromCharCode(0xfe98)+'\'',String.fromCharCode(0xFE93),String.fromCharCode(0xfe97)+'\'',String.fromCharCode(0xFE94),String.fromCharCode(0xfe8d)+'\'',String.fromCharCode(0xFE82),String.fromCharCode(0xfefb)+'\'',String.fromCharCode(0xFEf5),String.fromCharCode(0xfefc)+'\'',String.fromCharCode(0xFEf6),'\'','\'');



//!!'
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEf5)] = String.fromCharCode(0xFEf5);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEf5)] = String.fromCharCode(0xFEf6);
//medial to latin
translitBackArr[String.fromCharCode(0xFEf5)] = 'la\'';
//initial  to
translitBackArr[String.fromCharCode(0xFEf5)] = 'la\'';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEf5)] = 'la\'';
//final to latin
translitBackArr[String.fromCharCode(0xFEf6)] = 'la\'';

//!!'
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE81)] = String.fromCharCode(0xFE81);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE81)] = String.fromCharCode(0xFE82);
//medial to latin
translitBackArr[String.fromCharCode(0xFE81)] = 'a\'';
//initial  to
translitBackArr[String.fromCharCode(0xFE81)] = 'a\'';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE81)] = 'a\'';
//final to latin
translitBackArr[String.fromCharCode(0xFE82)] = 'a\'';

//!!'
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE93)] = String.fromCharCode(0xFE93);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE93)] = String.fromCharCode(0xFE94);
//medial to latin
translitBackArr[String.fromCharCode(0xFE93)] = 't\'';
//initial  to
translitBackArr[String.fromCharCode(0xFE93)] = 't\'';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE93)] = 't\'';
//final to latin
translitBackArr[String.fromCharCode(0xFE94)] = 't\'';

//!!'
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEa3)] = String.fromCharCode(0xFEa1);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEa4)] = String.fromCharCode(0xFEa2);
//medial to latin
translitBackArr[String.fromCharCode(0xFEa4)] = '7\'';
//initial  to
translitBackArr[String.fromCharCode(0xFEa3)] = '7\'';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEa1)] = '7\'';
//final to latin
translitBackArr[String.fromCharCode(0xFEa2)] = '7\'';

//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEcb)] = String.fromCharCode(0xFEc9);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEcc)] = String.fromCharCode(0xFEca);
//medial to latin
translitBackArr[String.fromCharCode(0xFEcc)] = '3\'';
//initial  to
translitBackArr[String.fromCharCode(0xFEcb)] = '3\'';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEc9)] = '3\'';
//final to latin
translitBackArr[String.fromCharCode(0xFEca)] = '3\'';

//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEbb)] = String.fromCharCode(0xFEb9);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEbc)] = String.fromCharCode(0xFEba);
//medial to latin
translitBackArr[String.fromCharCode(0xFEbc)] = '9\'';
//initial  to
translitBackArr[String.fromCharCode(0xFEbb)] = '9\'';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEb9)] = '9\'';
//final to latin
translitBackArr[String.fromCharCode(0xFEba)] = '9\'';

//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEc3)] = String.fromCharCode(0xFEc1);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEc4)] = String.fromCharCode(0xFEc2);
//medial to latin
translitBackArr[String.fromCharCode(0xFEc4)] = '6\'';
//initial  to
translitBackArr[String.fromCharCode(0xFEc3)] = '6\'';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEc1)] = '6\'';
//final to latin
translitBackArr[String.fromCharCode(0xFEc2)] = '6\'';



//!!.
translitLetterArr[String.fromCharCode(46)] = new Array (String.fromCharCode(0x0667)+'+',String.fromCharCode (0x0667),String.fromCharCode(0x0663)+'+',String.fromCharCode (0x0663),String.fromCharCode(0x0669)+'+',String.fromCharCode (0x0669),String.fromCharCode(0x0666)+'+',String.fromCharCode (0x0666),'','');
//medial
middleLetterArr[String.fromCharCode(46)] = new Array (String.fromCharCode(0x0667)+'.', String.fromCharCode (0xFEa8),String.fromCharCode(0x0663)+'.', String.fromCharCode (0xFEd0),String.fromCharCode(0x0669)+'.', String.fromCharCode (0xFEc0),String.fromCharCode(0x0666)+'.', String.fromCharCode (0xFEc8),'.','.');
//initial
startLetterArr[String.fromCharCode(46)] = new Array (String.fromCharCode(0x0667)+'.', String.fromCharCode (0xFEa7),String.fromCharCode(0x0663)+'.', String.fromCharCode (0xFEcf),String.fromCharCode(0x0669)+'.', String.fromCharCode (0xFEbf),String.fromCharCode(0x0666)+'.', String.fromCharCode (0xFEc7),'.','.');
//isolated
lonelyLetterArr[String.fromCharCode(46)] = new Array (String.fromCharCode(0x0667)+'.', String.fromCharCode (0xFEa5),String.fromCharCode(0x0663)+'.', String.fromCharCode (0xFEcd),String.fromCharCode(0x0669)+'.', String.fromCharCode (0xFEbd),String.fromCharCode(0x0666)+'.', String.fromCharCode (0xFEc5),'.','.');
//final
endLetterArr[String.fromCharCode(46)] = new Array (String.fromCharCode(0x0667)+'.', String.fromCharCode (0xFEa6),String.fromCharCode(0x0663)+'.', String.fromCharCode (0xFEce),String.fromCharCode(0x0669)+'.', String.fromCharCode (0xFEbe),String.fromCharCode(0x0666)+'.', String.fromCharCode (0xFEc6),'.','.');

//!!.
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEa7)] = String.fromCharCode(0xFEa5);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEa8)] = String.fromCharCode(0xFEa6);
//medial to latin
translitBackArr[String.fromCharCode(0xFEa8)] = '7.';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEa7)] = '7.';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEa5)] = '7.';
//final to latin
translitBackArr[String.fromCharCode(0xFEa6)] = '7.';

//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEcf)] = String.fromCharCode(0xFEcd);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEd0)] = String.fromCharCode(0xFEce);
//medial to latin
translitBackArr[String.fromCharCode(0xFEd0)] = '3.';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEcf)] = '3.';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEcd)] = '3.';
//final to latin
translitBackArr[String.fromCharCode(0xFEce)] = '3.';

//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEbf)] = String.fromCharCode(0xFEbd);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEc0)] = String.fromCharCode(0xFEbe);
//medial to latin
translitBackArr[String.fromCharCode(0xFEc0)] = '9.';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEbf)] = '9.';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEbd)] = '9.';
//final to latin
translitBackArr[String.fromCharCode(0xFEbe)] = '9.';


//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEc7)] = String.fromCharCode(0xFEc5);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEc8)] = String.fromCharCode(0xFEc6);
//medial to latin
translitBackArr[String.fromCharCode(0xFEc8)] = '6.';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEc7)] = '6.';
//isolated to latin
translitBackArr[String.fromCharCode(0xfec5)] = '6.';
//final to latin
translitBackArr[String.fromCharCode(0xFEc6)] = '6.';


//d
translitLetterArr[String.fromCharCode(100)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(100)] = new Array (String.fromCharCode(0xFEA9),'d');  
//initial
startLetterArr[String.fromCharCode(100)] = new Array (String.fromCharCode(0xFEA9),'d');
//isolated
lonelyLetterArr[String.fromCharCode(100)] = new Array (String.fromCharCode(0xFEA9),'d');
//final 
endLetterArr[String.fromCharCode(100)] = new Array (String.fromCharCode(0xFEAA),'d');


//d
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEA9)] = String.fromCharCode(0xFEA9);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEA9)] = String.fromCharCode(0xFEAA);
//medial to latin
translitBackArr[String.fromCharCode(0xFEA9)] = 'd';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEa9)] = 'd';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEa9)] = 'd';
//final to latin
translitBackArr[String.fromCharCode(0xFEaa)] = 'd';


//D
translitLetterArr[String.fromCharCode(68)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(68)] = new Array (String.fromCharCode(0xFEab),'D');  
//initial
startLetterArr[String.fromCharCode(68)] = new Array (String.fromCharCode(0xFEab),'D');
//isolated
lonelyLetterArr[String.fromCharCode(68)] = new Array (String.fromCharCode(0xFEab),'D');
//final 
endLetterArr[String.fromCharCode(68)] = new Array (String.fromCharCode(0xFEac),'D');

//D
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEab)] = String.fromCharCode(0xFEab);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEab)] = String.fromCharCode(0xFEac);
//medial to latin
translitBackArr[String.fromCharCode(0xFEab)] = 'D';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEab)] = 'D';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEab)] = 'D';
//final to latin
translitBackArr[String.fromCharCode(0xFEac)] = 'D';


//r
translitLetterArr[String.fromCharCode(114)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(114)] = new Array (String.fromCharCode(0xFEAD),'r');  
//initial
startLetterArr[String.fromCharCode(114)] = new Array (String.fromCharCode(0xFEAD),'r');
//isolated
lonelyLetterArr[String.fromCharCode(114)] = new Array (String.fromCharCode(0xFEAD),'r');
//final 
endLetterArr[String.fromCharCode(114)] = new Array (String.fromCharCode(0xFEAE),'r');

//r
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEAD)] = String.fromCharCode(0xFEAD);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEAD)] = String.fromCharCode(0xFEAE);
//medial to latin
translitBackArr[String.fromCharCode(0xFEAD)] = 'r';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEad)] = 'r';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEad)] = 'r';
//final to latin
translitBackArr[String.fromCharCode(0xFEae)] = 'r';

//z
translitLetterArr[String.fromCharCode(122)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(122)] = new Array (String.fromCharCode(0xFEAF),'z');  
//initial
startLetterArr[String.fromCharCode(122)] = new Array (String.fromCharCode(0xFEAF),'z');
//isolated
lonelyLetterArr[String.fromCharCode(122)] = new Array (String.fromCharCode(0xFEAF),'z');
//final 
endLetterArr[String.fromCharCode(122)] = new Array (String.fromCharCode(0xFEB0),'z');
//z
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEAF)] = String.fromCharCode(0xFEAF);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEAF)] = String.fromCharCode(0xFEB0);
//medial to latin
translitBackArr[String.fromCharCode(0xFEAF)] = 'z';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEaf)] = 'z';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEaf)] = 'z';
//final to latin
translitBackArr[String.fromCharCode(0xFEb0)] = 'z';


//j
translitLetterArr[String.fromCharCode(106)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(106)] = new Array (String.fromCharCode(0xFB8A),'j');  
//initial
startLetterArr[String.fromCharCode(106)] = new Array (String.fromCharCode(0xFB8A),'j');
//isolated
lonelyLetterArr[String.fromCharCode(106)] = new Array (String.fromCharCode(0xFB8A),'j');
//final 
endLetterArr[String.fromCharCode(106)] = new Array (String.fromCharCode(0xFB8B),'j');
//j
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFB8A)] = String.fromCharCode(0xFB8A);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFB8A)] = String.fromCharCode(0xFB8B);
//medial to latin
translitBackArr[String.fromCharCode(0xFB8A)] = 'j';
//initial  to latin
translitBackArr[String.fromCharCode(0xFB8A)] = 'j';
//isolated to latin
translitBackArr[String.fromCharCode(0xFB8A)] = 'j';
//final to latin
translitBackArr[String.fromCharCode(0xFB8B)] = 'j';


//s
translitLetterArr[String.fromCharCode(115)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(115)] = new Array (String.fromCharCode(0xFEB4),'s');  
//initial
startLetterArr[String.fromCharCode(115)] = new Array (String.fromCharCode(0xFEB3),'s');
//isolated
lonelyLetterArr[String.fromCharCode(115)] = new Array (String.fromCharCode(0xFEB1),'s');
//final 
endLetterArr[String.fromCharCode(115)] = new Array (String.fromCharCode(0xFEB2),'s');

//s
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEB3)] = String.fromCharCode(0xFEB1);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEB4)] = String.fromCharCode(0xFEB2);
//medial to latin
translitBackArr[String.fromCharCode(0xFEB4)] = 's';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEb3)] = 's';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEb1)] = 's';
//final to latin
translitBackArr[String.fromCharCode(0xFEb2)] = 's';


//S
translitLetterArr[String.fromCharCode(83)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(83)] = new Array (String.fromCharCode(0xFEB8),'S');  
//initial
startLetterArr[String.fromCharCode(83)] = new Array (String.fromCharCode(0xFEB7),'S');
//isolated
lonelyLetterArr[String.fromCharCode(83)] = new Array (String.fromCharCode(0xFEB5),'S');
//final 
endLetterArr[String.fromCharCode(83)] = new Array (String.fromCharCode(0xFEB6),'S');

//S
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEB7)] = String.fromCharCode(0xFEB5);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEB8)] = String.fromCharCode(0xFEB6);
//medial to latin
translitBackArr[String.fromCharCode(0xFEB8)] = 'S';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEb7)] = 'S';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEb5)] = 'S';
//final to latin
translitBackArr[String.fromCharCode(0xFEb6)] = 'S';





//f
translitLetterArr[String.fromCharCode(102)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(102)]= new Array (String.fromCharCode(0xFED4),'f');  
//initial
startLetterArr[String.fromCharCode(102)]= new Array (String.fromCharCode(0xFED3),'f');
//isolated
lonelyLetterArr[String.fromCharCode(102)]= new Array (String.fromCharCode(0xFED1),'f');
//final 
endLetterArr[String.fromCharCode(102)]= new Array (String.fromCharCode(0xFED2),'f');
//f
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFED3)] = String.fromCharCode(0xFED1);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFED4)] = String.fromCharCode(0xFED2);
//medial to latin
translitBackArr[String.fromCharCode(0xFED4)] = 'f';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEd3)] = 'f';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEd1)] = 'f';
//final to latin
translitBackArr[String.fromCharCode(0xFEd2)] = 'f';



//q
translitLetterArr[String.fromCharCode(113)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(113)] = new Array (String.fromCharCode(0xFED8),'q');  
//initial
startLetterArr[String.fromCharCode(113)] = new Array (String.fromCharCode(0xFED7),'q');
//isolated
lonelyLetterArr[String.fromCharCode(113)] = new Array (String.fromCharCode(0xFED5),'q');
//final 
endLetterArr[String.fromCharCode(113)] = new Array (String.fromCharCode(0xFED6),'q');
//q
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFED7)] = String.fromCharCode(0xFED5);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFED8)] = String.fromCharCode(0xFED6);
//medial to latin
translitBackArr[String.fromCharCode(0xFED8)] = 'q';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEd7)] = 'q';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEd5)] = 'q';
//final to latin
translitBackArr[String.fromCharCode(0xFEd6)] = 'q';

//K
translitLetterArr[String.fromCharCode(75)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(75)] = new Array (String.fromCharCode(0xFB91),'K');  
//initial
startLetterArr[String.fromCharCode(75)] = new Array (String.fromCharCode(0xFB90),'K');
//isolated
lonelyLetterArr[String.fromCharCode(75)] = new Array (String.fromCharCode(0xFB8E),'K');
//final 
endLetterArr[String.fromCharCode(75)] = new Array (String.fromCharCode(0xFB8F),'K');
//K
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFB90)] = String.fromCharCode(0xFB8E);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFB91)] = String.fromCharCode(0xFB8F);
//medial to latin
translitBackArr[String.fromCharCode(0xFB91)] = 'K';
//initial  to latin
translitBackArr[String.fromCharCode(0xFB90)] = 'K';
//isolated to latin
translitBackArr[String.fromCharCode(0xFB8E)] = 'K';
//final to latin
translitBackArr[String.fromCharCode(0xFB8F)] = 'K';

//G
translitLetterArr[String.fromCharCode(71)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(71)] = new Array (String.fromCharCode(0xFB95),'G');  
//initial
startLetterArr[String.fromCharCode(71)] = new Array (String.fromCharCode(0xFB94),'G');
//isolated
lonelyLetterArr[String.fromCharCode(71)] = new Array (String.fromCharCode(0xFB92),'G');
//final 
endLetterArr[String.fromCharCode(71)] = new Array (String.fromCharCode(0xFED6),'G');
//G
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFB94)] = String.fromCharCode(0xFB92);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFB95)] = String.fromCharCode(0xFB93);
//medial to latin
translitBackArr[String.fromCharCode(0xFB95)] = 'G';
//initial  to latin
translitBackArr[String.fromCharCode(0xFB94)] = 'G';
//isolated to latin
translitBackArr[String.fromCharCode(0xFB92)] = 'G';
//final to latin
translitBackArr[String.fromCharCode(0xFB93)] = 'G';




//k
translitLetterArr[String.fromCharCode(107)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(107)] = new Array (String.fromCharCode(0xFEDC),'k');  
//initial
startLetterArr[String.fromCharCode(107)] = new Array (String.fromCharCode(0xFEDB),'k');
//isolated
lonelyLetterArr[String.fromCharCode(107)] = new Array (String.fromCharCode(0xFED9),'k');
//final 
endLetterArr[String.fromCharCode(107)] = new Array (String.fromCharCode(0xFEDA),'k');

//k
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEDB)] = String.fromCharCode(0xFED9);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEDC)] = String.fromCharCode(0xFEDA);
//medial to latin
translitBackArr[String.fromCharCode(0xFEDC)] = 'k';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEdb)] = 'k';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEd9)] = 'k';
//final to latin
translitBackArr[String.fromCharCode(0xFEda)] = 'k';




//l
translitLetterArr[String.fromCharCode(108)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(108)] = new Array (String.fromCharCode(0xFEe0),'l');  
//initial
startLetterArr[String.fromCharCode(108)] = new Array (String.fromCharCode(0xFEDf),'l');
//isolated
lonelyLetterArr[String.fromCharCode(108)] = new Array (String.fromCharCode(0xFEDd),'l');
//final 
endLetterArr[String.fromCharCode(108)] = new Array (String.fromCharCode(0xFEDe),'l');

//l
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEDf)] = String.fromCharCode(0xFEDd);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEe0)] = String.fromCharCode(0xFEDe);
//medial to latin
translitBackArr[String.fromCharCode(0xFEe0)] = 'l';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEdf)] = 'l';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEdd)] = 'l';
//final to latin
translitBackArr[String.fromCharCode(0xFEde)] = 'l';


//m
translitLetterArr[String.fromCharCode(109)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(109)] = new Array (String.fromCharCode(0xFEE4),'m');  
//initial
startLetterArr[String.fromCharCode(109)] = new Array (String.fromCharCode(0xFEE3),'m');
//isolated
lonelyLetterArr[String.fromCharCode(109)] = new Array (String.fromCharCode(0xFEE1),'m');
//final 
endLetterArr[String.fromCharCode(109)] = new Array (String.fromCharCode(0xFEE2),'m');


//m
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEE3)] = String.fromCharCode(0xFEE1);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEE4)] = String.fromCharCode(0xFEE2);
//medial to latin
translitBackArr[String.fromCharCode(0xFEE4)] = 'm';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEe3)] = 'm';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEe1)] = 'm';
//final to latin
translitBackArr[String.fromCharCode(0xFEe2)] = 'm';




//n
translitLetterArr[String.fromCharCode(110)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(110)] = new Array (String.fromCharCode(0xFEE8),'n');  
//initial
startLetterArr[String.fromCharCode(110)] = new Array (String.fromCharCode(0xFEE7),'n');
//isolated
lonelyLetterArr[String.fromCharCode(110)] = new Array (String.fromCharCode(0xFEE5),'n');
//final 
endLetterArr[String.fromCharCode(110)] = new Array (String.fromCharCode(0xFEE6),'n');

//n
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEE7)] = String.fromCharCode(0xFEE5);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEE8)] = String.fromCharCode(0xFEE6);
//medial to latin
translitBackArr[String.fromCharCode(0xFEE8)] = 'n';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEe7)] = 'n';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEe5)] = 'n';
//final to latin
translitBackArr[String.fromCharCode(0xFEe6)] = 'n';


//h
translitLetterArr[String.fromCharCode(104)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(104)] = new Array (String.fromCharCode(0xFEEC),'h');  
//initial
startLetterArr[String.fromCharCode(104)] = new Array (String.fromCharCode(0xFEEB),'h');
//isolated
lonelyLetterArr[String.fromCharCode(104)] = new Array (String.fromCharCode(0xFEE9),'h');
//final 
endLetterArr[String.fromCharCode(104)] = new Array (String.fromCharCode(0xFEEA),'h');

//h
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEEB)] = String.fromCharCode(0xFEE9);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEEC)] = String.fromCharCode(0xFEEA);
//medial to latin
translitBackArr[String.fromCharCode(0xFEEC)] = 'h';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEeb)] = 'h';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEe9)] = 'h';
//final to latin
translitBackArr[String.fromCharCode(0xFEea)] = 'h';



//w
translitLetterArr[String.fromCharCode(119)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(119)] = new Array (String.fromCharCode(0xFEED),'w');  
//initial
startLetterArr[String.fromCharCode(119)] = new Array (String.fromCharCode(0xFEED),'w');
//isolated
lonelyLetterArr[String.fromCharCode(119)] = new Array (String.fromCharCode(0xFEED),'w');
//final 
endLetterArr[String.fromCharCode(119)] = new Array (String.fromCharCode(0xFEEE),'w');


//w
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEED)] = String.fromCharCode(0xFEED);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEED)] = String.fromCharCode(0xFEEE);
//medial to latin
translitBackArr[String.fromCharCode(0xFEED)] = 'w';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEed)] = 'w';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEed)] = 'w';
//final to latin
translitBackArr[String.fromCharCode(0xFEee)] = 'w';


//y
translitLetterArr[String.fromCharCode(121)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(121)] = new Array (String.fromCharCode(0xFEf4),'y');  
//initial
startLetterArr[String.fromCharCode(121)] = new Array (String.fromCharCode(0xFEf3),'y');
//isolated
lonelyLetterArr[String.fromCharCode(121)] = new Array (String.fromCharCode(0xFEf1),'y');
//final 
endLetterArr[String.fromCharCode(121)] = new Array (String.fromCharCode(0xFEf2),'y');

//y
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEf3)] = String.fromCharCode(0xFEf1);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEf4)] = String.fromCharCode(0xFEf2);
//medial to latin
translitBackArr[String.fromCharCode(0xFEf4)] = 'y';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEf3)] = 'y';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEf1)] = 'y';
//final to latin
translitBackArr[String.fromCharCode(0xFEf2)] = 'y';


//Y
translitLetterArr[String.fromCharCode(89)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(89)] = new Array (String.fromCharCode(0xFBFF),'Y');  
//initial
startLetterArr[String.fromCharCode(89)] = new Array (String.fromCharCode(0xFBFE),'Y');
//isolated
lonelyLetterArr[String.fromCharCode(89)] = new Array (String.fromCharCode(0xFBFC),'Y');
//final 
endLetterArr[String.fromCharCode(89)] = new Array (String.fromCharCode(0xFBFD),'Y');

//Y
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFBFE)] = String.fromCharCode(0xFBFC);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFBFF)] = String.fromCharCode(0xFBFD);
//medial to latin
translitBackArr[String.fromCharCode(0xFBFF)] = 'Y';
//initial  to latin
translitBackArr[String.fromCharCode(0xFBFE)] = 'Y';
//isolated to latin
translitBackArr[String.fromCharCode(0xFBFC)] = 'Y';
//final to latin
translitBackArr[String.fromCharCode(0xFBFD)] = 'Y';


//_
translitLetterArr[String.fromCharCode(95)]= new Array (String.fromCharCode(0xfe8d)+'+',String.fromCharCode(0xfe8d),String.fromCharCode(0xfe8b)+'+',String.fromCharCode(0xfe8b),'','');
//medial
  middleLetterArr[String.fromCharCode(95)]= new Array (String.fromCharCode(0xfe8d)+'_',String.fromCharCode(0xfe87),String.fromCharCode(0xfe8b)+'_',String.fromCharCode(0xfef9),'','');  
//initial
   startLetterArr[String.fromCharCode(95)]= new Array (String.fromCharCode(0xfe8d)+'_',String.fromCharCode(0xfe87),String.fromCharCode(0xfe8b)+'_',String.fromCharCode(0xfef9),'','');
//isolated
  lonelyLetterArr[String.fromCharCode(95)]= new Array (String.fromCharCode(0xfe8d)+'_',String.fromCharCode(0xfe87),String.fromCharCode(0xfe8b)+'_',String.fromCharCode(0xfef9),'','');
//final 
     endLetterArr[String.fromCharCode(95)]= new Array (String.fromCharCode(0xfe8d)+'_',String.fromCharCode(0xfe88),String.fromCharCode(0xfe8b)+'_',String.fromCharCode(0xfefa),'','');


//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEf9)] = String.fromCharCode(0xFEf9);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEf9)] = String.fromCharCode(0xFEfa);
//medial to latin
translitBackArr[String.fromCharCode(0xFEf9)] = 'la_';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEf9)] = 'la_';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEf9)] = 'la_';
//final to latin
translitBackArr[String.fromCharCode(0xFEfa)] = 'la_';


//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE87)] = String.fromCharCode(0xFE87);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE87)] = String.fromCharCode(0xFE88);
//medial to latin
translitBackArr[String.fromCharCode(0xFE87)] = 'a_';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE87)] = 'a_';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE87)] = 'a_';
//final to latin
translitBackArr[String.fromCharCode(0xFE88)] = 'a_';


//^
translitLetterArr[String.fromCharCode(94)] = new Array (String.fromCharCode(0xfe8d)+'+',String.fromCharCode(0xfe8d),String.fromCharCode(0xfeed)+'+',String.fromCharCode(0xfeed),String.fromCharCode(0xfef3)+'+',String.fromCharCode(0xfef3),String.fromCharCode(0xfef4)+'+',String.fromCharCode(0xfef4),String.fromCharCode(0xfefb)+'+',String.fromCharCode(0xFEfb),String.fromCharCode(0xfefc)+'+',String.fromCharCode(0xFEfc),'','');
//medial
middleLetterArr[String.fromCharCode(94)]= new Array (String.fromCharCode(0xfe8d)+'^',String.fromCharCode(0xfe83),String.fromCharCode(0xfeed)+'^',String.fromCharCode(0xfe85),String.fromCharCode(0xfef3)+'^',String.fromCharCode(0xfe8c),String.fromCharCode(0xfef4)+'^',String.fromCharCode(0xfe8c),String.fromCharCode(0xfefb)+'^',String.fromCharCode(0xFEf7),String.fromCharCode(0xfefc)+'^',String.fromCharCode(0xFEf7),String.fromCharCode(0xFE80),'^');  
//initial
startLetterArr[String.fromCharCode(94)]= new Array (String.fromCharCode(0xfe8d)+'^',String.fromCharCode(0xfe83),String.fromCharCode(0xfeed)+'^',String.fromCharCode(0xfe85),String.fromCharCode(0xfef3)+'^',String.fromCharCode(0xfe8b),String.fromCharCode(0xfef4)+'^',String.fromCharCode(0xfe8b),String.fromCharCode(0xfefb)+'^',String.fromCharCode(0xFEf7),String.fromCharCode(0xfefc)+'^',String.fromCharCode(0xFEf7),String.fromCharCode(0xFE80),'^');
//isolated
lonelyLetterArr[String.fromCharCode(94)]= new Array (String.fromCharCode(0xfe8d)+'^',String.fromCharCode(0xfe83),String.fromCharCode(0xfeed)+'^',String.fromCharCode(0xfe85),String.fromCharCode(0xfef3)+'^',String.fromCharCode(0xfe89),String.fromCharCode(0xfef4)+'^',String.fromCharCode(0xfe89),String.fromCharCode(0xfefb)+'^',String.fromCharCode(0xFEf7),String.fromCharCode(0xfefc)+'^',String.fromCharCode(0xFEf7),String.fromCharCode(0xFE80),'^');
//final 
endLetterArr[String.fromCharCode(94)]= new Array (String.fromCharCode(0xfe8d)+'^',String.fromCharCode(0xfe84),String.fromCharCode(0xfeed)+'^',String.fromCharCode(0xfe86),String.fromCharCode(0xfef3)+'^',String.fromCharCode(0xfe8a),String.fromCharCode(0xfef4)+'^',String.fromCharCode(0xfe8a),String.fromCharCode(0xfefb)+'^',String.fromCharCode(0xFEf7),String.fromCharCode(0xfefc)+'^',String.fromCharCode(0xFEf8),String.fromCharCode(0xFE80),'^');


//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEf7)] = String.fromCharCode(0xFEf7);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEf7)] = String.fromCharCode(0xFEf8);
//medial to latin
translitBackArr[String.fromCharCode(0xFEf7)] = 'la^';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEf7)] = 'la^';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEf7)] = 'la^';
//final to latin
translitBackArr[String.fromCharCode(0xFEf8)] = 'la^';


//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE8b)] = String.fromCharCode(0xFE89);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE8c)] = String.fromCharCode(0xFE8a);
//medial to latin
translitBackArr[String.fromCharCode(0xFE8c)] = 'y^';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE8b)] = 'y^';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE89)] = 'y^';
//final to latin
translitBackArr[String.fromCharCode(0xFE8a)] = 'y^';

//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE85)] = String.fromCharCode(0xFE85);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE85)] = String.fromCharCode(0xFE86);
//medial to latin
translitBackArr[String.fromCharCode(0xFE85)] = 'w^';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE85)] = 'w^';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE85)] = 'w^';
//final to latin
translitBackArr[String.fromCharCode(0xFE86)] = 'w^';


//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE83)] = String.fromCharCode(0xFE83);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE83)] = String.fromCharCode(0xFE84);
//medial to latin
translitBackArr[String.fromCharCode(0xFE83)] = 'a^';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE83)] = 'a^';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE83)] = 'a^';
//final to latin
translitBackArr[String.fromCharCode(0xFE84)] = 'a^';


//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE80)] = String.fromCharCode(0xFE80);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE80)] = String.fromCharCode(0xFE80);
//medial to latin
translitBackArr[String.fromCharCode(0xFE80)] = '^';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE80)] = '^';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE80)] = '^';
//final to latin
translitBackArr[String.fromCharCode(0xFE80)] = '^';





//A
translitLetterArr[String.fromCharCode(65)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(65)] = new Array (String.fromCharCode(0xFEEF),'A');  
//initial
startLetterArr[String.fromCharCode(65)] = new Array (String.fromCharCode(0xFEEF),'A');
//isolated
lonelyLetterArr[String.fromCharCode(65)] = new Array (String.fromCharCode(0xFEEF),'A');
//final 
endLetterArr[String.fromCharCode(65)] = new Array (String.fromCharCode(0xFEF0),'A');


//A
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFEEF)] = String.fromCharCode(0xFEEF);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFEEF)] = String.fromCharCode(0xFEF0);
//medial to latin
translitBackArr[String.fromCharCode(0xFEEF)] = 'A';
//initial  to latin
translitBackArr[String.fromCharCode(0xFEef)] = 'A';
//isolated to latin
translitBackArr[String.fromCharCode(0xFEef)] = 'A';
//final to latin
translitBackArr[String.fromCharCode(0xFEf0)] = 'A';



//W
translitLetterArr[String.fromCharCode(87)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(87)] = new Array (String.fromCharCode(0xFE85),'W');  
//initial
startLetterArr[String.fromCharCode(87)] = new Array (String.fromCharCode(0xFE85),'W');
//isolated
lonelyLetterArr[String.fromCharCode(87)] = new Array (String.fromCharCode(0xFE85),'W');
//final 
endLetterArr[String.fromCharCode(87)] = new Array (String.fromCharCode(0xFE86),'W');

//W
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE85)] = String.fromCharCode(0xFE85);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE85)] = String.fromCharCode(0xFE86);
//medial to latin
translitBackArr[String.fromCharCode(0xFE85)] = 'W';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE85)] = 'W';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE85)] = 'W';
//final to latin
translitBackArr[String.fromCharCode(0xFE86)] = 'W';


//`
translitLetterArr[String.fromCharCode(96)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(96)]= new Array (String.fromCharCode(0xFE76),'`');  
//initial
startLetterArr[String.fromCharCode(96)]= new Array (String.fromCharCode(0xFE76),'`');
//isolated
lonelyLetterArr[String.fromCharCode(96)]= new Array (String.fromCharCode(0xFE76),'`');
//final 
endLetterArr[String.fromCharCode(96)]= new Array (String.fromCharCode(0xFE76),'`');

//`
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE76)] = String.fromCharCode(0xFE76);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE76)] = String.fromCharCode(0xFE76);
//medial to latin
translitBackArr[String.fromCharCode(0xFE76)] = '`';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE76)] = '`';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE76)] = '`';
//final to latin
translitBackArr[String.fromCharCode(0xFE76)] = '`';


//<
translitLetterArr[String.fromCharCode(60)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(60)]= new Array (String.fromCharCode(0xFE78),'<');  
//initial
startLetterArr[String.fromCharCode(60)]= new Array (String.fromCharCode(0xFE78),'<');
//isolated
lonelyLetterArr[String.fromCharCode(60)]= new Array (String.fromCharCode(0xFE78),'<');
//final 
endLetterArr[String.fromCharCode(60)]= new Array (String.fromCharCode(0xFE78),'<');

//<
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE78)] = String.fromCharCode(0xFE78);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE78)] = String.fromCharCode(0xFE78);
//medial to latin
translitBackArr[String.fromCharCode(0xFE78)] = '<';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE78)] = '<';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE78)] = '<';
//final to latin
translitBackArr[String.fromCharCode(0xFE78)] = '<';

//>
translitLetterArr[String.fromCharCode(62)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(62)]= new Array (String.fromCharCode(0xFE7a),'>');  
//initial
startLetterArr[String.fromCharCode(62)]= new Array (String.fromCharCode(0xFE7a),'>');
//isolated
lonelyLetterArr[String.fromCharCode(62)]= new Array (String.fromCharCode(0xFE7a),'>');
//final 
endLetterArr[String.fromCharCode(62)]= new Array (String.fromCharCode(0xFE7a),'>');

//>
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE7a)] = String.fromCharCode(0xFE7a);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE7a)] = String.fromCharCode(0xFE7a);
//medial to latin
translitBackArr[String.fromCharCode(0xFE7a)] = '>';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE7a)] = '>';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE7a)] = '>';
//final to latin
translitBackArr[String.fromCharCode(0xFE7a)] = '>';


//*
translitLetterArr[String.fromCharCode(42)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(42)]= new Array (String.fromCharCode(0xFE70),'*');  
//initial
startLetterArr[String.fromCharCode(42)]= new Array (String.fromCharCode(0xFE70),'*');
//isolated
lonelyLetterArr[String.fromCharCode(42)]= new Array (String.fromCharCode(0xFE70),'*');
//final 
endLetterArr[String.fromCharCode(42)]= new Array (String.fromCharCode(0xFE70),'*');

//*
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE70)] = String.fromCharCode(0xFE70);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE70)] = String.fromCharCode(0xFE70);
//medial to latin
translitBackArr[String.fromCharCode(0xFE70)] = '*';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE70)] = '*';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE70)] = '*';
//final to latin
translitBackArr[String.fromCharCode(0xFE70)] = '*';


//{
translitLetterArr[String.fromCharCode(123)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(123)]= new Array (String.fromCharCode(0xFE72),'{');  
//initial
startLetterArr[String.fromCharCode(123)]= new Array (String.fromCharCode(0xFE72),'{');
//isolated
lonelyLetterArr[String.fromCharCode(123)]= new Array (String.fromCharCode(0xFE72),'{');
//final 
endLetterArr[String.fromCharCode(123)]= new Array (String.fromCharCode(0xFE72),'{');

//{
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE72)] = String.fromCharCode(0xFE72);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE72)] = String.fromCharCode(0xFE72);
//medial to latin
translitBackArr[String.fromCharCode(0xFE72)] = '{';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE72)] = '{';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE72)] = '{';
//final to latin
translitBackArr[String.fromCharCode(0xFE72)] = '{';


//}
translitLetterArr[String.fromCharCode(125)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(125)]= new Array (String.fromCharCode(0xFE74),'}');  
//initial
startLetterArr[String.fromCharCode(125)]= new Array (String.fromCharCode(0xFE74),'}');
//isolated
lonelyLetterArr[String.fromCharCode(125)]= new Array (String.fromCharCode(0xFE74),'}');
//final 
endLetterArr[String.fromCharCode(125)]= new Array (String.fromCharCode(0xFE74),'}');

//}
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE74)] = String.fromCharCode(0xFE74);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE74)] = String.fromCharCode(0xFE74);
//medial to latin
translitBackArr[String.fromCharCode(0xFE74)] = '}';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE74)] = '}';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE74)] = '}';
//final to latin
translitBackArr[String.fromCharCode(0xFE74)] = '}';


//~
translitLetterArr[String.fromCharCode(126)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(126)]= new Array (String.fromCharCode(0xFE7c),'~');  
//initial
startLetterArr[String.fromCharCode(126)]= new Array (String.fromCharCode(0xFE7c),'~');  
//isolated
lonelyLetterArr[String.fromCharCode(126)]= new Array (String.fromCharCode(0xFE7c),'~');  
//final 
endLetterArr[String.fromCharCode(126)]= new Array (String.fromCharCode(0xFE7c),'~');  

//~
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE7c)] = String.fromCharCode(0xFE7c);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE7c)] = String.fromCharCode(0xFE7c);
//medial to latin
translitBackArr[String.fromCharCode(0xFE7c)] = '~';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE7c)] = '~';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE7c)] = '~';
//final to latin
translitBackArr[String.fromCharCode(0xFE7c)] = '~';


//#
translitLetterArr[String.fromCharCode(35)] = new Array ('','');
//medial
middleLetterArr[String.fromCharCode(35)]= new Array (String.fromCharCode(0xFE7e),'#');  
//initial
startLetterArr[String.fromCharCode(35)]= new Array (String.fromCharCode(0xFE7e),'#');  
//isolated
lonelyLetterArr[String.fromCharCode(35)]= new Array (String.fromCharCode(0xFE7e),'#');  
//final 
endLetterArr[String.fromCharCode(35)]= new Array (String.fromCharCode(0xFE7e),'#');  

//#
//initial to isolated
translitFirstToLonely[String.fromCharCode(0xFE7e)] = String.fromCharCode(0xFE7e);
//medial to final
translitMiddleToLast[String.fromCharCode(0xFE7e)] = String.fromCharCode(0xFE7e);
//medial to latin
translitBackArr[String.fromCharCode(0xFE7e)] = '#';
//initial  to latin
translitBackArr[String.fromCharCode(0xFE7e)] = '#';
//isolated to latin
translitBackArr[String.fromCharCode(0xFE7e)] = '#';
//final to latin
translitBackArr[String.fromCharCode(0xFE7e)] = '#';


isArabic = true;
}






function ruleChanged(id, transLetter)
{
	var newVal = window.document.getElementById('char' + id).value;
	if(newVal.length == 1){
		if (!translitLetterArr[newVal]){
			translitLetterArr[newVal] = new Array ('','');
			middleLetterArr[newVal] = new Array (transLetter,newVal);		
		}
		else{
			translitLetterArr[newVal][translitLetterArr[newVal].length] = '';
			middleLetterArr[newVal][translitLetterArr[newVal].length] = middleLetterArr[newVal][translitLetterArr[newVal].length-1];					middleLetterArr[newVal][translitLetterArr[newVal].length-1] = transLetter;
			
		}
	}
	else{
		if(newVal.length > 2){
			alert("Bad Value");
		}
		else{
			var firstChar = newVal.charAt(0);
			var secondChar = newVal.charAt(1);
			if (!translitLetterArr[firstChar]){
				alert("Bad Value");
            	}
			else{
				var tmpArr = new Array();//translitLetterArr[secondChar].slice(0, translitLetterArr[secondChar]-2);
				var tmpArr2 = new Array();
				for (ii=0;ii<translitLetterArr[firstChar].length;ii++){
					if (translitLetterArr[firstChar][ii] != ''){
						tmpArr[tmpArr.length] = translitLetterArr[firstChar][ii] + '+'; 
						tmpArr[tmpArr.length] = translitLetterArr[firstChar][ii];
						tmpArr2[tmpArr2.length] = middleLetterArr[firstChar][ii] + middleLetterArr[firstChar][middleLetterArr[firstChar].length-2]; 
						tmpArr2[tmpArr2.length] = middleLetterArr[firstChar][ii];
					}
					else{
						tmpArr2[tmpArr2.length] = transLetter;
						tmpArr[tmpArr.length] = middleLetterArr[firstChar][middleLetterArr[firstChar].length-2];
					}
				}
				var helpArr = tmpArr.concat(translitLetterArr[secondChar]);
				translitLetterArr[secondChar] = helpArr;
				helpArr = tmpArr2.concat(middleLetterArr[secondChar]);
				middleLetterArr[secondChar] = helpArr;
			}
		}
	}
}

function savetext_update()
{
	var stc = window.document.searchform.setsavetxt.checked?1:0;
	if (stc) {
		document.searchform.subject.createTextRange().execCommand("Copy");
	}
	set_cookie("st",escape(stc));
	return false;
}

function addchar(val) // virtual keys
{
	setfoc();
	
	if (document.selection){
		with(document.selection.createRange()) {text = val; collapse(); select()} 
	}
	else if (typeof document.searchform.subject.selectionStart != 'undefined'){
    var tb = document.searchform.subject;
    var bfore, aftr, selecton;
	bfore= tb.value.substring(0, tb.selectionStart)
    selecton = tb.value.substring(tb.selectionStart, tb.selectionEnd)
    aftr = tb.value.substring(tb.selectionEnd, tb.value.length)
    
    tb.value= String.concat(bfore, selecton, val, aftr)
  }
	return false;
}


function upgradeclipboard()
{
	if (window.document.searchform.setsavetxt.checked) {document.searchform.subject.createTextRange().execCommand("Copy");}
	return false;
}

function setlangpicture()
{
	//document.ruslat.src = swrus_src;
}

function setlat()
{
	language=1;
	document.images['ruslat'].src = swlat_src; 
	setfoc();
	return false;
}

function setrus()
{
	language=0;
	document.images['ruslat'].src = swrus_src; 
	setfoc();
	return false;
}

function AkeyIsDown()
{
	var code = window.event.keyCode;
	if (code==27) {
		event.returnValue=false;
	}
	if ((code==13)&&(event.altKey)) {
		/*document.forms.searchform.target='_blank';shortcut_service('orfochk'); */
		event.returnValue=false;
	}
	if ((code==13)&&(event.ctrlKey)) {
		/*document.forms.searchform.target='_blank';shortcut_service('orfochk'); */
		event.returnValue=false;
	}
	return false;
}

function gettextareaval(thetextarea)
{
	if (document.selection){
		var cursor_pos_selection = document.selection.createRange();
		if (cursor_pos_selection.text) {
			return cursor_pos_selection.text; 
		} 
		else {
			return thetextarea.value;
		}
	} 
	return thetextarea.value;
}

function btcvalue(thetextarea) 
{
	var s2 = document.selection.createRange();
	with (s2) {
		collapse(false); 
		moveStart("textedit",-1);
	}
	var s22 = s2.htmlText.substring(0,s2.htmlText.indexOf("</TEXTAREA>"));
	return (s22.substring(s22.lastIndexOf(">")+1,s22.length));
}

function translate_letter(e)
{
	var keyCode = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;
	var txt = String.fromCharCode(keyCode);

	if (processhtmltags&&(txt=='<')) {
		prelanguage=language; 
		setlat();
	}
	if (processhtmltags&&(txt=='>')) {
		if(prelanguage) setlat(); else setrus();
	}
	if (processbbcodetags&&(txt=='[')) {
		prelanguage=language; 
		setlat();
	}
	if (processbbcodetags&&(txt==']')) {
		if(prelanguage) setlat(); else setrus();
	}
	if (!translitLetterArr[txt] && !isArabic)
	{
		return false; // no need to process the letter
	}

	if (document.selection && !is_opera){
		e.keyCode=0;
		with(document.selection.createRange()) {
			text = '';
			collapse();
		}	
		cursor_pos_selection = document.selection.createRange();

		cursor_pos_selection.select();
		cursor_pos_selection.text = '%';
		cursor_pos_selection.moveStart("word",-3);
		pretxt = cursor_pos_selection.text.substring(0,cursor_pos_selection.text.length-1);
		cursor_pos_selection.text = '';
		cursor_pos_selection.collapse();
        if (language)
        {
        	result = pretxt+translatesymboltolatin(txt);  // to latin
        }
        else
        {
			if (!translitLetterArr[txt])
			{
				if (wasFirstLetter)
				{
					result = pretxt.substr(0,pretxt.length-1) + translitFirstToLonely[pretxt.substr(pretxt.length-1,pretxt.length)] + txt;
				}
				else
				{
					if (!isFirstLetter)
					{
						result = pretxt.substr(0,pretxt.length-1) + translitMiddleToLast[pretxt.substr(pretxt.length-1,pretxt.length)] + txt;				
					}
					else
					{
						result = pretxt+txt;
					}
				}
				isFirstLetter = true;
				wasFirstLetter = false;
			}
			else
			{
				result = translatesymboltocyrillic(pretxt+txt); // to cyrillic
			}
        }
		with(document.selection.createRange()) {
			select();
			text = result;
			collapse();
		}	
	}
	else{
		if (e.which==0){
			return false;
		}
		if (keyCode&&keyCode>31&&(!(e.ctrlKey||e.altKey)))
		{

	        if (e.preventDefault)
	       	{
	       		e.preventDefault();
	       	}

			var tb = document.searchform.subject;
	   		var pretxt, aftr, selecton;
			var selStart = tb.selectionStart+1;
			var selEnd = tb.selectionEnd+1;
			pretxt= tb.value.substring(0, tb.selectionStart)
			selecton = tb.value.substring(tb.selectionStart, tb.selectionEnd)
			aftr = tb.value.substring(tb.selectionEnd, tb.value.length)
		    if (language)
	        {
	        	result = pretxt+translatesymboltolatin(txt)+aftr;  // to latin
		    }
	        else
		    {
				if (!translitLetterArr[txt])
				{
					if (wasFirstLetter)
					{
						result = pretxt.substr(0,pretxt.length-1) + translitFirstToLonely[pretxt.substr(pretxt.length-1,pretxt.length)] + txt +aftr;
					}
					else
					{
						if (!isFirstLetter)
						{
							result = pretxt.substr(0,pretxt.length-1) + translitMiddleToLast[pretxt.substr(pretxt.length-1,pretxt.length)] + txt+aftr;				
						}
						else
						{
							result = pretxt+txt;
						}
					}
					isFirstLetter = true;
					wasFirstLetter = false;
				}
				else
				{			
	        		result = translatesymboltocyrillic(pretxt+txt)+aftr; // to cyrillic
				}
		    }
			tb.value= result;
			tb.focus();   
			tb.setSelectionRange(selStart, selEnd);
		}
	}	
	return false;
}

function translatesymboltocyrillic(txt)
{
	var pretxt = txt.substr(0,txt.length-1);
	var last = txt.substr(txt.length-1,1);
	var lat = translitLetterArr[last];
	if (isArabic && (isFirstLetter || txt.length==1))
	{
		var rus = startLetterArr[last];
		isFirstLetter = false;
		wasFirstLetter = true;
	}
	else
	{
		var rus = middleLetterArr[last];
		wasFirstLetter = false;
	}
	if (lat)
	{

		for (var ii=0; ii<lat.length; ii++)
		{
			var pos = pretxt.length>lat[ii].length?(pretxt.length-lat[ii].length):0;

			if (lat[ii]==pretxt.substr(pos,pretxt.length-pos)) 
			{

				return pretxt.substr(0,pretxt.length-lat[ii].length)+rus[ii];
			}
		}
	}
	return txt;
}

function translatesymboltolatin(symb)
{
	return translitBackArr[symb]?translitBackArr[symb]:symb;
}

function translateAlltoCyrillic()
{
		var transliterateit = 1;
		var swithchesoff = /\]|\>/;
		var is_selection_flag = 1;
		var userselection;
		if (document.selection){
			userselection = document.selection.createRange();
		}
		else if (typeof document.searchform.subject.selectionStart != 'undefined'){
    			var tb = document.searchform.subject;
    			userselection = tb.value.substring(tb.selectionStart, tb.selectionEnd)
		}
		var txt = userselection.text;
		if (userselection==null || userselection.text==null || userselection.parentElement==null || userselection.parentElement().type!="textarea") 
		{
			// no text selected, all the text in the textarea is to be processed
			is_selection_flag = 0;
			txt = document.searchform.subject.value;
		}
		var txtnew = txt.substr(0,1);
		if (((txtnew=="<")&&processhtmltags)||((txtnew=="[")&&processbbcodetags)) transliterateit=0;
		if (txtnew.match(swithchesoff)) transliterateit=1;
		if (transliterateit) {txtnew = translatesymboltocyrillic(txtnew);}
		var symb = "";
		for (kk=1;kk<txt.length;kk++)
		{
			symbbb = txt.substr(kk,1);
			if ((symbbb=="<"&&processhtmltags)||(symbbb=="["&&processbbcodetags)) transliterateit=0;
			if (symbbb.match(swithchesoff)) transliterateit=1;
			if (transliterateit)
			{
				symb = translatesymboltocyrillic(txtnew.substr(txtnew.length-1,1)+symbbb);
			}
			else
			{
				symb = txtnew.substr(txtnew.length-1,1)+symbbb;
			}
			txtnew = txtnew.substr(0,txtnew.length-1) + symb;
		}
		if (is_selection_flag)
		{
			userselection.text = txtnew; userselection.collapse(); userselection.select();
		}
		else
		{
			document.searchform.subject.value = txtnew;
			setfoc();
		}
	return false;
}

function translateAlltoLatin()
{
		var is_selection_flag = 1;
		var userselection;
		if (document.selection){
			userselection = document.selection.createRange();
		}
		else if (typeof document.searchform.subject.selectionStart != 'undefined'){
    			var tb = document.searchform.subject;
    			userselection = tb.value.substring(tb.selectionStart, tb.selectionEnd)
		}
		var txt = userselection.text;

		if (userselection==null || userselection.text==null || userselection.parentElement==null || userselection.parentElement().type!="textarea") 
		{
			// no text selected, all the text in the textarea is to be processed
			is_selection_flag = 0;
			txt = document.searchform.subject.value;
		}
		txtnew="";
		var symb = "";
		for (kk=0;kk<txt.length;kk++)
		{
			symb = translatesymboltolatin(txt.substr(kk,1));
			txtnew = txtnew.substr(0,txtnew.length) + symb;
		}
		if (is_selection_flag)
		{
			userselection.text = txtnew; userselection.collapse(); userselection.select();
		}
		else
		{
			document.searchform.subject.value = txtnew;
			setfoc();
		}
	return false;
}

function Pastetrans()
{ 
	if (!window.clipboardData){
		alert("Works only with Explorer");
		return false;
	}
	var savedtext = window.clipboardData.getData("Text");
	setfoc();
	if (savedtext!='null') document.selection.createRange().text = savedtext; 
	document.selection.createRange().select();
	return false;
}

function Copytrans()
{
	setfoc(); 
	var userselection;
	if (document.selection){
		userselection = document.selection.createRange();
		if (userselection.text!="") {
			userselection.execCommand("Copy");
		} 
		else { 
			document.searchform.subject.createTextRange().execCommand("Copy");
		}
	}
	else if (typeof document.searchform.subject.selectionStart != 'undefined'){
		var tb = document.searchform.subject;
		userselection = tb.value.substring(tb.selectionStart, tb.selectionEnd)
		
		alert("Works only with Explorer");
	} 

	return false;
}

function SendEMail()
{
  var mail_body;
  var mail_subject;
  var mail_addr; 

    mail_body = document.searchform.subject.value;
    mail_addr = document.getElementById("targetEmail").value;
    mail_subject = document.getElementById("emailTopic").value;

  var url = 'mailto:';
  url += mail_addr;
  url += '?body=' + mail_body;/*escape(mail_body);*/
  url += '&subject=' + mail_subject;
  location.href = url;
}

function goGoogle()
{
//alert("1");
  //var url = './redirect.htm';
  //url+='?q='+encodeURIComponent(document.searchform.subject.value)+'&ie=UTF-8&oe=UTF-8';
document.searchform.q.value = document.searchform.subject.value;
//alert(document.searchform.q.value);
//url+='?q='+document.searchform.subject.value;
//alert(url);

//Start(url);
//location.href = url;
//url = "http://www.google.com/custom?q=word&sa=%CF%EE%E8%F1%EA+%E2+Google&client=pub-3013075328887088&forid=1&ie=windows-1251&oe=windows-1251&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=ru";
//document.searchform.action = url;
}



function changeLocationToGoogle()
{
//alert('1');
  var url = location.href;
  var temp = new Array();
//alert('11');
  temp = url.split('?q=');
//alert('12');
document.form1.q.value=encodeURIComponent(temp[1]);
//alert('2');
document.form1.submit();

}

function Cleartrans()
{
	setfoc(); 
	if(document.selection){
		rr = document.selection.createRange(); 
		if (rr.text!="") {
			rr.text=""; 
			rr.collapse(); 
			rr.select();
		} 
		else {
			document.searchform.subject.value = "";
		}
	}
	else{
		var textinputform = window.document.searchform.subject; 
		var p1 = textinputform.selectionStart; 
		var p2 = textinputform.selectionEnd; 
		if (p1==p2) {
			textinputform.value="";
		} else {
			textinputform.value = textinputform.value.substring(0, p1)+textinputform.value.substring(p2);
		} 
		textinputform.setSelectionRange(p1,p1);
	}
	setfoc();
	return false;
}

function clipboardinfo()
{
	open("/info/clipboard.shtml", "displayWindow", "scrollbars=yes,status=no,toolbar=no,menubar=no");
	return false;
}

if (document.images) {
	swrus_src = new Image; 
	swrus_src = "OKBOARD_Files/swrus.gif";
	swlat_src = new Image; 
	swlat_src = "OKBOARD_Files/swlat.gif";
}

var undotext = new Array('');
var undodepth = 10;

function savechanges()
{
	var undotext_last = undotext.length?undotext[undotext.length-1]:'';
	if (undotext_last != document.searchform.subject.value) 
	{
		with (document.searchform.rtext) 
		{
			if (value == '> ') 
			{
				value = '<-';
			}
		}
		undotext.push(document.searchform.subject.value);
		if (undotext.length > (undodepth+1))
		{
			undotext.shift();
		}
	}
	return false;
}



