var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"0123456789+/=";function encode64(_1){var _2="";var _3,_4,_5="";var _6,_7,_8,_9="";var i=0;do{_3=_1.charCodeAt(i++);_4=_1.charCodeAt(i++);_5=_1.charCodeAt(i++);_6=_3>>2;_7=((_3&3)<<4)|(_4>>4);_8=((_4&15)<<2)|(_5>>6);_9=_5&63;if(isNaN(_4)){_8=_9=64;}else{if(isNaN(_5)){_9=64;}}_2=_2+keyStr.charAt(_6)+keyStr.charAt(_7)+keyStr.charAt(_8)+keyStr.charAt(_9);_3=_4=_5="";_6=_7=_8=_9="";}while(i<_1.length);return _2;}function decode64(_b){var _c="";var _d,_e,_f="";var _10,_11,_12,_13="";var i=0;var _15=/[^A-Za-z0-9\+\/\=]/g;if(_15.exec(_b)){alert("There were invalid base64 characters in the input text.\n"+"Valid base64 characters are A-Z, a-z, 0-9, ?+?, ?/?, and ?=?\n"+"Expect errors in decoding.");}_b=_b.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{_10=keyStr.indexOf(_b.charAt(i++));_11=keyStr.indexOf(_b.charAt(i++));_12=keyStr.indexOf(_b.charAt(i++));_13=keyStr.indexOf(_b.charAt(i++));_d=(_10<<2)|(_11>>4);_e=((_11&15)<<4)|(_12>>2);_f=((_12&3)<<6)|_13;_c=_c+String.fromCharCode(_d);if(_12!=64){_c=_c+String.fromCharCode(_e);}if(_13!=64){_c=_c+String.fromCharCode(_f);}_d=_e=_f="";_10=_11=_12=_13="";}while(i<_b.length);return _c;}function getCookie_stat(_16){var _17=_16+"=";var dc=document.cookie;if(dc.length>0){begin=dc.indexOf(_17);if(begin!=-1){begin+=_17.length;end=dc.indexOf(";",begin);if(end==-1){end=dc.length;}return unescape(dc.substring(begin,end));}}return "";}function setCookie_stat(_19,_1a){var _1b=setCookie_stat.arguments;var _1c=setCookie_stat.arguments.length;var _1d=(2<_1c)?_1b[2]:null;var _1e=(3<_1c)?_1b[3]:null;var _1f=(4<_1c)?_1b[4]:null;var _20=(5<_1c)?_1b[5]:false;document.cookie=_19+"="+_1a+((_1d==null)?"":("; expires="+_1d.toGMTString()))+((_1e==null)?"":("; path="+_1e))+((_1f==null)?"":("; domain="+_1f))+((_20==true)?"; secure":"");}if(getCookie_stat("GCY_UVID")==null||getCookie_stat("GCY_UVID")==""){var cookieval=new Date();cookieval=cookieval.getTime();var rStr_1=""+Math.random();var rStr_2=""+Math.random();var rStr_3=""+Math.random();var rStr_4=""+Math.random();var rStr_5=""+Math.random();rStr_1=rStr_1.charAt(2);rStr_2=rStr_2.charAt(2);rStr_3=rStr_3.charAt(2);rStr_4=rStr_4.charAt(2);rStr_5=rStr_5.charAt(2);var uv_expired_data=new Date(2011,1,1);cookieval=cookieval+rStr_1+rStr_2+rStr_3+rStr_4+rStr_5;setCookie_stat("GCY_UVID",encode64(cookieval),uv_expired_data,"/","tw.cyworld.com",false);}function pageStatistics(_21){i=new Image();i.src="http://st.tw.cyworld.com/stat.tiff?e_cd=["+_21+"]";}function relationStatistics(_22,_23){i=new Image();i.src="http://st.tw.cyworld.com/friend_recv.tiff?cyid="+_22+"&arg="+_23+"";}function boardStatistics(_24,_25){i=new Image();i.src="http://st.tw.cyworld.com/board_recv.tiff?cyid="+_24+"&arg="+_25+"";}function postPageStatistics(_26){var url="http://st.tw.cyworld.com/stat.tiff?e_cd=["+_26+"]";var n="f"+new Date().getTime();var d=document.createElement("DIV");d.setAttribute("id","D"+n);var _2a=document.createElement("form");$(d).setStyle({position:"absolute",top:"0px",left:"0px"});d.innerHTML="<iframe height=\"1px\" width=\"1px\" src=\"about:blank\" id=\""+n+"\" name=\""+n+"\" onload=\"removeDynicFrameAndForm('"+n+"')\" ></iframe>";document.body.appendChild(d);_2a.innerHTML="<input type=hidden name=dummyField  vaule=dummy>";_2a.setAttribute("method","post");_2a.setAttribute("action",url);_2a.setAttribute("target",n);d.appendChild(_2a);_2a.submit();return false;}function removeDynicFrameAndForm(id){try{var i=document.getElementById(id);if(i.contentDocument){var d=i.contentDocument;}else{if(i.contentWindow){var d=i.contentWindow.document;}else{var d=window.frames[id].document;}}if(d.location.href=="about:blank"){return;}$("D"+id).remove();}catch(e){$("D"+id).remove();}}function hompySendEventCode(_2e){try{var url="http://st.tw.cyworld.com/stat.tiff?e_cd=["+_2e+"]";var _30=document.getElementById("event_form");if(_30){_30.setAttribute("action",url);_30.submit();}}catch(e){hompy.catchEventCodeFail(e,_2e);}}
