function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&intheight>0) { window.resizeTo(intwidth,intheight); window.location.href=url; } } var rurl = location.href; var purl = getUrl(rurl); function getUrl(url_str) { var real_url; if (url_str.indexOf('/') > 0) { real_url = url_str.split('/'); real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; } $(document).ready(function(){ //À̹ÌÁö ³ôÀÌ Á¶Á¤ var img_height= $(".main_room>article:nth-child(2)>.img_box img").height(); var arround_height= $(".main_arround .board_output.arround .board_output_gallery_img img").height(); $(".main_room .img_box").height(img_height); $(".main_arround .board_output.arround > tbody > tr").height(arround_height); //¸®»çÀÌÁî $(window).resize(function(){ img_height= $(".main_room>article:nth-child(2)>.img_box img").height(); arround_height= $(".main_arround .board_output.arround .board_output_gallery_img img").height(); $(".main_room .img_box").height(img_height); $(".main_arround .board_output.arround > tbody > tr").height(arround_height); }) //¸ÞÀÎ arround var arround_index = 0; $(".main_arround .board_output.arround>tbody>tr>td:eq(0)").addClass("on"); $(".main_arround td.next_btn").click(function(){ if(arround_index<3){ arround_index++ arround(); }else{ arround_index = 0; arround(); } }) $(".main_arround td.prev_btn").click(function(){ if(arround_index>0){ arround_index--; arround(); }else{ arround_index = 3; arround(); } }) function arround(){ $(".main_arround .board_output.arround>tbody>tr>td:eq("+ arround_index +")").addClass("on"); $(".main_arround .board_output.arround>tbody>tr>td:not(:eq("+ arround_index +"))").removeClass("on"); } /* $(".main_arround td.next_btn").click(function(){ if(arround_index<3){ arround_index++; $(".main_arround .board_output.arround>tbody>tr>td:first-child").css("margin-left",-100*arround_index + "%"); if(arround_index==3){ $(this).css("opacity",".5") } $(".main_arround td.prev_btn").css("opacity","1"); } }) $(".main_arround td.prev_btn").click(function(){ if(arround_index>0){ arround_index--; $(".main_arround .board_output.arround>tbody>tr>td:first-child").css("margin-left",-100*arround_index + "%"); if(arround_index==0){ $(this).css("opacity",".5"); } $(".main_arround td.next_btn").css("opacity","1"); } });*/ //¸ÞÀÎ room $(".remote a").click(function(){ var room_index = $(this).index(); $(".room_list").css("margin-left", -100*room_index + "%"); $(".img_box>div").eq(room_index).addClass("on"); $(".img_box>div:not(:eq(" + room_index + "))").removeClass("on"); $(".main_room>article:first-child .room").eq(room_index).addClass("on"); $(".main_room>article:first-child .room:not(:eq(" + room_index + "))").removeClass("on"); $(this).addClass("on"); $(".remote a").not(this).removeClass("on") $(".main_room>article:first-child .view a").eq(room_index).addClass("on"); $(".main_room>article:first-child .view a:not(:eq(" + room_index + "))").removeClass("on"); }) //room room_length = $("#maskingTarget>div").length - 1; $(".room+#container .mid #maskingTarget>div:first img").addClass("on") room_index = 0; $(".room+#container .mid #maskingTarget>div img").click(function(){ $(this).addClass("on"); $(".room+#container .mid #maskingTarget>div img").not(this).removeClass("on") }) $(".room_next a").off('click').on('click', function() { if(room_length-3>room_index){ room_index++; $("#maskingTarget").css("margin-left",-26*room_index + "%"); } }) $(".room_prev a").off('click').on('click', function() { if(room_index>0){ room_index--; $("#maskingTarget").css("margin-left",-26*room_index + "%"); } }) //½ºÅ©·Ñ var scroll_top = 0 scroll_top = $(this).scrollTop(); if(scroll_top > 300){ if(!$("#top").is(":animated")){ $("#top").fadeIn(300); } $("header").addClass("scroll"); } $(window).scroll(function(){ scroll_top = $(this).scrollTop(); if(scroll_top > 300){ if(!$("#top").is(":animated")){ $("#top").fadeIn(300); } $("header").addClass("scroll"); }else if(scroll_top <= 300){ if(!$("#top").is(":animated")){ $("#top").fadeOut(300); } $("header").removeClass("scroll"); } }) $("#top>a").click(function(){ if(!$("body,html").is(":animated")){ $("body,html").animate({scrollTop:0},'500'); } }) //¸ð¹ÙÀÏ $("header>.inner .menu_btn a").off('click').on('click',function(){ $(this).toggleClass("on"); $("header>.inner #topmenu,header .login_menu,body").toggleClass("on") }) // ¸µÅ© ¾ÈµÇ°Ô $('.no_link').click(function(){return false;}); })