var count = 0; var obimgflag = "N"; var auctionflag = ""; var ie7 = true; if( navigator.appVersion.indexOf("MSIE 8") > -1){ ie7 = true; }else if( navigator.appVersion.indexOf("MSIE 7") > -1){ ie7 = true; }else if(navigator.appVersion.indexOf("MSIE 6") > -1){ ie7 = false; }else if(navigator.appVersion.indexOf("MSIE 5") > -1){ ie7 = false; } var urlParam = ""; var urlParamTemp = ""; var urlParamDifferentFlag = false; function getUrlParam() { var hostname = window.location.href; var pathname =""; var search = window.location.search; var referrer = document.referrer; var appVersion = navigator.appVersion; appVersion = appVersion.replace("(","_"); appVersion = appVersion.replace(")","_"); appVersion = appVersion.replace("; ","_"); var appName = navigator.appName; if(appVersion == ""){ appVersion = "NODATA"; } if(appName == ""){ appName = "NODATA"; } if(referrer == ""){ referrer = "NODATA"; } if(pathname == ""){ pathname = "NODATA"; } if(hostname == ""){ hostname = "NODATA"; } if(search == ""){ search = "NODATA"; } urlParamTemp= "&hostname="+hostname+"&pathname="+pathname+"&search="+search+"&referrer="+referrer+"&appVersion="+appVersion+"&appName="+appName; if(urlParam != urlParamTemp){ urlParamDifferentFlag = true; urlParam = urlParamTemp; }else { urlParamDifferentFlag = false; } } function replaceAll(strTemp, strValue1, strValue2){ while(1){ if( strTemp.indexOf(strValue1) != -1 ) strTemp = strTemp.replace(strValue1, strValue2); else break; } return strTemp; } var chat_image_url2 = "http://www.liveweb.co.kr/lwpchat/images/default/chat_request_close.gif"; var chat_image_url1 = "http://www.liveweb.co.kr/lwpchat/images/default/chat_request.gif"; var fMonitor="Y"; var img1 = new Image; function EngageCall() { obimgflag = "Y"; hiddenOutbound(); headElement = document.getElementsByTagName("head").item(0); var scriptTag = document.createElement("script"); scriptTag.setAttribute("type","text/javascript"); scriptTag.setAttribute("src","http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=Engage&site_id=epluskorea&cuid=epluskorea^1280459582156&group=system"); headElement.appendChild(scriptTag); return; } function LeAcceptCall() { obimgflag = "Y"; hiddenOutbound(); headElement = document.getElementsByTagName("head").item(0); var scriptTag = document.createElement("script"); scriptTag.setAttribute("type","text/javascript"); scriptTag.setAttribute("src","http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=AcceptOutbound&site_id=epluskorea&cuid=epluskorea^1280459582156&group=system"); headElement.appendChild(scriptTag); return; } function LeRejectCall() { obimgflag = "Y"; count = count + 1; var img2 = new Image; img2.src = "http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=RejectOutbound&site_id=epluskorea&cuid=epluskorea^1280459582156&group=system&count=" + count; img2 = null; hiddenOutbound(); return; } function popupblock() { count = count + 1; var img2 = new Image; img2.src = "http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=PopupBlock&site_id=epluskorea&cuid=epluskorea^1280459582156&group=system&count=" + count; img2 = null; } function openChatWindow(cuid, chatindex,boundtype) { hiddenOutbound(); var openflag= window.open("http://www.liveweb.co.kr/lwp/research_pop.jsp?name=epluskorea&nickname=epluskorea&host=epluskorea&channel=epluskorea&siteName=epluskorea&cuid="+cuid+"&licenseid=epluskorea&liindex=324&chatIndex="+chatindex+"&rtype=01&boundtype="+boundtype+"&mode=outbound&group=system&chatwintype1=01&chatwintype2=04",'_blank','resizable=no, width=390, height=500, top=100, left=100 titlebar=no,status=yes'); if(openflag == null){ popupblock(); var alertmsg = "ÆË¾÷ Â÷´ÜÀÌ µÇ¾î À־ »ó´ã ¼ö¶ôÀ» ÇÒ ¼ö ¾ø½À´Ï´Ù.;Á¤»óÀûÀÎ ¼­ºñ½º¸¦ À§Çؼ­ [ÇöÀç »çÀÌÆ®ÀÇ ÆË¾÷À» Ç×»ó Çã¿ë] À¸·Î ;¼³Á¤ ÇϽñ⠹ٶø´Ï´Ù. ;»ó´ãÀ» ¿øÇϽøé ÇØ´ç »çÀÌÆ®¿¡¼­ 1:1»ó´ã¿äûÀ» Ŭ¸¯ÇÏ¿© ÁֽʽÿÀ. ;°¨»çÇÕ´Ï´Ù;"; alertmsg = replaceAll(alertmsg, ";","\n"); alert(alertmsg); } } function part() { alert("part"); return; } function hiddenOutbound() { document.getElementById("splayer").style.visibility = "hidden"; } function showImage() { getObimgok(); getObimgno(); document.getElementById("splayer").style.visibility = "visible"; } function getObimgok() { headElement = document.getElementsByTagName("head").item(0); var scriptTag = document.createElement("script"); scriptTag.setAttribute("type","text/javascript"); scriptTag.setAttribute("src","http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=Obimgok&site_id=epluskorea&cuid=epluskorea^1280459582156"); headElement.appendChild(scriptTag); return; } function getObimgno() { headElement = document.getElementsByTagName("head").item(0); var scriptTag = document.createElement("script"); scriptTag.setAttribute("type","text/javascript"); scriptTag.setAttribute("src","http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=Obimgno&site_id=epluskorea&cuid=epluskorea^1280459582156"); headElement.appendChild(scriptTag); return; } function InitImage() { hcSetImage("need_help",chat_image_url1); hcSetImage("need_close",chat_image_url2); } function hcSetImage(name, image) { document.images[name].src = image; } document.writeln(''); document.writeln(''); function showBadClick() { document.getElementById("badclick").style.visibility = "visible"; } function hiddenBadClick() { document.getElementById("badclick").style.visibility = "hidden"; } document.writeln(''); function showWebPush(str,lang){ if(lang == "cn"){ document.images['Image2'].src = "http://www.liveweb.co.kr/lwpchat/images_cn/but_01.gif"; document.images['Image5'].src = "http://www.liveweb.co.kr/lwpchat/images_cn/but_02.gif"; } document.getElementById("webpushc").innerHTML = str; document.getElementById("webpusht").style.left = document.body.clientWidth/2 - 190; document.getElementById("webpusht").style.top = document.documentElement.scrollTop + 100; document.getElementById("webpusht").style.visibility = "visible"; document.getElementById("webpushc").style.visibility = "visible"; } function hiddenWebPush(){ document.getElementById("webpushc").innerHTML = ""; document.getElementById("webpusht").style.visibility = "hidden"; document.getElementById("webpushc").style.visibility = "hidden"; } function webpushURLOpen() { var webpushurl = document.getElementById("webpush"); if(webpushurl.innerHTML != "" && webpushurl.innerHTML != null){ window.open(webpushurl.innerHTML,'_blank','fullscreen=no,menubar=yes,status=yes,toolbar=yes,titlebar=yes,location=yes,scrollbar=yes,resizable=yes,width=790, height=500, top=100, left=100'); hiddenWebPush(); return; }else{ window.open("http://www.liveweb.co.kr",'_blank','fullscreen=no,menubar=yes,status=yes,toolbar=yes,titlebar=yes,location=yes,scrollbar=yes,resizable=yes, width=790, height=500, top=100, left=100 '); hiddenWebPush(); return; } } var b_dragapproved=false; function b_move(){ if (event.button==1&&b_dragapproved){ document.getElementById("webpusht").style.left = event.clientX + document.body.scrollLeft; document.getElementById("webpusht").style.top = event.clientY + document.body.scrollTop; return false; } } function b_drags(){ if (!document.all) return; if (event.srcElement.className=="b_drag"){ b_dragapproved=true; document.onmousemove=b_move; } } function b_initdragapproved(){ b_dragapproved=false; } function callServer(){ if (!img1.complete) { return; } if (img1.width == 0 || img1.width == 1 ) { hiddenOutbound(); obimgflag = "N"; }else if(img1.width == 2 ){ if(obimgflag == "N"){ window.focus(); showImage(); } }else if(img1.width == 3 ){ var img2 = new Image; img2.src = "http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=WebPushOK&site_id=epluskorea&cuid=epluskorea^1280459582156"; img2 = null; window.open('http://www.liveweb.co.kr/lwpchat/webpush.jsp?site_id=epluskorea&cuid=epluskorea^1280459582156','WEBPUSH','location=no,directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=380,height=385,left=0, top=0, scrollbars=no'); }else if(img1.width == 4 ){ EngageCall(); }else if(img1.width == 9){ window.clearInterval(); return; } count = count + 1; getUrlParam(); img1.src = "http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=CheckServer&site_id=epluskorea&site_index=324&cuid=epluskorea^1280459582156&group=system&count=" + count + urlParam; return; } function img_load() { var src = "http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=CustomerCheck&site_id=epluskorea&site_index=324&group=system&first=Y"; getUrlParam(); src += urlParam; img1.src = src; window.setInterval("callServer()", 1000); } function badclick(){ var getimg1 = new Image; getimg1.src = "http://www.liveweb.co.kr/lwpchat/GetImage?szMethodName=BadClickCheck&site_id=epluskorea&site_index=324&cuid=epluskorea^1280459582156"; getimg1 = null; } function main() { if(fMonitor!=null && fMonitor=="Y") { img_load(); } } main(); var XX=document.body.clientWidth/2 ; var xstep=1; var delay_time=60; var YY=0; var ch=0; var oh=0; var yon=0; var ns4=document.layers?1:0 var ie=document.all?1:0 var ns6=document.getElementById&&!document.all?1:0 function xstepchange1() { xstep=0; } function xstepchange2() { xstep=3; } if (ie) { YY=document.body.clientHeight; splayer.style.top=YY; } else if (ns4) { YY=window.innerHeight; document.splayer.pageY=YY; document.splayer.visibility="hidden"; } else if (ns6) { YY=window.innerHeight document.getElementById('splayer').style.top=YY; } function reloc1() { if (yon==0) { YY=YY-xstep; } else { YY=YY+xstep; } if (ie) { if(!ie7){ ch=document.body.clientHeight; } else{ ch=document.documentElement.scrollTop + document.getElementById("screenh").offsetHeight; } oh=splayer.offsetHeight; } else if (ns4) { ch=window.innerHeight; oh=document.splayer.clip.height; } else if (ns6) { ch=window.innerHeight; oh=document.getElementById("splayer").offsetHeight; } if ( YY<0 || YY < document.documentElement.scrollTop) { yon=1;YY=document.documentElement.scrollTop; } if ( YY>=(ch-oh) ) { yon=0;YY=(ch-oh); } if(ie){ splayer.style.left=XX; splayer.style.top=YY; } else if (ns4){ document.splayer.pageX=XX; document.splayer.pageY=YY+window.pageYOffset; } else if (ns6){ document.getElementById("splayer").style.left=XX; document.getElementById("splayer").style.top=YY+window.pageYOffset; } } function auctionloc() { if (yon==0) { YY=YY-xstep; } else { YY=YY+xstep; } ch=parent.top.document.documentElement.scrollTop; oh=splayer.offsetHeight; if(ch < 600 ){ YY=0; } if ( YY<0 || YY < ch-1050) { yon=1; if(ch > 1050){ YY=parent.top.document.documentElement.scrollTop-1050; }else{ YY=0; } } if ( YY >=(ch-oh-oh-oh) ) { yon=0;YY=(ch-oh-oh-oh); } XX = document.body.clientWidth/2; splayer.style.left=XX; splayer.style.top=YY; } function uhakloc() { if (yon==0) { YY=YY-xstep; } else { YY=YY+xstep; } XX = document.body.clientWidth/2; ch=document.body.scrollTop; oh=splayer.offsetHeight; if ( YY<0 || YY < document.body.scrollTop) { yon=1;YY = document.body.scrollTop; } if ( YY>=( document.body.clientHeight + ch - oh) ) { yon=0;YY=(document.body.clientHeight + ch - oh); } splayer.style.left=XX; splayer.style.top=YY; } function loopfunc() { if(auctionflag=="Y"){ auctionloc(); }else if(auctionflag=="UHAK"){ uhakloc(); } else{ reloc1(); } setTimeout('loopfunc()',delay_time); } loopfunc(); window.onunload= function(){ headElement = document.getElementsByTagName("head").item(0); var scriptTag = document.createElement("script"); scriptTag.setAttribute("type","text/javascript"); scriptTag.setAttribute("src","http://www.liveweb.co.kr/lwpchat/Check/?szMethodName=PartPage&site_id=epluskorea&cuid=epluskorea^1280459582156&group=system"); headElement.appendChild(scriptTag); };