$(function(){ var menuFlag = false; $("#LocationTxt").text( $(".lastLocation").find(".on").text() ); $('.flexslider').flexslider({ animation: "slide", pauseOnHover: true }); $(".fMenu").bind("focusin mouseover" , function(){ $(".fMenu").addClass("on"); $(this).stop().animate({ "height" : "200px" }, 200); }).bind("focusout mouseleave" , function(){ $(".fMenu").removeClass("on"); $(this).stop().animate({ "height" : "40px" }, 200); }); $(".nb > ul > .on").bind("focusin mouseover" , function(){ var w = $(this).width()-2; $(this).find("ul").width(w).show(); }).bind("focusout mouseleave" , function(){ $(this).find("ul").hide(); }); $(".top_btn").click(function(){ $('body, html').animate({ scrollTop: 0 }, "fast"); }); // $(window).scroll(function(){ var scrollTop = $(document).scrollTop(); if (scrollTop > 200 ) $(".top_btn").show(); }); // $(".divide a").click(function(){ $(".divide a").removeClass("on"); $(".btnWrap").hide(); $(this).addClass("on"); $("#"+$(this).attr("data-id")).show(); }); }); function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("¸¶¿ì½ºÀÇ ¿À¸¥ÂÊ ¹öÆ°À» »ç¿ëÇϽǼö ¾ø½À´Ï´Ù."); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right;