<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
/** ARK 援ъ꽦�붿냼�� �꾩튂 諛� �ш린瑜� �꾨옒 蹂��섎� �듯빐 議곗젙��. **/
var arkWidth = 550;								// �먮룞�꾩꽦 �꾩껜 �볦씠 媛믪쓣 �ㅼ젙�쒕떎(蹂��숉룺).
var arkTop = 0;								// �먮룞�꾩꽦 �곷떒�먯꽌�� �꾩튂 媛믪쓣 �ㅼ젙�쒕떎.
var arkLeft = 0;								// �먮룞�꾩꽦 �쇱そ�먯꽌�� �꾩튂 媛믪쓣 �ㅼ젙�쒕떎.
var arkImgTop = -50;								// �먮룞�꾩꽦 �붿궡�� �대�吏��� �곷떒�먯꽌 �꾩튂 媛믪쓣 �ㅼ젙�쒕떎.
var arkImgLeft = 480;							// �먮룞�꾩꽦 �붿궡�� �대�吏��� �쇱そ�먯꽌 �꾩튂 媛믪쓣 �ㅼ젙�쒕떎.
var tooltip01TopPos = 0;						// �먮룞�꾩꽦 湲곕뒫�꾧린 �댄똻�� �곷떒 湲곗� �꾩튂 �ㅼ감 議곗젙媛�
var tooltip01LeftPos = 465;					// �먮룞�꾩꽦 湲곕뒫�꾧린 �댄똻�� 醫뚯륫 湲곗� �꾩튂 �ㅼ감 議곗젙媛�
var tooltip02TopPos = 0;						// �먮룞�꾩꽦 湲곕뒫耳쒓린 �댄똻�� �곷떒 湲곗� �꾩튂 �ㅼ감 議곗젙媛�
var tooltip02LeftPos = -50;						// �먮룞�꾩꽦 湲곕뒫耳쒓린 �댄똻�� 醫뚯륫 湲곗� �꾩튂 �ㅼ감 議곗젙媛�

var cp_textarea = document.createElement('textarea');

/*view_cont �고듃 �ъ씠利� 蹂�寃� �쒖옉*/
$(function() {
	
	$(".full_banner").parent().addClass("full_banner_yes");
	
	$('.full_banner .container .close').click(function() {
		//$('.full_banner').stop().animate({'margin-top':-104+'px'}, 150);
		$('.full_banner').stop().animate({'margin-top':-122+'px'}, 150);
		$("body").removeClass("full_banner_yes");
		if($("input:checkbox[name=fct]").attr('checked')){
			var todayDate = new Date();
				todayDate.setDate( todayDate.getDate()+Number(0));
				todayDate.setHours(23,59,59,999);
				document.cookie = "fullbanner=done; path=/; expires=" + todayDate.toGMTString() + ";";
		}
		$(".full_banner .open").show();
	});


	if($.cookie("fullbanner") != "done"){
		$('.full_banner').css('margin-top', '');
	}else{
		$(".full_banner .open").show();
	}

	$('.full_banner .open').click(function() {
		$('.full_banner').stop().animate({'margin-top':0+'px'}, 150);
		$("body").addClass("full_banner-yes");
		$(".full_banner .open").hide();
		$(".full_banner").attr('tabindex', '-1').focus();

		$.removeCookie("fullbanner", {path: '/'});
	});


	$(".view_cont a, .view_cont area").click(function(e){
		e.preventDefault();
		//console.log($(this).attr('href'));
		if($(this).attr('href').indexOf('http://') != -1 || $(this).attr('href').indexOf('https://') != -1){
			window.open($(this).attr('href'));
		}else if($(this).attr('href').indexOf('/policyPhoto/FileDownload.do') != -1){
			window.open($(this).attr('href'));
		}else if($(this).attr('href').indexOf('#') == 0){
			location.href = $(this).attr('href');
		}else if($(this).attr('href').indexOf('/newsNotify') != -1){
			location.href = $(this).attr('href');
		}
	});


	$('.share .share_lst .uc').on('click', function() {
		console.log();
		document.body.appendChild(cp_textarea);
		cp_textarea.value = currUrl;
		cp_textarea.select();
		document.execCommand('copy');
		document.body.removeChild(cp_textarea);
		cp_textarea.value = "";				
	    alert('蹂듭궗�섏뿀�듬땲��.\nCtrl+v瑜� �뚮윭 遺숈뿬�ｊ린�섏꽭��.');
		$(this).focus();
	});

		//珥덇린��
	$('.select_opt .restart').click(function(){
		$('#radio_all').attr("checked", true);
		$("input:checkbox[name=chkRepCode]").attr("checked", false);
		$('.select_opt ul').empty();
		
		//$("#repCodeType").val('');
		$("#srchRepCodeType").val('');
	});
	
	$('.tool .tts').click(function(){
		commonTts();
	});


	var ua = window.navigator.userAgent;
	var ie = ua.indexOf('MSIE ') &gt;= 0 || ua.indexOf('Trident/') &gt;= 0;

	//�듭뒪�뚮줈�� �� 寃쎌슦
	if(ie){
		window.addEventListener("copy",copy_ie);
	//洹몄쇅
	}else{
		window.addEventListener('copy', function(e){
			document.execCommand('copy');
			e.preventDefault();
			if(cp_textarea.value == ""){
				

				
				//if($(document.getSelection().baseNode).closest('.view-cont').length == 0){

				
				let text = document.getSelection()+'';
				if(text.length &lt;= 50){
					e.clipboardData.setData('text/plain', document.getSelection());
				}else{
					e.clipboardData.setData('text/plain', document.getSelection() + addTxt);
				}

				//e.clipboardData.setData('text/plain', document.getSelection() + addTxt);
			}else{
				e.clipboardData.setData('text/plain', document.getSelection());
			}
		}, false)
	}


});

