PageSourceSearch

http://jajusibo.com/js/ins_js.js?wdate=1790287765

js jajusibo.com collected 2026-09-24 22:11:36 UTC 63,846 bytes, 2,027 lines download raw bytes

1var console = window.console || {log:function(){}};
2
3//카카오톡 보내기
4function executeURLLink(a,b,c,d)
5{
6    kakao.link("talk").send({
7        msg : a,
8        url : b,
9        appid : c,
10        appver : "2.0",
11        appname : d,
12        type : "link"
13    });
14
15}
16
17//카카오스토리 보내기
18function executeKakaoStoryLink(a,b,c,d,e,f,g)
19{
20kakao.link("story").send({
21post : b,
22appid : c,
23appver : "1.0",
24appname : d,
25urlinfo : JSON.stringify({title:a, desc:e, imageurl:[f], type:g})
26});
27}
28
29function MM_openBrWindow(theURL,winName,features) { //v2.0
30      var popup =  window.open(theURL,winName,features);
31 popup.focus();
32}
33
34function swf_view(swf_file,swf_width,swf_height) {
35	
36  document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width='"+swf_width+"' height='"+swf_height+"'>")
37  document.write("<param name=\"FlashVars\" value=\"menu=sub2\">")
38  document.write("<param name=\"allowScriptAccess\" value=\"always\">")
39  document.write("<param name=movie value='"+swf_file+"'>") 
40  document.write("<param name=\"wmode\" value=\"transparent\">") 
41  document.write("<embed src='"+swf_file+"' quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width='"+swf_width+"' height='"+swf_height+"' wmode='transparent'></embed>") 
42  document.write("</object>")
43}
44
45
46function reader_checkForm(){
47
48	formObj = document.rc;
49
50     if (formObj.reader_name.value == '')   
51
52     {
53            alert('이름을 입력해 주십시오 ');
54            formObj.reader_name.focus();  
55            return false;
56	 }
57     else if(formObj.reader_title.value == '')     
58    {
59           alert(' 제목을 입력해 주십시오');
60           formObj.reader_title.focus();  
61               return false;
62    }
63	else if(formObj.reader_passwd.value == '')     
64    {
65            alert(' 패스워드를 입력해 주십시오');
66           formObj.reader_passwd.focus();  
67               return false;
68	}
69	else if(formObj.reader_body.value == '')     
70    {
71            alert(' 내용을 입력해 주십시오');
72            formObj.reader_body.focus();  
73               return false;
74	}
75	else if(formObj.nospam.value == '')     
76    {
77            alert(' 스팸검사에 옆의 숫자를 입력해 주십시오');
78           formObj.nospam.focus();  
79               return false;
80	}
81
82
83	 var url="./newnews/ins_reader_add_exe.php";
84	 var parameters="d_mode=input&newsuid="+formObj.newsuid.value+"&reader_title=" + encodeURI(formObj.reader_title.value);
85	     parameters +="&reader_name="+ encodeURI(formObj.reader_name.value);
86	     parameters +="&reader_passwd="+ encodeURI(formObj.reader_passwd.value);
87	     parameters +="&reader_body="+ encodeURI(formObj.reader_body.value);
88	     parameters +="&nospam="+ encodeURI(formObj.nospam.value);
89		 parameters +="&u_id="+ encodeURI(formObj.d_id.value);
90	
91         //alert(parameters);
92		 ajax.ajax_action(url,'post',parameters,r_c,'');
93		 formObj.reader_title.value="";
94		 formObj.reader_name.value="";
95		 formObj.reader_passwd.value="";
96		 formObj.reader_body.value="";
97		 formObj.nospam.value="";
98
99		  return false;
100	  
101 
102}
103
104
105
106
107function reader_checkForm_sign(){
108
109	formObj = document.rc;
110
111     if (formObj.reader_name.value == '')   
112
113     {
114            alert('이름을 입력해 주십시오 ');
115            formObj.reader_name.focus();  
116            return false;
117	 }
118     else if(formObj.reader_title.value == '')     
119    {
120           alert(' 제목을 입력해 주십시오');
121           formObj.reader_title.focus();  
122               return false;
123    }
124	else if(formObj.reader_passwd.value == '')     
125    {
126            alert(' 패스워드를 입력해 주십시오');
127           formObj.reader_passwd.focus();  
128               return false;
129	}
130	else if(formObj.reader_body.value == '')     
131    {
132            alert(' 내용을 입력해 주십시오');
133            formObj.reader_body.focus();  
134               return false;
135	}
136	else if(formObj.nospam.value == '')     
137    {
138            alert(' 스팸검사에 옆의 숫자를 입력해 주십시오');
139           formObj.nospam.focus();  
140               return false;
141	}
142    /*else if(formObj.name_check.value !='2')     
143    {
144            alert(' 선거 실명 인증을 해야 합니다.');
145                 return false;
146	}*/
147
148	 var url="./newnews/ins_reader_add_exe.php";
149	 var parameters="d_mode=input&newsuid="+formObj.newsuid.value+"&reader_title=" + encodeURI(formObj.reader_title.value);
150	     parameters +="&reader_name="+ encodeURI(formObj.reader_name.value);
151	     parameters +="&reader_passwd="+ encodeURI(formObj.reader_passwd.value);
152	     parameters +="&reader_body="+ encodeURI(formObj.reader_body.value);
153	     parameters +="&nospam="+ encodeURI(formObj.nospam.value);
154		 parameters +="&u_id="+ encodeURI(formObj.d_id.value);
155	
156         //alert(parameters);
157		 ajax.ajax_action(url,'post',parameters,r_c,'');
158		 formObj.reader_title.value="";
159		 formObj.reader_name.value="";
160		 formObj.reader_passwd.value="";
161		 formObj.reader_body.value="";
162		 formObj.nospam.value="";
163
164		  return false;
165	  
166 
167}
168
169
170
171
172function reader_checkForm_body(){
173
174	formObj = document.rc;
175
176     if (formObj.reader_name.value == '')   
177
178     {
179            alert('이름을 입력해 주십시오 ');
180            formObj.reader_name.focus();  
181            return false;
182	 }
183    
184	else if(formObj.reader_passwd.value == '')     
185    {
186            alert(' 패스워드를 입력해 주십시오');
187           formObj.reader_passwd.focus();  
188               return false;
189	}
190	else if(formObj.reader_body.value == '')     
191    {
192            alert(' 내용을 입력해 주십시오');
193            formObj.reader_body.focus();  
194               return false;
195	}
196	else if(formObj.nospam.value == '')     
197    {
198            alert(' 스팸검사에 옆의 숫자를 입력해 주십시오');
199           formObj.nospam.focus();  
200               return false;
201	}
202  
203
204	 var url="./newnews/ins_reader_add_exe.php";
205	 var parameters="d_mode=input&newsuid="+formObj.newsuid.value;
206	     parameters +="&reader_name="+ encodeURI(formObj.reader_name.value);
207	     parameters +="&reader_passwd="+ encodeURI(formObj.reader_passwd.value);
208	     parameters +="&reader_body="+ encodeURI(formObj.reader_body.value);
209	     parameters +="&nospam="+ encodeURI(formObj.nospam.value);
210		 parameters +="&u_id="+ encodeURI(formObj.d_id.value);
211	
212         //alert(parameters);
213		 ajax.ajax_action(url,'post',parameters,r_c,'');
214		 formObj.reader_name.value="";
215		 formObj.reader_passwd.value="";
216		 formObj.reader_body.value="";
217		 formObj.nospam.value="";
218
219		  return false;
220	  
221 
222}
223
224
225function r_c()
226{
227   if (ajax.request.readyState == 4)
228		 {
229         
230			if (ajax.request.status == 200)
231			{
232				result = ajax.request.responseText;
233				if(result=="스팸검사를 정확히 입력해주십시오.")
234				{
235					alert('스팸검사를 정확히 입력해 주십시오');
236				}
237				else if(result=="뉴스 번호가 없습니다.")
238				{
239					alert('뉴스 번호가 없습니다.');
240				}
241				else if(result=="IP 가 차단되었습니다. block spam ip")
242				{
243					alert('IP 가 차단되었습니다. block spam ip');
244				}
245				else if(result=="<font color=red>금지 단어가 있어서 글 등록을 할 수 없습니다. 관리자문의</font>")
246				{
247					alert('금지 단어가 있어서 글 등록을 할 수 없습니다. 관리자문의');
248				}
249				else if(result=="<font color=red>영문자로만 구성되어 있어 글등록이 거부됩니다</font>")
250				{
251					alert('영문자로만 구성되어 있어 글등록이 거부됩니다');
252				}
253				else
254				{
255					document.getElementById('reader_t').innerHTML = result;
256					alert('등록되었습니다.');	
257				}
258				
259				           
260			}
261			else
262			{
263				alert('입력 에러');
264			}
265		}
266
267}
268
269
270function bbsetc_checkForm(){
271
272	   bbs_etcform = document.b_etc_ok;
273
274	   if (bbs_etcform.bbs_name.value == '') {
275			alert('이름을 입력해 주십시오 ');
276			bbs_etcform.bbs_name.focus();
277			return false;
278		} else if (bbs_etcform.etc_passwd.value == '') {
279			alert(' 패스워드를 입력해 주십시오');
280			bbs_etcform.etc_passwd.focus();  
281			return false;
282		} else if (bbs_etcform.bbs_memo.value == '') {
283			alert(' 내용을 입력해 주십시오');
284			bbs_etcform.bbs_memo.focus();  
285			return false;
286		} else if (bbs_etcform.nospam.value == '') {
287			alert(' 도배 방지를 위한 옆의 숫자를 입력해 주십시오');
288			bbs_etcform.nospam.focus();  
289			return false;
290		}
291
292
293
294	   var url2="./bbs/ins_bbs_etc_add_exe.php";
295	   var parameters="d_mode=input&bbs_uid="+bbs_etcform.bbs_uid.value;
296	      parameters +="&bbs_name="+ encodeURI(bbs_etcform.bbs_name.value);
297	      parameters +="&etc_passwd="+ encodeURI(bbs_etcform.etc_passwd.value);
298	      parameters +="&bbs_memo="+ encodeURI(bbs_etcform.bbs_memo.value);
299	     parameters +="&nospam="+ encodeURI(bbs_etcform.nospam.value);
300	  	 parameters +="&Table="+ encodeURI(bbs_etcform.Table.value);
301	
302       	 ajax.ajax_action(url2,'post',parameters,bbs_r_c,'');
303		 bbs_etcform.bbs_name.value="";
304		 bbs_etcform.etc_passwd.value="";
305		 bbs_etcform.bbs_memo.value="";
306		 bbs_etcform.nospam.value="";
307		  return false;
308
309}
310
311
312function bbsetc_checkForm_sign(){
313
314	   bbs_etcform = document.b_etc_ok;
315
316	   if (bbs_etcform.bbs_name.value == '') {
317			alert('이름을 입력해 주십시오 ');
318			bbs_etcform.bbs_name.focus();
319			return false;
320		} else if (bbs_etcform.etc_passwd.value == '') {
321			alert(' 패스워드를 입력해 주십시오');
322			bbs_etcform.etc_passwd.focus();  
323			return false;
324		} else if (bbs_etcform.bbs_memo.value == '') {
325			alert(' 내용을 입력해 주십시오');
326			bbs_etcform.bbs_memo.focus();  
327			return false;
328		} else if (bbs_etcform.nospam.value == '') {
329			alert(' 도배 방지를 위한 옆의 숫자를 입력해 주십시오');
330			bbs_etcform.nospam.focus();  
331			return false;
332		}
333
334   if(!confirm('정당후보자에 대한 지지 또는 반대의 글을 실명인증을 해야 합니다.\r\n 확인을 누르시면 등록이 됨니다.'))
335	{
336                 return false;
337	}	
338
339	   var url2="./bbs/ins_bbs_etc_add_exe.php";
340	   var parameters="d_mode=input&bbs_uid="+bbs_etcform.bbs_uid.value;
341	      parameters +="&bbs_name="+ encodeURI(bbs_etcform.bbs_name.value);
342	      parameters +="&etc_passwd="+ encodeURI(bbs_etcform.etc_passwd.value);
343	      parameters +="&bbs_memo="+ encodeURI(bbs_etcform.bbs_memo.value);
344	     parameters +="&nospam="+ encodeURI(bbs_etcform.nospam.value);
345	  	 parameters +="&Table="+ encodeURI(bbs_etcform.Table.value);
346
347	
348       	 ajax.ajax_action(url2,'post',parameters,bbs_r_c,'');
349		 bbs_etcform.bbs_name.value="";
350		 bbs_etcform.etc_passwd.value="";
351		 bbs_etcform.bbs_memo.value="";
352		 bbs_etcform.nospam.value="";
353		  return false;
354
355}
356
357function bbs_r_c()
358{
359   if (ajax.request.readyState == 4)
360		 {
361         
362			if (ajax.request.status == 200)
363			{
364				result = ajax.request.responseText;
365
366				if(result=="스팸검사를 정확히 입력해 주십시오.")
367				{
368					alert('스팸검사를 정확히 입력해 주십시오');
369				}
370				else if(result=="번호가 없습니다.")
371				{
372					alert('번호가 없습니다.');
373				}
374				else
375				{
376					document.getElementById('bbs_etc_b').innerHTML = result;
377					//alert('등록되었습니다.');	
378				}
379				
380				           
381			}
382			else
383			{
384				alert('입력 에러');
385			}
386		}
387
388}
389
390
391function reader_point_add(r_uid)
392{
393      
394	   var url2="/newnews/ins_reader_add_exe.php?d_mode=point&r_uid="+r_uid;
395	  
396	   ajax.ajax_action(url2,'get','',r_ok,'');
397	  // return false;
398
399}
400
401function r_ok()
402{
403
404      if (ajax.request.readyState == 4)
405		 {
406         
407			if (ajax.request.status == 200)
408			{
409				result = ajax.request.responseText;
410				var r_v = result.split(':');
411                 
412				 document.getElementById('u_p_s_'+r_v[0]).innerHTML = r_v[1]; 
413				alert('추천되었습니다.');	
414				
415				
416				           
417			}
418			else
419			{
420				alert('입력 에러');
421			}
422		}
423
424}
425
426
427function ins_main_create()
428{
429
430	alert('aaa');
431
432}
433
434
435
436
437function vod_main_view(v_uid)
438{
439       
440	   var url2="/newnews/ins_news_vod_main_view.php?d_mode=get&v_uid="+v_uid;
441	   ajax.ajax_action(url2,'get','',vod_ok,'');
442	  
443
444}
445
446
447
448function vod_main_view_sub(v_uid)
449{
450        var agent=navigator.userAgent.toLowerCase();
451		var is_iphone = (agent.indexOf('iphone')!=-1);
452		var is_andriod = (agent.indexOf('mobile')!=-1);
453		if(is_iphone)
454		{
455		  os_type="iphone";
456		}
457		else if(is_andriod)
458		{
459		  os_type="android";
460		}
461		else
462		{
463		 
464		  os_type="pc";
465		   
466		}
467
468		
469       
470	   var url2="/newnews/ins_news_vod_main_view_sub.php?d_mode=get&v_uid="+v_uid+"&os_type="+os_type;
471	   ajax.ajax_action(url2,'get','',vod_ok,'');
472	  
473	  
474
475}
476
477
478
479function reader_view_main()
480{
481	    	
482       
483	   var url2="/newnews/ins_reader_view_main.php";
484	   ajax.ajax_action(url2,'get','',vod_ok,'');
485	  
486
487}
488
489
490
491function vod_main_view_imtv(v_uid)
492{
493       
494	   var url2="/newnews/ins_news_vod_main_view_imtv.php?d_mode=get&v_uid="+v_uid;
495	   ajax.ajax_action(url2,'get','',vod_ok,'');
496	  
497
498}
499
500function vod_ok()
501{
502
503      if (ajax.request.readyState == 4)
504		 {
505         
506			if (ajax.request.status == 200)
507			{
508				result = ajax.request.responseText;
509			  
510			    document.getElementById('ins_vod_main').innerHTML = result; 
511				
512				
513				           
514			}
515			else
516			{
517				alert('입력 에러');
518			}
519		}
520
521}
522
523
524function vod_main_view_skin9(v_uid)
525{
526       
527	   var url2="/newnews/ins_news_vod_main_view_skin9.php?d_mode=get&v_uid="+v_uid;
528	   ajax.ajax_action(url2,'get','',vod_ok,'');
529	  
530
531}
532
533
534
535function vod_main_view_skin_sbctv_net(v_uid)
536{
537	var url2="/newnews/ins_news_vod_main_view_sbctv_net.php?d_mode=get&v_uid="+v_uid;
538	   ajax.ajax_action(url2,'get','',vod_ok,'');
539
540}
541/// 기사본문글자크기 조정
542var font_a=14;
543function fontsizeasc() {
544	font_a=font_a+2;
545	document.all.textinput.style.fontSize=font_a;
546}
547function fontsizedesc() {
548	font_a=font_a-2;
549	document.all.textinput.style.fontSize=font_a;
550}
551
552
553//무단복사 방지 마우스 드래드 금지
554function mou()
555{
556//<![CDATA[
557(function(){
558 var cancel=function(e){
559  if (window.event) {
560   window.event.cancelBubble = true;
561   window.event.returnValue = false;
562  }
563  if (e && e.stopPropagation && e.preventDefault) {
564   e.stopPropagation();
565   e.preventDefault();
566  }
567  return false;
568 };
569 var block=function(e){
570  e = e || window.event;
571  var t=e.srcElement || e.target;
572  var tag=t.tagName;
573  if (e && tag==='HTML' || tag==='INPUT' || tag==='TEXTAREA' || tag==='BUTTON' || tag==='SELECT' || tag==='OPTION' || tag==='EMBED' || tag==='OBJECT') { return; }
574  if (e.type==='keydown' || e.type=='keyup') {
575   // keyboard event : only block ctrl-A, ctrl-a, ctrl-C, ctrl-c, meta-A, meta-a, meta-C, meta-c
576   if ((e.ctrlKey || e.metaKey) && (e.keyCode == 65 || e.keyCode == 97 || e.keyCode == 67 || e.keyCode == 99)) { return cancel(e); }
577  } else if(e.type == "contextmenu"){
578   //alert('무단복사를 막기 위해 마우스 드래그 금지가 설정되어 있습니다');
579   return cancel(e);
580  } else {
581   return cancel(e);
582  }
583 }
584 var addEvent = function(el, type, fn){
585     if (window.addEventListener) {
586         el.addEventListener(type, fn, false);
587     }
588     else if (window.attachEvent) {
589         el.attachEvent('on' + type, fn);
590     }
591     else {
592         el['on' + type] = fn;
593     }
594 }
595 var addBlockEvent = function(){
596  addEvent(document.body,'keydown',block);
597  addEvent(document.body,'keyup',block);
598  addEvent(document.body,'mouseup',block);
599  addEvent(document.body,'mousedown',block);
600  addEvent(document.body,'dragstart',block);
601  addEvent(document.body,'selectstart',block);
602  addEvent(document.body,'copy',block);
603  addEvent(document.body,'contextmenu', block);
604 }
605 addEvent(window,'load',addBlockEvent);
606})();
607//]]>
608}
609
610//날개배너 스크롤-s
611function layerPosition(direction,time,tmp){
612	var blayer_R, blayer_L, D, blayer_R_2, blayer_L_2;
613	window["blayer_" + direction] = document.getElementById("Scroll_" + direction);
614
615	if(window["blayer_" + direction]) {
616		if(document.body.scrollTop >= 2500) {
617			tmp = -600;
618		} else {
619			tmp = 0;
620		}
621		if(direction.indexOf("_2") != -1)  {
622				if(document.body.scrollTop < 600) {
623					window["blayer_" + direction].style.top = 600;
624					D = "layerPosition('"+direction+"',"+time+","+tmp+")";
625					setTimeout(D,time);
626				} else {
627					window["blayer_" + direction].style.top = document.body.scrollTop + tmp;
628					D = "layerPosition('"+direction+"',"+time+","+tmp+")";
629					setTimeout(D,time);
630				}
631		} else {
632			window["blayer_" + direction].style.top = document.body.scrollTop + tmp;
633			D = "layerPosition('"+direction+"',"+time+","+tmp+")";
634			setTimeout(D,time);
635		}
636	}
637}
638
639
640var min = 0;      // 레이어 top 초기 값 (레이어 top 값과 일치시킴)
641var max = 0;
642var moving_speed = 40  // 속도(낮을 수록 빠름)
643var moving_amount = 10  // 움직임 (낮을 수록 부드러움)
644var itm_R, itm_L, max_R, max_L, itm_R_2, itm_L_2, max_R_2, max_L_2;
645function layerPosition2(direction,time,tmp){
646	var scroll_R, scroll_L, scroll_R_2, scroll_L_2, F;
647		if(!time) {
648			var action_time = 500;   // 반응시간 (*/1000 초 후에 반응)
649		} else {
650			var action_time = time;   // 반응시간 (*/1000 초 후에 반응)
651		}
652	window["scroll_" + direction] = document.getElementById("Scroll_" + direction);
653
654	if(window["scroll_" + direction]) {
655		F = "move_init('"+direction+"')";
656		setTimeout(F, action_time);
657	}
658}
659
660function move_init(t) {
661	var F;
662	if(t=='L_2' || t=='R_2') {
663		min = 610;
664	}	
665	window["itm_" + t] = document.getElementById('Scroll_'+t);
666	window["itm_" + t].set_pos = function(y){window["itm_" + t].style.top=y;};
667	window["itm_" + t].y = min;
668	window["itm_" + t].set_pos(window["itm_" + t].y);
669	//window["max_" + t] = document.body.scrollHeight /2;
670	window["max_" + t] = document.body.scrollHeight - window["itm_" + t].scrollHeight - 200;
671	F = "move_func('"+t+"')";
672	setTimeout(F, moving_amount);
673}
674		  
675function move_func(t) {
676	var F;
677	if(t=='L_2' || t=='R_2') {
678		tmp = document.body.scrollTop + min - 600;
679	} else {
680		tmp = document.body.scrollTop + min - 150;
681	}
682	window["itm_" + t].y += Math.floor((tmp-window["itm_" + t].y)/moving_speed);
683	if( window["itm_" + t].y>window["max_" + t] ) window["itm_" + t].y = window["max_" + t];
684	if( window["itm_" + t].y<min ) window["itm_" + t].y = min;
685	window["itm_" + t].set_pos(window["itm_" + t].y);
686	F = "move_func('"+t+"')";
687	setTimeout(F, moving_amount);
688}
689
690//window.onload = function(){
691    if(typeof jQuery == 'undefined') {
692        var jqueryElement = document.createElement('script');
693        jqueryElement.src = '/js/jquery-1.11.2.js';
694		
695		if(jqueryElement.addEventListener) {
696			jqueryElement.addEventListener("load",callback,false);
697		} else if(jqueryElement.readyState) {
698			jqueryElement.onreadystatechange = callback;
699		}
700		
701		document.getElementsByTagName('head')[0].appendChild(jqueryElement);
702		
703		function callback() {
704			if(typeof jQuery != 'undefined') {
705				var J = $.noConflict(); //플러그인 간의 충돌을 제거합니다.
706		 
707				J(document).ready(function() {
708					//layerPosition("L",100,0);
709					//layerPosition("R",100,0);
710					//layerPosition("L_2",100,0);
711					//layerPosition("R_2",100,0);
712					layerPosition2("L",1,0);
713					layerPosition2("R",1,0);
714					layerPosition2("L_2",1,0);
715					layerPosition2("R_2",1,0);
716
717				});
718			}
719		}        
720    } else {
721		$(window).ready(function() {
722			//layerPosition("L",100,0);
723			//layerPosition("R",100,0);
724			//layerPosition("L_2",100,0);
725			//layerPosition("R_2",100,0);
726			layerPosition2("L",1,0);
727			layerPosition2("R",1,0);
728			layerPosition2("L_2",1,0);
729			layerPosition2("R_2",1,0);
730			
731			
732		});
733	}
734//}
735//날개배너 스크롤-e
vendor: 14,672 bytes, lines 736-1270
736
737/*! https://mths.be/punycode v1.4.1 by @mathias */
738;(function(root) {
739
740	/** Detect free variables */
741	var freeExports = typeof exports == 'object' && exports &&
742		!exports.nodeType && exports;
743	var freeModule = typeof module == 'object' && module &&
744		!module.nodeType && module;
745	var freeGlobal = typeof global == 'object' && global;
746	if (
747		freeGlobal.global === freeGlobal ||
748		freeGlobal.window === freeGlobal ||
749		freeGlobal.self === freeGlobal
750	) {
751		root = freeGlobal;
752	}
753
754	/**
755	 * The `punycode` object.
756	 * @name punycode
757	 * @type Object
758	 */
759	var punycode,
760
761	/** Highest positive signed 32-bit float value */
762	maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
763
764	/** Bootstring parameters */
765	base = 36,
766	tMin = 1,
767	tMax = 26,
768	skew = 38,
769	damp = 700,
770	initialBias = 72,
771	initialN = 128, // 0x80
772	delimiter = '-', // '\x2D'
773
774	/** Regular expressions */
775	regexPunycode = /^xn--/,
776	regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
777	regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
778
779	/** Error messages */
780	errors = {
781		'overflow': 'Overflow: input needs wider integers to process',
782		'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
783		'invalid-input': 'Invalid input'
784	},
785
786	/** Convenience shortcuts */
787	baseMinusTMin = base - tMin,
788	floor = Math.floor,
789	stringFromCharCode = String.fromCharCode,
790
791	/** Temporary variable */
792	key;
793
794	/*--------------------------------------------------------------------------*/
795
796	/**
797	 * A generic error utility function.
798	 * @private
799	 * @param {String} type The error type.
800	 * @returns {Error} Throws a `RangeError` with the applicable error message.
801	 */
802	function error(type) {
803		throw new RangeError(errors[type]);
804	}
805
806	/**
807	 * A generic `Array#map` utility function.
808	 * @private
809	 * @param {Array} array The array to iterate over.
810	 * @param {Function} callback The function that gets called for every array
811	 * item.
812	 * @returns {Array} A new array of values returned by the callback function.
813	 */
814	function map(array, fn) {
815		var length = array.length;
816		var result = [];
817		while (length--) {
818			result[length] = fn(array[length]);
819		}
820		return result;
821	}
822
823	/**
824	 * A simple `Array#map`-like wrapper to work with domain name strings or email
825	 * addresses.
826	 * @private
827	 * @param {String} domain The domain name or email address.
828	 * @param {Function} callback The function that gets called for every
829	 * character.
830	 * @returns {Array} A new string of characters returned by the callback
831	 * function.
832	 */
833	function mapDomain(string, fn) {
834		var parts = string.split('@');
835		var result = '';
836		if (parts.length > 1) {
837			// In email addresses, only the domain name should be punycoded. Leave
838			// the local part (i.e. everything up to `@`) intact.
839			result = parts[0] + '@';
840			string = parts[1];
841		}
842		// Avoid `split(regex)` for IE8 compatibility. See #17.
843		string = string.replace(regexSeparators, '\x2E');
844		var labels = string.split('.');
845		var encoded = map(labels, fn).join('.');
846		return result + encoded;
847	}
848
849	/**
850	 * Creates an array containing the numeric code points of each Unicode
851	 * character in the string. While JavaScript uses UCS-2 internally,
852	 * this function will convert a pair of surrogate halves (each of which
853	 * UCS-2 exposes as separate characters) into a single code point,
854	 * matching UTF-16.
855	 * @see `punycode.ucs2.encode`
856	 * @see <https://mathiasbynens.be/notes/javascript-encoding>
857	 * @memberOf punycode.ucs2
858	 * @name decode
859	 * @param {String} string The Unicode input string (UCS-2).
860	 * @returns {Array} The new array of code points.
861	 */
862	function ucs2decode(string) {
863		var output = [],
864		    counter = 0,
865		    length = string.length,
866		    value,
867		    extra;
868		while (counter < length) {
869			value = string.charCodeAt(counter++);
870			if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
871				// high surrogate, and there is a next character
872				extra = string.charCodeAt(counter++);
873				if ((extra & 0xFC00) == 0xDC00) { // low surrogate
874					output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
875				} else {
876					// unmatched surrogate; only append this code unit, in case the next
877					// code unit is the high surrogate of a surrogate pair
878					output.push(value);
879					counter--;
880				}
881			} else {
882				output.push(value);
883			}
884		}
885		return output;
886	}
887
888	/**
889	 * Creates a string based on an array of numeric code points.
890	 * @see `punycode.ucs2.decode`
891	 * @memberOf punycode.ucs2
892	 * @name encode
893	 * @param {Array} codePoints The array of numeric code points.
894	 * @returns {String} The new Unicode string (UCS-2).
895	 */
896	function ucs2encode(array) {
897		return map(array, function(value) {
898			var output = '';
899			if (value > 0xFFFF) {
900				value -= 0x10000;
901				output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
902				value = 0xDC00 | value & 0x3FF;
903			}
904			output += stringFromCharCode(value);
905			return output;
906		}).join('');
907	}
908
909	/**
910	 * Converts a basic code point into a digit/integer.
911	 * @see `digitToBasic()`
912	 * @private
913	 * @param {Number} codePoint The basic numeric code point value.
914	 * @returns {Number} The numeric value of a basic code point (for use in
915	 * representing integers) in the range `0` to `base - 1`, or `base` if
916	 * the code point does not represent a value.
917	 */
918	function basicToDigit(codePoint) {
919		if (codePoint - 48 < 10) {
920			return codePoint - 22;
921		}
922		if (codePoint - 65 < 26) {
923			return codePoint - 65;
924		}
925		if (codePoint - 97 < 26) {
926			return codePoint - 97;
927		}
928		return base;
929	}
930
931	/**
932	 * Converts a digit/integer into a basic code point.
933	 * @see `basicToDigit()`
934	 * @private
935	 * @param {Number} digit The numeric value of a basic code point.
936	 * @returns {Number} The basic code point whose value (when used for
937	 * representing integers) is `digit`, which needs to be in the range
938	 * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
939	 * used; else, the lowercase form is used. The behavior is undefined
940	 * if `flag` is non-zero and `digit` has no uppercase form.
941	 */
942	function digitToBasic(digit, flag) {
943		//  0..25 map to ASCII a..z or A..Z
944		// 26..35 map to ASCII 0..9
945		return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
946	}
947
948	/**
949	 * Bias adaptation function as per section 3.4 of RFC 3492.
950	 * https://tools.ietf.org/html/rfc3492#section-3.4
951	 * @private
952	 */
953	function adapt(delta, numPoints, firstTime) {
954		var k = 0;
955		delta = firstTime ? floor(delta / damp) : delta >> 1;
956		delta += floor(delta / numPoints);
957		for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
958			delta = floor(delta / baseMinusTMin);
959		}
960		return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
961	}
962
963	/**
964	 * Converts a Punycode string of ASCII-only symbols to a string of Unicode
965	 * symbols.
966	 * @memberOf punycode
967	 * @param {String} input The Punycode string of ASCII-only symbols.
968	 * @returns {String} The resulting string of Unicode symbols.
969	 */
970	function decode(input) {
971		// Don't use UCS-2
972		var output = [],
973		    inputLength = input.length,
974		    out,
975		    i = 0,
976		    n = initialN,
977		    bias = initialBias,
978		    basic,
979		    j,
980		    index,
981		    oldi,
982		    w,
983		    k,
984		    digit,
985		    t,
986		    /** Cached calculation results */
987		    baseMinusT;
988
989		// Handle the basic code points: let `basic` be the number of input code
990		// points before the last delimiter, or `0` if there is none, then copy
991		// the first basic code points to the output.
992
993		basic = input.lastIndexOf(delimiter);
994		if (basic < 0) {
995			basic = 0;
996		}
997
998		for (j = 0; j < basic; ++j) {
999			// if it's not a basic code point
1000			if (input.charCodeAt(j) >= 0x80) {
1001				error('not-basic');
1002			}
1003			output.push(input.charCodeAt(j));
1004		}
1005
1006		// Main decoding loop: start just after the last delimiter if any basic code
1007		// points were copied; start at the beginning otherwise.
1008
1009		for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
1010
1011			// `index` is the index of the next character to be consumed.
1012			// Decode a generalized variable-length integer into `delta`,
1013			// which gets added to `i`. The overflow checking is easier
1014			// if we increase `i` as we go, then subtract off its starting
1015			// value at the end to obtain `delta`.
1016			for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
1017
1018				if (index >= inputLength) {
1019					error('invalid-input');
1020				}
1021
1022				digit = basicToDigit(input.charCodeAt(index++));
1023
1024				if (digit >= base || digit > floor((maxInt - i) / w)) {
1025					error('overflow');
1026				}
1027
1028				i += digit * w;
1029				t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
1030
1031				if (digit < t) {
1032					break;
1033				}
1034
1035				baseMinusT = base - t;
1036				if (w > floor(maxInt / baseMinusT)) {
1037					error('overflow');
1038				}
1039
1040				w *= baseMinusT;
1041
1042			}
1043
1044			out = output.length + 1;
1045			bias = adapt(i - oldi, out, oldi == 0);
1046
1047			// `i` was supposed to wrap around from `out` to `0`,
1048			// incrementing `n` each time, so we'll fix that now:
1049			if (floor(i / out) > maxInt - n) {
1050				error('overflow');
1051			}
1052
1053			n += floor(i / out);
1054			i %= out;
1055
1056			// Insert `n` at position `i` of the output
1057			output.splice(i++, 0, n);
1058
1059		}
1060
1061		return ucs2encode(output);
1062	}
1063
1064	/**
1065	 * Converts a string of Unicode symbols (e.g. a domain name label) to a
1066	 * Punycode string of ASCII-only symbols.
1067	 * @memberOf punycode
1068	 * @param {String} input The string of Unicode symbols.
1069	 * @returns {String} The resulting Punycode string of ASCII-only symbols.
1070	 */
1071	function encode(input) {
1072		var n,
1073		    delta,
1074		    handledCPCount,
1075		    basicLength,
1076		    bias,
1077		    j,
1078		    m,
1079		    q,
1080		    k,
1081		    t,
1082		    currentValue,
1083		    output = [],
1084		    /** `inputLength` will hold the number of code points in `input`. */
1085		    inputLength,
1086		    /** Cached calculation results */
1087		    handledCPCountPlusOne,
1088		    baseMinusT,
1089		    qMinusT;
1090
1091		// Convert the input in UCS-2 to Unicode
1092		input = ucs2decode(input);
1093
1094		// Cache the length
1095		inputLength = input.length;
1096
1097		// Initialize the state
1098		n = initialN;
1099		delta = 0;
1100		bias = initialBias;
1101
1102		// Handle the basic code points
1103		for (j = 0; j < inputLength; ++j) {
1104			currentValue = input[j];
1105			if (currentValue < 0x80) {
1106				output.push(stringFromCharCode(currentValue));
1107			}
1108		}
1109
1110		handledCPCount = basicLength = output.length;
1111
1112		// `handledCPCount` is the number of code points that have been handled;
1113		// `basicLength` is the number of basic code points.
1114
1115		// Finish the basic string - if it is not empty - with a delimiter
1116		if (basicLength) {
1117			output.push(delimiter);
1118		}
1119
1120		// Main encoding loop:
1121		while (handledCPCount < inputLength) {
1122
1123			// All non-basic code points < n have been handled already. Find the next
1124			// larger one:
1125			for (m = maxInt, j = 0; j < inputLength; ++j) {
1126				currentValue = input[j];
1127				if (currentValue >= n && currentValue < m) {
1128					m = currentValue;
1129				}
1130			}
1131
1132			// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
1133			// but guard against overflow
1134			handledCPCountPlusOne = handledCPCount + 1;
1135			if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
1136				error('overflow');
1137			}
1138
1139			delta += (m - n) * handledCPCountPlusOne;
1140			n = m;
1141
1142			for (j = 0; j < inputLength; ++j) {
1143				currentValue = input[j];
1144
1145				if (currentValue < n && ++delta > maxInt) {
1146					error('overflow');
1147				}
1148
1149				if (currentValue == n) {
1150					// Represent delta as a generalized variable-length integer
1151					for (q = delta, k = base; /* no condition */; k += base) {
1152						t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
1153						if (q < t) {
1154							break;
1155						}
1156						qMinusT = q - t;
1157						baseMinusT = base - t;
1158						output.push(
1159							stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
1160						);
1161						q = floor(qMinusT / baseMinusT);
1162					}
1163
1164					output.push(stringFromCharCode(digitToBasic(q, 0)));
1165					bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
1166					delta = 0;
1167					++handledCPCount;
1168				}
1169			}
1170
1171			++delta;
1172			++n;
1173
1174		}
1175		return output.join('');
1176	}
1177
1178	/**
1179	 * Converts a Punycode string representing a domain name or an email address
1180	 * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
1181	 * it doesn't matter if you call it on a string that has already been
1182	 * converted to Unicode.
1183	 * @memberOf punycode
1184	 * @param {String} input The Punycoded domain name or email address to
1185	 * convert to Unicode.
1186	 * @returns {String} The Unicode representation of the given Punycode
1187	 * string.
1188	 */
1189	function toUnicode(input) {
1190		return mapDomain(input, function(string) {
1191			return regexPunycode.test(string)
1192				? decode(string.slice(4).toLowerCase())
1193				: string;
1194		});
1195	}
1196
1197	/**
1198	 * Converts a Unicode string representing a domain name or an email address to
1199	 * Punycode. Only the non-ASCII parts of the domain name will be converted,
1200	 * i.e. it doesn't matter if you call it with a domain that's already in
1201	 * ASCII.
1202	 * @memberOf punycode
1203	 * @param {String} input The domain name or email address to convert, as a
1204	 * Unicode string.
1205	 * @returns {String} The Punycode representation of the given domain name or
1206	 * email address.
1207	 */
1208	function toASCII(input) {
1209		return mapDomain(input, function(string) {
1210			return regexNonASCII.test(string)
1211				? 'xn--' + encode(string)
1212				: string;
1213		});
1214	}
1215
1216	/*--------------------------------------------------------------------------*/
1217
1218	/** Define the public API */
1219	punycode = {
1220		/**
1221		 * A string representing the current Punycode.js version number.
1222		 * @memberOf punycode
1223		 * @type String
1224		 */
1225		'version': '1.4.1',
1226		/**
1227		 * An object of methods to convert from JavaScript's internal character
1228		 * representation (UCS-2) to Unicode code points, and back.
1229		 * @see <https://mathiasbynens.be/notes/javascript-encoding>
1230		 * @memberOf punycode
1231		 * @type Object
1232		 */
1233		'ucs2': {
1234			'decode': ucs2decode,
1235			'encode': ucs2encode
1236		},
1237		'decode': decode,
1238		'encode': encode,
1239		'toASCII': toASCII,
1240		'toUnicode': toUnicode
1241	};
1242
1243	/** Expose `punycode` */
1244	// Some AMD build optimizers, like r.js, check for specific condition patterns
1245	// like the following:
1246	if (
1247		typeof define == 'function' &&
1248		typeof define.amd == 'object' &&
1249		define.amd
1250	) {
1251		define('punycode', function() {
1252			return punycode;
1253		});
1254	} else if (freeExports && freeModule) {
1255		if (module.exports == freeExports) {
1256			// in Node.js, io.js, or RingoJS v0.8.0+
1257			freeModule.exports = punycode;
1258		} else {
1259			// in Narwhal or RingoJS v0.7.0-
1260			for (key in punycode) {
1261				punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
1262			}
1263		}
1264	} else {
1265		// in Rhino or a web browser
1266		root.punycode = punycode;
1267	}
1268
1269}(this));
1270
1271function ascii_to_unicode(src) {
1272	var Pattern = /\/[0-9]{1,}/;
1273	var ss = src.match(Pattern);
1274
1275	var src2 = src.replace("http://", "").replace("https://", "").replace("www.", "");
1276	var src3 = src.replace("http://", "").replace("https://", "").replace("www.", "").replace(ss[0], "");
1277	var de = 'http://www.' + punycode.toUnicode(src3) + ss[0];
1278	return de;
1279}
1280
1281/* SNS보내기 URL복사 */
1282showPopup = function() {
1283	var IE=(document.all)?true:false;
1284	var src = $(location).attr('href');
1285	if (IE) {
1286		if(confirm("이 글의 주소를 클립보드에 복사하시겠습니까?"))
1287		window.clipboardData.setData("Text", src);
1288	} else {
1289		prompt("이 글의 주소입니다. Ctrl+C를 눌러 클립보드로 복사하세요", src);
1290	}
1291}
1292//한글도메인용
1293showPopup_han = function() {
1294	var IE=(document.all)?true:false;
1295	var src = ascii_to_unicode($(location).attr('href'));
1296	if (IE) {
1297		if(confirm("이 글의 주소를 클립보드에 복사하시겠습니까?"))
1298		window.clipboardData.setData("Text", src);
1299	} else {
1300		prompt("이 글의 주소입니다. Ctrl+C를 눌러 클립보드로 복사하세요", src);
1301	}
1302}
1303/* //SNS보내기 URL복사 */
1304
1305/* 모바일_바로가기 */
1306function mobile_shortcut(){
1307	if($('#mobile_shortcut').length < 1 ) {
1308		var body_width = $(document).innerWidth();
1309		$('body').before('<div id="mobile_shortcut2" style="clear:both; width:100%; min-width:'+body_width+'px; margin:0 0 0 0"><a href="/m_g.php?out=ok" style="display:block; padding:80px 0; background:#333; text-align:center; text-decoration:none"><span style="font-family:AppleSDGothicNeo-SemiBold; vertical-align:middle; font-weight:bold; font-size:50px; letter-spacing:-2px; color:#fff">모바일 버전으로 보기<img src="/img/ico_arrow.png?w=160726" style="vertical-align:middle;margin:-3px 0 0 7px;*margin-top:-1px;" alt="모바일 버전으로 이동"></span></a></div>');
1310		$('body').after('<div id="mobile_shortcut" style="clear:both; width:100%; min-width:'+body_width+'px; margin:10px 0 0"><a href="/m_g.php?out=ok" style="display:block; padding:80px 0; background:#333; text-align:center; text-decoration:none"><span style="font-family:AppleSDGothicNeo-SemiBold; vertical-align:middle; font-weight:bold; font-size:50px; letter-spacing:-2px; color:#fff">모바일 버전으로 보기<img src="/img/ico_arrow.png?w=160726" style="vertical-align:middle;margin:-3px 0 0 7px;*margin-top:-1px;" alt="모바일 버전으로 이동"></span></a></div>');
1311	}
1312}
1313/* //모바일_바로가기 */
1314
1315/* 즐겨찾기/북마크 */
1316function bookmarksite(title,url){
1317	var browser = {
1318		chk : navigator.userAgent.toLowerCase()
1319	};
1320
1321	browser = {
1322		ie : browser.chk.indexOf('msie') != -1,
1323		ie6 : browser.chk.indexOf('msie 6') != -1,
1324		ie7 : browser.chk.indexOf('msie 7') != -1,
1325		ie8 : browser.chk.indexOf('msie 8') != -1,
1326		ie9 : browser.chk.indexOf('msie 9') != -1,
1327		ie10 : browser.chk.indexOf('msie 10') != -1,
1328		ie11 : browser.chk.indexOf('rv:11') != -1,
1329		chrome : browser.chk.indexOf('chrome') != -1,
1330		firefox : browser.chk.indexOf('firefox') != -1,
1331		safari : browser.chk.indexOf('safari') != -1,
1332		opera : browser.chk.indexOf('opr') != -1
1333	};
1334
1335	if(browser.ie || browser.ie11){
1336		window.external.AddFavorite(url, title);
1337	}else if(browser.opera || browser.firefox || browser.safari || browser.chrome){
1338		alert("Ctrl+D키를 누르시면 즐겨찾기에 추가하실 수 있습니다.");
1339	}else{
1340		alert("지원하지 않는 브라우저입니다.");
1341	}
1342}
1343/* //즐겨찾기/북마크 */
1344
1345/* 본문 사이 광고 : 시작 */
1346function tree_ad(line, style, up_down) {
1347	line = typeof line !== 'undefined' ? line : 1;
1348	style = typeof style !== 'undefined' ? style : 'float:right; width:336px; height:280px; padding: 0 0 0 10px; position: relative; z-index:999999999;';
1349	up_down = typeof up_down !== 'undefined' ? up_down : 'up';
1350	//text-align: center; width:100%; height:280px; padding: 10px 0 10px 0; position: relative; z-index:999999999;
1351	var p_i = 0;
1352	var div_i = 0;
1353	var br_i = 0;
1354	var chk = 0;
1355
1356	$("#textinput").find('p').each(function(){
1357		console.log();
1358		if($.trim(this.innerHTML) !== "&nbsp;" && this.innerHTML !== " " && $(this).attr('class') !== 'body_img_caption' && $(this).find('img').attr('id') !== 'img_pop_view' && $(this).parent().prop('tagName')!="TD") {
1359			p_i++;
1360			if(p_i==line) {
1361				var index = $('#textinput p').index(this);
1362				if(up_down=='up') {
1363					$("#textinput p:eq("+index+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1364				} else {
1365					$("#textinput p:eq("+index+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1366				}
1367				window['tree_line_'+line] = $("#tree_line_"+line);
1368				window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line);
1369				window['tree_line_tmp_'+line].css('display','block');
1370				window['tree_line_'+line].append(window['tree_line_tmp_'+line]);
1371				if(window['tree_line_'+line].height()==0) {
1372					window['tree_line_'+line].css("padding","0 0 0 0");
1373				}
1374				chk = 1;
1375				return false;
1376			}
1377		}
1378	});
1379	
1380	if(chk==0) {
1381		$("#textinput").find('br').each(function(){
1382			if($.trim(this.innerHTML) !== "&nbsp;" && this.innerHTML !== " " && $(this).attr('class') !== 'body_img_caption' && $(this).parent().prop('tagName')!="TD") {
1383				br_i++;
1384				if(br_i==line) {
1385					var index = $('#textinput br').index(this);
1386					if(up_down=='up') {
1387						$("#textinput br:eq("+index+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1388					} else {
1389						$("#textinput br:eq("+index+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1390					}
1391					window['tree_line_'+line] = $("#tree_line_"+line);
1392					window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line);
1393					window['tree_line_tmp_'+line].css('display','block');
1394					window['tree_line_'+line].append(window['tree_line_tmp_'+line]);
1395					chk = 1;
1396					return false;
1397				}
1398			}
1399		});
1400	}
1401	
1402	if(chk==0) {
1403		$("#textinput").find('div').each(function(){
1404			if($(this).attr('id')) {
1405				if($.trim(this.innerHTML) !== "&nbsp;" && $.trim(this.innerHTML) !== "" && $(this).attr('class') !== 'thumb_box' && $(this).attr('class') !== 'body_img_table2' && $(this).attr('id').indexOf('tree_line_') !== -1 && $(this).attr('id').indexOf('mov') !== -1 && $(this).attr('id').indexOf('tree_line_tmp_') !== -1) {
1406					div_i++;
1407					if(div_i==line) {
1408						var index2 = $('#textinput div').index(this);
1409						if(up_down=='up') {
1410							$("#textinput div:eq("+index2+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1411						} else {
1412							$("#textinput div:eq("+index2+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1413						}
1414						window['tree_line_'+line] = $("#tree_line_"+line);
1415						window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line);
1416						window['tree_line_tmp_'+line].css('display','block');
1417						window['tree_line_'+line].append(window['tree_line_tmp_'+line]);
1418						chk = 1;
1419						return false;
1420					}
1421				}
1422			} else {
1423				if($.trim(this.innerHTML) !== "&nbsp;" && $.trim(this.innerHTML) !== "" && $(this).attr('class') !== 'thumb_box' && $(this).attr('class') !== 'body_img_table2') {
1424					div_i++;
1425					if(div_i==line) {
1426						var index2 = $('#textinput div').index(this);
1427						if(up_down=='up') {
1428							$("#textinput div:eq("+index2+")").before("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1429						} else {
1430							$("#textinput div:eq("+index2+")").after("<div id='tree_line_" + line + "' style='" + style + "'></div>");
1431						}
1432						window['tree_line_'+line] = $("#tree_line_"+line);
1433						window['tree_line_tmp_'+line] = $("#tree_line_tmp_"+line);
1434						window['tree_line_tmp_'+line].css('display','block');
1435						window['tree_line_'+line].append(window['tree_line_tmp_'+line]);
1436						chk = 1;
1437						return false;
1438					}
1439				}
1440			}
1441		});
1442	}
1443}
1444/* 본문 사이 광고 : 끝 */
1445
1446if(typeof jQuery != 'undefined') {
1447	$(document).ready(function(){
1448		//tts
1449	  $("#tts_on").click(function(){
1450		  var a= $(this).attr('tts_url');
1451		  var b= $(this).attr('tts_uid');
1452		  var c= $(this).attr('speak');
1453		  var  s=document.getElementById("tts_on");
1454		  var data="tts_url="+a+"&tts_uid="+b;
1455				//alert(data);
1456				 $.ajax({
1457					data: data,
1458					type: 'GET',
1459					url: 'https://tts2.inswave.net/tts_ins_ms.php',
1460
1461					success:function(args){   
1462						
1463						var audio ="<audio src='"+args+"' id='myaudio'></audio>"; 
1464					
1465						if(c=="on")
1466						{	
1467												 
1468						   s.innerHTML=audio;
1469						  var vid = document.getElementById("myaudio"); 
1470							  vid.play(); 
1471						  $("#tts_on").attr("speak","off");
1472						 
1473						}else 
1474						{
1475						   var vid = document.getElementById("myaudio");  
1476							 vid.pause();
1477						   $("#tts_on").attr("speak","on");
1478												
1479						 }
1480						
1481					},   
1482					
1483					//beforeSend:showRequest,  
1484					error:function(e){  
1485						alert(e.responseText);  
1486					}  
1487				
1488				});
1489	  });
1490
1491	  /* 모바일웹 여부 체크 후 모바일 접속이면 모바일 버전으로 보기 노출 */
1492
1493		var cmaDns = location.href.split("//");
1494		var url_tmp = "http://m."+cmaDns[1].substr(0,cmaDns[1].indexOf("/")).replace(/www./g,'');
1495		var arSplitUrl   = document.URL.split("/");
1496		
1497		$.ajax({
1498			 url: url_tmp+"/chk.php",
1499			 dataType: 'jsonp',
1500			 jsonpCallback: "myCallback",
1501			 success: function (chk) {
1502				if(chk['chk'] == "ok") {
1503					var filter = "win16|win32|win64|mac|macintosh|macintel|macosx";
1504		 
1505					if(navigator.platform){
1506						if(0 > filter.indexOf(navigator.platform.toLowerCase())){
1507							if(arSplitUrl[3]!='admin') {
1508								mobile_shortcut();
1509							}
1510						}
1511					}
1512					console.log(url_tmp+" : 사용중");
1513				} else {
1514					console.log(url_tmp+" : 미사용중");
1515				}
1516			 },
1517			 error: function () {
1518				  console.log(url_tmp+" : 미사용중");
1519			 }
1520		});
1521	/* //모바일웹 여부 체크 후 모바일 접속이면 모바일 버전으로 보기 노출 */
1522	  
1523	});
1524}
1525
1526/* 맨하단에서 스크롤시 다음 기사로 이동 */
1527//////////////////////////////////////////////
1528// scroll_next_news                         //
1529// Source : zum https://www.zum.com         //
1530// https://news.zumst.com/scripts/view.js   //
1531//////////////////////////////////////////////
1532// /newnews/ajax_nextnews.php               //
1533/*
1534sub_read_skin.html 또는 serial_read_skin.html 에 적용
1535
1536<!-- scroll next news : start -->
1537<script>
1538wheelEventEnable = true; //사용여부 true,false
1539wheelSectonEnable = false; //섹션1 true,false
1540wheelSecton2Enable = false; //섹션2 true,false
1541fadeOutN = 0; //페이지 전환효과 초 단위
1542</script>
1543<!-- scroll next news : end -->
1544
1545*/
1546
1547if(typeof jQuery != 'undefined') {
1548	
1549var lastchk = false;
1550var wheelEventEnable = false;
1551var wheelSectonEnable = false;
1552var wheelSecton2Enable = false;
1553var wheel_wdate = 'none';
1554var wheel_sc = 'none';
1555var wheel_sc2 = 'none';
1556var fadeOutN = 0;
1557
1558function urlParam(name){
1559    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
1560	var results2 = window.location.href.replace($(location).attr('protocol')+"//"+$(location).attr('host')+'/','');
1561    if (results==null){
1562		if($.isNumeric(results2)) {
1563			return results2;
1564		} else {
1565			return null;
1566		}
1567    }
1568    else{
1569       return results[1] || 0;
1570    }
1571}
1572
1573function nextNews(e) {
1574	var fdata = "";
1575	$.ajax({
1576		type: "POST",
1577		url: "/newnews/ajax_nextnews.php",
1578		data: "mode=wdate&uid="+urlParam('uid'),
1579		cache: false,
1580		async: false,
1581		success: function(data){
1582			if(data.rCode==2) {
1583				if($.isNumeric(data.rWdate)) {
1584					wheel_wdate = data.rWdate;
1585					wheel_sc = data.rSection;
1586					wheel_sc2 = data.rSection2;
1587				}
1588			} else {
1589				window.console && console.log(data.rMsg);
1590			}
1591		}
1592	});
1593	
1594	if(wheelSectonEnable) {
1595		if(wheelSecton2Enable) {
1596			fdata = "mode=next&uid="+urlParam('uid')+"&wdate="+wheel_wdate+"&section="+wheel_sc+"&section2="+wheel_sc2;
1597		} else {
1598			fdata = "mode=next&uid="+urlParam('uid')+"&wdate="+wheel_wdate+"&section="+wheel_sc;
1599		}
1600	} else {
1601		fdata = "mode=next&uid="+urlParam('uid')+"&wdate="+wheel_wdate;
1602	}
1603	
1604	if(fadeOutN) {
1605		fadeOutN = (1000*fadeOutN);
1606	}
1607	
1608	$.ajax({
1609		type: "POST",
1610		url: "/newnews/ajax_nextnews.php",
1611		data: fdata,
1612		cache: false,
1613		async: false,
1614		success: function(data){
1615			if(data.rCode==2) {
1616				if($.isNumeric(data.rUid)) {
1617					if(window.location.pathname=="/serial_read.html") {
1618						$("body").fadeOut(fadeOutN, function () {
1619							location.href = $(location).attr('protocol')+"//"+$(location).attr('host')+"/serial_read.html?uid="+data.rUid;
1620						});
1621					} else {
1622						$("body").fadeOut(fadeOutN, function () {
1623							location.href = $(location).attr('protocol')+"//"+$(location).attr('host')+"/"+data.rUid;
1624						});
1625					}
1626				}
1627			} else {
1628				if(data.rMsg=="last") {
1629					lastchk = true;
1630					$("#lastmsg").fadeIn(200, function () {
1631						setTimeout(function () {
1632							$("#lastmsg").fadeOut(200);
1633						}, 3000);
1634					});
1635				} else {
1636					window.console && console.log(data.rMsg);
1637				}
1638			}
1639		}
1640	});
1641}
1642
1643var wheelEvent = {
1644    enabled: false,
1645    scrollInfo: false,
1646    nextAction: false,
1647    $parentWindow: $(window),
1648    $parentDocument: $(document),
1649
1650    init: function() {
1651		$("body").append('<div id="scrollInfo" style="display: none; width: 100%; position: fixed; bottom: 0px; height: 50px; line-height: 50px; white-space: nowrap; background: #fff; border: 1px solid #ededed; padding: 0 10px; text-align: center;"><p style="font-size: 18px; letter-spacing: -0.7px; color: #212121; color: rgba(0, 0, 0, 0.87);"><strong style="color: #1b52ed;">한번 더 스크롤</strong>하면 다음 기사로 이동합니다.</p></div><div id="lastmsg" style="display: none; width: 100%; position: fixed; bottom: 0px; height: 50px; line-height: 50px; white-space: nowrap; background: #fff; border: 1px solid #ededed; padding: 0 10px; text-align: center;"><p style="font-size: 18px; letter-spacing: -0.7px; color: #212121; color: rgba(0, 0, 0, 0.87);"><strong style="color: #1b52ed;">마지막 기사입니다.</strong></p></div>');
1652
1653        $("html, body").on('mousewheel DOMMouseScroll onmousewheel', function (e) {
1654            wheelEvent.enabled && wheelEvent.executeAction(e);
1655        });
1656
1657        this.$parentDocument.find("html, body").on('mousewheel DOMMouseScroll onmousewheel', function (e) {
1658            wheelEvent.enabled && wheelEvent.executeAction(e);
1659        });
1660
1661		this.$parentWindow.on('keydown',function(e) {
1662            if(wheelEvent.enabled && e.keyCode === 40) {
1663                wheelEvent.executeAction(e);
1664            }
1665        });
1666
1667        this.enabled = true;
1668    },
1669
1670    isLastScroll: function() {
1671		var myHeight = 0;
1672		if (typeof (window.innerHeight) == 'number') { //Chrome
1673			 myHeight = window.innerHeight;
1674		} else if (document.documentElement && document.documentElement.clientHeight) {
1675			 myHeight = document.documentElement.clientHeight;
1676		} else if (document.body && document.body.clientHeight) { //IE9
1677			 myHeight = document.body.clientHeight;
1678		}
1679			
1680		var myScrollTop = "";
1681		if (this.$parentWindow.scrollTop()) {
1682			 myScrollTop = this.$parentWindow.scrollTop();
1683		} else if (document.body && document.body.scrollTop) { //IE9
1684			 myScrollTop = document.body.scrollTop;
1685		}
1686        //return this.$parentWindow.scrollTop() + this.$parentWindow.height() >= this.$parentDocument.height();
1687		return myScrollTop + myHeight >= this.$parentDocument.height();
1688    },
1689
1690    onWheelEvent: function() {
1691        if(!this.isLastScroll()) {
1692            this.offWheelEvent();
1693            return;
1694        }
1695
1696        if(this.$parentDocument.find("#scrollInfo").is(":not(:visible)")) {
1697            this.scrollAlertAction();
1698        }
1699
1700        this.enabled = true;
1701    },
1702
1703    offWheelEvent: function() {
1704        this.enabled = false;
1705    },
1706
1707    executeAction: function(e) {
1708        var isDown = (e.originalEvent.detail > 0 || e.originalEvent.wheelDelta < 0 || e.originalEvent.deltaY > 0 || e.type === 'keydown');
1709
1710        if(isDown && this.$parentDocument.find("#scrollInfo").is(":not(:visible)")) {
1711            this.scrollAlertAction();
1712        }
1713        if(isDown && this.$parentDocument.find("#scrollInfo").is(":visible")){
1714            if(this.scrollInfo && !this.nextAction) {
1715                this.nextAction = true;
1716                nextNews(e);
1717            } else if(lastchk) {
1718				$("#lastmsg").fadeIn(200, function () {
1719					setTimeout(function () {
1720						$("#lastmsg").fadeOut(200);
1721					}, 3000);
1722				});
1723			}
1724        }
1725    },
1726
1727    scrollAlertAction: function() {
1728		if(wheelEventEnable){
1729			if(!this.scrollInfo && this.isLastScroll()) {
1730				this.$parentDocument.find("#scrollInfo").fadeIn(200, function () {
1731					wheelEvent.scrollInfo = true;
1732					setTimeout(function () {
1733						wheelEvent.$parentDocument.find("#scrollInfo").fadeOut(200);
1734						wheelEvent.scrollInfo = false;
1735					}, 3000);
1736				});
1737			}
1738		}
1739    }
1740};
1741
1742$(window).on('load', function() {
1743    wheelEvent.init();
1744
1745    $(parent.window).scroll(function() {
1746        wheelEvent.onWheelEvent();
1747    });
1748});
1749}
1750/* //맨하단에서 스크롤시 다음 기사로 이동 */
1751
1752/* 본문에 유튜브, 네이버 iframe 영상이 있을 경우 iframe에 y_n_video_iframe 클래스 추가-시작 */
1753$(document).ready(function(){
1754	$("#textinput").find('iframe').each(function(){
1755		var if_src = $(this).attr('src');
1756		if(if_src.indexOf('youtube') != -1 || if_src.indexOf('naver') != -1) {
1757			$(this).addClass("y_n_video_iframe");
1758		}
1759	});
1760});
1761/* 본문에 유튜브, 네이버 iframe 영상이 있을 경우 iframe에 y_n_video_iframe 클래스 추가-끝 */
1762
1763/* 구글 번역기 : 시작 */
1764//<script>googleTranslateE('ko,en,ja,zh-CN,de,fr');</script> 노출시킬 국가 ,구분으로 입력 노출 시킬 위치에 해당 소스 추가
1765function lang_kr(lang) {
1766	var $lang_txt = '';
1767	switch(lang) {
1768		case "gl": $lang_txt = "갈리시아어"; break;
1769		case "gu": $lang_txt = "구자라트어"; break;
1770		case "el": $lang_txt = "그리스어"; break;
1771		case "nl": $lang_txt = "네덜란드어"; break;
1772		case "ne": $lang_txt = "네팔어"; break;
1773		case "no": $lang_txt = "노르웨이어"; break;
1774		case "da": $lang_txt = "덴마크어"; break;
1775		case "de": $lang_txt = "독일어"; break;
1776		case "lo": $lang_txt = "라오어"; break;
1777		case "lv": $lang_txt = "라트비아어"; break;
1778		case "la": $lang_txt = "라틴어"; break;
1779		case "ru": $lang_txt = "러시아어"; break;
1780		case "ro": $lang_txt = "루마니아어"; break;
1781		case "lb": $lang_txt = "룩셈부르크어"; break;
1782		case "lt": $lang_txt = "리투아니아어"; break;
1783		case "mr": $lang_txt = "마라티어"; break;
1784		case "mi": $lang_txt = "마오리어"; break;
1785		case "mk": $lang_txt = "마케도니아어"; break;
1786		case "mg": $lang_txt = "말라가시어"; break;
1787		case "ml": $lang_txt = "말라얄람어"; break;
1788		case "ms": $lang_txt = "말레이어"; break;
1789		case "mt": $lang_txt = "몰타어"; break;
1790		case "mn": $lang_txt = "몽골어"; break;
1791		case "hmn": $lang_txt = "몽어"; break;
1792		case "my": $lang_txt = "미얀마어 (버마어)"; break;
1793		case "eu": $lang_txt = "바스크어"; break;
1794		case "vi": $lang_txt = "베트남어"; break;
1795		case "be": $lang_txt = "벨라루스어"; break;
1796		case "bn": $lang_txt = "벵골어"; break;
1797		case "bs": $lang_txt = "보스니아어"; break;
1798		case "bg": $lang_txt = "불가리아어"; break;
1799		case "sm": $lang_txt = "사모아어"; break;
1800		case "sr": $lang_txt = "세르비아어"; break;
1801		case "ceb": $lang_txt = "세부아노"; break;
1802		case "st": $lang_txt = "세소토어"; break;
1803		case "so": $lang_txt = "소말리아어"; break;
1804		case "sn": $lang_txt = "쇼나어"; break;
1805		case "su": $lang_txt = "순다어"; break;
1806		case "sw": $lang_txt = "스와힐리어"; break;
1807		case "sv": $lang_txt = "스웨덴어"; break;
1808		case "gd": $lang_txt = "스코틀랜드 게일어"; break;
1809		case "es": $lang_txt = "스페인어"; break;
1810		case "sk": $lang_txt = "슬로바키아어"; break;
1811		case "sl": $lang_txt = "슬로베니아어"; break;
1812		case "sd": $lang_txt = "신디어"; break;
1813		case "si": $lang_txt = "신할라어"; break;
1814		case "ar": $lang_txt = "아랍어"; break;
1815		case "hy": $lang_txt = "아르메니아어"; break;
1816		case "is": $lang_txt = "아이슬란드어"; break;
1817		case "ht": $lang_txt = "아이티 크리올어"; break;
1818		case "ga": $lang_txt = "아일랜드어"; break;
1819		case "az": $lang_txt = "아제르바이잔어"; break;
1820		case "af": $lang_txt = "아프리칸스어"; break;
1821		case "sq": $lang_txt = "알바니아어"; break;
1822		case "am": $lang_txt = "암하라어"; break;
1823		case "et": $lang_txt = "에스토니아어"; break;
1824		case "eo": $lang_txt = "에스페란토어"; break;
1825		case "en": $lang_txt = "영어"; break;
1826		case "or": $lang_txt = "오리야어"; break;
1827		case "yo": $lang_txt = "요루바어"; break;
1828		case "ur": $lang_txt = "우르두어"; break;
1829		case "uz": $lang_txt = "우즈베크어"; break;
1830		case "uk": $lang_txt = "우크라이나어"; break;
1831		case "cy": $lang_txt = "웨일즈어"; break;
1832		case "ug": $lang_txt = "위구르어"; break;
1833		case "ig": $lang_txt = "이그보어"; break;
1834		case "yi": $lang_txt = "이디시어"; break;
1835		case "it": $lang_txt = "이탈리아어"; break;
1836		case "id": $lang_txt = "인도네시아어"; break;
1837		case "ja": $lang_txt = "일본어"; break;
1838		case "jw": $lang_txt = "자바어"; break;
1839		case "ka": $lang_txt = "조지아어"; break;
1840		case "zu": $lang_txt = "줄루어"; break;
1841		case "zh-CN": $lang_txt = "중국어(간체)"; break;
1842		case "ny": $lang_txt = "체와어"; break;
1843		case "cs": $lang_txt = "체코어"; break;
1844		case "kk": $lang_txt = "카자흐어"; break;
1845		case "ca": $lang_txt = "카탈로니아어"; break;
1846		case "kn": $lang_txt = "칸나다어"; break;
1847		case "co": $lang_txt = "코르시카어"; break;
1848		case "xh": $lang_txt = "코사어"; break;
1849		case "ku": $lang_txt = "쿠르드어"; break;
1850		case "hr": $lang_txt = "크로아티아어"; break;
1851		case "km": $lang_txt = "크메르어"; break;
1852		case "rw": $lang_txt = "키냐르완다어"; break;
1853		case "ky": $lang_txt = "키르기스어"; break;
1854		case "tl": $lang_txt = "타갈로그어"; break;
1855		case "ta": $lang_txt = "타밀어"; break;
1856		case "tg": $lang_txt = "타지크어"; break;
1857		case "tt": $lang_txt = "타타르어"; break;
1858		case "th": $lang_txt = "태국어"; break;
1859		case "tr": $lang_txt = "터키어"; break;
1860		case "te": $lang_txt = "텔루구어"; break;
1861		case "tk": $lang_txt = "투르크멘어"; break;
1862		case "ps": $lang_txt = "파슈토어"; break;
1863		case "pa": $lang_txt = "펀자브어"; break;
1864		case "fa": $lang_txt = "페르시아어"; break;
1865		case "pt": $lang_txt = "포르투갈어"; break;
1866		case "pl": $lang_txt = "폴란드어"; break;
1867		case "fr": $lang_txt = "프랑스어"; break;
1868		case "fy": $lang_txt = "프리지아어"; break;
1869		case "fi": $lang_txt = "핀란드어"; break;
1870		case "haw": $lang_txt = "하와이어"; break;
1871		case "ha": $lang_txt = "하우사어"; break;
1872		case "hu": $lang_txt = "헝가리어"; break;
1873		case "iw": $lang_txt = "히브리어"; break;
1874		case "hi": $lang_txt = "힌디어"; break;
1875		case "ko": $lang_txt = "한국어"; break;
1876		default: $lang_txt = "한국어"; break;
1877	};
1878	return $lang_txt;
1879}
1880
1881function googleTranslateE(lang) {
1882	lang = typeof lang !== 'undefined' ? lang : 'ko,en,ja,zh-CN,de,fr';
1883	var lang_a = new Array("ko","en","ja","zh-CN","de","fr");
1884	var strArray=lang.split(',');
1885	
1886	var jqueryElement = document.createElement('script');
1887        jqueryElement.src = '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit';
1888	function googleTranslateE_callback() {}
1889	if(jqueryElement.addEventListener) {
1890		jqueryElement.addEventListener("load",googleTranslateE_callback,false);
1891	} else if(jqueryElement.readyState) {
1892		jqueryElement.onreadystatechange = googleTranslateE_callback;
1893	}		
1894
1895	document.getElementsByTagName('head')[0].appendChild(jqueryElement);
1896	
1897	var styletag = "<style>";
1898		styletag += ".googleTranslate_i {margin: 0 0 0 7px;}";
1899		styletag += ".googleTranslate_i > a > span {background:url('/img/trans-icon.png') no-repeat}";
1900		styletag += ".googleTranslate_i > a.en > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:0 0}";
1901		styletag += ".googleTranslate_i > a.ja > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-46px 0}";
1902		styletag += ".googleTranslate_i > a.zh-CN > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-92px 0}";
1903		styletag += ".googleTranslate_i > a.de > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-138px 0}";
1904		styletag += ".googleTranslate_i > a.fr > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-184px 0}";
1905		styletag += ".googleTranslate_i > a.ko > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-230px 0}";
1906		styletag += ".googleTranslate_i > a.es > span {display: inline-block;width: 24px;height: 24px;vertical-align: middle;margin: 0 5px 0 0;background-position:-276px 0}";
1907		styletag += "#google_translate_element,.goog-te-banner-frame, .skiptranslate {display: none!important;}";
1908		styletag += "body{top:0px!important;}";
1909		styletag += "</style>";
1910	$('head').append(styletag);
1911	
1912	$('body').append("<div id='google_translate_element' style='display: none!important;'></div>");
1913	
1914	/*var googleTrans = {
1915		evtPageInit:function(){
1916			var langs = $('.goog-te-menu-frame:first').contents().find('.goog-te-menu2 a');
1917			langs.each(function(){
1918			var txtHtml = $(this).find('span.text').html();
1919			if (txtHtml == "한국어") {
1920				langs.eq($(this).index()).find('span.text').click();
1921			}
1922			});
1923		}
1924	}
1925	googleTrans.evtPageInit();*/
1926		
1927	var viewtag = "<span class='googleTranslate_i'>";
1928	for (var i in strArray)
1929	{
1930		var l = $.trim(strArray[i]);
1931		//if(lang_a.indexOf(l) >= 0)  {
1932			viewtag += "<a href='javascript:;' data-lang='"+l+"' class='"+l+"' title='"+lang_kr(l)+"'><span></span></a>";
1933		//}
1934	}
1935	/*	viewtag += "<a href='javascript:;' data-lang='ko' class='ko'><span></span></a>";
1936		viewtag += "<a href='javascript:;' data-lang='en' class='en'><span></span></a>";
1937		viewtag += "<a href='javascript:;' data-lang='ja' class='ja'><span></span></a>";
1938		viewtag += "<a href='javascript:;' data-lang='zh-CN' class='cn'><span></span></a>";
1939		viewtag += "<a href='javascript:;' data-lang='de' class='de'><span></span></a>";
1940		viewtag += "<a href='javascript:;' data-lang='fr' class='fr'><span></span></a>";*/
1941		viewtag += "</span>";
1942	return document.write(viewtag);
1943}
1944
1945function googleTranslateElementInit() {//, layout: google.translate.TranslateElement.InlineLayout.SIMPLE
1946    new google.translate.TranslateElement({pageLanguage: 'ko', includedLanguages: 'ko,gl,gu,el,nl,ne,no,da,de,lo,lv,la,ru,ro,lb,lt,mr,mi,mk,mg,ml,ms,mt,mn,hmn,my,eu,vi,be,bn,bs,bg,sm,sr,ceb,st,so,sn,su,sw,sv,gd,es,sk,sl,sd,si,ar,hy,is,ht,ga,az,af,sq,am,et,eo,en,or,yo,ur,uz,uk,cy,ug,ig,yi,it,id,ja,jw,ka,zu,zh-CN,ny,cs,kk,ca,kn,co,xh,ku,hr,km,rw,ky,tl,ta,tg,tt,th,tr,te,tk,ps,pa,fa,pt,pl,fr,fy,fi,haw,ha,hu,iw,hi', autoDisplay: false, multilanguagePage: false}, 'google_translate_element');
1947}
1948
1949$(document).ready(function() {
1950	/*$('.googleTranslate_i a').click(function(e) {
1951		e.preventDefault();
1952		var $frame = $('.goog-te-menu-frame:first');
1953		if (!$frame.size()) {
1954			alert("Error: Could not find Google translate frame.");
1955			return false;
1956		}
1957
1958		var langs = $('.goog-te-menu-frame:first').contents().find('.goog-te-menu2 a');
1959		var $lang = $(this).data('lang'),
1960		
1961		$lang_txt = lang_kr($lang);
1962		
1963		langs.each(function(){
1964			var txtHtml = $(this).find('span.text').html();
1965			if (txtHtml == $lang_txt) {
1966				//langs.eq($(this).index()).find('span.text').click();
1967				$(this).find('span.text').click();
1968			}
1969		});
1970		return;
1971	});*/
1972	$('.googleTranslate_i a').click(function(e) {
1973		e.preventDefault();
1974		var gtcombo = document.querySelector('.goog-te-combo');
1975		var $lang = $(this).data('lang'),
1976		
1977		$lang_txt = lang_kr($lang);
1978		
1979		if (gtcombo == null) {
1980			alert("Error: Could not find Google translate Combolist.");
1981			return false;
1982		}
1983		gtcombo.value = $lang;
1984		gtcombo.dispatchEvent(new Event('change'));
1985		return;
1986	});
1987});
1988/* 구글 번역기 : 끝 */
1989
1990/* 본문사진 확대보기(관리자설정 본문사진 크기 조절 필요):시작 */
1991if(typeof jQuery != 'undefined') {
1992	$(document).ready(function(){
1993		$('img').click(function(i) {
1994			var img_id = $(this).attr('id');
1995			
1996			if(img_id=="img_pop_view") {
1997				var img_name = $(this).attr('src');
1998				var h =   $(this)[0].naturalHeight;
1999				var w =   $(this)[0].naturalWidth;
2000				
2001				$.blockUI({
2002					message: '<img src="'+img_name+'" /  id="img_close"  onclick="img_pop_close()" style="cursor:pointer"></div> ',
2003					fadeIn: 700,
2004					fadeOut: 700,
2005					baseZ: 100000,
2006					//onOverlayClick: $.unblockUI,
2007					blockMsgClass: 'PhotoAdd',
2008					css: {
2009						position: 'absolute',
2010						top: (($(window).height()-h)/2+$(window).scrollTop())+"px",
2011						left: (($(window).width()-w)/2+$(window).scrollLeft())+"px",
2012						width: w+'px'
2013					},
2014					overlayCSS: { cursor: "default",opacity: '0.8' }
2015				});
2016				setTimeout($.unblockUI, 50000);
2017			}
2018		});
2019	});
2020}
2021
2022function img_pop_close() {
2023	$.unblockUI();
2024	//setTimeout($.unblockUI, 1000);
2025};
2026/* 본문사진 확대보기(관리자설정 본문사진 크기 조절 필요):끝 */
2027	

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.