var position=-1;var hint_position=-1;var newTR;var hint_newTR;var oldTR;var hint_oldTR;var goo_counter=-1;var minVisiblePosition=0;var maxVisiblePosition=6;var tastur_erst_laden=true;var status=0;var Aktuelle_image;var examples_depot=new Array();var request1=0;var has_details_flag=new Array();var alreadyhighlighted=new Array();$(function(){if($('.navi_focus_here').length>0){$('#navi_wrapper_de li').css({borderBottom:'1px solid #CECECE'});$('.navi_focus_here').css({backgroundColor:'#F1E9BB'});$('.navi_focus_here').find('a').css({backgroundColor:'#F1E9BB'})
$('#header_buffer_de').css({backgroundColor:'#F1E9BB'});$('.navi_focus_here').css({cursor:'text'});$('.navi_focus_here').find('a').css({backgroundColor:'#F1E9BB'})
$('#header_buffer_ar').css({backgroundColor:'#F1E9BB'});$('#header_buffer_de').css({backgroundColor:'#F1E9BB'});}
$('#navi_wrapper_de li:not(.navi_focus_here)').hover(function(){$('#navi_wrapper_de li').css({borderBottom:'1px solid #102033'});$(this).css({backgroundColor:'#F1E9BB'});$(this).find('a').css({backgroundColor:'#F1E9BB'})
$('#header_buffer_de').css({backgroundColor:'#F1E9BB'});$(this).css({borderBottom:'1px solid #F1E9BB'});},function(){$('#navi_wrapper_de li').css({borderBottom:'1px solid #CECECE'});$(this).css({backgroundColor:'#102033'});$(this).find('a').css({backgroundColor:'#ECECEC'})
if($('.navi_focus_here').length>0){$('#header_buffer_de').css({backgroundColor:'#F1E9BB'});}else{$('#header_buffer_de').css({backgroundColor:'#ECECEC'});}});$('#navi_wrapper_ar li:not(.navi_focus_here)').hover(function(){$(this).css({backgroundColor:'#F1E9BB'});$(this).find('a').css({backgroundColor:'#F1E9BB'})
$('#header_buffer_ar').css({backgroundColor:'#F1E9BB'});},function(){$(this).css({backgroundColor:'#FFFFFF'});$(this).find('a').css({backgroundColor:'#ECECEC'})
$('#header_buffer_ar').css({backgroundColor:'#ECECEC'});if($('.navi_focus_here').length>0){$('#header_buffer_ar').css({backgroundColor:'#F1E9BB'});}else{$('#header_buffer_ar').css({backgroundColor:'#ECECEC'});}});$('.highlight_de,.highlight_ar').click(function(event){event.preventDefault();});$(window).resize(function(){handleAds();});handleAds();});function handleAds(){if($(document).width()<950){$('#banner_top_right').css('display','none');}else{$('#banner_top_right').css('display','block');}
if($('#neededWords')){}else{if($(document).width()<750){$('#content #ads_div').css('display','none');$('#content #content_div').css('padding-right','0px');}else{$('#content #ads_div').css('display','block');$('#content #content_div').css('padding-right','168px');}}}
function show_video(){if(document.getElementById('arabvideo').style.display=='none'){document.getElementById('arabvideo').style.display='block';}else{document.getElementById('arabvideo').style.display='none';}}
function randomString(){var chars="0123456789abcdefghiklmnopqrstuvwxyz";var string_length=10;var randomstring='';for(var i=0;i<string_length;i++){var rnum=Math.floor(Math.random()*chars.length);randomstring+=chars.substring(rnum,rnum+1);}
return randomstring;}
function AppendEvent(obj,handler,capture,effects){lstrObj=document.getElementById(obj);if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1){lstrObj.attachEvent('onclick',klicken_bearbeiten);if(effects==true){lstrObj.attachEvent('onmouseover',ereignisHandler_Mover);lstrObj.attachEvent('onmouseout',ereignisHandler_Mout);}}else{lstrObj.addEventListener('click',klicken_bearbeiten,false);if(effects==true){lstrObj.addEventListener('mouseover',ereignisHandler_Mover,false);lstrObj.addEventListener('mouseout',ereignisHandler_Mout,false);}}}
function live_search_focus(id){if(id=="de_ar"){document.getElementById("d_a").style.color="#006633";document.getElementById("e_a").style.color="#999999";document.getElementById("eingabefeld").value="";document.getElementById("eingabefeld").focus();}else{document.getElementById("e_a").style.color="#006633";document.getElementById("d_a").style.color="#999999";document.getElementById("eingabefeld").value="";document.getElementById("eingabefeld").focus();}}
function GetXmlHttpObject(){var request=null;try{request=new XMLHttpRequest();}catch(e){try{request=new ActiveXObject("Msxml2.XMLHTTP.3.0");}catch(e){request=new ActiveXObject("Microsoft.XMLHTTP");}}
return request;}
function encode(uri){if(encodeURIComponent){return encodeURIComponent(uri).replace(/%2f/ig,"/");}if(escape){return escape(uri).replace(/%2f/ig,"/");}}
function trim(zeichenkette){return zeichenkette.replace(/^\s+/,'').replace(/\s+$/,'');}
function suche_das(suchbegriff){if(suchbegriff==""){window.location=basePath+"english-arabic";}else{window.location=basePath+"english-arabic/"+encode(trim(suchbegriff));}}
function checklang(str){var deutsch_letters=/^[a-züßäöé:;*#?=&%$"!'+.~A-ZÜÄÖ0-9\s(\-)]{0,}$/;if(deutsch_letters.test(str)){document.getElementById("eingabefeld").className="deutsch";lang="de";}else{document.getElementById("eingabefeld").className="arabic";lang="ar";}}
function showHint(str,e,der_id){if(document.getElementById("search_art").elements["mode"][1].checked!==true){var searchtype="deutsch-arabisch";}else{var searchtype="english-arabic";}
var this_id=der_id;trim(str);checklang(str);if(e){e=(!e)?window.event:e;var code=(e.charCode)?e.charCode:((e.keyCode)?e.keyCode:((e.which)?e.which:0));}else{code=false;}
if(code==13||der_id=='search_icon'){var url=$('#search_art').attr('action').replace("en/lookup","");url+=searchtype+"/"+encode(str);window.location=url;return false;}}
function hint_back(hint_id){$('#'+obj_get_details+'').toggle('100');document.getElementById(hint_id).innerHTML="";check_details_flag('collapse_expand'+obj_get_details);}
function close_no_details(divx){setTimeout(function(){document.getElementById('collapse_expand'+divx).src=basePath+"de/images/minus.gif";$('#div'+divx+'').slideUp('100');document.getElementById('div'+divx).innerHTML="";},2000);}
function check_details_flag(flag_id){if(has_details_flag[flag_id]){document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus.gif";}else{document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus.gif";}}
var obj_get_details=0;function get_term_details(rid,div_id,geklickte_term,spra){obj_get_details=div_id;geklecte_term=geklickte_term;if(document.getElementById('div'+div_id).style.display!="none"&&document.getElementById('div'+div_id).innerHTML!=""){$('#more'+div_id+'').slideUp('100');$('#div'+div_id+'').slideUp('100');check_details_flag('collapse_expand'+div_id);document.getElementById("hint_tr"+div_id).getElementsByTagName("td")[1].style.borderBottom="1px solid #CCCCCC";document.getElementById("hint_tr"+div_id).getElementsByTagName("td")[2].style.borderBottom="1px solid #CCCCCC";document.getElementById("hint_tr"+div_id).getElementsByTagName("td")[3].style.borderBottom="1px solid #CCCCCC";document.getElementById("hint_tr"+div_id).getElementsByTagName("td")[4].style.borderBottom="1px solid #CCCCCC";document.getElementById("hint_tr"+div_id).getElementsByTagName("td")[5].style.borderBottom="1px solid #CCCCCC";document.getElementById("hint_tr"+div_id).getElementsByTagName("td")[6].style.borderBottom="1px solid #CCCCCC";document.getElementById("hint_tr"+div_id).getElementsByTagName("td")[7].style.borderBottom="1px solid #CCCCCC";}else{handle_response(rid,div_id,geklickte_term,spra);}}
function handle_response(rid,div_id,geklickte_term,spra){var current_hint=document.getElementById('div'+obj_get_details);var this_id="div"+obj_get_details;if(document.getElementById('div'+obj_get_details).style.display=="none"&&document.getElementById('div'+obj_get_details).innerHTML!=""){if(current_hint.innerHTML!=""){if(examples_depot['div'+obj_get_details]){document.getElementById('div'+obj_get_details).innerHTML=examples_depot['div'+obj_get_details];$('#div'+obj_get_details+'').slideDown('100');document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus_down.gif";delteBottomBorder(obj_get_details);}else{$('#div'+obj_get_details+'').slideDown('100');document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus_down.gif";setBorderAndMore(this_id);delteBottomBorder(obj_get_details);}}else{if(examples_depot['div'+obj_get_details]){document.getElementById('div'+obj_get_details).innerHTML=examples_depot['div'+obj_get_details];$('#div'+obj_get_details+'').slideDown('100');document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus_down.gif";delteBottomBorder(obj_get_details);}else{document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus_down.gif";current_hint.innerHTML="<div style='text-align:center;'><div><span>No further information available!</span>&nbsp;/&nbsp;<span dir='rtl' style='font-size:15px;'>لا توجد معلومات إضافية !</span><div></div>";$('#div'+obj_get_details+'').slideDown('100');close_no_details(obj_get_details);return;}}}else{var params="ids="+encode(rid)+"&divId="+encode(div_id)+"&spra="+encode(spra)+"&thisTerm="+encode(geklickte_term)+"&sid="+Math.random();$('#loading'+obj_get_details+'').html("<img src='"+basePath+"de/images/ajax_loading.gif'/>");var xhrx=$.ajax({url:basePath+"moredetails.php",type:"POST",data:params,dataType:"html",success:function(msg){$('#loading'+obj_get_details+'').html("");if(msg==""||msg==""||msg==false){$('#div'+div_id+'').css('display','none');document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus_down.gif";current_hint.innerHTML="<div style='text-align:center;'><div><span>No further information available!</span>&nbsp;/&nbsp;<span dir='rtl' style='font-size:15px;'>لا توجد معلومات إضافية !</span><div></div>";$('#div'+obj_get_details+'').slideDown(400);close_no_details(obj_get_details);return;}else{$('#div'+div_id+'').css('display','none');delteBottomBorder(obj_get_details);$('#div'+div_id+'').html(msg);document.getElementById('collapse_expand'+obj_get_details).src=basePath+"de/images/minus_down.gif";$('#div'+div_id+'').slideDown(400,function(){setBorderAndMore(this_id);});var tans_paar=document.getElementById('div'+div_id).className.split("::");var options={exact:"whole",style_name_suffix:false,style_name:"hilite_example",highlight:".details_border_left"+div_id,keys:trim(tans_paar[0])};if($('#div'+obj_get_details+' tr').length>1){jQuery('#div'+obj_get_details).SearchHighlight(options);}
var options={exact:"whole",style_name_suffix:false,style_name:"hilite_example",highlight:".details_border_right"+obj_get_details,keys:trim(tans_paar[1])};if($('#div'+obj_get_details+' tr').length>1){jQuery(document.getElementById('div'+obj_get_details)).SearchHighlight(options);}}}});}}
function delteBottomBorder(divX){document.getElementById("div_"+divX).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[1].style.borderBottom="none";document.getElementById("div_"+divX).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[2].style.borderBottom="none";document.getElementById("div_"+divX).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[3].style.borderBottom="none";document.getElementById("div_"+divX).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[4].style.borderBottom="none";document.getElementById("div_"+divX).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[5].style.borderBottom="none";document.getElementById("div_"+divX).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[6].style.borderBottom="none";document.getElementById("div_"+divX).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[7].style.borderBottom="none";}
function setBorderAndMore(this_id){if(document.getElementById(this_id)){document.getElementById(this_id).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[1].style.borderBottom="none";document.getElementById(this_id).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[2].style.borderBottom="none";document.getElementById(this_id).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[3].style.borderBottom="none";document.getElementById(this_id).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[4].style.borderBottom="none";document.getElementById(this_id).getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[5].style.borderBottom="none";var ex_english_zellen=document.getElementById(this_id).getElementsByTagName("table")[0].getElementsByTagName("tr");for(var h=0;h!=ex_english_zellen.length;h++){if(h==ex_english_zellen.length-1){if(document.getElementById(this_id).getElementsByTagName("table")[1]){ex_english_zellen[h].getElementsByTagName("td")[1].getElementsByTagName("span")[0].innerHTML="<a href='javascript: void(0)' onclick='showmehr("+obj_get_details+")' style='color:blue;font-size:11px;'><img src='"+basePath+"de/images/minus.gif'/ border='0' title='mehr / المزيد'></a>";}
ex_english_zellen[h].getElementsByTagName("td")[2].style.borderBottom="1px solid #CCCCCC";ex_english_zellen[h].getElementsByTagName("td")[3].style.borderBottom="1px solid #CCCCCC";ex_english_zellen[h].getElementsByTagName("td")[4].style.borderBottom="1px solid #CCCCCC";}}}}
function hilite_examples(de_word,ar_word){if(hilite_los==false){return false;}
var first_letter_ar=ar_word.substr(0,1);var first_2_letter_ar=ar_word.substr(0,2);if(first_2_letter_ar=="ال"){ar_word=ar_word+" "+ar_word.substr(2);}else if(first_letter_ar=="ت"||first_letter_ar=="ي"||first_letter_ar=="ا"||first_letter_ar=="أ"){ar_word=ar_word+" "+ar_word.substr(1);}else{ar_word=ar_word;}
var options={exact:"whole",style_name_suffix:false,style_name:"hilite_example",highlight:".details_border_left_d",keys:de_word};jQuery(document).SearchHighlight(options);var options={exact:"whole",style_name_suffix:false,style_name:"hilite_example",highlight:".details_border_right_a",keys:trim(ar_word)};jQuery(document).SearchHighlight(options);}
function goo_keepclean(){var text_field=document.getElementById("textField");if(text_field.value==""){var targetDiv=document.getElementById("target_Div");targetDiv.innerHTML="";targetDiv.style.visibility="hidden";}
setTimeout("goo_keepclean()",100);}
function distibguish_rows(){var gooo_table=document.getElementById("goo_table");var rows=gooo_table.getElementsByTagName("tr");for(var i=0;i!=rows.length;i++){if(i%2==1){rows[i].className="rowone";}else{rows[i].className="rowtwo";}}}
function slideHandler(obj,ev)
{if(status==0){var xypos=getXY(ev);document.getElementById(obj).style.left=(parseInt(xypos[0])-190)+"px";document.getElementById(obj).style.top=(0)+"px";zeig_versteck_tastatur();document.getElementById("eingabefeld").className="arabic";document.getElementById("eingabefeld").value="";Suchefeld_fokus();$('#targetDiv').slideDown('100');status=1;}
else{$('#targetDiv').slideUp('100');zeig_versteck_tastatur();Suchefeld_fokus();status=0;}}
function setButtonValue(val)
{document.getElementById("btnExpandCollapse").innerHTML=val;}
function starte(){for(var zeile=1;zeile<6;zeile++){for(var kn=0;kn<14;kn++){if((zeile==3&&kn==13)||(zeile==4&&kn==12)||(zeile==5&&kn==1)){break;}
if((zeile==1&&kn==0)||(zeile==1&&kn==13)||(zeile==2&&kn==0)||(zeile==2&&kn==13)||(zeile==3&&kn==0)||(zeile==3&&kn==12)||(zeile==4&&kn==0)||(zeile==4&&kn==11)||(zeile==5&&kn==0)){AppendEvent("knopf"+zeile+"_"+kn,'click',true,false);}else{AppendEvent("knopf"+zeile+"_"+kn,'click',true,true);}}}
AppendEvent("knopf1_14",'click',true);}
function hoch_stell_taste(){if(tasttur_oberflaesche=="_hoch"){tasttur_oberflaesche="_normal";oberflaesche("_normal");}else if(tasttur_oberflaesche=="_normal"){tasttur_oberflaesche="_hoch";oberflaesche("_hoch");}}
function klicken_bearbeiten(e){var mouseobj=Event(e);if(tasttur_oberflaesche=="_hoch"){var Hexa_nu_array=ar_keys_hoch;}else if(tasttur_oberflaesche=="_normal"){var Hexa_nu_array=ar_keys_normal;}
switch(mouseobj.id){case"knopf1_0":{backspace();break;}
case"knopf1_1":{Hexa_konvert(Hexa_nu_array[0]);break;}
case"knopf1_2":{Hexa_konvert(Hexa_nu_array[1]);break;}
case"knopf1_3":{Hexa_konvert(Hexa_nu_array[2]);break;}
case"knopf1_4":{Hexa_konvert(Hexa_nu_array[3]);break;}
case"knopf1_5":{Hexa_konvert(Hexa_nu_array[4]);break;}
case"knopf1_6":{Hexa_konvert(Hexa_nu_array[5]);break;}
case"knopf1_7":{Hexa_konvert(Hexa_nu_array[6]);break;}
case"knopf1_8":{Hexa_konvert(Hexa_nu_array[7]);break;}
case"knopf1_9":{Hexa_konvert(Hexa_nu_array[8]);break;}
case"knopf1_10":{Hexa_konvert(Hexa_nu_array[9]);break;}
case"knopf1_11":{Hexa_konvert(Hexa_nu_array[10]);break;}
case"knopf1_12":{Hexa_konvert(Hexa_nu_array[11]);break;}
case"knopf1_13":{Hexa_konvert(Hexa_nu_array[12]);break;}
case"knopf1_14":{schliesse_tastatur();break;}
case"knopf2_0":{Hexa_konvert(Hexa_nu_array[13]);break;}
case"knopf2_1":{Hexa_konvert(Hexa_nu_array[14]);break;}
case"knopf2_2":{Hexa_konvert(Hexa_nu_array[15]);break;}
case"knopf2_3":{Hexa_konvert(Hexa_nu_array[16]);break;}
case"knopf2_4":{Hexa_konvert(Hexa_nu_array[17]);break;}
case"knopf2_5":{if(tasttur_oberflaesche=="_normal"){var newchar=Hexa_nu_array[18].split("+");Hexa_konvert(newchar[0]);}else if(tasttur_oberflaesche=="_hoch"){Hexa_konvert(Hexa_nu_array[18]);}
break;}
case"knopf2_6":{Hexa_konvert(Hexa_nu_array[19]);break;}
case"knopf2_7":{Hexa_konvert(Hexa_nu_array[20]);break;}
case"knopf2_8":{if(tasttur_oberflaesche=="_hoch"){var newchar=Hexa_nu_array[21].split("+");Hexa_konvert(newchar[0]);Hexa_konvert(newchar[1]);}else if(tasttur_oberflaesche=="_normal"){Hexa_konvert(Hexa_nu_array[21]);}
break;}
case"knopf2_9":{Hexa_konvert(Hexa_nu_array[22]);break;}
case"knopf2_10":{Hexa_konvert(Hexa_nu_array[23]);break;}
case"knopf2_11":{Hexa_konvert(Hexa_nu_array[24]);break;}
case"knopf2_12":{Hexa_konvert(Hexa_nu_array[25]);break;}
case"knopf2_13":{Hexa_konvert(Hexa_nu_array[26]);break;}
case"knopf3_0":{showHint(document.getElementById("eingabefeld").value);break;}
case"knopf3_1":{Hexa_konvert(Hexa_nu_array[27]);break;}
case"knopf3_2":{Hexa_konvert(Hexa_nu_array[28]);break;}
case"knopf3_3":{Hexa_konvert(Hexa_nu_array[29]);break;}
case"knopf3_4":{Hexa_konvert(Hexa_nu_array[30]);break;}
case"knopf3_5":{Hexa_konvert(Hexa_nu_array[31]);break;}
case"knopf3_6":{Hexa_konvert(Hexa_nu_array[32]);break;}
case"knopf3_7":{if(tasttur_oberflaesche=="_hoch"){var newchar3_7=Hexa_nu_array[33].split("+");Hexa_konvert(newchar3_7[0]);Hexa_konvert(newchar3_7[1]);}else if(tasttur_oberflaesche=="_normal"){Hexa_konvert(Hexa_nu_array[33]);}
break;}
case"knopf3_8":{Hexa_konvert(Hexa_nu_array[34]);break;}
case"knopf3_9":{Hexa_konvert(Hexa_nu_array[35]);break;}
case"knopf3_10":{Hexa_konvert(Hexa_nu_array[36]);break;}
case"knopf3_11":{Hexa_konvert(Hexa_nu_array[37]);break;}
case"knopf4_0":{hoch_stell_taste();break;}
case"knopf4_1":{Hexa_konvert(Hexa_nu_array[38]);break;}
case"knopf4_2":{Hexa_konvert(Hexa_nu_array[39]);break;}
case"knopf4_3":{Hexa_konvert(Hexa_nu_array[40]);break;}
case"knopf4_4":{Hexa_konvert(Hexa_nu_array[41]);break;}
case"knopf4_5":{Hexa_konvert(Hexa_nu_array[42]);break;}
case"knopf4_6":{var newchar4_6=Hexa_nu_array[43].split("+");Hexa_konvert(newchar4_6[0]);Hexa_konvert(newchar4_6[1]);break;}
case"knopf4_7":{Hexa_konvert(Hexa_nu_array[44]);break;}
case"knopf4_8":{Hexa_konvert(Hexa_nu_array[45]);break;}
case"knopf4_9":{Hexa_konvert(Hexa_nu_array[46]);break;}
case"knopf4_10":{Hexa_konvert(Hexa_nu_array[47]);break;}
case"knopf4_11":{hoch_stell_taste();break;}
case"knopf5_0":{Hexa_konvert("0x0020");break;}}
Suchefeld_fokus();if(tasttur_oberflaesche=="_hoch"&&hoch_taste!=0){tasttur_oberflaesche="_normal";oberflaesche("_normal");hoch_taste=0;}}
function Suchefeld_fokus(){document.getElementById("eingabefeld").focus();}
function Event(e)
{var event=e?e:window.event;return event.srcElement?event.srcElement:event.target;}
function Tastatur_zustand_eins(tastatur_zustand){if(tastatur_zustand==false){neu_tastatur_div.style.display="none";}else{neu_tastatur_div.style.display="block";}}
function oberflaesche(status){if(status=="_normal"){var aktuelle_oberflaesche=ar_keys_normal;document.getElementById("knopf4_11").style.background="url(images/shift.gif)no-repeat center";document.getElementById("knopf4_0").style.background="url(images/shift.gif)no-repeat center";}else if(status=="_hoch"){var aktuelle_oberflaesche=ar_keys_hoch;document.getElementById("knopf4_11").style.background="url(images/shift_down.gif) no-repeat center";document.getElementById("knopf4_0").style.background="url(images/shift_down.gif) no-repeat center";}
var taste=0;for(var zeile=1;zeile<5;zeile++){for(var kn=0;kn<14;kn++){if((zeile==3&&kn==12)||(zeile==4&&kn==12)||(zeile==5&&kn==1)){break;}
if(!(zeile==1&&kn==0)&&!(zeile==3&&kn==0)&&!(zeile==4&&(kn==0||kn==11))){if(zeile==2&&kn==8&&status=="_hoch"){var chararray28=aktuelle_oberflaesche[taste].split("+");document.getElementById("knopf"+zeile+"_"+kn).innerHTML=String.fromCharCode(chararray28[0])+String.fromCharCode(chararray28[1]);taste+=1;}else if(zeile==2&&kn==5&&status=="_normal"){var chararray25=aktuelle_oberflaesche[taste].split("+");document.getElementById("knopf"+zeile+"_"+kn).innerHTML=String.fromCharCode(chararray25[0])+String.fromCharCode(chararray25[1]);taste+=1;}else if(zeile==3&&kn==7&&status=="_hoch"){var chararray37=aktuelle_oberflaesche[taste].split("+");document.getElementById("knopf"+zeile+"_"+kn).innerHTML=String.fromCharCode(chararray37[0])+String.fromCharCode(chararray37[1]);taste+=1;}else if(zeile==4&&kn==6){var chararray46=aktuelle_oberflaesche[taste].split("+");document.getElementById("knopf"+zeile+"_"+kn).innerHTML=String.fromCharCode(chararray46[0])+String.fromCharCode(chararray46[1]);taste+=1;}else{if(aktuelle_oberflaesche[taste]==""){document.getElementById("knopf"+zeile+"_"+kn).innerHTML=String.fromCharCode(aktuelle_oberflaesche[taste]);}else{document.getElementById("knopf"+zeile+"_"+kn).innerHTML=unbenoetigte_buchstaben(String.fromCharCode(aktuelle_oberflaesche[taste]));}
taste+=1;}}}}}
function unbenoetigte_buchstaben(strquelle){var strOutput;strOutput="";for(var i=0,chc;i<strquelle.length;i++){chc=strquelle.charCodeAt(i);strOutput+=(chc==32||chc==37||chc==44||chc==95)?strquelle.charAt(i):'&#'+chc+';'}
return strOutput;}
function ereignisHandler_Mover(e){var mouseobj=Event(e);document.getElementById(mouseobj.id).className="knopf";}
function ereignisHandler_Mout(e){var mouseobj=Event(e);document.getElementById(mouseobj.id).className="knopf";}
function tasten_erstellen(){var row1=document.createElement("div");row1.id="row1";row1.className="row1";var neue_taste=document.createElement("div");neue_taste.id="knopf1_0";neue_taste.className="knopf-bs";row1.appendChild(neue_taste);for(var kn=1;kn<14;kn++){neue_taste=document.createElement("div");neue_taste.id="knopf1_"+kn;neue_taste.className="knopf";row1.appendChild(neue_taste);}
neue_taste=document.createElement("div");neue_taste.id="knopf1_14";neue_taste.className="knopf-esc";row1.appendChild(neue_taste);var row2=document.createElement("div");row2.id="row2";row2.className="row2";neue_taste=document.createElement("div");neue_taste.id="knopf2_0";neue_taste.className="knopf-slash";row2.appendChild(neue_taste);for(var kn=1;kn<13;kn++){neue_taste=document.createElement("div");neue_taste.id="knopf2_"+kn;if(kn==2||3||4){neue_taste.className="knopf";}else{neue_taste.className="knopf";}
row2.appendChild(neue_taste);}
neue_taste=document.createElement("div");neue_taste.id="knopf2_13";neue_taste.className="knopf-tab";row2.appendChild(neue_taste);var row3=document.createElement("div");row3.id="row3";row3.className="row3"
neue_taste=document.createElement("div");neue_taste.id="knopf3_0";neue_taste.className="knopf-enter";row3.appendChild(neue_taste);for(var kn=1;kn<12;kn++){neue_taste=document.createElement("div");neue_taste.id="knopf3_"+kn;if(kn==2||5||10||11){neue_taste.className="knopf";}else{neue_taste.className="knopf";}
row3.appendChild(neue_taste);}
neue_taste=document.createElement("div");neue_taste.id="knopf3_12";neue_taste.className="knopf-caps";row3.appendChild(neue_taste);var row4=document.createElement("div");row4.id="row4";row4.className="row4"
neue_taste=document.createElement("div");neue_taste.id="knopf4_0";neue_taste.className="knopf-shift-r";row4.appendChild(neue_taste);for(var kn=1;kn<11;kn++){neue_taste=document.createElement("div");neue_taste.id="knopf4_"+kn;if(kn==5||6||10){neue_taste.className="knopf";}else{neue_taste.className="knopf";}
row4.appendChild(neue_taste);}
neue_taste=document.createElement("div");neue_taste.id="knopf4_11";neue_taste.className="knopf-shift-l";row4.appendChild(neue_taste);var row5=document.createElement("div");row5.id="row5";row5.className="row5";neue_taste=document.createElement("div");neue_taste.id="knopf5_0";neue_taste.className="knopf-space";row5.appendChild(neue_taste);neue_taste=document.createElement("div");neue_taste.id="knopf5_0";neue_taste.className="knopf-";row5.appendChild(neue_taste);var neue_tastatur=document.createElement("div");neue_tastatur.id="tastatur_parent_div";neue_tastatur.appendChild(row1);neue_tastatur.appendChild(row2);neue_tastatur.appendChild(row3);neue_tastatur.appendChild(row4);neue_tastatur.appendChild(row5);neu_tastatur_div.appendChild(neue_tastatur);}
function Hexa_konvert(Hexa){document.getElementById("eingabefeld").value=document.getElementById("eingabefeld").value+String.fromCharCode(Hexa);}
function lade_wenn_klick(){neu_tastatur_div=document.getElementById("bildschirm_tastatur");in_eingabe_feld=document.getElementById("eingabefeld");insertedTxt=in_eingabe_feld;showHint(document.getElementById("eingabefeld").value);tastatur_status=true;ar_keys_normal=new Array("0x00B4","0x002D","0x0660","0x0669","0x0668","0x0667","0x0666","0x0665","0x0664","0x0663","0x0662","0x0661","0x0630","0x007E","0x062F","0x062C","0x062D","0x062E","0x0647+0x0640","0x0639","0x063A","0x0641","0x0642","0x062b","0x0635","0x0636","0x0009","0x0637","0x0643","0x0645","0x0646","0x062A","0x0627","0x0644","0x0628","0x064a","0x0633","0x0634","0x0638","0x0632","0x0648","0x0629","0x0649","0x0644+0x0627","0x0631","0x0624","0x0621","0x0626");ar_keys_hoch=new Array("0x002B","0x005F","0x0028","0x0029","0x002A","0x0026","0x005E","0x066A","0x0024","0x0023","0x0040","0x0021","0x0651","0x007C","0x007B","0x007D","0x061B","","","","0x0625","0x0644+0x0625","0x064C","0x064F","0x064B","0x064E","0x0009","0x0022","0x003A","0x002F","0x060C","0x0640","0x0623","0x0644+0x0623","0x005B","0x005D","0x064D","0x0650","0x061F","0x003C","0x003E","","0x0622","0x0644+0x0622","0x007B","0x007D","0x0652","0x0653");tasten_erstellen();tasttur_oberflaesche="_normal";hoch_taste=0;Tastatur_zustand_eins(tastatur_status);oberflaesche("_normal");starte();}
function zeig_versteck_tastatur(){if(tastur_erst_laden==true){tastur_erst_laden=false;lade_wenn_klick();}else{if(tastatur_status==false){tastatur_status=true;Suchefeld_fokus();}else{tastatur_status=false;}
Suchefeld_fokus();}}
function backspace(){var getippte_text_laenge=document.getElementById("eingabefeld").value.length;var getippte_neu=document.getElementById("eingabefeld").value.substr(0,getippte_text_laenge-1);document.getElementById("eingabefeld").value=getippte_neu;var el=document.getElementById("eingabefeld")
fire(el,'keyup')
function fire(evttype){if(document.createEvent){var evt=document.createEvent('HTMLEvents');evt.initEvent(evttype,false,false);el.dispatchEvent(evt);}else if(document.createEventObject){el.fireEvent('on'+evttype);}}}
function schliesse_tastatur(){$('#targetDiv').slideUp('100');tastatur_status=false;Suchefeld_fokus();status=0;}
function doHighlight(bodyText,searchTerm,highlightStartTag,highlightEndTag)
{if((!highlightStartTag)||(!highlightEndTag)){highlightStartTag="<font style='color:#003399;'>";highlightEndTag="</font>";}
var newText="";var i=-1;var lcSearchTerm=searchTerm.toLowerCase();var lcBodyText=bodyText.toLowerCase();while(bodyText.length>0){i=lcBodyText.indexOf(lcSearchTerm,i+1);if(i<0){newText+=bodyText;bodyText="";}else{if(bodyText.lastIndexOf(">",i)>=bodyText.lastIndexOf("<",i)){if(lcBodyText.lastIndexOf("]",i)>=lcBodyText.lastIndexOf("[",i)&&lcBodyText.lastIndexOf(")",i)>=lcBodyText.lastIndexOf("(",i)){newText+=bodyText.substring(0,i)+highlightStartTag+bodyText.substr(i,searchTerm.length)+highlightEndTag;bodyText=bodyText.substr(i+searchTerm.length);lcBodyText=bodyText.toLowerCase();i=-1;}}}}
return newText;}
function highlightSearchTerms(ziel_div,searchText,treatAsPhrase,warnOnFailure,highlightStartTag,highlightEndTag)
{if(treatAsPhrase){searchArray=[searchText];}else{searchArray=searchText.split(" ");}
if(!ziel_div||typeof(ziel_div.innerHTML)=="undefined"){if(warnOnFailure){alert("Ein Fehler ist aufgetreten");}
return false;}
var bodyText=ziel_div.innerHTML;for(var i=0;i<searchArray.length;i++){bodyText=doHighlight(bodyText,searchArray[i],highlightStartTag,highlightEndTag);}
ziel_div.innerHTML=bodyText;return true;}
function searchPrompt(ziel_div,defaultText,treatAsPhrase,bold_font,underline)
{if(!defaultText){defaultText="";}
if((!bold_font)||(!underline)){highlightStartTag="";highlightEndTag="";}else{highlightStartTag="<font style='font-weight:"+bold_font+"; border-bottom:"+underline+";'>";highlightEndTag="</font>";}
if(treatAsPhrase){searchText=defaultText;}
searchText=defaultText;if(!searchText){return false;}
return highlightSearchTerms(ziel_div,searchText,treatAsPhrase,false,highlightStartTag,highlightEndTag);}
$("#beitrag_melden").click(function(event){event.preventDefault();});function melde_beitrag(bei,bei_id,beitrag_vorschlag){var e_mail="";var word_beitrag="";if(beitrag_vorschlag==""&&bei_id==2){document.getElementById("no_result_inner").innerHTML="<div style='color:red;'>Please type in your translation suggestion !</div>";return;}else if(beitrag_vorschlag==""&&bei_id==3){document.getElementById("no_result_inner").innerHTML="<div style='color:red;'>Please type in your email address !</div>";return;}else{if(bei_id==2){e_mail="";word_beitrag=beitrag_vorschlag;}
if(bei_id==3){e_mail=beitrag_vorschlag;word_beitrag="";}}
var not_allowed=/<|>|#|;|{|}|\(|\)|~|\*|\?|'|\+/;if(not_allowed.test(bei)){document.getElementById("suche_abruch_inner").innerHTML="<div style='color:red;'>Please type in a valid search term !</div>";return;}
var params="beitrag="+encode(bei)+"&vorschlag="+encode(word_beitrag)+"&email="+e_mail+"&sid="+Math.random();var xhr=$.ajax({url:basePath+"en/beitragmelden.php",global:false,type:"POST",data:params,dataType:"html",success:function(msg){$('#no_result_inner').html(msg);}});xhr.onreadystatechange=function(){showloadbar(xhr.readyState);}}
function schow_verstecke_beitrag(){if(document.getElementById("beitrag_eingabe_div").style.display=="none"){$('#beitrag_eingabe_div').slideDown(100);document.getElementById("beitrag_vorschlag").innerHTML="Delete translation suggestion !";document.getElementById("beitrag_eingabe").value="";document.getElementById("beitrag_eingabe").focus();}
else{$('#beitrag_eingabe_div').slideUp(100);document.getElementById("beitrag_vorschlag").innerHTML="Add translation suggestion !";}}
function getXY(ev){var posx=0;var posy=0;var mousePos=new Array();ev=(!ev)?window.event:ev;if(ev.pageX||ev.pageY)
{posx=ev.pageX;posy=ev.pageY;}
else if(ev.clientX||ev.clientY)
{posx=ev.clientX+document.body.scrollLeft
+document.documentElement.scrollLeft;posy=ev.clientY+document.body.scrollTop
+document.documentElement.scrollTop;}
mousePos[0]=posx;mousePos[1]=posy;return mousePos;}
function correctthis(){correct_record(document.getElementById('deutsch_').value,document.getElementById('arabisch_').value);return false;}
function show_layer(obj,ev,one_two,deutsch,arabisch){if(document.getElementById('popup')){var vaternodeid=document.getElementById('popup').parentNode.id;if(vaternodeid=='div'+obj){$('#'+vaternodeid+'').slideUp('100');document.getElementById(vaternodeid).innerHTML="";if(has_details_flag[trim('collapse_expand'+obj)]){document.getElementById('collapse_expand'+obj).src=basePath+"de/images/minus.gif";}else{document.getElementById('collapse_expand'+obj).src=basePath+"de/images/minus.gif";}
return false;}else{var divnumber=vaternodeid.split("div");var this_id='collapse_expand'+divnumber[1];$('#'+vaternodeid+'').slideUp('100');if(has_details_flag[trim(this_id)]){document.getElementById('collapse_expand'+divnumber[1]).src=basePath+"de/images/minus.gif";}else{document.getElementById('collapse_expand'+divnumber[1]).src=basePath+"de/images/minus.gif";}
document.getElementById(vaternodeid).innerHTML="";}}
var correct_div="<div id='popup' style=''>";correct_div+="<div style='margin:1px auto;width:200px;line-height:10px;position:relative;margin-top:2px;visibility:hidden;border:1px solid #CCC;'><span style='position:absolute;left:96px;top;2px;font-size:10px;color:#DEB447;' id='loadWert'>25</span><div id='loadbar' style='background-color:#344C56;width:50px;'>&nbsp;</div></div>";correct_div+="<form id='popup_form' action='javascript:void(0)' name='popup_fomular'>";correct_div+="<div align='center' id='correct_header'><span style='font-size:12px;margin-right:37px;font-family:sans-serif;font-weight:bold;color:#003399;' id='div_titel'>Correct or add a new record!</span></div>";correct_div+="<table id='correct_form_tab' class='details_tab' cellspacing=0 cellpadding=0><tr><td width='10px' style='background-color:#FFFFFF;border-top:1px solid #CCCCCC;'></td>";correct_div+="<td width='10px' cellpadding='0' style='background-color:#FFFFFF;border-right:1px solid #CCCCCC;border-top:1px solid #CCCCCC;'></td>";correct_div+="<td width='320' valign='top' align='left' style='padding-left:4px;'><input type='text' name='deutsch' id='deutsch_' style='display:inline;width:285px' /></td>";correct_div+="<td>&nbsp;</td>";correct_div+="<td width='320' dir='rtl' valign='top' style='font-size:17px;' align='right'>&nbsp;<input type='text' name='arabisch' id='arabisch_' dir='rtl' style='display:inline;width:285px' /></td>";correct_div+="<td width='10px' valign='top' style='background-color:#FFFFFF;border-left:1px solid #CCCCCC;border-top:1px solid #CCCCCC;'></td>";correct_div+="<td width='10px' valign='top' cellpadding='0' style='background-color:#FFFFFF;border-top:1px solid #CCCCCC;'></td>";correct_div+="</tr><tr><td width='10px' style='background-color:#FFFFFF;'></td><td width='10px' cellpadding='0' style='background-color:#FFFFFF;border-right:1px solid #CCCCCC;'></td>";correct_div+="<td width='320' valign='top' align='left' style='padding-left:4px;'><input type='submit' value='Send' style='width:58px;background-color:#F4D65A;border:1px outset #344C56;outline:none;color:#003399;' onclick='correctthis()' /></td>";correct_div+="<td style='border-bottom:1px solid #CCCCCC;'>&nbsp;</td>";correct_div+="<td width='320' dir='rtl' valign='top' style='font-size:17px;' align='right'></td>";correct_div+="<td width='10px' valign='top' style='background-color:#FFFFFF;border-left:1px solid #CCCCCC;'></td>";correct_div+="<td width='10px' valign='top' cellpadding='0' style='background-color:#FFFFFF;'></td>";correct_div+="</tr></table>";correct_div+="</form></div>";examples_depot['div'+obj]=document.getElementById('div'+obj).innerHTML;document.getElementById('div'+obj).innerHTML=correct_div;var rows=document.getElementById('div'+obj).getElementsByTagName("tr");var rownumbers=rows.length-1;document.getElementById('div_'+obj).getElementsByTagName("tr")[0].getElementsByTagName("td")[1].style.borderBottom="1px solid #CCCCCC";document.getElementById('div_'+obj).getElementsByTagName("tr")[0].getElementsByTagName("td")[2].style.borderBottom="1px solid #CCCCCC";document.getElementById('div_'+obj).getElementsByTagName("tr")[0].getElementsByTagName("td")[3].style.borderBottom="1px solid #CCCCCC";document.getElementById('div_'+obj).getElementsByTagName("tr")[0].getElementsByTagName("td")[4].style.borderBottom="1px solid #CCCCCC";document.getElementById('div_'+obj).getElementsByTagName("tr")[0].getElementsByTagName("td")[5].style.borderBottom="1px solid #CCCCCC";document.getElementById('div_'+obj).getElementsByTagName("tr")[0].getElementsByTagName("td")[6].style.borderBottom="1px solid #CCCCCC";document.getElementById('div'+obj).getElementsByTagName("tr")[rownumbers].getElementsByTagName("td")[2].style.borderBottom="1px solid #CCCCCC";document.getElementById('div'+obj).getElementsByTagName("tr")[rownumbers].getElementsByTagName("td")[4].style.borderBottom="1px solid #CCCCCC";document.getElementById('div_titel').innerHTML="<span style='color:#F3D248;font-size:12px;font-weight:bold;'>[</span>Correct or add a new record!<span style='color:#F3D248;font-size:12px;font-weight:bold;'>]</span>";document.getElementById("div_titel").style.color='#344C56';document.getElementById('deutsch_').value=deutsch;document.getElementById('arabisch_').value=arabisch;document.getElementById('collapse_expand'+obj).src=basePath+"de/images/minus_down.gif";$('#div'+obj+'').slideDown('100');}
function close_it(divi){$('#'+divi+'').hide('100');}
function close_extern(){document.getElementById('externals').style.display='none';}
function infoswap(tar){tar.onmouseover=function(){this.src=basePath+"de/images/back_over.png";}
tar.onmouseout=function(){}}
function externals(ev,term,langua){var myPos=getXY(ev);if(langua==1){document.getElementById('externals').style.left=parseInt(myPos[0])+4+"px";document.getElementById('externals').style.top=parseInt(myPos[1])-6+"px";var data="<div align='right' style='color:#ffffff;font-weight:bold;text-align:right;' dir='rtl'>بحث في:</div>";data+="<table cellpadding='0' cellspacing='0' dir='rtl'id='esrern_table'>";data+="<tr><td align='right' style='font-size:14px;'><form name='tshkiel"+parseInt(myPos[1])+"'  accept-charset='UTF-8' action='http://tashkeel.googlelabs.com/diacritize?id="+parseInt(myPos[1])+"' method='post' target='_blank'><input type='hidden' name='content' dir='rtl' value='"+term+"' /><input type='checkbox' style='display:none;' name='lastletter' checked='checked'</form><a href='javascript: void(0)' onclick='document.forms.tshkiel"+parseInt(myPos[1])+".submit();'>تشكيل المصطلح</a></td></tr>";data+="<tr><td align='right' style='font-size:14px;'><a href='http://www.google.com/search?q="+encode(term)+"' onclick='open_extern(this.href);return(false);'target='blank'>جوجل</td></tr>";data+="<tr><td align='right' style='font-size:14px;'><a href='http://ar.wikipedia.org/wiki/"+encode(term)+"' onclick='open_extern(this.href);return(false);'> ويكيبديا</td></tr>";data+="</table>";document.getElementById('externals').innerHTML=data;$('#externals').show('100');QuestionMarkShowHint()
distibguish_extern();}else
{document.getElementById('externals').style.left=(parseInt(myPos[0])-138)+"px";document.getElementById('externals').style.top=parseInt(myPos[1])-7+"px";var data="<div align='right' style='display:inline;color:#ffffff;font-weight:bold;'><span'>search in:</span></div>";data+="<table cellpadding='0' cellspacing='0' id='esrern_table'>";data+="<tr><td align='left'><a href='http://www.merriam-webster.com/dictionary/"+encode(term)+"'target='blank'>Webster.com</td></tr>";data+="<tr><td align='left'><a href='http://www.answers.com/"+encode(term)+"' onclick='open_extern(this.href);return(false);'>Answers.com</td></tr>";data+="<tr><td align='left'><a href='http://de.wikipedia.org/wiki/"+encode(term)+"' onclick='open_extern(this.href);return(false);'>Wikipedia.org</td></tr>";data+="<tr><td align='left'><a href='http://www.investopedia.com/search/results.aspx?q="+encode(term)+"' onclick='open_extern(this.href);return(false);'>Investpedia.org</td></tr>";data+="<tr><td align='left'><a href='http://dict.leo.org/ende?lp=ende&lang=de&searchLoc=0&cmpType=relaxed&sectHdr=on&spellToler=on&search="+encode(term)+"' onclick='open_extern(this.href);return(false);'>Leo.org</td></tr>";data+="<tr><td align='left'><a href='http://www.dict.cc/?s="+encode(term)+"' onclick='open_extern(this.href);return(false);'>dict.cc</td></tr>";data+="<tr><td align='left'><a href='http://www.google.com/search?q="+encode(term)+"' onclick='open_extern(this.href);return(false);'target='blank'>google.com</td></tr>";data+="</table>";document.getElementById('externals').innerHTML=data;$('#externals').show('100');QuestionMarkShowHint()
distibguish_extern();}}
var QuestionMarkViewHint;function QuestionMarkShowHint(){window.clearTimeout(QuestionMarkViewHint);document.getElementById('externals').style.display='block';}
function QuestionMarkHideHint(){QuestionMarkViewHint=setTimeout("$('#externals').hide('100');",300);}
function open_extern(uri){if(uri=="http://arabdict.com/en/0"){return;}
window.open(uri,'','width=950,height=650, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, directories=no, status=no');}
function distibguish_extern(){var exter_table=document.getElementById("esrern_table");var exter_rows=exter_table.getElementsByTagName("tr");for(var i=0;i!=exter_rows.length;i++){if(i%2==1){exter_rows[i].style.backgroundColor="#EBE9ED";}else{exter_rows[i].style.backgroundColor="#FFF8D4"}}}
function highlight_field(field,fielder){field.focus();field.select();fielder.focus();fielder.select();}
function correct_record(deut_r,arab_r){var url=basePath+"en/correct_record.php";url=url+"?deut_re="+encode(deut_r)+"&arab_re="+encode(arab_r);url=url+"&sid="+Math.random();var not_allowed=/<|>|#|;|{|}|\(|\)|~|\*|\?|'|\+/;if(not_allowed.test(deut_r)){document.getElementById("div_titel").style.color="red";return;}else{}
correct_request=GetXmlHttpObject();correct_request.onreadystatechange=correct_requestChanged;correct_request.open("GET",url,true);correct_request.send(null);}
function correct_requestChanged(){if(correct_request.readyState==4&&correct_request.status==200){var correct_status=document.getElementById("div_titel");correct_status.innerHTML=correct_request.responseText;document.getElementById("correct_form_tab").style.display='none';document.getElementById("popup").style.height=50+'px';showloadbar(correct_request.readyState);setTimeout(function(){var vaternodeid=document.getElementById('popup').parentNode.id;$('#'+vaternodeid+'').slideUp('100');document.getElementById(vaternodeid).innerHTML="";var divnumber=vaternodeid.split("div");check_details_flag('collapse_expand'+trim(divnumber[1]));},1500);}else{showloadbar(correct_request.readyState);setTimeout("correct_requestChanged()",100);}}
function lookupinBD(suchbegriff){if(suchbegriff==""){window.location="http://www.arabdict.com/deutsch-arabisch";}else{window.location="http://www.arabdict.com/deutsch-arabisch/"+encode(trim(suchbegriff));}}
function showinfo(even,catgory,srctxt,quelle,provider,land,link){var myPos=getXY(even);document.getElementById('info').style.left=parseInt(myPos[0])+4+"px";document.getElementById('info').style.top=parseInt(myPos[1])-6+"px";var data="<div style='color:#ffffff;font-weight:bold;' onmouseover='viewdetails();' onmouseout='hidedetails();'>Übersetzungsinformationen</div>";data+="<table cellpadding='0' cellspacing='0' class='esrern_table' style='background-color:#ffffff;font-size:11px;' onmouseover='viewdetails();' onmouseout='hidedetails();'>";if(catgory!=0){data+="<tr><td width='80'>Field:</td><td>"+catgory+"</td></tr>";}
if(srctxt!=0){data+="<tr><td>Source Text:</td><td>"+srctxt+"</td></tr>";}
if(land!=0){data+="<tr><td>Region:</td><td>"+land+"</td></tr>";}
if(provider!=0){data+="<tr><td>By:</td><td>"+provider+"</td></tr>";}
if(quelle!=0){data+="<tr><td>Source:</td><td><a href='"+link+"' onclick='open_extern(this.href);return(false);' style='color:blue;'>"+quelle+"</a></td></tr>";}
data+="</table>";document.getElementById('info').innerHTML=data;$('#info').show('100');viewdetails();}
var showdetails;function viewdetails(){window.clearTimeout(showdetails);document.getElementById('info').style.display='block';}
function hidedetails(){showdetails=setTimeout("$('#info').hide('100');",300);}
function showmehr(detail_id){$('#more'+detail_id+'').slideDown('100');var this_id='more'+detail_id;var mehr_rows=document.getElementById("div"+detail_id).getElementsByTagName("table")[1].getElementsByTagName("tr");var ex_rows=document.getElementById("div"+detail_id).getElementsByTagName("table")[0].getElementsByTagName("tr");var tans_paar=document.getElementById("div"+detail_id).className.split("::");for(var i=0;i!=ex_rows.length;i++){if(i==ex_rows.length-1){ex_rows[i].getElementsByTagName("td")[1].getElementsByTagName("span")[0].innerHTML="&nbsp;";ex_rows[i].getElementsByTagName("td")[2].style.borderBottom="none";ex_rows[i].getElementsByTagName("td")[3].style.borderBottom="none";ex_rows[i].getElementsByTagName("td")[4].style.borderBottom="none";}}
for(var i=0;i!=mehr_rows.length;i++){if(alreadyhighlighted[i+this_id]){}else{searchPrompt(mehr_rows[i].getElementsByTagName("td")[2],trim(tans_paar[0]),false,'not','2px solid #344C56;');searchPrompt(mehr_rows[i].getElementsByTagName("td")[4],trim(tans_paar[1]),false,'not','2px solid #344C56;');alreadyhighlighted[i+this_id]="highlighted";}
if(i==mehr_rows.length-1){mehr_rows[i].getElementsByTagName("td")[2].style.borderBottom="1px solid #CCCCCC";mehr_rows[i].getElementsByTagName("td")[3].style.borderBottom="1px solid #CCCCCC";mehr_rows[i].getElementsByTagName("td")[4].style.borderBottom="1px solid #CCCCCC";mehr_rows[i].getElementsByTagName("td")[1].getElementsByTagName("span")[0].innerHTML="<a href='javascript: void(0)' id='"+detail_id+"' onclick='get_term_details(0,this.id,0)'><img src='"+basePath+"de/images/minus_up.gif' title='schließen' border='0'/></a>";}}}
var sprach_richtung=0;var facher=0;var quit_gesamt=0;var quiz_richtig=0;var quiz_falsch=0;function start_term_quiz(){send_quiz_request=GetXmlHttpObject();if(send_quiz_request){sprach_richtung=document.getElementById("sprach_richtung").value;facher=document.getElementById("facher").value;parameters="lang="+encode(sprach_richtung)+"&fach="+encode(facher)+"&ui_lang="+ui_lang+"&mode=1&sid="+Math.random();send_quiz_request.onreadystatechange=quizcallback;send_quiz_request.open("POST","vokab_trainer.php?ui_lang="+ui_lang,true);send_quiz_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");send_quiz_request.setRequestHeader("Content-length",parameters.length);send_quiz_request.setRequestHeader("Connection","close");send_quiz_request.send(parameters);quit_gesamt++;parent.document.getElementById('fehler_report').innerHTML="";}}
function quizcallback(){if(send_quiz_request.readyState==4){if(document.getElementById('vokabel_trainer_div').style.display!="none"){$('#vokabel_trainer_div_ext').slideUp('100');$('#vokabel_trainer_div_ext').html("");$('#vokabel_trainer_div').slideDown('1000');document.getElementById('sprach_richtung').value=sprach_richtung;document.getElementById('facher').value=facher;$('#vokabel_trainer_div').html(send_quiz_request.responseText);document.getElementById('sprach_richtung').value=sprach_richtung;document.getElementById('facher').value=facher;}else{$('#vokabel_trainer_div').slideDown('1000');$('#vokabel_trainer_div_ext').slideUp('100');$('#vokabel_trainer_div_ext').html(send_quiz_request.responseText);$('#vokabel_trainer_div').html("");document.getElementById('sprach_richtung').value=lang_dir;document.getElementById('facher').value=fach;}
losung_ingange=false;}else{setTimeout("quizcallback()",100);}}
var losung_ingange=false;var fehler=new Array();function show_losung(term,solution,language){if(losung_ingange==true){return false;}
losung_ingange=true;document.getElementById('dieantwort').disabled=true;var radios=document.getElementsByTagName('form')[0].auswahlterm;for(var i=0;i<radios.length;i++){if(radios[i].checked){var selected_term=radios[i].value;}}
if(selected_term){}else{$('#meldungen_l').fadeIn('200');setTimeout(function(){$('#meldungen_l').fadeOut('200');},2000);losung_ingange=false;return false;}
if(trim(solution)==trim(selected_term)){$('#meldungen_r').fadeIn('200');setTimeout(function(){$('#meldungen_r').fadeOut('200');},3000);quiz_richtig++;}else{$('#meldungen_f').fadeIn('200');var radio_btns=document.getElementsByName('auswahlterm');for(var i=0;i<radio_btns.length;i++){if(radio_btns[i].value==trim(solution)){var label_id=radio_btns[i].id;$('#label'+label_id).fadeIn('200');$('.lab'+label_id).css("font-weight","bold");}}
if(term_lang=="de"){fehler[term]=solution;}else{fehler[solution]=term;}
setTimeout(function(){$('#meldungen_f').fadeOut('200');$('#label'+label_id).fadeOut('200');$('.lab'+label_id).css("font-weight","normal");},3000);quiz_falsch++;}
if(language==1){var quiz_status="<div style='font-family:sans-serif;font-size:13px;margin-top:15px;'>Total:<span style='font-weight:bold;'>"+quit_gesamt+"</span> --- Right: <span style='color:green;font-weight:bold;'>"+quiz_richtig+"</span> --- Wrong: <span style='color:red;font-weight:bold;'>"+quiz_falsch+"</span></div><div align='left' style:margin-top:10px;><div style='border:1px solid #cccccc;background-color:#cecece;width:120px;text-align:center;margin-top:10px;'><a href='javascript: void(0)' onclick='zeige_die_fehler(1)'>End the training</a></div></div>";}else{var quiz_status="<div style='font-family:sans-serif;font-size:15px;margin-top:15px;' dir='rtl'> عدد الأسئلة:<span style='font-weight:bold;'>"+quit_gesamt+"</span> --- الإجابات الصحيحة: <span style='color:green;font-weight:bold;'>"+quiz_richtig+"</span> --- الإجابات الخاطئة: <span style='color:red;font-weight:bold;'>"+quiz_falsch+"</span></div><div align='left' style:margin-top:10px;><div style='border:1px solid #cccccc;background-color:#cecece;width:110px;text-align:center;margin-top:10px;'><a href='javascript: void(0)' onclick='zeige_die_fehler(2)'>انهي التمرين</a></div></div>";}
$("#loesung").html(quiz_status);setTimeout(function(){start_term_quiz();},4000);}
var arraykey=0;function zeige_die_fehler(language){if(language==1){var falscheantworte="<div align='left' style='font-weight:bold;color:#444444;text-decoration:underline;'>The wrong answers are:</div><table width='90%'cellpadding='0' cellspacing='0' style='font-size:14px;'>";}else{var falscheantworte="<div align='right' style='font-weight:bold;color:#444444;text-decoration:underline;' dir='rtl'>الإجابات الخاطئة كانت كألاتي:</div><table width='90%'cellpadding='0' cellspacing='0' style='font-size:14px;'>";}
for(key in fehler){falscheantworte+="<tr><td align='left' dir='ltr'>"+key+"</td><td dir='rtl' style='font-size:16px;' align='right'>"+fehler[key]+"</td></tr>";arraykey=key;}
falscheantworte+="</table>";if(arraykey==0){document.location=document.location.href;}else{parent.document.getElementById('fehler_report').innerHTML=falscheantworte;document.location=document.location.href;}}
function check_filter(){if(cats.length<=1){document.getElementById('filter').style.display="none";}}
var filter_status=0;function show_filter(){if(document.getElementById('filter_div').style.display=="block"){close_filter();return false;}
if(filter_status!=0){$('#filter_div').show('200');return false;}else{var filter_list="";for(x in cats)
{filter_list+="<input type='checkbox' name='"+cats[x]+"' id='"+cats[x]+"' checked onclick='update_filter(this.name)'><span>"+cats[x]+"</span>&nbsp;&nbsp;";}
filter_list+="&nbsp;&nbsp;&nbsp;&nbsp;<span style=''><a href='javascript: void(0)' onclick='close_filter()'style='color:red;font-weight:bold;padding:1px;position:relative;top:-5px;height:15px;text-decoration:none;'>x</span>";var topleft=ObjectPosition(document.getElementById('filter'));document.getElementById('filter_div').style.left=parseInt(topleft[0])+22+"px";document.getElementById('filter_div').style.top=parseInt(topleft[1])+"px";document.getElementById('filter_div').innerHTML=filter_list;$('#filter_div').show('200');}}
function update_filter(diese_id){if(document.getElementById(diese_id).checked==1){$('.'+diese_id).fadeIn('200');}else{$('.'+diese_id).fadeOut('200');}}
function close_filter(){filter_status=document.getElementById('filter_div').innerHTML;$('#filter_div').hide('200');}
function ObjectPosition(obj){var curleft=0;var curtop=0;if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);}
return[curleft,curtop];}
function getsound(sound,ids){var sound_div=ObjectPosition(document.getElementById('div_'+ids));document.getElementById('aussprache_div').style.left=parseInt(sound_div[0])-100+"px";document.getElementById('aussprache_div').style.top=parseInt(sound_div[1])+20+"px";document.getElementById('sound_img'+ids).src=basePath+"de/images/stopsprecher.png";document.getElementById('myiframe').contentWindow.location.href=basePath+'en/google_sound/aussprach.php?term='+encode(sound)+"&img_id="+ids;}
function getsound_ar(sound,ids){var sound_div=ObjectPosition(document.getElementById('div_'+ids));document.getElementById('aussprache_div').style.left=parseInt(sound_div[0])-100+"px";document.getElementById('aussprache_div').style.top=parseInt(sound_div[1])+20+"px";document.getElementById('sound_img_ar'+ids).src=basePath+"de/images/stopsprecher.png";document.getElementById('myiframe').contentWindow.location.href=basePath+'en/google_sound/ar/aussprach.php?term='+encode(sound)+"&img_id="+ids;}
function sentplural(row_id,lang,term_id,plur_for,mode){pluralrequest=GetXmlHttpObject();if(pluralrequest){var Plural=document.getElementById("plural"+row_id).value;if(Plural==""){document.getElementById("plural"+row_id).style.border="1px solid red";return false;}else{}
parameters="plural="+encode(Plural)+"&pluralfor="+encode(plur_for)+"&langua="+lang+"&rowid="+term_id+"&mode="+mode+"&sid="+Math.random();pluralrequest.onreadystatechange=pluralcallback(row_id);pluralrequest.open("POST","sendplural.php",true);pluralrequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");pluralrequest.setRequestHeader("Content-length",parameters.length);pluralrequest.setRequestHeader("Connection","close");pluralrequest.send(parameters);}}
function pluralcallback(row_id){if(pluralrequest.readyState==4){if(pluralrequest.responseText==1){$('#row'+row_id).fadeOut('200');}else{}}else{var func="pluralcallback("+row_id+")";setTimeout(func,100);}}
var tipps_status=0;function show_search_tipps(){if(tipps_status==0){$('#tipps_div').slideDown('200');tipps_status=1;document.getElementById("tipp_img").src=basePath+"de/images/minus_z.gif";}else{$('#tipps_div').slideUp('200');tipps_status=0;document.getElementById("tipp_img").src=basePath+"de/images/plus_z.gif";}}
function zeige(id_){if(id_=="idiom"){if(document.getElementById("idiom_en").style.display=='none'){document.getElementById("idiom_en").style.display='table-row';document.getElementById("idiom_ar").style.display='table-row';}else{document.getElementById("idiom_en").style.display='none';document.getElementById("idiom_ar").style.display='none';}}
else if(id_=="synonym"){if(document.getElementById("synonym_en").style.display=='none'){document.getElementById("synonym_en").style.display='table-row';document.getElementById("synonym_ar").style.display='table-row';}else{document.getElementById("synonym_en").style.display='none';document.getElementById("synonym_ar").style.display='none';}}else if(id_=="notice"){if(document.getElementById("notice_en").style.display=='none'){document.getElementById("notice_en").style.display='table-row';document.getElementById("notice_ar").style.display='table-row';document.getElementById("region_de").style.display='table-row';document.getElementById("region_ar").style.display='table-row';}else{document.getElementById("notice_en").style.display='none';document.getElementById("notice_ar").style.display='none';document.getElementById("region_de").style.display='none';document.getElementById("region_ar").style.display='none';}}else if(id_=="example"){if(document.getElementById("example_en").style.display=='none'){document.getElementById("example_en").style.display='table-row';document.getElementById("example_ar").style.display='table-row';}else{document.getElementById("example_en").style.display='none';document.getElementById("example_ar").style.display='none';}}}
function confirmDelete(delUrl){if(confirm("are you sure you want to carry on?")){document.location=delUrl;}}
function showloadbar(loadstate){var width_=parseInt(loadstate)*50+'px';var loadstatus=parseInt(loadstate)*25;$('#loadWert').html(loadstatus+'%');$('#loadbar').parent().css('visibility','visible');$('#loadbar').html('&nbsp;');$('#loadbar').animate({width:width_},100);if(loadstate==4){setTimeout(function(){$('#loadbar').parent().css('visibility','hidden');$('#loadbar').css('width','50px');$('#loadWert').html('25');},2000);}}
function addtranslation(trans){window.location=basePath+"en/meinbeitrag?"+trans;}
function toggleDedails(mehr_id,details_class,spra){if(spra==1){if($('#'+details_class+'').css('display')=='none'){$('#'+details_class+'').show();$('#'+mehr_id+'').html(' close');}else{$('#'+details_class+'').hide();$('#'+mehr_id+'').html('... more');}}else{if($('#'+details_class+'').css('display')=='none'){$('#'+details_class+'').show();$('#'+mehr_id+'').html(' إغلاق');}else{$('#'+details_class+'').hide();$('#'+mehr_id+'').html('... المزيد');}}}
function mehrZeigen(thisId){$('#'+thisId+'').toggle();}
function email_eingabe_div_show(){if(document.getElementById("email_eingabe_div").style.display=="none"){$('#email_eingabe_div').slideDown(100);document.getElementById("beitrag_eingabe_emai").value="";document.getElementById("beitrag_eingabe_emai").focus();}else{$('#email_eingabe_div').slideUp(100);}};function sendthisbeitrag(){var namen=$('#name_').val();var emails=$('#email_').val();var beitrag_deutsch=$('#beitrag_deutsch').val();var beitrag_arabisch=$('#beitrag_arabisch').val();var fehlern="";if(emails!=""){var pattern=/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;if(pattern.test(emails)){var emails=emails;$('#email_').css('border','1px solid #cccccc');}else{$('#email_').css('border','1px solid red');$('#fehler_message').append("<div style='margin:2px;color:red;'>Please type in a valid Email!</div>");}}
if(beitrag_deutsch!=""){var deutsch_letters=/^[a-züßäö:\/\\\<\>\{\}\[\];*#?=&%$"!'+.~A-ZÜÄÖ0-9\s(\-)]{0,}$/;if(deutsch_letters.test(beitrag_deutsch)){var beitrag_deutsch=beitrag_deutsch;$('#beitrag_deutsch').css('border','1px solid #cccccc');$('#fehler_message_de').hide().html('');}else{fehlern="x";$('#beitrag_deutsch').css('border','1px solid red');if($('#fehler_message_de')){$('#fehler_message_de').html("<div style='margin:2px;color:red;'>Please check out the Arabic term or text!</div>");}else{$('#fehler_message').append("<div style='margin:2px;color:red;'>Please check out the Arabic term or text!</div>");}}}else{fehlern="x";$('#beitrag_deutsch').css('border','1px solid red');if($('#fehler_message_de')){$('#fehler_message_de').html("<div style='margin:2px;color:red;'>Please type in the English term or text!</div>");}else{$('#fehler_message').append("<div style='margin:2px;color:red;'>Please type in the English term or text!</div>");}}
if(beitrag_arabisch!=""){var deutsch_letters=/^[a-züßäö:\/\\\<\>\{\}\[\];*#?=&%$"!'+.~A-ZÜÄÖ0-9\s(\-)]{0,}$/;if(deutsch_letters.test(beitrag_arabisch)==false){var beitrag_arabisch=beitrag_arabisch;$('#beitrag_arabisch').css('border','1px solid #bbbbbb');$('#fehler_message_ar').hide().html('');}else{fehlern="x";$('#beitrag_arabisch').css('border','1px solid red');if($('#fehler_message_ar')){$('#fehler_message_ar').html("<div style='margin:2px;color:red;'>Please check out the Arabic term or text!</div>");}else{$('#fehler_message').append("<div style='margin:2px;color:red;'>Please check out the Arabic term or text!</div>");}}}else{fehlern="x";$('#beitrag_arabisch').css('border','1px solid red');if($('#fehler_message_ar')){$('#fehler_message_ar').html("<div style='margin:2px;color:red;'>Please type in the Arabic term or text!</div>");}else{$('#fehler_message').append("<div style='margin:2px;color:red;'>Please type in the Arabic term or text!</div>");}}
if(fehlern==""){$.ajax({url:basePath+"en/sendbeitrag.php",global:false,type:"POST",data:"send=1&beitrager="+namen+"&email="+emails+"&text_deutsch="+beitrag_deutsch+"&text_arabisch="+beitrag_arabisch+"&indexId="+vorschlagIndexNum,dataType:"html",success:function(msg){if(msg==1){if(document.getElementById('fehler_message')){$('#fehler_message').append("<div style='margin:2px;color:green;font-weight:bold;'>Thank you for supporting us!</div>");show_inhalt_close_div();$('textarea').val('');}else{$('#success_meldung').css('display','none').html("<div style='margin:2px;color:green;font-weight:bold;font-size:15px;'>Thank you for supporting us!</div>").fadeIn();$('#fehler_message_ar').fadeOut().html('');$('#fehler_message_de').fadeOut().html('');$('#'+curVorschlgId+'').fadeOut().html('');setTimeout(function(){$('#success_meldung').fadeOut();},5000);$('textarea').val('');}}else{$('#fehler_message').append(msg);show_inhalt_close_div();}}})}else{show_inhalt_close_div();}}
function show_inhalt_close_div(){$('#submit').attr("disabled","true");$('#fehler_message').slideDown();setTimeout(function(){$('#fehler_message').slideUp();$('#fehler_message').html('');$('#submit').attr("disabled","");},5000)}
function sendthisemail(){var namen=$('#name').val();var emails=$('#email_').val();var subj=$('#subj').val();var mesg=$('#mesg').val();var fehlern="";if(namen!=""){var namen=namen;$('#name').css('border','1px solid #cccccc');}else{fehlern="x";$('#name').css('border','1px solid red');$('#fehler_message').append("<div style='margin:2px;color:red;'>Please enter your name!</div>");}
if(emails!=""){var pattern=/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;if(pattern.test(emails)){var emails=emails;$('#email_').css('border','1px solid #cccccc');}else{fehlern="x";$('#email_').css('border','1px solid red');$('#fehler_message').append("<div style='margin:2px;color:red;'>Please enter a valid e-mail address!</div>");}}else{fehlern="x";$('#email_').css('border','1px solid red');$('#fehler_message').append("<div style='margin:2px;color:red;'>Please enter your e-mail address!</div>");}
if(subj!=""){var subj=subj;$('#subj').css('border','1px solid #cccccc');}else{fehlern="x";$('#subj').css('border','1px solid red');$('#fehler_message').append("<div style='margin:2px;color:red;'>Please enter the subject of your message!</div>");}
if(mesg!=""){var mesg=mesg;$('#mesg').css('border','1px solid #bbbbbb');}else{fehlern="x";$('#mesg').css('border','1px solid red');$('#fehler_message').append("<div style='margin:2px;color:red;'>Please enter your message!</div>");}
if(fehlern==""){$.ajax({url:"sendmail.php",global:false,type:"POST",data:"send=1&name="+namen+"&email="+emails+"&subject="+subj+"&text="+mesg,dataType:"html",success:function(msg){if(msg==1){$('#fehler_message').append("<div style='margin:2px;color:green;font-weight:bold;'>Thank you for contacting us!</div>");show_inhalt_close_div();$('textarea').val('');$(":input:[type=text]").val('');}else{$('#fehler_message').append(msg);show_inhalt_close_div();}}})}else{show_inhalt_close_div();}}
var curVorschlgId;var vorschlagIndexNum;var transvorschlagDiv=false;function handelVorschlag(_de_,_ar_,vorschlagId,vorschlagIndex){vorschlagIndexNum=vorschlagIndex;curVorschlgId=vorschlagId;if(transvorschlagDiv==false){footerbarHeight=25+90;$('#transvorschlagDiv').css('display','block');$('#beitrag_deutsch').val(_de_);$('#beitrag_arabisch').val(_ar_);$('#footer-bar').css('top',($(window).height()-footerbarHeight)+"px");$('#footerArrow').attr('src',''+basePath+'de/images/close_footer_down.gif');$('#footerArrow').attr('height','13');$('#footerArrow').attr('width','13');$('#footer-bar').css('border-top','1px solid #CCCCCC');transvorschlagDiv=true;}else{$('#beitrag_deutsch').val(_de_);$('#beitrag_arabisch').val(_ar_);}}
function handelFooterbar(){if($('#transvorschlagDiv').css('display')=="block"){footerbarHeight=25;$('#transvorschlagDiv').css('display','none');$('#footer-bar').css('top',($(window).height()-footerbarHeight)+"px");$('#footerArrow').attr('src',''+basePath+'de/images/close_footer.gif');$('#footer-bar').css('border-top','1px solid #CCCCCC');transvorschlagDiv=false;}else{if($('.vorschlagRow').css('width')!="0px"){$('#footerArrow').css('display','none');footerbarHeight=148;$('#footerArrow').attr('src',''+basePath+'de/images/uebersetzercenterEn.gif');$('#footerArrow').css('display','block');$('.vorschlagRowInner').css('display','none');$('.vorschlagRow').css('width','0px');$('#footer-bar').css('top',($(window).height()-footerbarHeight)+"px");$('#footer-bar').css('width','26px');$('#footer-bar').css('border-top','none');$('#footerArrow').css('height','139px');$('#footerArrow').attr('width','26');$('#footerArrow').css('margin-left','-8px');transvorschlagDiv=false;}else{footerbarHeight=25;$('.vorschlagRow').css('width','auto');$('.vorschlagRowInner').css('display','block');$('#footer-bar').css('width','100%');$('#footerArrow').css('height','13px');$('#footerArrow').attr('height','13');$('#footerArrow').attr('width','13');$('#footerArrow').css('margin-left','0px');$('#footer-bar').css('top',($(window).height()-footerbarHeight)+"px");$('#footerArrow').attr('src',''+basePath+'de/images/close_footer.gif');$('#footer-bar').css('border-top','1px solid #CCCCCC');}}}
function rotateWords(){$("#vorschlagRowInner").append($("#vorschlagRowInner a:first-child")).find($("#vorschlagRowInner a:first-child")).remove();};function VKI_buildKeyboardInputs(){var self=this;this.VKI_version="Linguafocus";this.VKI_target=this.VKI_visible="";this.VKI_shift=this.VKI_capslock=this.VKI_alternate=this.VKI_dead=false;this.VKI_deadkeysOn=false;this.VKI_kt="Arabic";this.VKI_range=false;this.VKI_keyCenter=3;this.VKI_layout=new Object();this.VKI_layoutDDK=new Object();this.VKI_layout.Arabic=[[["\u0630","\u0651 "],["1","!","\u00a1","\u00b9"],["2","@","\u00b2"],["3","#","\u00b3"],["4","$","\u00a4","\u00a3"],["5","%","\u20ac"],["6","^","\u00bc"],["7","&","\u00bd"],["8","*","\u00be"],["9","(","\u2018"],["0",")","\u2019"],["-","_","\u00a5"],["=","+","\u00d7","\u00f7"],["Bksp","Bksp"]],[["Tab","Tab"],["\u0636","\u064e"],["\u0635","\u064b"],["\u062b","\u064f"],["\u0642","\u064c"],["\u0641","\u0644"],["\u063a","\u0625"],["\u0639","\u2018"],["\u0647","\u00f7"],["\u062e","\u00d7"],["\u062d","\u061b"],["\u062c","\u003c"],["\u062f","\u003e"],["\u005c","\u007c"]],[["Caps","Caps"],["\u0634","\u0650"],["\u0633","\u064d"],["\u064a","\u005d"],["\u0628","\u005b"],["\u0644","\u0644"],["\u0627","\u0623"],["\u062a","\u0640"],["\u0646","\u060c"],["\u0645","\u002f"],["\u0643","\u003a"],["\u0637","\u0022"],["Enter","Enter"]],[["Shift","Shift"],["\u0626","\u007e"],["\u0621","\u0652"],["\u0624","\u007d"],["\u0631","\u007b"],["\u0644","\u0644"],["\u0649","\u0622"],["\u0629","\u2019"],["\u0648","\u002c"],["\u0632","\u002e"],["\u0638","\u061f"],["Shift","Shift"]],[[" "," "," "," "],["Alt","Alt"]]];this.VKI_layout.English=[[["`","~"],["1","!"],["2","@"],["3","#"],["4","$"],["5","%"],["6","^"],["7","&"],["8","*"],["9","("],["0",")"],["-","_"],["=","+"],["Bksp","Bksp"]],[["Tab","Tab"],["q","Q"],["w","W"],["e","E"],["r","R"],["t","T"],["y","Y"],["u","U"],["i","I"],["o","O"],["p","P"],["[","{"],["]","}"],["\\","|"]],[["Caps","Caps"],["a","A"],["s","S"],["d","D"],["f","F"],["g","G"],["h","H"],["j","J"],["k","K"],["l","L"],[";",":"],["'",'"'],["Enter","Enter"]],[["Shift","Shift"],["z","Z"],["x","X"],["c","C"],["v","V"],["b","B"],["n","N"],["m","M"],[",","<"],[".",">"],["/","?"],["Shift","Shift"]],[[" "," "]]];this.VKI_layout.French=[[["\u00b2","\u00b3"],["&","1"],["\u00e9","2","~"],['"',"3","#"],["'","4","{"],["(","5","["],["-","6","|"],["\u00e8","7","\u0060"],["_","8","\\"],["\u00e7","9","\u005e"],["\u00e0","0","\u0040"],[")","\u00b0","]"],["=","+","}"],["Bksp","Bksp"]],[["Tab","Tab"],["a","A"],["z","Z"],["e","E","\u20ac"],["r","R"],["t","T"],["y","Y"],["u","U"],["i","I"],["o","O"],["p","P"],["^","\u00a8"],["$","\u00a3","\u00a4"],["Enter","Enter"]],[["Caps","Caps"],["q","Q"],["s","S"],["d","D"],["f","F"],["g","G"],["h","H"],["j","J"],["k","K"],["l","L"],["m","M"],["\u00f9","%"],["*","\u03bc"]],[["Shift","Shift"],["<",">"],["w","W"],["x","X"],["c","C"],["v","V"],["b","B"],["n","N"],[",","?"],[";","."],[":","/"],["!","\u00a7"],["Shift","Shift"]],[[" "," "," "," "],["AltGr","AltGr"]]];this.VKI_layout.German=[[["\u005e","\u00b0"],["1","!"],["2",'"',"\u00b2"],["3","\u00a7","\u00b3"],["4","$"],["5","%"],["6","&"],["7","/","{"],["8","(","["],["9",")","]"],["0","=","}"],["\u00df","?","\\"],["\u00b4","\u0060"],["Bksp","Bksp"]],[["Tab","Tab"],["q","Q","\u0040"],["w","W"],["e","E","\u20ac"],["r","R"],["t","T"],["z","Z"],["u","U"],["i","I"],["o","O"],["p","P"],["\u00fc","\u00dc"],["+","*","~"],["Enter","Enter"]],[["Caps","Caps"],["a","A"],["s","S"],["d","D"],["f","F"],["g","G"],["h","H"],["j","J"],["k","K"],["l","L"],["\u00f6","\u00d6"],["\u00e4","\u00c4"],["#","'"]],[["Shift","Shift"],["<",">","\u00a6"],["y","Y"],["x","X"],["c","C"],["v","V"],["b","B"],["n","N"],["m","M","\u00b5"],[",",";"],[".",":"],["-","_"],["Shift","Shift"]],[[" "," "," "," "],["AltGr","AltGr"]]];this.VKI_layout.Numpad=[[["$"],["\u00a3"],["\u20ac"],["\u00a5"],["/"],["^"],["Bksp","Bksp"]],[["."],["7"],["8"],["9"],["*"],["<"],["("],["["]],[["="],["4"],["5"],["6"],["-"],[">"],[")"],["]"]],[["0"],["1"],["2"],["3"],["+"],["Enter","Enter"]],[[" "]]];this.VKI_layoutDDK.Numpad=true;this.VKI_deadkey=new Object();this.VKI_deadkey['"']=this.VKI_deadkey['\u00a8']=[["a","\u00e4"],["e","\u00eb"],["i","\u00ef"],["o","\u00f6"],["u","\u00fc"],["y","\u00ff"],["\u03b9","\u03ca"],["\u03c5","\u03cb"],["A","\u00c4"],["E","\u00cb"],["I","\u00cf"],["O","\u00d6"],["U","\u00dc"],["Y","\u0178"],["\u0399","\u03aa"],["\u03a5","\u03ab"]];this.VKI_deadkey['~']=[["a","\u00e3"],["o","\u00f5"],["n","\u00f1"],["A","\u00c3"],["O","\u00d5"],["N","\u00d1"]];this.VKI_deadkey['^']=[["a","\u00e2"],["e","\u00ea"],["i","\u00ee"],["o","\u00f4"],["u","\u00fb"],["w","\u0175"],["y","\u0177"],["A","\u00c2"],["E","\u00ca"],["I","\u00ce"],["O","\u00d4"],["U","\u00db"],["W","\u0174"],["Y","\u0176"]];this.VKI_deadkey['\u02c7']=[["c","\u010D"],["s","\u0161"],["z","\u017E"],["r","\u0159"],["d","\u010f"],["t","\u0165"],["n","\u0148"],["l","\u013e"],["e","\u011b"],["C","\u010C"],["S","\u0160"],["Z","\u017D"],["R","\u0158"],["D","\u010e"],["T","\u0164"],["N","\u0147"],["L","\u013d"],["E","\u011a"]];this.VKI_deadkey['\u02d8']=[["a","\u0103"],["g","\u011f"],["A","\u0102"],["G","\u011e"]];this.VKI_deadkey['`']=[["a","\u00e0"],["e","\u00e8"],["i","\u00ec"],["o","\u00f2"],["u","\u00f9"],["A","\u00c0"],["E","\u00c8"],["I","\u00cc"],["O","\u00d2"],["U","\u00d9"]];this.VKI_deadkey["'"]=this.VKI_deadkey['\u00b4']=this.VKI_deadkey['\u0384']=[["a","\u00e1"],["e","\u00e9"],["i","\u00ed"],["o","\u00f3"],["u","\u00fa"],["\u03b1","\u03ac"],["\u03b5","\u03ad"],["\u03b7","\u03ae"],["\u03b9","\u03af"],["\u03bf","\u03cc"],["\u03c5","\u03cd"],["\u03c9","\u03ce"],["A","\u00c1"],["E","\u00c9"],["I","\u00cd"],["O","\u00d3"],["U","\u00da"],["\u0391","\u0386"],["\u0395","\u0388"],["\u0397","\u0389"],["\u0399","\u038a"],["\u039f","\u038c"],["\u03a5","\u038e"],["\u03a9","\u038f"]];this.VKI_deadkey['\u02dd']=[["o","\u0151"],["u","\u0171"],["O","\u0150"],["U","\u0170"]];this.VKI_deadkey["\u0385"]=[["\u03b9","\u0390"],["\u03c5","\u03b0"]];this.VKI_deadkey['\u00b0']=this.VKI_deadkey['\u00ba']=[["a","\u00e5"],["A","\u00c5"]];var inputElems=[document.getElementsByTagName('input'),document.getElementsByTagName('textarea'),]
for(var x=0,inputCount=0,elem;elem=inputElems[x++];){if(elem){for(var y=0,keyid="",ex;ex=elem[y++];){if((ex.nodeName=="TEXTAREA"||ex.type=="text"||ex.type=="password")&&ex.id.indexOf("eingabefeld")>-1){if(!ex.id){do{keyid='keyboardInputInitiator'+inputCount++;}while(document.getElementById(keyid));ex.id=keyid;}else keyid=ex.id;var keybut=document.getElementById('tastatur_symb');keybut.onclick=(function(a){return function(){self.VKI_show(a);};})(keyid);if(!window.sidebar&&!window.opera){ex.onclick=ex.onselect=function(){if(self.VKI_target.createTextRange)self.VKI_range=document.selection.createRange();};}}}}}
this.VKI_keyboard=document.createElement('table');this.VKI_keyboard.id="keyboardInputMaster";this.VKI_keyboard.cellSpacing=this.VKI_keyboard.cellPadding=this.VKI_keyboard.border="0";var layouts=0;for(ktype in this.VKI_layout)if(typeof this.VKI_layout[ktype]=="object")layouts++;var thead=document.createElement('thead');var tr=document.createElement('tr');var th=document.createElement('th');if(layouts>1){var kblist=document.createElement('select');for(ktype in this.VKI_layout){if(typeof this.VKI_layout[ktype]=="object"){var opt=document.createElement('option');opt.value=ktype;opt.appendChild(document.createTextNode(ktype));kblist.appendChild(opt);}}
kblist.value=this.VKI_kt;kblist.onchange=function(){self.VKI_kt=this.value;self.VKI_buildKeys();self.VKI_position();};th.appendChild(kblist);}
var label=document.createElement('label');var checkbox=document.createElement('input');checkbox.type="checkbox";checkbox.style.visibility='hidden';checkbox.style.marginLeft="-14px";checkbox.checked=this.VKI_deadkeysOn;checkbox.title="Toggle dead key input";checkbox.onclick=function(){self.VKI_deadkeysOn=this.checked;self.VKI_deadkeysOn=this.style.visibility="hidden";this.nextSibling.nodeValue="<< Choose your Language";this.nextSibling.style.fontWeight="bold";self.VKI_modify("");return true;};label.appendChild(checkbox);label.appendChild(document.createTextNode("<< Choose your Language"))
label.style.fontWeight="bold";label.style.color="#344C56";th.appendChild(label);tr.appendChild(th);var td=document.createElement('td');var clearer=document.createElement('span');clearer.id="keyboardInputClear";clearer.appendChild(document.createTextNode("Clear"));clearer.title="Clear this input";clearer.onmousedown=function(){this.className="pressed";};clearer.onmouseup=function(){this.className="";};clearer.onclick=function(){self.VKI_target.value="";self.VKI_target.focus();return false;};td.appendChild(clearer);var closer=document.createElement('span');closer.id="keyboardInputClose";closer.appendChild(document.createTextNode('X'));closer.title="Close this window";closer.onmousedown=function(){this.className="pressed";};closer.onmouseup=function(){this.className="";};closer.onclick=function(){self.VKI_close();};td.appendChild(closer);tr.appendChild(td);thead.appendChild(tr);this.VKI_keyboard.appendChild(thead);var tbody=document.createElement('tbody');var tr=document.createElement('tr');var td=document.createElement('td');td.colSpan="2";var div=document.createElement('div');div.id="keyboardInputLayout";td.appendChild(div);var div=document.createElement('div');var ver=document.createElement('var');ver.appendChild(document.createTextNode(this.VKI_version));div.appendChild(ver);td.appendChild(div);tr.appendChild(td);tr.style.color="#333333";tbody.appendChild(tr);this.VKI_keyboard.appendChild(tbody);this.VKI_buildKeys=function(){this.VKI_shift=this.VKI_capslock=this.VKI_alternate=this.VKI_dead=false;this.VKI_deadkeysOn=(this.VKI_layoutDDK[this.VKI_kt])?false:this.VKI_keyboard.getElementsByTagName('label')[0].getElementsByTagName('input')[0].checked;var container=this.VKI_keyboard.tBodies[0].getElementsByTagName('div')[0];while(container.firstChild)container.removeChild(container.firstChild);for(var x=0,hasDeadKey=false,lyt;lyt=this.VKI_layout[this.VKI_kt][x++];){var table=document.createElement('table');table.cellSpacing=table.cellPadding=table.border="0";if(lyt.length<=this.VKI_keyCenter)table.className="keyboardInputCenter";var tbody=document.createElement('tbody');var tr=document.createElement('tr');for(var y=0,lkey;lkey=lyt[y++];){if(!this.VKI_layoutDDK[this.VKI_kt]&&!hasDeadKey)
for(var z=0;z<lkey.length;z++)
if(this.VKI_deadkey[lkey[z]])hasDeadKey=true;var td=document.createElement('td');td.appendChild(document.createTextNode(lkey[0]));var alive=false;if(this.VKI_deadkeysOn)for(key in this.VKI_deadkey)if(key===lkey[0])alive=true;td.className=(alive)?"alive":"";if(lyt.length>this.VKI_keyCenter&&y==lyt.length)
td.className+=" last";if(lkey[0]==" ")
td.style.paddingLeft=td.style.paddingRight="50px";td.onmouseover=function(){if(this.className!="dead"&&this.firstChild.nodeValue!="\xa0")this.className+=" hover";};td.onmouseout=function(){if(this.className!="dead")this.className=this.className.replace(/ ?(hover|pressed)/g,"");};td.onmousedown=function(){if(this.className!="dead"&&this.firstChild.nodeValue!="\xa0")this.className+=" pressed";};td.onmouseup=function(){if(this.className!="dead")this.className=this.className.replace(/ ?pressed/g,"");};td.ondblclick=function(){return false;};switch(lkey[1]){case"Caps":case"Shift":case"Alt":case"AltGr":td.onclick=(function(type){return function(){self.VKI_modify(type);return false;}})(lkey[1]);break;case"Tab":td.onclick=function(){self.VKI_insert("\t");return false;};break;case"Bksp":td.onclick=function(){self.VKI_target.focus();if(self.VKI_target.setSelectionRange){var srt=self.VKI_target.selectionStart;var len=self.VKI_target.selectionEnd;if(srt<len)srt++;self.VKI_target.value=self.VKI_target.value.substr(0,srt-1)+self.VKI_target.value.substr(len);self.VKI_target.setSelectionRange(srt-1,srt-1);}else if(self.VKI_target.createTextRange){try{self.VKI_range.select();}catch(e){}
self.VKI_range=document.selection.createRange();if(!self.VKI_range.text.length)self.VKI_range.moveStart('character',-1);self.VKI_range.text="";}else self.VKI_target.value=self.VKI_target.value.substr(0,self.VKI_target.value.length-1);if(self.VKI_shift)self.VKI_modify("Shift");if(self.VKI_alternate)self.VKI_modify("AltGr");return true;};break;case"Enter":td.onclick=function(){if(self.VKI_target.nodeName=="TEXTAREA"){self.VKI_insert("\n");}else self.VKI_close();return true;};break;default:td.onclick=function(){if(self.VKI_deadkeysOn&&self.VKI_dead){if(self.VKI_dead!=this.firstChild.nodeValue){for(key in self.VKI_deadkey){if(key==self.VKI_dead){if(this.firstChild.nodeValue!=" "){for(var z=0,rezzed=false,dk;dk=self.VKI_deadkey[key][z++];){if(dk[0]==this.firstChild.nodeValue){self.VKI_insert(dk[1]);rezzed=true;break;}}}else{self.VKI_insert(self.VKI_dead);rezzed=true;}
break;}}}else rezzed=true;}
self.VKI_dead=false;if(!rezzed&&this.firstChild.nodeValue!="\xa0"){if(self.VKI_deadkeysOn){for(key in self.VKI_deadkey){if(key==this.firstChild.nodeValue){self.VKI_dead=key;this.className="dead";if(self.VKI_shift)self.VKI_modify("Shift");if(self.VKI_alternate)self.VKI_modify("AltGr");break;}}
if(!self.VKI_dead)self.VKI_insert(this.firstChild.nodeValue);}else self.VKI_insert(this.firstChild.nodeValue);}
self.VKI_modify("");return false;};}
tr.appendChild(td);tbody.appendChild(tr);table.appendChild(tbody);for(var z=lkey.length;z<4;z++)lkey[z]="\xa0";}
container.appendChild(table);}
this.VKI_keyboard.getElementsByTagName('label')[0].style.display=(hasDeadKey)?"inline":"none";};this.VKI_buildKeys();VKI_disableSelection(this.VKI_keyboard);this.VKI_modify=function(type){switch(type){case"Alt":case"AltGr":this.VKI_alternate=!this.VKI_alternate;break;case"Caps":this.VKI_capslock=!this.VKI_capslock;break;case"Shift":this.VKI_shift=!this.VKI_shift;break;}
var vchar=0;if(!this.VKI_shift!=!this.VKI_capslock)vchar+=1;var tables=this.VKI_keyboard.getElementsByTagName('table');for(var x=0;x<tables.length;x++){var tds=tables[x].getElementsByTagName('td');for(var y=0;y<tds.length;y++){var dead=alive=target=false;var lkey=this.VKI_layout[this.VKI_kt][x][y];switch(lkey[1]){case"Alt":case"AltGr":if(this.VKI_alternate)dead=true;break;case"Shift":if(this.VKI_shift)dead=true;break;case"Caps":if(this.VKI_capslock)dead=true;break;case"Tab":case"Enter":case"Bksp":break;default:if(type)tds[y].firstChild.nodeValue=lkey[vchar+((this.VKI_alternate&&lkey.length==4)?2:0)];if(this.VKI_deadkeysOn){var char=tds[y].firstChild.nodeValue;if(this.VKI_dead){if(char==this.VKI_dead)dead=true;for(var z=0;z<this.VKI_deadkey[this.VKI_dead].length;z++)
if(char==this.VKI_deadkey[this.VKI_dead][z][0]){target=true;break;}}
for(key in this.VKI_deadkey)if(key===char){alive=true;break;}}}
tds[y].className=(dead)?"dead":((target)?"target":((alive)?"alive":""));if(y==tds.length-1&&tds.length>this.VKI_keyCenter)tds[y].className+=" last";}}
this.VKI_target.focus();};this.VKI_insert=function(text){this.VKI_target.focus();if(this.VKI_target.setSelectionRange){var srt=this.VKI_target.selectionStart;var len=this.VKI_target.selectionEnd;this.VKI_target.value=this.VKI_target.value.substr(0,srt)+text+this.VKI_target.value.substr(len);if(text=="\n"&&window.opera)srt++;this.VKI_target.setSelectionRange(srt+text.length,srt+text.length);}else if(this.VKI_target.createTextRange){try{this.VKI_range.select();}catch(e){}
this.VKI_range=document.selection.createRange();this.VKI_range.text=text;this.VKI_range.collapse(true);this.VKI_range.select();}else this.VKI_target.value+=text;if(this.VKI_shift)this.VKI_modify("Shift");if(this.VKI_alternate)this.VKI_modify("AltGr");this.VKI_target.focus();checklang(text);};this.VKI_show=function(id){if(this.VKI_target=document.getElementById(id)){if(this.VKI_visible!=id){this.VKI_range="";try{this.VKI_keyboard.parentNode.removeChild(this.VKI_keyboard);}catch(e){}
var elem=this.VKI_target;this.VKI_target.keyboardPosition="absolute";do{if(VKI_getStyle(elem,"position")=="fixed"){this.VKI_target.keyboardPosition="fixed";break;}}while(elem=elem.offsetParent);this.VKI_keyboard.style.top=this.VKI_keyboard.style.right=this.VKI_keyboard.style.bottom=this.VKI_keyboard.style.left="auto";this.VKI_keyboard.style.position=this.VKI_target.keyboardPosition;document.body.appendChild(this.VKI_keyboard);this.VKI_visible=this.VKI_target.id;this.VKI_position();this.VKI_target.focus();}else this.VKI_close();}};this.VKI_position=function(){if(self.VKI_visible!=""){var inputElemPos=VKI_findPos(self.VKI_target);self.VKI_keyboard.style.top=inputElemPos[1]-((self.VKI_target.keyboardPosition=="fixed")?document.body.scrollTop:0)+self.VKI_target.offsetHeight+3+"px";self.VKI_keyboard.style.left=Math.min(VKI_innerDimensions()[0]-self.VKI_keyboard.offsetWidth-15,inputElemPos[0])+"px";}};if(window.addEventListener){window.addEventListener('resize',this.VKI_position,false);}else if(window.attachEvent)
window.attachEvent('onresize',this.VKI_position);this.VKI_close=function(){try{this.VKI_keyboard.parentNode.removeChild(this.VKI_keyboard);}catch(e){}
this.VKI_visible="";this.VKI_target.focus();this.VKI_target="";};}
if(window.addEventListener){window.addEventListener('load',VKI_buildKeyboardInputs,false);}else if(window.attachEvent)
window.attachEvent('onload',VKI_buildKeyboardInputs);function VKI_findPos(obj){var curleft=curtop=0;do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);return[curleft,curtop];}
function VKI_innerDimensions(){if(self.innerHeight){return[self.innerWidth,self.innerHeight];}else if(document.documentElement&&document.documentElement.clientHeight){return[document.documentElement.clientWidth,document.documentElement.clientHeight];}else if(document.body)
return[document.body.clientWidth,document.body.clientHeight];return[0,0];}
function VKI_getStyle(obj,styleProp){if(obj.currentStyle){var y=obj.currentStyle[styleProp];}else if(window.getComputedStyle)
var y=window.getComputedStyle(obj,null)[styleProp];return y;}
function VKI_disableSelection(elem){elem.onselectstart=function(){return false;};elem.unselectable="on";elem.style.MozUserSelect="none";elem.style.cursor="default";if(window.opera)elem.onmousedown=function(){return false;};}