$(window).on('load', function(){
	const acTab = $('.sch_post &gt; .sch_tab &gt; .tab_nav &gt; li.active a').text();
	if(acTab != ''){
		$('title').text(acTab+' | '+ $('title').text());
	}	
});

/*view_cont �고듃 �ъ씠利� 蹂�寃� ��*/

function fn_poliAudioPopup(url){	
	window.open(url, 'policyAudio2', 'width=520, height=740, resizable=no, scrollbars=yes');
	return false;
}


function fn_repCodeCk(){
	$('.select_opt ul').empty();

	if($('input[name=sch_post_radio]').length &gt; 0){
		var id = $('input[name=sch_post_radio]:checked').attr('id');
		if(id != 'radio_all'){
			$('.select_opt ul').append('&lt;li&gt;'+$("label[for='"+id+"']").text()+'&lt;button&gt;&lt;span&gt;��젣&lt;/span&gt;&lt;/button&gt;&lt;/li&gt;');
		}
	}

	$("input:checkbox[name=chkRepCode]:checked").each(function(){
		$('.select_opt ul').append('&lt;li&gt;'+$("label[for='"+$(this).val()+"']").text()+'&lt;button&gt;&lt;span&gt;��젣&lt;/span&gt;&lt;/button&gt;&lt;/li&gt;');
	});

	fn_liempty_ori();
}


function fn_liempty_ori(){
/* �ㅼ옉�숈쑝濡� 媛� ~List.jsp濡� �섏젙�댁꽌 ���	
$('.select_opt ul li button').off('click').on('click', function(){});
	$('.select_opt ul li button').click(function (){
	  var text = $(this).closest('li').text().replace('��젣', '');
	  $('.tab_cont_wrap label').each(function(){
		 if(text == $(this).text()){
			 var id = $(this).attr('for');			 
			 if(id.indexOf('radio_') &gt; -1){
				 $('#radio_all').attr("checked", true);
			 }else{
				 $('#'+id).attr("checked", false);
			 }
		 }
	  });
	  $(this).closest('li').remove();
   });*/
}



