
function onair(){
	window.open("http://www.dgpbc.co.kr/aodplayer.php?src=http://218.51.152.100:8080/", "addSchedule", "width=300, height=100, left=150, top=150, menubar=no, scrollbars=auto");
}

function hg_domain(){
	window.open("http://www.dgca.or.kr/main2/hg_domain.html", "addSchedule", "width=900, height=500, left=150, top=150, menubar=no, scrollbars=yes");
}

function op_view(){
	window.open("http://www.dgca.or.kr/ych/", "op_view", "width=800, height=600, left=0, top=0, menubar=no, status=no, toolbar=no, resizable=no, scrollbars=no");
}


// ¸ÞÀÎ ÅÇ ¸Þ´º
function showNewsTab(id) {
	/*document.all["tab_1"].className = 'tabOff';
	document.all["tab_2"].className = 'tabOff';
	document.all["tab_3"].className = 'tabOff';
	document.all["tab_4"].className = 'tabOff';*/

	document.all["tabNews1"].style.display = 'none';
	document.all["tabNews2"].style.display = 'none';
	document.all["tabNews3"].style.display = 'none';
	document.all["tabNews4"].style.display = 'none';

	/*eval("document.all[\"tab_"+id+"\"].className = 'tabOn'");*/
	eval("document.all[\"tabNews"+id+"\"].style.display = 'block';");
}

function showBoardsTab(id) {
	/*document.all["tabn_1"].style.fontWeight = '';
	document.all["tabn_2"].style.fontWeight = '';
	document.all["tabn_3"].style.fontWeight = '';
	document.all["tabn_4"].style.fontWeight = '';*/

	document.all["tabBoards1"].style.display = 'none';
	document.all["tabBoards2"].style.display = 'none';
	document.all["tabBoards3"].style.display = 'none';
	document.all["tabBoards4"].style.display = 'none';

	/*eval("document.all[\"tabn_"+id+"\"].style.fontWeight = 'bold';");*/
	eval("document.all[\"tabBoards"+id+"\"].style.display = 'block';");
}

var interval_id;
function showNews() {
	cnt=1;
	function a(){
		if(cnt<4){
			cnt++;
			eval("showNewsTab('"+cnt+"');");
		}else {
			//clearInterval(tid);
			showNewsTab('1');
			cnt=1;
		}
	}
	interval_id = setInterval(a,3000);
}

function clearShow(){
	clearInterval(interval_id);
}


/*
function top_banner1(){
	window.open("http://www.dgca.or.kr/memorial2.html");
}
*/

function top_banner2(){
	location.href='/news.html?SECTIONS=arch&idx=3211&process=read';
}

function top_banner1(){
	window.open("http://synod.dgca.or.kr/");
}