function TongEncodeURIComponent(D){var A="";for(var C=0;C<D.length;C++){var B=D.substr(C,1);if(B.charCodeAt(0)>128){A+=escape(B)}else{A+=encodeURIComponent(B)}}return A}function TongEncodeURIComponentSafeSCRIPT(D){D=D.split("&quot;").join('"').split("&lt;").join("<").split("&gt;").join(">");var A="";for(var C=0;C<D.length;C++){var B=D.substr(C,1);if(B.charCodeAt(0)>128){A+=escape(B)}else{A+=encodeURIComponent(B)}}return A}function Trim(A){return A.replace(/(^\s*)|(\s*$)/g,"")}function GoMainMytong(A){top.location.href="/"+A+"/mymaintong"}function GoPhototong(A){top.location.href="/"+A+"/photo"}function GoMMediatong(A){top.location.href="/"+A+"/mmedia"}function GoReviewtong(A){top.location.href="/"+A+"/review"}function GoRandomTong(){top.location.href="/boxitem/jini.do?action=goUnknown"}function getPageLeft(B){var A;A=0;while(B.offsetParent!=null){A+=B.offsetLeft;B=B.offsetParent}A+=B.offsetLeft;return A}function getPageTop(A){var B;B=0;while(A.offsetParent!=null){B+=A.offsetTop;A=A.offsetParent}B+=A.offsetTop;return B}function GetObjInnerText(A){if(document.all){return A.innerText}else{if(A.text){return A.textContent}}}function SetObjInnerText(B,A){if(document.all){B.innerText=A}else{B.textContent=A}}var oDelRecommeded="n";function CheckRecommendLibrary(A){if(true){if(confirm("ÀÌ "+A+"Àº(´Â) ÃßÃµ"+A+"(À¸)·Î ¼³Á¤µÇ¾î ÀÖ½À´Ï´Ù.\r\nºñ°ø°³ ¼³Á¤ ½Ã, ÃßÃµ"+A+" ¼³Á¤ÀÌ ÇØÁ¦µË´Ï´Ù.\r\nÃßÃµ"+A+" ¼³Á¤À» ÇØÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){oDelRecommeded="y";return true}}return false}function setMMediaPlayer(F,E,A,B,D,I,G,H){var C=_getMMediaPlayer(F,E,A,B,D,I,G,H);C.write(D)}function getMMediaPlayer(F,E,A,B,D,I,G,H){var C=_getMMediaPlayer(F,E,A,B,D,I,G,H);return C.getSWFHTML(D)}function _getMMediaPlayer(I,H,B,C,F,M,J,K){var E=400;var N=340;var A="";var L=new Date();var G="mmediaPlayer_"+H+"__"+L.getTime();switch(B){case"s":E=C;N=C*0.75;A="TongMiniSkin.swf";break;case"m":E=C;N=C*0.85;A="TongSkin.swf";break;case"b":E=C;N=C*0.79;A="TongBigSkin.swf";break;case"bf":E="100%";N="100%";A="TongBigSkin.swf";break}var D=new SWFObject("/images/flash/mmedia/MoviePlayer_1_4.swf",G,E,N,"8","#000000");D.addParam("allowScriptAccess","always");if(M){D.addParam("wmode","transparent")}D.addVariable("v_key","12787456");D.addVariable("mov_id",I+"_"+H);D.addVariable("c_id",H);D.addVariable("objectID",G);if(J){D.addVariable("autoPlay","yes")}else{D.addVariable("autoPlay","no")}if(K!=undefined){D.addVariable("limitTime",K)}D.addVariable("showFullLogo","yes");D.addVariable("showLogo","yes");D.addVariable("startImageUrl","");D.addVariable("startViewType","EN");D.addVariable("endViewType","EN");D.addVariable("skinFile",A);D.addVariable("server_url",document.location.host);D.addVariable("server_path","jsp/mmediaFileGetter.jsp");D.addVariable("logLevel","0");return D}function goToHrefViaRealNmAuth(url,target){var property="status=yes,scrollbars=no,width=365,height=170,left="+(window.screen.width-365)/2+",top="+(window.screen.height-560)/2;var realNMCode=false;try{realNMCode=top.__RealNMCode__}catch(e){var bOut=true;for(var i=0;i<top.frames.length;i++){try{realNMCode=top.frames[i].__RealNMCode__}catch(e){bOut=false}if(bOut){break}}}if(realNMCode){if(target||url.substr(0,1)=="/"||url.substr(0,4)=="http"){if(target){window.frames[target].document.location.href=url}else{document.location.href=url}}else{eval(url)}}else{window.open("/user/realnm_popup.vm","realnm_popup",property)}}