//異쒖쿂 �뺤콉�뺣낫 �좏깮
function outSiteChk(){
	
	var thisGbn = $('#repCodeType').val();

	var chkedOutSite = $('#repCode').val();
	var arrOutSite = new Array();
	if(chkedOutSite != undefined){	
		arrOutSite = chkedOutSite.split(",");


		$('.tab_nav li').each(function(i){
			if(thisGbn == '' &amp;&amp; i == 0){
				$(this).addClass('active');
				$('a', this).attr('title', '�좏깮��');
				$($('.tab_cont_wrap .cont')[i]).css('display', 'block');
			}else if($('a',this).text() == thisGbn){
				$(this).addClass('active');
				$('a', this).attr('title', '�좏깮��');
				$($('.tab_cont_wrap .cont')[i]).css('display', 'block');
			}
		});

		var radioCk = false;

		if($('input[name=sch_post_radio]').length &gt; 0){
			var id = $('input[name=sch_post_radio]:checked').attr('id');
			if(id != 'radio_all'){
				$('.select_opt ul').append('&lt;li&gt;'+$("label[for='"+id+"']").text()+'&lt;button&gt;&lt;span&gt;��젣&lt;/span&gt;&lt;/button&gt;&lt;/li&gt;');
				radioCk = true;
			}
		}

		$('#period option').each(function(){
			if($(this).val() == $('#formPeriod').val() &amp;&amp; $('#formPeriod').val() == 'direct'){
				$(this).attr('selected', true);
				$('.sch_brief .period').show();
				//$('.custom-select').css('background-color','#f3f3f3');
			}else if($(this).val() == $('#formPeriod').val()){
				$(this).attr('selected', true);
			}
		});
/*�ㅼ옉�숈쑝濡� 媛� ~List.jsp濡� �섏젙�댁꽌 ���
		for(var loop=0; loop &lt; arrOutSite.length; loop++){
			$checkedObj = $("input:checkbox[name=chkRepCode]");
			$checkedObj.each(function(i){
				if ($(this).val() == arrOutSite[loop]) {
					$(this).attr("checked", true);
					$('.select_opt ul').append('&lt;li&gt;'+$("label[for='"+$(this).val()+"']").text()+'&lt;button&gt;&lt;span&gt;��젣&lt;/span&gt;&lt;/button&gt;&lt;/li&gt;');
				}
			});
		}
*/

		if($('input[name=chkRepCode]:checked').length &gt; 0 || radioCk){
			$('.sch_post .detail_sch').click();
		}

		fn_liempty_ori();
	}
}



function fn_periodOption(){
		$('#period option').each(function(){
		if($(this).val() == $('#formPeriod').val() &amp;&amp; $('#formPeriod').val() == 'direct'){
			$(this).attr('selected', true);
			$('.sch_brief .period').show();
			//$('.custom-select').css('background-color','#f3f3f3');
		}else if($(this).val() == $('#formPeriod').val()){
			$(this).attr('selected', true);
		}
	});
}


/**
 * 湲곗궗異붿쿇�섍린
 * 1. AJAX - 湲곗궗異붿쿇�섍린
 * @param  : newsId     - �댁뒪 ID
 * @return : 湲곗궗異붿쿇�섏뭅�댄듃
 */
function commonNewsRecommend(newsId){	
	$.ajax({
		type:"POST",
		url: "/common/recommend.do",
		dataType: "xml",
		data: {
			  newsId:newsId
		},
		success: function( data ) {
			var result = "";
			$(data).find('item').each(function() {
				result = $.trim($(this).find('value').text());
			});

			$(".as_sns .like .count, .view_opt .like .count").html(result);
			$(".as_sns .like, .view_opt .like").addClass('active');	
			
			return;
		}
	});
}

