function removeHash(){ var uri = window.location.toString(); } function subnav() { $(".subnav>ul>li>a").click(function(e){ e.stopPropagation(); }); } function subsubnav() { $(".subsubnav>ul>li>a").click(function(e){ e.stopPropagation(); if($(this).attr('href').indexOf("#sub") == 0){ var targetId = $(this).attr("href"); var target = $(targetId).offset().top; $('html, body').animate({scrollTop:target - 146}, 200); $(".subsubnav>ul>li").removeClass('active'); $(this).parent('li').addClass('active'); } }); } function equalcol(){ $('.equalcol>ul').each(function(){ var equalcol = $(this).children('li'); equalcol.css('width', 100/equalcol.length + '%'); }); } //datepicker $.datepicker.setDefaults({ dateFormat: 'yy-mm-dd', prevText: 'ÀÌÀü ´Þ', nextText: '´ÙÀ½ ´Þ', monthNames: ['1¿ù', '2¿ù', '3¿ù', '4¿ù', '5¿ù', '6¿ù', '7¿ù', '8¿ù', '9¿ù', '10¿ù', '11¿ù', '12¿ù'], monthNamesShort: ['1¿ù', '2¿ù', '3¿ù', '4¿ù', '5¿ù', '6¿ù', '7¿ù', '8¿ù', '9¿ù', '10¿ù', '11¿ù', '12¿ù'], dayNames: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], dayNamesShort: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], dayNamesMin: ['ÀÏ', '¿ù', 'È­', '¼ö', '¸ñ', '±Ý', 'Åä'], showMonthAfterYear: true, yearSuffix: '³â', showOn: 'both', buttonText:'³¯Â¥¼±ÅÃ', buttonImage : '/html/minwon_2017/images/ico_datepicker.png' }); $(function(){ equalcol(); if(window.location.hash){ $("html, body").delay(400).animate({ scrollTop:$(window.location.hash).offset().top - 146 },0); } $(".datepicker").datepicker(); var sitemapH = $(window).height - $("#header").outerHeight(); $('.pop_sitemap dd').css({"max-height":sitemapH}); //sitemap $('.sitemap').click(function(e){ e.preventDefault(); var popSitemap = $(".pop_sitemap"); if(popSitemap.is(":visible")){ popSitemap.hide(); $('body').css('overflow','auto'); } else { popSitemap.show(); $('body').css('overflow','hidden'); } }); $(".pop_sitemap dd:first").show(); $(".dep1 dt a").bind("focus click",function(e){ e.preventDefault(); $(".dep1 dd").hide(); $(this).parent().next().show(); }); $('.dep1 dt a').focus(function(e) { e.preventDefault(); var i = $('.dep1 dt a').index(this); $('.dep1 dt a').parent().removeClass('active').eq(i).addClass('active'); }); $('.close_sitemap').click(function(e){ e.preventDefault(); $(".pop_sitemap").hide(); $('body').css('overflow','auto'); }); //main $(".landing").bind("mouseover focus",function() { $(".landing").removeClass("active"); $(this).addClass("active"); }); $(".landing").click(function() { $(".landing").removeClass("active"); $(this).addClass("active"); }); $(".landing").bind("mouseleave focusOut",function() { $(".landing").removeClass("active"); }); $(window).scroll(function(e) { e.stopPropagation(); var scroll = $(window).scrollTop(); if (scroll >= 150) { $(".wrap").addClass('sticky'); removeHash(); } else { $(".wrap").removeClass('sticky'); } }); //»ó´ÜÆ˾÷ ¿­±â, ´Ý±â $(".pop_close").click(function(){ $(".headtop").slideUp(); $(this).hide(); $(this).prev().show(); }); $(".pop_open").click(function(){ $(".headtop").slideDown(); $(this).show(); $(this).next().show(); }); //login $(".login_close").click(function(e){ e.preventDefault(); $(this).parent('.loginpop').hide(); $(this).parent('.loginpop').prev('button').removeClass("active"); }); //tooltip $('.tooltip').tooltip({ content:function(){ return $(this).attr('title'); } }); //zoom $(".zoomin").click(function(){ Zoom.exec(1); }); $(".zoomout").click(function(){ Zoom.exec(-1); }); //slide quickmenu $(".slide").bxSlider({ minSlides:7, maxSlides:7, slideHeight:120, slideWidth:160, moveSlides:1, controls:true, pager:false, auto:false, infiniteLoop:false, hideControlOnEnd:true, nextText:"´ÙÀ½", prevText:"ÀÌÀü" }); //subnav $(".subnav>ul>li.active").each(function(){ var activeTab = $(this).find('a').attr("rel"); $("#"+activeTab).show(); subsubnav(); }); $(".subnav>ul>li").bind("mouseover focus",function(e){ e.preventDefault(); $(".subnav>ul>li").removeClass('active'); $(this).addClass("active"); $(".subsubnav").hide(); subnav(); var activeTab = $(this).find('a').attr("rel"); if(activeTab != undefined){ $("#"+activeTab).show(); subsubnav(); } }); //textellipsis $(".submenulist span").each(function(){ var textellipsis1 = $(this).text().substring(0,20); var textellipsis2 = $(this).text().substring(0,60); var textellipsis3 = $(this).text().substring(0,80); if($('.submenulist span:has(br)')){ $(this).after('

