function m_movie(Str1, Str2, Str3){ document.write('' +'' +'' +'' +'' +'' +''); } function setPng24(obj){ obj.width = obj.height = 1; obj.className = obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src = ''; return ''; } function setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } function winClose() { if ( document.node_form.chkbox.checked ){ setCookie( "maindiv", "done" , 1 ); } document.getElementById("nodepop").style.visibility = "hidden"; } jQuery(document).ready(function(){ if(jQuery(".scate").size() > 0) { var oneTitle = jQuery(".scate").eq(0).find(".sMenu").find("a").eq(oneNum).text(); jQuery(".scate").eq(0).find(".sMenu").find("a").eq(oneNum).addClass("on"); jQuery(".scate").eq(0).find(".scateMe").text(oneTitle); var twoTitle = jQuery(".scate").eq(1).find(".sMenu").find("a").eq(twoNum).text(); jQuery(".scate").eq(1).find(".sMenu").find("a").eq(twoNum).addClass("on"); jQuery(".scate").eq(1).find(".scateMe").text(twoTitle);}}); jQuery(document).ready(function(){ jQuery(".path").find(".sMenu").slideUp(0); jQuery(".path").find(".scate").each(function(q){ jQuery(this).click(function(){ if(jQuery(this).find(".sMenu").is(":hidden")) { jQuery(this).find(".sMenu").stop(true, true).slideDown(300); } else { jQuery(this).find(".sMenu").stop(true, true).slideUp(300); }}).mouseleave(function(){ jQuery(this).find(".sMenu").stop(true, true).slideUp(300); }) jQuery(this).find(".sMenu").find("a").each(function(k){ jQuery(this).hover(function(){ jQuery(this).addClass("on"); }, function(){ jQuery(this).removeClass("on"); })})})}) var interval;var duration = 700; $.fn.gnb = function(){ return $(this).each(function(){ var $this = $(this); var aLen = $this.find('a').size(); $('#gnb>ul>li>ul, #gnbBg').hide(); $('#gnb>ul>li>a').bind('focusin mouseenter',function(){ $this.find('ul, #gnbBg').hide(); $('#gnb>ul>li>a.hover').removeClass('hover'); $(this).addClass('hover'); if($(this).next().size() > 0){ $(this).next().show(); $('#gnbBg').show();}}); $('>li',$this).bind('mouseleave',function(){ $(this).find('>ul').hide(); $(this).removeClass('hover'); $('#gnbBg').hide(); }); $this.find('a').eq(aLen-1).bind('focusout',function(){ $('>li>a.hover',$this).removeClass('hover'); $(this).mouseleave(); $('#gnbBg').hide(); });});} function mFooterLoad(){ var indexNewsNum = 0; $("#ticker #tickerBtn a").css("cursor", "pointer"); $("#ticker .tickerCon .news li").css( "display", "none" ); $("#ticker .tickerCon .news li").eq( indexNewsNum ).css( "display", "block" );$("#ticker #tickerBtn .prev").click( function(){ if( indexNewsNum == 0 ) { indexNewsNum = 4; } else { indexNewsNum--; } $("#ticker .tickerCon .news li").css( "display", "none" );$("#ticker .tickerCon .news li").eq( indexNewsNum ).css( "display", "block" ); return false; }); $("#ticker #tickerBtn .next").click( function(){ if( indexNewsNum == 4 ) { indexNewsNum = 0; } else { indexNewsNum++; } $("#ticker .tickerCon .news li").css( "display", "none" ); $("#ticker .tickerCon .news li").eq( indexNewsNum ).css( "display", "block" ); return false; });}; var gnbMove = function(){ var gnb = $("#gnbArea"), a=[], winHeight = $(window).height(); $(window).resize(function() { winHeight = $(window).height(); }); $(window).scroll(function(){ var position = $(window).scrollTop(); if( position > 78 ){ gnb.css({ position:"fixed", top:"0" }); }else{ gnb.css({ position:"relative", top:"0" });}});}; $(document).ready(function () { mainBanner(); gnbMove(); }); $(window).load(function(){ mFooterLoad(); }); var mainBanner = function(){ if($(".visImg").length < 1){ return;} var isPlay = true, isTween = false, currentNum = 0, targetNum = 0, bannerLen, bannerInterval, bannerWidth, winWidth, minWidth = 1280, maxWidth = 1920, delay = 5000, speed = 800, easing = "easeInOutSine"; init(); function init(){ bannerLen = $(".imgSrc").length; bannerInterval = setInterval(bannerInter,delay); resizeWin(); for(var i= 0 ;i < bannerLen; i++){ if(i==0){ $(".visImg_btn a").eq(i).removeClass("visImg_btn_off"+(i+1)); $(".visImg_btn a").eq(i).addClass("visImg_btn_on"+(i+1)); }else{ $(".visImg_btn a").eq(i).addClass("visImg_btn_off"+(i+1)); $(".visImg_btn a").eq(i).removeClass("visImg_btn_on"+(i+1)); }}} $(window).resize(function() {resizeWin(); if(bannerInterval)clearInterval(bannerInterval); clearTimeout($.data(this, 'resizeTimer')); $.data(this, 'resizeTimer', setTimeout(function() { if(isPlay){ if(bannerInterval)clearInterval(bannerInterval); bannerInterval = setInterval(bannerInter,delay); }}, 100));}); function resizeWin(){ winWidth = $(window).width(); if(winWidth < maxWidth && winWidth > minWidth){ $(".visImg").css({"position":"relative","width":winWidth, "max-width":maxWidth,"margin": "0"}); $(".imgSrc").css({"overflow":"hidden", "width":winWidth}); $(".imgSrc img").css({"margin-left":-(maxWidth-winWidth)/2});$(".visImg .imgSrc").each(function(index,target){ $(this).css({"left":winWidth*index}); }); bannerWidth = winWidth;$(".arrowBtn").css("left",0);}else if(winWidth <= minWidth){ $(".visImg").css({"position":"relative","width":minWidth,"max-width":maxWidth,"margin": "0"}); $(".imgSrc").css({"overflow":"hidden", "width":minWidth}); $(".imgSrc img").css({"margin-left":-(maxWidth-minWidth)/2}); $(".visImg .imgSrc").each(function(index,target){ $(this).css({"left":minWidth*index}); }); bannerWidth = minWidth; $(".arrowBtn").css("left",0); }else{ $(".visImg").css({"position":"relative","width":"100%","max-width":maxWidth,"margin": "0 auto"}); $(".imgSrc").css({"overflow":"hidden", "width":maxWidth}); $(".imgSrc img").css({"margin-left":0}); $(".visImg .imgSrc").each(function(index,target){ $(this).css({"left":maxWidth*index}); });bannerWidth = maxWidth; $(".arrowBtn").css("left",(winWidth - maxWidth)/2); }} function bannerInter(){ targetNum = currentNum +1; if(targetNum >= bannerLen){ targetNum = 0; } bannerMove(targetNum,"right"); } $(".arrowBtn > a").on("click", function(e){ e.stopPropagation(); e.preventDefault(); if(bannerInterval)clearInterval(bannerInterval); var idx = $(this).index(); if(idx == 0){ leftMove(); }else{ rightMove();} }); function leftMove(){ targetNum = currentNum -1; if(targetNum < 0){ targetNum = bannerLen-1; } bannerMove(targetNum,"left"); } function rightMove(){ targetNum = currentNum +1;if(targetNum >= bannerLen){ targetNum = 0; } bannerMove(targetNum,"right");} $(".visImg_btn a").on("click", function(e){ e.stopPropagation(); e.preventDefault(); var idx = $(this).index(); var len = $(".visImg_btn a").length-1; if(idx == currentNum){return;} if(bannerInterval)clearInterval(bannerInterval); if(idx == len){ if(isPlay){ $(this).removeClass("visImg_btn_pause"); $(this).addClass("visImg_btn_play"); $(this).html("Á¤Áö"); isPlay = false; }else{ bannerInterval = setInterval(bannerInter,delay); $(this).removeClass("visImg_btn_play"); $(this).addClass("visImg_btn_pause"); $(this).html("Àç»ý"); isPlay = true; }}else{ if(isTween){return;}if(currentNum > idx){ bannerMove(idx,"left"); }else{ bannerMove(idx,"right"); }}}); function bannerMove(idx,direction){ if(isTween){return;} isTween = true; if(bannerInterval)clearInterval(bannerInterval); if(direction == "right"){ $(".imgSrc").eq(currentNum).css({left:0}); $(".imgSrc").eq(idx).css({left:bannerWidth}); $(".imgSrc").eq(currentNum).animate({"left":"-="+bannerWidth},speed, easing); $(".imgSrc").eq(idx).animate({"left":"-="+bannerWidth},speed, easing, function(){ motionComplete(idx); });}else{ $(".imgSrc").eq(currentNum).css({left:0}); $(".imgSrc").eq(idx).css({left:-bannerWidth}); $(".imgSrc").eq(currentNum).animate({"left":"+="+bannerWidth},speed, easing); $(".imgSrc").eq(idx).animate({"left":"+="+bannerWidth},speed, easing, function(){ motionComplete(idx); });} for(var i= 0 ;i < bannerLen; i++){ if(i==idx){ $(".visImg_btn a").eq(idx).removeClass("visImg_btn_off"+(idx+1)); $(".visImg_btn a").eq(idx).addClass("visImg_btn_on"+(idx+1)); }else{ $(".visImg_btn a").eq(i).addClass("visImg_btn_off"+(i+1)); $(".visImg_btn a").eq(i).removeClass("visImg_btn_on"+(i+1)); }}} function motionComplete(idx){ currentNum = idx; isTween = false; if(isPlay){ if(bannerInterval)clearInterval(bannerInterval); bannerInterval = setInterval(bannerInter,delay); }}}; $(function() { $('#quickBan').slidesjs2({ width: 244, height: 90, play: { active: false, auto: false, interval: 0, swap: true } }); }); $(function(){ $("img.out").hover( function() { $(this).stop().animate({"opacity": "0"}, "slow"); }, function() { $(this).stop().animate({"opacity": "1"}, "slow"); }); $('#bizIcon .bizImg').hover(function(){ $(this).css("background-image","url(/bizdemo47275/img/images/bizon_3on.png)"); }, function(){ $(this).css("background-color","#000"); }); }); ;(function($) { $.scrollUp = function (options) { var defaults = { scrollName: 'topIco',topDistance: '60',topSpeed: 300,animation: 'slide',animationInSpeed: 200,animationOutSpeed: 200,scrollText: 'TOP',scrollImg: true,activeOverlay: false }; var o = $.extend({}, defaults, options), scrollId = '#' + o.scrollName; $('', { id: o.scrollName, href: '#top', title: o.scrollText }).appendTo('body'); if (!o.scrollImg) { $(scrollId).text(o.scrollText); } $(scrollId).css({'display':'none','position': 'fixed','z-index': '99999'}); if (o.activeOverlay) { $("body").append("
"); $(scrollId+"-active").css({ 'position': 'absolute', 'top': o.topDistance+'px', 'width': '100%', 'border-top': '1px dotted '+o.activeOverlay, 'z-index': '9999999' });} $(window).scroll(function(){ switch (o.animation) { case "fade": $( ($(window).scrollTop() > o.topDistance) ? $(scrollId).fadeIn(o.animationInSpeed) : $(scrollId).fadeOut(o.animationOutSpeed) ); break; case "slide": $( ($(window).scrollTop() > o.topDistance) ? $(scrollId).slideDown(o.animationInSpeed) : $(scrollId).slideUp(o.animationOutSpeed) ); break; default: $( ($(window).scrollTop() > o.topDistance) ? $(scrollId).show(0) : $(scrollId).hide(0) );}}); $(scrollId).click( function(event) { $('html, body').animate({scrollTop:0}, o.topSpeed); event.preventDefault(); });};})(jQuery); $(function(){ $('#gnb>ul').gnb(); }); $(window).load(function(){ mFooterLoad(); }); function agree() { window.open("/bizdemo47275/main/agreement.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no"); } function privacy() { window.open("/bizdemo47275/main/privacy.php", "", "width=617, height=650, scrollbars=yes, resizable=no ,status=no ,toolbar=no"); }