function commonTts(){
	if(window.speechSynthesis.speaking){
		window.speechSynthesis.cancel(); // �꾩옱 �쎄퀬�덈떎硫� 珥덇린��	
	}else{
		if (typeof SpeechSynthesisUtterance === "undefined" || typeof window.speechSynthesis === "undefined") {
			alert("�대떦 釉뚮씪�곗��� �뚯꽦�쎄린 湲곕뒫�� 吏��먮릺吏� �딆뒿�덈떎.");
			return
		}
		
		window.speechSynthesis.cancel(); // �꾩옱 �쎄퀬�덈떎硫� 珥덇린��
		
		//const prop = opt_prop || {};
		var newText = '';
		var $el = document.querySelector('.container .editor_note'); 
		if($el != undefined){
			newText = $el.innerHTML.replace(/&lt;[^&gt;]*&gt;?/g, ''); 			
		}
		$el = document.querySelector('.container .view_cont');
		var text = $el.innerHTML;
		var pcnt = text.indexOf('&lt;div class="text" id="photoText"&gt;');
		if(pcnt == -1)pcnt=0;
		text = text.substr(pcnt, text.length); 
		
		var hcnt = text.indexOf('&lt;div class="hidden"/&gt;');
		if(hcnt == -1)hcnt=0;
		text = text.substr(hcnt, text.length); 
		
		text = text.replace('�ъ깮踰꾪듉�� �꾨Ⅴ�쒕㈃ �숈쁺�곸씠 �ъ깮�⑸땲��', ''); 
		text = text.replaceAll('&amp;nbsp;', ' '); 
		text = text.replaceAll('&amp;lt;', ''); 
		text = text.replaceAll('&amp;gt;', ''); 
		text = text.replace(/&lt;figure(.*?)&lt;(\/?)figure&gt;/gi, ''); 

		newText += text.replace(/&lt;[^&gt;]*&gt;?/g, ''); 
		newText = newText.replace(/\([^)]+\)/g, ''); 

		//console.log(newText);
		
		var voices = window.speechSynthesis.getVoices(); 
		const speechMsg = new SpeechSynthesisUtterance();
		speechMsg.rate = 1; // �띾룄: 0.1 ~ 10      
		speechMsg.pitch = 1; // �뚮넂��: 0 ~ 2
		speechMsg.lang = "ko-KR";
		speechMsg.text = newText;
		speechMsg.onend = (event) =&gt;{$('.tool .tts').removeClass('active')};
		//speechMsg.voice = voices.filter(function(voice) { return voice.name == 'Google �쒓뎅��'; })[0]; 

		ttsClickCount();	

		window.speechSynthesis.speak(speechMsg);
	}
}



function ttsClickCount(){
		var tblKey = "TTS";
		var newsId = "WEB";
		var type = 'TTS';

	    
	    var dataStr = 'tblKey=' + tblKey + '&amp;newsId=' + newsId + '&amp;snsGubun=' + type;

	    $.ajax({
	             type: 'get'
	           , url: '/common/snsShare.do'
	           , data: dataStr
	           , dataType: 'xml'
	           , timeout : 5000
	           , success: function(data) {
	             }
	           , error : function() {

	           }
	           , complete : function() {
	       		  
	           }
	       });        
	}
	
