function iload(n,x,y){if(document.getElementById('iloading')){if(n){document.getElementById('iloading').style.left=x+'px';document.getElementById('iloading').style.top=y+'px';document.getElementById('iloading').style.display='block'}else document.getElementById('iloading').style.display='none'}}function errinfo(m,u,l){if(m.indexOf('send_billboard')>-1){fetch_script('/js/profile.js')}else alert('Line: '+l+' of '+u+"\n"+m);return true}function open_url(x,t,w,h){var u=make_url(x);if(!w){w=700};if(!h){h=600};if(t&&t=='_blank')window.open(u,'ext_win','width='+w+',height='+h);else window.location.href=u}function make_url(x){var u=clean_ss(x);var a=Math.random();var w=get_opt('wi');var l=get_opt('lang');var s=get_opt('style');if(u.indexOf('__=')==-1)u=url_opt(u,'__='+a);if(u.indexOf('ss=')==-1)u=url_opt(u,'ss='+_sess);if(w&&u.indexOf('wi')==-1)u=url_opt(u,'wi='+w);if(l&&u.indexOf('lang')==-1)u=url_opt(u,'lang='+l);if(s&&u.indexOf('style')==-1)u=url_opt(u,'style='+s);return u}function clean_ss(i){if(i.indexOf('ss\=')!=-1){return i.replace(/([\&]*ss\=[a-fA-F0-9]+)?/g,'')}else{return i}}function url_ss(x){if(!_sess)return x;return x}function url(x){window.location.href=x}function edit(x){window.location.href=url_ss(x)}function report(x){window.location.href='report.xul?fn='+x+'&ss='+_sess}function show(x){alert(x)}var req;function post(url,async,str){if(_desktop&&!_desktop.net_status){net_fail();return}url=url_ss(url);if(!str)alert(_lang['lang_postempstr']);if(!async)async=false;var r=http_request();r.open("POST",url,async);r.setRequestHeader('Content-Type',"application/x-www-form-urlencoded");r.send(str);if(!async)return req.responseText}function post_str_sync(str){if(_desktop&&!_desktop.net_status){net_fail();return}var u=url_ss(_url_root+"/sub.php?");u=url_ss(u);if(!str)alert(_lang['lang_postempstr']);var r=http_request();r.open("POST",u,false);r.setRequestHeader('Content-Type',"application/x-www-form-urlencoded");r.send(str)}function post_str(str){if(_desktop&&!_desktop.net_status){net_fail();return}var u=url_ss(_url_root+"/sub.php?");var r=http_request();r.open("POST",u,true);r.setRequestHeader('Content-Type',"application/x-www-form-urlencoded");r.send(str)}function posts(s){var u=url_ss(_url_root+"/post.php?");var r=http_request();r.open("POST",u,false);r.setRequestHeader('Content-Type',"application/x-www-form-urlencoded");r.send(s)}function posta(s){if(_desktop&&!_desktop.net_status){net_fail();return}var u=url_ss(_url_root+"/post.php?");var r=http_request();r.open("POST",u,true);r.setRequestHeader('Content-Type',"application/x-www-form-urlencoded");r.send(s)}function post_array(url,n,v){url=url_ss(url);var pStr;pStr="&";for(var i=0;n[i];i++){pStr+=n[i]+"="+v[i]+"&"}post_str(pStr)}function http_request(){var r;if(window.XMLHttpRequest){r=new XMLHttpRequest()}else if(window.ActiveXObject){r=new ActiveXObject("Microsoft.XMLHTTP")}else{alert(_lang['lang_brownotsup']);r=false}return r}function dom_parser(d){var r;if(document.implementation.createDocument){var p=new DOMParser();r=p.parseFromString(d,"text/xml")}else if(window.ActiveXObject){r=new ActiveXObject("Microsoft.XMLDOM");r.async=false;r.loadXML(d)}return r}function http_doc(url,func){var o,a=Math.random();o=http_request();if(func)o.onreadystatechange=func;o.open("GET",_url_root+'/xml.php?'+url+"&__="+a,true);o.send(null)}function http_sync(u){var s=http_request();s.open("POST",u,false);s.send(null);return s.responseText}function loadDoc(url){var d=Math.random();var e,req;req=http_request();e=req.open("GET",_url_root+'/xml.php?'+url+'&__='+d,false);e=req.send(null);return unescape(req.responseText)}function readXMLdoc(url){var sxml=loadDoc(url);var dom=dom_parser(sxml);return dom}function init_scripts(s){if(s.length<1)return;while(s.length){if(s[0].indexOf('/')==-1)s[0]='/js/'+s[0];fetch_script(s.shift())}}function net_fail(){return}function fetch_page(u){var r=http_request();var a=Math.random();u=url_opt(u,'__='+a);r.open('GET',u,false);r.send(null);return r.responseText}function fetch_script(url,t){var rs=new Fetch();rs.url=url;rs.type='script';rs.async=true;rs.exec();return rs}function Fetch(){var This=this;this.method="get";this.post="";this.url="";this.rs=null;this.random="";this.async=false;this.type="script";this.callback=null;this.array=null;this.dom=null;this.items=null;this.xml=null;this.socket="/xml.php";this.exec=function(){if(_desktop&&!_desktop.net_status){net_fail();return}this.init();this.check_url();this.rs=new http_request();if(this.async){this.async_callbacks()}this.rs.open(this.method,this.url,this.async);if(this.method=="post"){this.rs.send(this.post)}else{this.rs.send(null)}if(!this.async){this.completed()}};this.check_url=function(){};this.completed=function(){if(this.type=="script"){this.script_eval()}else if(this.type=="xml"){this.get_xml()}else if(this.type=="items"){this.get_xml();this.get_items()}else if(this.type=="array"){this.get_xml();this.get_items();this.get_array()}else if(this.type=="row"){this.get_xml();this.get_items();this.get_row()}else{}};this.get_xml=function(){var t=unescape(this.rs.responseText);this.xml=dom_parser(t);this.xml=this.xml.documentElement};this.get_items=function(){this.items=this.xml.getElementsByTagName('item')};this.get_array=function(){if(this.items.length==0)return;this.get_array_check_doctype();if(this.array!=null)this.array.length=0;else this.array=new Array();var r=this.items.length;var c=this.items[0].childNodes.length;for(var i=0;i<r;i++){this.array[i]=new Array();for(var j=0;j<c;j++){this.array[i][j]=this.get_array_item(i,j)}}};this.get_row=function(){if(this.items.length==0)return;this.get_array_check_doctype();if(this.array!=null)this.array.length=0;else this.array=new Array();var c=this.items[0].childNodes.length;for(var i=0;i<c;i++){this.array[i]=this.get_array_item(0,i)}};this.item=function(i,j){if(this.items==null)return;if(document.implementation.createDocument){return this.array_escape(this.items[i].childNodes[j].textContent)}else if(window.ActiveXObject){return this.array_escape(this.items[i].childNodes[j].firstChild.nodeValue)}};this.get_array_item=null;this.get_array_check_doctype=function(){if(document.implementation.createDocument){this.get_array_item=this.get_array_dom}else if(window.ActiveXObject){this.get_array_item=this.get_array_activex}};this.get_array_dom=function(i,j){if(this.items[i].childNodes[j].textContent!=null){return this.array_escape(this.items[i].childNodes[j].textContent)}else return null};this.get_array_activex=function(i,j){if(this.items[i].childNodes[j]!=null&&this.items[i].childNodes[j].firstChild!=null&&this.items[i].childNodes[j].firstChild.nodeValue!=null){return this.array_escape(this.items[i].childNodes[j].firstChild.nodeValue)}else return null};this.array_escape=function(s){if(s==null)return s;if(s.indexOf("[nl]")||s.indexOf("\n"))s=s.replace(/\[nl\]|\n/g,'<br>');if(s.match(/\[\[/))s=s.replace(/\[\[/g,'<');if(s.match(/\]\]/))s=s.replace(/\]\]/g,'>');return s};this.init=function(){this.random=Math.random().toString().replace(/\./,"");if(this.url.substring(0,3)=="fn="){this.url=this.socket+"?"+this.url}this.url=url_ss(this.url);this.url=url_opt(this.url,"__="+this.random);this.method=this.method.toLowerCase();this.type=this.type.toLowerCase()};this.async_callbacks=function(){if(this.type=="script"){this.rs.onreadystatechange=this._callback_script}else if(this.type=="xml"&&this.callback!=null){this.rs.onreadystatechange=this._callback}else if(this.type=="array"&&this.callback!=null){this.rs.onreadystatechange=this._callback}else if(this.callback!=null){this.rs.onreadystatechange=this._callback}else{this.rs.onreadystatechange=null}};this._callback=function(){if(This.callback==null||typeof(This.callback!="function"))return;if(This.rs.readyState==4&&This.rs.status==200){This.callback(This.rs.responseText)}};this._callback_script=function(){if(This.rs.readyState==4&&This.rs.status==200){This.script_eval()}};this.script_eval=function(){try{eval(This.rs.responseText)}catch(e){}};this.dispose=function(){this.array=null;this.dom=null;this.items=null;this.xml=null;this.rs=null}}function fetch_array(url,fa){var f=new Fetch();f.url=url;f.type='array';f.array=fa;f.exec();f.dispose();f=null}function fetch_list(url,fa){var f=new Fetch();f.url=url;f.type='row';f.array=fa;f.exec();f.dispose();f=null}function fetch(url){if(_desktop&&!_desktop.net_status){net_fail();return''}url=url_ss(url);var sxml,doc,item,r;sxml=readXMLdoc(url);doc=sxml.documentElement;item=doc.getElementsByTagName('item');if(!item.length)return null;if(document.implementation.createDocument){r=item[0].childNodes[0].textContent}else if(window.ActiveXObject){if(item[0].childNodes[0].firstChild)r=item[0].childNodes[0].firstChild.nodeValue;else r=null}return r}function fetch_off(url){if(_desktop&&!_desktop.net_status){net_fail();return}url=url_ss(url);var f=function(){};http_doc(url,f)}function getid(x){return document.getElementById(x)}function str(x){return str_o(getid(x))}function str_o(o){var str=o.value;str=str.replace(/'/g,'&#39;');str=str.replace(/&/g,'%26');str=str.replace(/<br>/g,'\n');str=str.replace(/Chr(10)/g,'<br>');return str}function d_str(x){return d_str_o(getid(x))}function d_str_o(o){var d_str=o.value;var d_str=d_str.replace(/&#39;/g,"'");var d_str=d_str.replace(/&quot;/g,' " ');var d_str=d_str.replace(/<br>/g,'\n');return d_str}function getattr(x,y){return getid(x).getAttribute(y)}function setattr(x,y,z){if(x.nodeName==undefined){getid(x).setAttribute(y,z)}else{x.setAttribute(y,z)}}function addobj(n,as){var _i,o;var o=document.createElement(n);if(as){for(_i=0;_i<as.length;_i+=2){o.setAttribute(as[_i],as[_i+1]);if(as[_i]=='class'){o.className=as[_i+1]}else if(as[_i]=='value'){o.nodeValue=as[_i+1]}else if(as[_i]=='text'){o.innerHTML=as[_i+1]}else if(as[_i]=='onclick'){o.onclick=as[_i+1]}else if(as[_i]=='colspan'){o.colSpan=as[_i+1]}else if(as[_i]=='rowspan'){o.rowSpan=as[_i+1]}}}return o}function clear_trash(s){if(!s)return;if(document.getElementById('trashbin')){var t=document.getElementById('trashbin')}else{var t=document.createElement('div');t.id='trashbin';t.style.visibility='hidden';t.style.display='none';t.style.height='0px';t.style.width='0px';__desktop.appendChild(t);t=document.getElementById('trashbin')}var g,i;while(g=s.getElementsByTagName('*')){if(g.length>0){}else{break}t.appendChild(g[0])}if(s.innerHTML)s.innerHTML='';if(t.innerHTML)t.innerHTML=''}function clear_child(s){if(!s)return;while(s.hasChildNodes())s.removeChild(s.lastChild)}function clear_children(o){var n;if(!o)return;if(o&&o.nodeName){}else if(o){o=getid(o)}if(!o)return alert(_lang['lang_plsspeidto']);n=o.nodeName;if(n!='table'&&n!='tbody'&&n!='tr'){o.innerHTML=''}else{while(o.hasChildNodes())o.removeChild(o.lastChild)}}function jsinc(f){var s=document.createElement('script');s.language='Javascript';s.setAttribute('src',f);document.body.appendChild(s)}function get_cookie(x,t){if(document.cookie.indexOf(x+'=')==-1)return null;var c=document.cookie.substring(document.cookie.indexOf(x)+x.length+1,document.cookie.length);if(c.indexOf(';')>-1)c=c.substring(0,c.indexOf(';'));return c}function set_cookie(name,value,expires){var c=name+"="+escape(value)+"; path=/;"+((expires==null)?"":"; expires="+expires.toGMTString());document.cookie=c}function set_cookie_old(n,v){var d=new Date();d.setTime(d.getTime()+(3600*1000));var c=n+"="+escape(v)+"; path=/; domain=whahoobi.com; expires="+d.toGMTString()+";";document.cookie=c}function get_opt(n){var w,v='',r;var s=document.location.search;s=s.replace(/\?/,'');if(!s)return'';w=s.split('&');for(var i=0;i<w.length;i++){if(w[i]){r=w[i].split('=');_uo[r[0]]=r[1];if(r[0].toString()==n){return r[1].toString()}}}return''}var _pop_win='';function popup_location(p,w,h,x,y){if(!p)return;w=w?w:300;h=h?h:60;b=getid('popback');b.style.width=ko['avail_w']+'px';if(getid('desktop')){b.style.height=getid('desktop').scrollHeight+'px'}else{b.style.height=getid('base').scrollHeight+'px'}b.style.visibility='visible';p.style.width=w+'px';p.style.height=h+'px';p.style.bottom=((y)?y:(ko['avail_h']/2)-(h/2))+'px';p.style.left=((x)?x:(ko['avail_w']/2)-(w/2))+'px';}function popup_msg(t,m,d,w,h,x,y){d=(d==undefined)?3:d;_pop_win=getid('popmsg');_pop_back=getid('popback');popup_location(_pop_win,w,h,x,y);_pop_win.innerHTML=m;_pop_win.style.visibility="visible";_pop_back.style.visibility='visible';_pop_win.answer=null;if(t){d=addobj('div',['class','textright','style','height: 16px;']);if(t==3){}else if(t==2){w=addobj('input',['type','button','class','buttoncss','value',_lang['ok']]);w.onclick=function(){_pop_win.answer=1;fade_in_out(66,0)};d.appendChild(w);w=addobj('input',['type','button','class','buttoncss','value',_lang['cancel']]);w.onclick=function(){_pop_win.answer=0;unpop_msg()};d.appendChild(w);_pop_win.appendChild(d)}else if(t==1){w=addobj('input',['type','button','class','buttoncss','value',_lang['ok']]);w.onclick=unpop_msg;d.appendChild(w);setTimeout('fade_in_out(33,0)',10000)}_pop_win.appendChild(d)}else{setTimeout('unpop_msg()',d*1000)}}function unpop_msg(){getid('popback').style.visibility="hidden";getid('popmsg').style.visibility="hidden";alert(getid('popmsg').answer)}function fade_msg(m,d,w,h,x,y){if(!d)d=3;_pop_win=getid('popmsg');_pop_win.innerHTML=m;popup_location(_pop_win,w,h,x,y);fade_in_out(0,d*1000)}function fade_in_out(o,t){if(!o)return;_pop_win.style.visibility="visible";_pop_win.className='fade_'+o;if(t&&o<100){o+=33;setTimeout('fade_in_out('+o+','+t+')',100)}else if(t){setTimeout('fade_in_out('+o+',0)',t)}else if(t==0&&o>0){o-=33;setTimeout('fade_in_out('+o+',0)',100)}else if(t==0){_pop_win.className="popup_msg";unpop_msg()}}function tray(n,a,c){if(getid('tray'+n)){if(a==_lang['lang_new']){c.style.cssFloat='left';getid('tray'+n).appendChild(c)}else if(a==_lang['lang_remove01']){getid('tray'+n).removeChild(c)}}else{alert(' '+_lang['lang_icon_tray']+' '+n+' '+_lang['lang_dosenotexist']+' ');return}}function toggle_checkbox(n){if(!n)return;if(getid(n).checked){getid(n).checked=false}else{getid(n).checked=true}}function enter(e,i){if(!i)return;if(e.keyCode==13){getid(i).focus();getid(i).select()}}function log_url(){}function log_event(){}function log_groups(t,g){posta('fn=log_groups&t='+t+'&g='+g+'&m='+_mem[0]+'&r='+escape(_url_ref))}function log_access(a,p){posta('fn=log_accesss&p='+p+'&a='+a+'&m='+_mem[0]+'&r='+escape(_url_ref))}function x_send_notice(t,m,c){var u=url_ss('/post.php');var r=http_request();r.open("POST",u,true);r.setRequestHeader(_lang['lang_contype'],"application/x-www-form-urlencoded");r.send('fn=send_notice&m='+m+'&t='+t+'&s='+escape(c))}function mail_invite(e){var u=url_ss('/mp.php');var r=http_request();r.open("POST",u,true);r.setRequestHeader(_lang['lang_contype'],"application/x-www-form-urlencoded");r.send('iv='+e)}function mail_confirm_reg(e){var u=url_ss('/mp.php');var r=http_request();r.open("POST",u,true);r.setRequestHeader(_lang['lang_contype'],"application/x-www-form-urlencoded");r.send('mr='+e)}function imgs(i){if(!i||i==null||i==undefined||i==' '){return'/img/nophoto.jpg'}if(i.indexOf('http://')==-1){return i}else{return url_opt(i,'ss='+_sess);}}function get_photo(i,t,g){if(!i||i==null||i==undefined||i==' '){if(t==1){return'/img/male_96.jpg'}else if(t==2){return'/img/female_96.jpg'}else if(t>2){return'/img/male_96.jpg'}else if(g==1){return'/img/group_default.jpg'}else if(g==2){return'/img/default/default_icon_video.jpg'}else if(g==3){return'/img/default/default_icon_music.jpg'}else if(g==4){return'/img/default/default_icon_photo.jpg'}else{return'/img/nophoto.jpg'}}else{return imgs(i)}}function thumbnail(i){if(i&&i.indexOf('http://img')!=-1){return i.replace(/m=/,'t=')}return i}function center(x,y){x=(document.documentElement.clientWidth-w)/2;y=(document.documentElement.clientHeight-y)/2;return[x,y]}function url_opt(u,o){var i,s='?';if(u.indexOf(s)!=-1)s='&';i=u+s+o;return i}function strlen(s,l){if(!s||!l){return''}var a=0;var i=0;var rel='';for(i=0;i<s.length;i++){if(s.charCodeAt(i)>255){a+=2}else{a++}if(a>l){return rel+'...'}rel+=s.charAt(i)}return s}function flag(c,w,h){var i='';w=w?w:20;h=h?h:20;if(c.length==2){i="<img src='/img/flag/"+c+".gif' width='"+w+"px' height='"+h+"px'>"}else if(c-0>0){}return i}function yt_url(x){var y;if(!x)return;var m=x.indexOf('v=');m=m>-1?m+2:0;if(x.indexOf('watch')>-1){y=x.substring(m,x.length)}else{y=x.substring(m,x.length)}if(y.indexOf('&')>-1){y=y.substring(0,y.indexOf('&'))}return y}function wait_image(o){if(o){_desktop.query['wait_img']=o}var i=_desktop.query['wait_img'];if(!i.width&&!i.height&&i.readyState!='complete'){setTimeout('top.wait_image();',100);return}else{_desktop.query['wait_img']='';adjust_image(event,i)}}function adjust_image(e,i,x,y){var mw,mh;mw=_desktop.w-100;mh=_desktop.h-60;if(i.clientWidth>mw&&i.clientHeight>mh){if(i.width>i.clientHeight){i.style.width=mw+'px'}else{i.style.height=mh+'px'}}else if(i.clientWidth>mw){i.style.width=mw+'px';i.style.height='auto'}else if(i.clientHeight>mh){i.style.height=mh+'px';i.style.width='auto'}top.set_player_position(i.clientWidth,i.clientHeight);}function check_img(i,f){if(!_desktop.query['wait_img']){if(!i){return}_desktop.query['wait_img']=i;_desktop.query['wait_img_func']=f}else{i=_desktop.query['wait_img'];f=_desktop.query['wait_img_func']}if(i.readyState!='complete'){setTimeout('check_img();',100);return}else{adjust_image(0,_desktop.query['wait_img']);if(typeof(_desktop.query['wait_img_func'])=='function'){_desktop.query['wait_img_func']()}_desktop.query['wait_img']='';_desktop.query['wait_img_func']=''}}function title(x){document.title=x}function rich_unescape(y){if(y==null)return'';var f=new Array("&lt;","&gt;","&quot;","&amp;");var t=new Array('<','>','"','&');var x=m_replace(y,f,t);return x}function m_replace(s,f,t){for(var i=0;i<f.length;i++){if(s.indexOf(f[i])>-1){s=s.replace(new RegExp(f[i],"g"),t[i])}}return s}function rich_escape(y){if(y==null)return'';var x=y;x=x.replace(/&/g,'%26');x=x.replace(/\+/g,'%2B');x=x.replace(/#/g,'%23');x=x.replace(/"/g,'%22');x=x.replace(/'/g,'%2C');return x}function check_reserve(s){var f=new Fetch();f.type='array';f.url='fn=language_group&u='+s;f.exec();var a=f.array;if(w&&w[0]&&w[0][0]!=0){alert(_lang['lang_grpname_reserv']);return(false)}return(true)}function text_unescape(x){return x}function text_escape(x){x=x.replace(/&/g,'%26');x=x.replace(/\+/g,'%2B');x=x.replace(/#/g,'%23');x=x.replace(/\</g,'%3C');x=x.replace(/\=/g,'%3D');x=x.replace(/\>/g,'%3E');x=x.replace(/\?/g,'%3F');x=x.replace(/"/g,'%22');x=x.replace(/'/g,'%2C');return x}function text_illegal(x){var z=/[@#\$%\^&\*]+/g;if(z.test(x)){alert(_lang['lang_illegal_name01']);return(false)}else{return(true)}}function rich_length(x){var c=x.length;return c}function site_init(){if(_init&&_init.length){for(var i=0;i<_init.length;i++){eval(_init[i])}}}function init_menu(){if(document.getElementById('menubox')==null){setTimeout('init_menu();',500);return}var sm=new DynaLoader();sm.fetch('/menu.php');document.getElementById('menubox').innerHTML=sm.html;document.getElementById('start_btn').href='javascript:show_menu()';sm=null}function clear_html_tag(a,f,l){var v;for(i=0;i<a.length;i++){v=a[i][f];v=v.replace(/<.*?>/g,'');v=v.substring(0,l);a[i][f]=v;}}var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64}else if(isNaN(chr3)){enc4=64}output=output+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4)}return output},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2)}if(enc4!=64){output=output+String.fromCharCode(chr3)}}output=Base64._utf8_decode(output);return output},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c)}else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128)}else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128)}}return utftext},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++}else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}}return string}}