/* var aaa; $(function(){ $(".top_menu li span").mouseover(function(){ for(var i=1; i<8; i++){ if($(".top_menu .tm"+i).hasClass("view")){ aaa = i; $(".top_menu .tm"+aaa).removeClass("view"); } } }); $(".top_menu li").mouseout(function(){ $(".top_menu .tm"+aaa).addClass("view"); //$(".top_menu li .top_menu_sub").animate({width:'100px'},{height:'100px'},function(){}); }); $(window).scroll(function(){ if(!$(".top").hasClass("main")){ if ($(window).scrollTop() <= 60) { $(".top").removeClass("wheel"); }else{ $(".top").addClass("wheel"); } } }); }); */ function loco(){ var filter = "win16|win32|win64|mac"; if(navigator.platform){ if(0 > filter.indexOf(navigator.platform.toLowerCase())){ alert('申し?ありません。ログインと?員登?は、PCからお願いします。'); }else{ location.href("http://www.naver.com"); } }} function topscroll(){ $(window).scrollTop(0) } function lang_change(a){ var val = location.href.split("/"); var hurl = val[val.length-1].replace(".htm",""); location.href = "../"+a+"/"+hurl; } function formatNumber(n){ return Number(String(n).replace(/\..*|[^\d]/g,"")).toLocaleString().slice(0,-3); } function commaStr( num ){ num = num+""; point = num.length%3 len = num.length; str = num.substring(0,point); while( point < len){ if( str != "" ) str += ","; str += num.substring( point , point+3); point +=3; } return str; } function zerofill(n, c) { return ((new Array(c).join("0")) + n).slice(-c); } function usetab(a){ for(var i = 1; i<3; i++){ if (i == a){ $(".sub31 .tab"+i).addClass("select"); $(".sub31 .cont"+i).removeClass("hide"); }else{ $(".sub31 .tab"+i).removeClass("select"); $(".sub31 .cont"+i).addClass("hide"); } } } function idfindtab(a){ for(var i = 1; i<3; i++){ if (i == a){ $(".idfind .find"+i).removeClass("hide"); }else{ $(".idfind .find"+i).addClass("hide"); } } } function topmenuopen(a){ if (a == 1){ document.getElementById('tmenu').style.display = 'block' }else{ document.getElementById('tmenu').style.display = 'none' } } smn = 2; function sitemapopen(a){ if (a == 1){ $(".botmap").removeClass("hide"); $(".mapbu").addClass("open"); smn = 1; }else{ if(smn == 1){ $(".botmap").addClass("hide"); $(".mapbu").removeClass("open"); smn = 2; }else{ sitemapopen(1) } } } function naviSet(a,b,c,d,e,f,g,h){ $("#"+a).html(""); $("#"+c).html("<>"); var box_ = a var bu1_ = b var bu2_ = c var box = $("#"+a+" ul") var cont = "" var cont1 = "" var tim var img = d var ilink = e var way = f var xyn = g var speed = h * 1000 var hn = 0 var hnn = 0 var imgsrc = new Array() imgsrc[0] = img[img.length - 1] imgsrc[1] = img[0] imgsrc[2] = img[1] for(var i = 0; i < 3; i++){ cont = cont + "
  • " } for(var n = 0; n < img.length; n++){ cont1 = cont1 + ""+(n+1)+"" } box.html(cont); $("#"+b).html(cont1); move(way) time() function move(a,b,c){ if(b != undefined){ hn = b } if(hn >= img.length){ hn = 0 }else if(hn < 0){ hn = img.length-1 } var hn1 = hn-1 var hn2 = hn+1 if(hn1 < 0){ hn1 = hn1 + img.length } if(hn2 >= img.length){ hn2 = hn2 - img.length } if(hnn == 3){ hnn = 0 }else if(hnn < 0){ hnn = 2 } var hnn1 = hnn-1 var hnn2 = hnn+1 if(hnn1 < 0){ hnn1 = hnn1 + 3 } if(hnn2 >= 3){ hnn2 = hnn2 - 3 } if(a == "left" || a == "right"){ var aa = "left" }else if(a == "up" || a == "down"){ var aa = "top" } if(a == "left" || a == "up"){ if(c == "back"){ $("#"+box_+" .i"+hnn2).css("background-image", "url('"+img[hn]+"');"); $("#"+box_+" .i"+hnn).css(aa, -(xyn)); $("#"+box_+" .i"+hnn1).css(aa, xyn); $("#"+box_+" .i"+hnn2).css(aa, 0); $("#"+box_+" .i"+hnn).css("z-index","1"); $("#"+box_+" .i"+hnn1).css("z-index","2"); //레벨값안먹힘 $("#"+box_+" .i"+hnn2).css("z-index","100"); }else{ $("#"+box_+" .i"+hnn).css("background-image", "url('"+img[hn]+"');"); $("#"+box_+" .i"+hnn).css(aa, 0); $("#"+box_+" .i"+hnn1).css(aa, -(xyn)); $("#"+box_+" .i"+hnn2).css(aa, xyn); $("#"+box_+" .i"+hnn).css("z-index","100"); $("#"+box_+" .i"+hnn1).css("z-index","1"); //레벨값안먹힘 $("#"+box_+" .i"+hnn2).css("z-index","2"); } }else if(a == "right" || a == "down"){ if(c == "back"){ $("#"+box_+" .i"+hnn2).css("background-image", "url('"+img[hn]+"');"); $("#"+box_+" .i"+hnn).css(aa, xyn); $("#"+box_+" .i"+hnn1).css(aa, -(xyn)); $("#"+box_+" .i"+hnn2).css(aa, 0); $("#"+box_+" .i"+hnn).css("z-index","2"); $("#"+box_+" .i"+hnn1).css("z-index","1"); //레벨값안먹힘 $("#"+box_+" .i"+hnn2).css("z-index","100"); }else{ $("#"+box_+" .i"+hnn).css("background-image", "url('"+img[hn][0]+"');"); $("#"+box_+" .i"+hnn).css(aa, 0); $("#"+box_+" .i"+hnn1).css(aa, xyn); $("#"+box_+" .i"+hnn2).css(aa, -(xyn)); $("#"+box_+" .i"+hnn).css("z-index","100"); $("#"+box_+" .i"+hnn1).css("z-index","2"); //레벨값안먹힘 $("#"+box_+" .i"+hnn2).css("z-index","1"); } } for(var o = 0; o < img.length; o++){ if(o == hn){ $("#"+bu1_+" .n"+o).addClass("select") }else{ $("#"+bu1_+" .n"+o).removeClass("select") } } if(c == "back"){ hnn-- }else{ hnn++ } hn++ } function time(){ tim = setInterval(move,speed,way) } function timop(){ clearInterval(tim) } $(function(){ box.mouseover(function(e){ timop(); }); box.mouseout(function(e){ time(); }); box.mousedown(function(e){ //location.href=ilink[hn-1] window.open(ilink[hn-1]) }); $("#"+bu1_+" span").mouseover(function(e){ timop(); }); $("#"+bu1_+" span").mouseout(function(e){ time(); }); $("#"+bu2_+" span").mouseover(function(e){ timop(); }); $("#"+bu2_+" span").mouseout(function(e){ time(); }); $("#"+bu2_+" ._left").mousedown(function(e){ move(way,hn-2,"back") }); $("#"+bu2_+" ._right").mousedown(function(e){ move(way,hn,"") }); for(var t = 0; t < img.length; t++){ $(".n"+t).mousedown(function(e){ if(this.firstChild.nodeValue < hn){ var back_ = "back" }else{ var back_ = "" } if(this.firstChild.nodeValue != hn){ move(way,this.firstChild.nodeValue-1,back_) } }); } }); }