window.speechSynthesis.cancel(); // �꾩옱 �쎄퀬�덈떎硫� 珥덇린��


   //�꾪겢由� 怨듦컧 ebook �닿린
	function openEbook(dir) {
		window.open("https://gonggam.korea.kr/fcatalog/ecatalog5.jsp?Dir="+dir);
	}

	//�꾪겢由� 怨듦컧, 移댄댆 怨듦컧 ebook �닿린
	function openEbookWeekly(dir, newsId, fileId, gbn) {
		updateNewsDataHitCnt(newsId);
		window.open("https://gonggam.korea.kr/fcatalog/ecatalog5.jsp?Dir="+dir+"&amp;fileId="+fileId+"&amp;gbn="+gbn);
	}

	function updateNewsDataHitCnt(newsId){

		$.ajax({
			type:"POST",
			url: "/common/updateNewsDataHitCnt.do",
			dataType: "xml",
			data: {
				  newsId:newsId
			},
			success: function( data ) {
				return;
			}
		});

	}

	//遺�泥� 媛꾪뻾臾� ebook �닿린
	function openEbookDept1(dir, newsId) {
		ebookPanViewCntUpdate(newsId);
		window.open("https://gonggam.korea.kr/fcatalog/ecatalog.jsp?Dir="+dir);
	}

	//遺�泥� 媛꾪뻾臾� ebook �닿린
	function openEbookDept2(dir, newsId) {
		ebookPanViewCntUpdate(newsId);
		window.open(dir);
	}

	function ebookPanViewCntUpdate(newsId){

		$.ajax({
			type:"POST",
			url: "/common/ebookPanViewCntUpdate.do",
			dataType: "xml",
			data: {
				  newsId:newsId
			},
			success: function( data ) {
				return;
			}
		});

	}
		
   /**
    * �꾪솕踰덊샇 泥댄겕
    * @param  : str - 臾몄옄��, num - 援щ텇
    * @return : boolean
    */
   function checkTelNumber(str, num){	// �꾪솕  �뺤떇 泥댄겕
	   var ch1 = /^[0-9]{2,4}$/;		// �욎옄由�
	   var ch2 = /^[0-9]{3,4}$/;		// 以묎컙�먮━
	   var ch3 = /^[0-9]{3,4}$/;		// �앹옄由�
	   var ch0 = /^[0-9]{2,4}-[0-9]{3,4}-[0-9]{3,4}$/;	// �꾩껜
       var result = true;
       if($.trim(str) == null || $.trim(str) == "") {
    	   return false;
       }
       if (num==1) {
    	   result = ch1.test(str);	// �욎옄由�
       } else if (num==2) {
    	   result = ch2.test(str);	// 以묎컙�먮━
       } else if (num==3) {
    	   result = ch3.test(str);	// �앹옄由�
       } else {
    	   result = ch0.test(str);	// �꾩껜
       }

       return result;
   }

   /**
    * 而⑦뀗痢� �몄뇙 �앹뾽
    */
   function viewPrint() {
	   var url = location.href;
	   if(url.indexOf("pressReleaseView") &gt; -1 &amp;&amp; $("#content").length &gt; 0 || $("#content_press").length &gt; 0){
		   $("#content_press").contents().find("#print-btn").click();
	   }else{
		   window.open('/common/searchPrint.do','printPop', 'width=760, height=600, top=0, left=0, scrollbars=yes, resizable=no, status=yes');
	   }
   }

   /**
    * �곸긽�먮즺 而⑦뀗痢� �몄뇙 �앹뾽
    */
   function viewArchivePrint(newsId) {
	   var URL = "/common/archivePrint.do?newsId=" + newsId;
	   window.open(URL,'printPop', 'width=760, height=600, top=0, left=0, scrollbars=yes, resizable=no, status=yes');
   }

   /**
    * �꾨Ц�먮즺 �몄뇙 �앹뾽
    */
   function viewExpPrint() {
	   window.open('/common/expPrint.do','printPop', 'width=760, height=600, top=0, left=0, scrollbars=yes, resizable=no, status=yes');
   }

   /**
    * �곗꽕臾� �몄뇙 �앹뾽
    */
   function viewSpeechPrint() {
	   window.open('/common/speechPrint.do','printPop', 'width=760, height=600, top=0, left=0, scrollbars=yes, resizable=no, status=yes');
   }

   /**
    * �댁뒪�덊꽣 �몄뇙 �앹뾽
    */
   function viewNewsLetterPrint() {
	   window.open('/common/newsLetterPrint.do','printPop', 'width=810, height=600, top=0, left=0, scrollbars=yes, resizable=no, status=yes');
   }

	const addTxt = "\n\n[異쒖쿂] ���쒕�援� �뺤콉釉뚮━��(www.korea.kr)";

	function copy_ie2(){
		if(window.clipboardData){
			var txt = window.clipboardData.getData('Text');
			var result = window.clipboardData.setData('Text',txt + addTxt);
		}
	}

	function copy_ie(){
		if(window.event){
			window.event.returnValue = true;
			window.setTimeout('copy_ie2()',25);
		}
	}
	
	function showNotifyMsg(){
	  alert("9.4(��) �ㅽ뵂 �덉젙�낅땲��.");
	}</pre></body></html>