// PROMTs Online Translator, Copyright (c) 1998-2000 PROject MT, Ltd. All rights reserved. http://www.translate.ru/ function DoTableWin(str, Type) { var strTable1 = "ABVGDEZIJKLMNOPRSTUFHC'Y'EQabvgdezijklmnoprstufhc'y'eq"; // var strTable2 = ""; // Koi8-r var strNew = ""; //var ar=top.zwho.zar; var ar = new Array("Lanc","Vital","ruslav","Vil","EVREJ","Opponent","TACC" ,"Felix", "Shalom", "raffal","Maple_Leaf"); var i, j, docontinue, bracket = 0, len = str.length; for (i = 0; i < len; i++) { if (str.substr(i, 1)=='[') bracket=1; if (str.substr(i, 1)==']') bracket=0; if (bracket == 0 ) { if ("lw" == Type) { docontinue=0; for (j = 0; j < ar.length; j++){ nlen=ar[j].length; if (ar[j] == str.substr(i, nlen)){ docontinue=1; strNew = strNew + ar[j]; i=i+nlen-1; break; } } if (docontinue==1) continue; if ( ("'" == str.substr(i, 1)) ) { strNew = strNew + ""; continue; } if ( ("`" == str.substr(i, 1)) ) { strNew = strNew + ""; continue; } if (i < (len - 1)) { var c = str.substr(i, 2); if (("Zh" == c) || ("ZH" == c)) { strNew = strNew + ""; i++; continue; } else if (("Ch" == c) || ("CH" == c)) { strNew = strNew + ""; i++; continue; } else if (("Sh" == c) || ("SH" == c)) { strNew = strNew + ""; i++; continue; } else if (("Xh" == c) || ("XH" == c)) { strNew = strNew + ""; i++; continue; } else if (("xh" == c) || ("xh" == c)) { strNew = strNew + ""; i++; continue; } else if (("Je" == c) || ("JE" == c)) { strNew = strNew + ""; i++; continue; } else if (("JI" == c) || ("JI" == c)) { strNew = strNew + ""; i++; continue; } else if (("ji" == c) || ("ji" == c)) { strNew = strNew + ""; i++; continue; } else if (("je" == c) || ("je" == c)) { strNew = strNew + ""; i++; continue; } else if (("Ju" == c) || ("JU" == c)) { strNew = strNew + ""; i++; continue; } else if (("Ja" == c) || ("JA" == c)) { strNew = strNew + ""; i++; continue; } if ("zh" == c) { strNew = strNew + ""; i++; continue; } else if ("ch" == c) { strNew = strNew + ""; i++; continue; } else if ("sh" == c) { strNew = strNew + ""; i++; continue; } else if ("ju" == c) { strNew = strNew + ""; i++; continue; } else if ("ja" == c) { strNew = strNew + ""; i++; continue; } else if (("Jo" == c) || ("JO" == c)) { strNew = strNew + ""; i++; continue; } else if ("jo" == c) { strNew = strNew + ""; i++; continue; } } } var c = str.substr(i, 1); var pos = strTable1.indexOf(c); if (pos < 0) strNew = strNew + c; else { var d = strTable2.substr(pos, 1); strNew = strNew + d; } } else { strNew = strNew + str.substr(i, 1); } } return strNew; } function translate(strText){ var decoder_type='lw'; if (0 == strText.length){ return strText; } strText = DoTableWin(strText, decoder_type); return strText; }