/*if(addEventListener != "undefined") { document.addEventListener('mousewheel', top_wheel); } else { document.addEventListener('DOMMouseScroll', top_wheel_, false); }*/ var in1; var in2; function wheelchk1(a){ clearInterval(in1); clearTimeout(in2); in1 = setInterval("wheelchk2()",100); in2 = setTimeout("wheelchk3()",2000); } function wheelchk2(){ var a = $('#totalwrap').scrollTop(); top_wheel(a); } function wheelchk3(){ clearInterval(in1); clearTimeout(in2); } function top_wheel(a){ if(a <= 70){ $(".onlytop").removeClass("small"); }else{ $(".onlytop").addClass("small"); } $(".onlytop").css("top",a); $(".sidebar").css("top",a); $("#chat_wrap").css("top",a); } // 최상단 배너 닫기 function topbannerclose(a,b){ var pYn = getCookie('ezTopbanner'); if(a == 1){ $(".top_banner").addClass("close"); $(".onlytop").addClass("close"); $(".content").addClass("hup"); $(".onlytop .open").removeClass("hide"); if(b == 1) setCookie('ezTopbanner', 'Y', 1); }else if(a == 2){ if(pYn != 'Y') { $(".top_banner").removeClass("close"); $(".onlytop").removeClass("close"); $(".content").removeClass("hup"); $(".onlytop .open").addClass("hide"); } } } // 상단 메뉴열기 열기 var smopen = 1; function openm_(a){ if(a != 0){ smopen = a;} if(smopen == 1 || smopen == 8 || smopen == 9){ $(".openmenu").addClass("smenuy"); }else{ $(".openmenu").removeClass("smenuy"); } if($(".openmenu .opm"+a).hasClass("hide")){ for(var i=1; i<10; i++){ if(i == a){ $(".openmenu .opm"+i).removeClass("hide") }else{ $(".openmenu .opm"+i).addClass("hide") } } } } function topmenuopen(a,b){ if(a == 1){ if($(".openmenu").hasClass("hide")){ $(".openmenu").removeClass("hide"); $(".opm4" ).addClass("hide"); } if($(".openmenu").hasClass("hide")){ $(".opm4").addClass("hide"); } if(b == 1 || b == 0){ $(".openmenu").addClass("smenuy"); }else{ $(".openmenu").removeClass("smenuy"); } openm_(b) }else if(a == 2){ $(".openmenu").addClass("hide"); $(".openmenu").removeClass("smenuy"); }else if(a == 3){ $(".openmenu").addClass("hide"); //$(".openmenu").removeClass("smenuy"); } } //메인배너슬라이드열기 function mb_slide(a,b){ if(a == 1){ $(".mlb2 .mb2"+b+" .txt").addClass("up"); }else if(a == 2){ $(".mlb2 .mb2"+b+" .txt").removeClass("up"); } } //사이트맵 열기 function sitemapopen(a){ if(a == 1){ $(".sitemap").removeClass("hide"); }else if(a == 2){ $(".sitemap").addClass("hide"); } } var tout var pin = 7 var hn = 1 var hnn = 0 var isIE =!! window.ActiveXObject; function aaa(){ for(var i=1; i hn){ if(i == hnn){ document.getElementById('mainvisual'+i).style.transition='0.5s' document.getElementById('mainvisual'+i).style.zIndex='11' document.getElementById('mainvisual'+i).style.left='-816px' }else{ document.getElementById('mainvisual'+i).style.transition='0' document.getElementById('mainvisual'+i).style.left='816px' } document.getElementById('mv_navi'+i).style.backgroundImage='url(/images/main_visual_bu.png)' } } hnn = hn if(hn == pin){hn = 1;}else{hn++} } function aab(){ for(var i=1; i hn){ if(i == hnn){ document.getElementById('mainvisual'+i).style.transition='0.5s' document.getElementById('mainvisual'+i).style.zIndex='11' }else{ document.getElementById('mainvisual'+i).style.transition='0' } document.getElementById('mainvisual'+i).style.left='816px' document.getElementById('mv_navi'+i).style.backgroundImage='url(/images/main_visual_bu.png)' } } hnn = hn if(hn == pin){hn = 1;}else{hn++} } function inval(){ tout = setInterval("aaaa()",5000) } function aaaa(){ if(hnn == pin){ aab() }else{ aaa() } } function linkgogo(){ if(hn==4){ location.href="/price/compare"; }else if(hn==5){ location.href="/ezinfo/ezhelp"; }else if(hn==6){ location.href="/competitive/ezhelp#baccine"; }else if(hn==7){ location.href="/ezinfo/ezchat"; }else if(hn==1){ location.href="/price/ezhelp"; }else if(hn==3){ location.href="/ezinfo/ezvideo/info"; //location.href="/howto/ezhelp/6"; }else if(hn==2){ window.open('https://www.ezhelp.co.jp/', '_blank'); } } function mover(b){ if(b != 0){ if(b == 101){ if(hn == 2){c = pin}else if(hn == 1){c = pin-1}else{c = hn-2} d = 1 }else if(b == 102){ c = hn++ d = 2 }else{ if(b < hnn){ d = 1 }else{ d = 2 } c = b } hn = c if(d == 1){ if(hnn==1){ aaa() }else{ aab() } }else{ if(hnn==pin){ aab() }else{ aaa() } } } clearInterval(tout) } function mvstart(){ aaa() inval() $('#totalwrap').scrollTop(0); //brandgo() reviews1() } var bchange; var bnmax = 18; var bcode = 1; var bimg = 1; var brandlogo1 =[]; var brandname1 =[]; function brandgo(){ if(bimg == 1){ for(var a=1; a