' + textellipsis1 +'...'+'

' + textellipsis3 +'

'); } else { $(this).after('

' + textellipsis2 +'...'+'

' + textellipsis3 +'

'); } }); //submenulist $(".submenulist>li>a").mouseover(function(){ $(this).addClass("active"); }); $(".submenulist>li>a").mouseout(function(){ $(this).removeClass("active"); }); $('.scrolltop>a').click(function(e){ e.preventDefault(); e.stopPropagation(); $('html, body').animate({scrollTop:0},500); }); //submain menulist bg $(".submenulist >li:nth-child(2), .submenulist >li:nth-child(4), .submenulist >li:nth-child(5), .submenulist >li:nth-child(7), .submenulist >li:nth-child(10), .submenulist >li:nth-child(12)").addClass("tile"); }); function searchPCode(){ var url = document.location.href; var pCode = url.substring(0,url.lastIndexOf(".")); pCode = pCode.substring(pCode.lastIndexOf("/")+1); var type = ""; if(url.lastIndexOf("/company/")>-1) type = "C"; else if(url.lastIndexOf("/personal/")>-1) type = "P"; pCode = type+pCode; return pCode; } function dataForm(_form, _gubun){ var dataTag = ""; var tag = $("form[name="+_form+"]").find("input,select"); if(_gubun!=undefined){ tag = $("form[name="+_form+"]", _gubun).find("input,select"); } if(tag.length > 0){ for(var i=0;i\n"; var tagArray = _data.split(delim); for(var i=0;i\n"; }else if(tagAttr[1] == "r"){ if(tagAttr[4] == "true"){ checked = "checked"; } if(tagAttr[5] == "true"){ disabled = "disabled"; } formHtml += "\t\n"; }else if(tagAttr[1] == "t"){ if(tagAttr[4] == "true"){ disabled = "disabled"; } formHtml += "\t\n"; }else if(tagAttr[1] == "h"){ if(tagAttr[4] == "true"){ disabled = "disabled"; } formHtml += "\t\n"; } }else if(tagAttr[0] == "s"){ var opts = tagAttr[4].split("__"); if(tagAttr[5] == "true"){ disabled = "disabled"; } formHtml += "\n"; } } formHtml += ""; $(document).find("body").find("form[name="+_form+"]").remove(); $(document).find("body").append(formHtml); } function searchParam(_param, _search){ var return_value = ""; var gubunArray = _param.split("?"); if(gubunArray.length > 1){ if(_param.split("&").length > 1){ var paramArray = _param.split("&");; for(var i=0;i