function googleTranslateElementInit2(){new google.translate.TranslateElement({pageLanguage:'zh-CN',autoDisplay:false},'google_translate_element2')}var googleTranslateScript=document.createElement('script');googleTranslateScript.type='text/javascript';googleTranslateScript.async=true;googleTranslateScript.src='https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(googleTranslateScript);function googleTranslateFireEvent(a,b){try{if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(b,true,true);a.dispatchEvent(c)}else{var c=document.createEventObject();a.fireEvent('on'+b,c)}}catch(e){}}function googleTranslate(a){if(a.value)a=a.value;if(a=='')return;var b=a.split('|')[1];var c;var d=document.getElementsByTagName('select');for(var i=0;i<d.length;i++)if(d[i].className=='goog-te-combo')c=d[i];if(document.getElementById('google_translate_element2')==null||document.getElementById('google_translate_element2').innerHTML.length==0||c.length==0||c.innerHTML.length==0){setTimeout(function(){googleTranslate(a)},500)}else{c.value=b;googleTranslateFireEvent(c,'change');googleTranslateFireEvent(c,'change')}}