function writeFlash(src,width,height,wmode,menu) {
	html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	html = html + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ width + '" height="' + height + '">';
	html = html + '<param name="movie" value="' + src + '">';
	if(wmode != null) {	html = html + '<param name="wmode" value="' + wmode + '">';	}
	if(menu != null) {	html = html + '<param name="menu" value="' + menu+ '">';	}
	html = html + '<param name="quality" value="high">';
	html = html + '<embed src="' + src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>';
	html = html + '</object>';

	document.write(html);		
}

function returnFlash(src,width,height,wmode,menu) {
	html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	html = html + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ width + '" height="' + height + '">';
	html = html + '<param name="movie" value="' + src + '">';
	if(wmode != null) {	html = html + '<param name="wmode" value="' + wmode + '">';	}
	if(menu != null) {	html = html + '<param name="menu" value="' + menu+ '">';	}
	html = html + '<param name="quality" value="high">';
	html = html + '<embed src="' + src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>';
	html = html + '</object>';

	return html;
}

function new_win(filename,p_name,s_width,s_height,s_scrol){
	var x = screen.width;
	var y = screen.height;
	var wid = (x / 2) - (s_width / 2);
	var hei = (y / 2) - (s_height / 2);

	win = window.open(filename, p_name, "scrollbars=" + s_scrol + ",width=" + s_width + ",height=" + s_height); 
	win.focus();
}

function pop_win(filename,p_name,s_width,s_height,s_scrol){
	win = window.open(filename, p_name, "scrollbars=" + s_scrol + ",width=" + s_width + ",height=" + s_height+", top=10, left=10"); 
	win.focus();
}

//µ¿¿µ»ó Àç»ý
function movie(src,w,h, tracker, posicontrol){
        html = '';
        html += '<embed autostart=true src="'+src+'" width="'+w+'" height="'+h+'"';
		if( tracker == "false" ) html += 'showtracker="false"';
		if( posicontrol == "false" ) html += 'showpositioncontrols="false"';
		html += '></embed>';
        document.write(html);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//ÆË¾÷Ã¢ ¶ç¿ì´Â ±â´É
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//¿ìÆí¹øÈ£ Ã£±â ÆË¾÷
function winFindZip() {
window.open("http://service.epost.go.kr/zipcode/search/search1.jsp","postnum","scrollbar=no,resizable=yes,toolbar=no,width=590,height=653,left=20,top=29,status=no");
}


//°úº°È¨ÆäÀÌÁö - ¿ÞÂÊ ÇÏ´Ü °úº°È¨ÆäÀÌÁö ¹öÆ° Å¬¸¯½Ã ÇÔ¼ö
function displayDivisionPanel() {
	var div = document.getElementById("divisionPanel").style;
	if( div.display == "block" ) div.display = "none";
	else div.display = "block";
}

/*
++++ 1´Ü°è ¸Þ´º ¸µÅ© ++++
javascript:link('main01'), javascript:link('main02') .........


+++++ 2´Ü°è ¸Þ´º ¸µÅ© ++++
javascript:link('sub01_01'), javascript:link('sub01_02')......
javascript:link('sub02_01'), javascript:link('sub02_02')......
.....
javascript:link('sub06_01')
*/
function link(code) {
	//alert (code);
	if( code == "main01" ) location.href="../openspace/open_main.html";
	else if( code == "main04" ) MM_openBrWindow("http://minwon.goe.go.kr/", "new", "");
	else if( code == "main02" ) location.href = "../administration/admini_main.html";
	else if( code == "main03" ) location.href = "../information/infor_main.html";
	else if( code == "main05" ) location.href = "../edunews/edunews_main.html";
	else if( code == "main06" ) location.href = "../introduction/intro_main.html";
	
	else if( code == "sub01_01" ) location.href = "../openspace/open01_01.html";
	else if( code == "sub01_02" ) location.href = "../proposal/proposal_index.html";
	else if( code == "sub01_03" ) location.href = "../openspace/open02_03.html";
	else if( code == "sub01_04" ) location.href = "../openspace/open03_01.html";
	else if( code == "sub01_05" ) location.href = "../openspace/open04_01.html";
	else if( code == "sub01_06" ) location.href = "../proposal/jumin_index.html";
	else if( code == "sub01_07" ) location.href = "../openspace/open06_01.html";
	else if( code == "sub01_08" ) location.href = "../tcjob/tcjob_main.html";
	else if( code == "sub01_09" ) location.href = "../autonomy/autonomy_01.html";
	
	else if( code == "sub02_01" ) location.href = "../administration/admini01_01.html";
	else if( code == "sub02_02" ) location.href = "../administration/admini02_01.html";
	else if( code == "sub02_03" ) location.href = "../administration/admini03_01.html";
	else if( code == "sub02_04" ) location.href = "../administration/admini04_01.html";
	else if( code == "sub02_05" ) location.href = "../administration/admini05_01.html";
	else if( code == "sub02_06" ) location.href = "/homepage/financial_sub08.html";
	else if( code == "sub02_07" ) location.href = "../administration/admini07_01.html";
	else if( code == "sub02_08" ) location.href = "../administration/admini08_01.html";

	else if( code == "sub03_01" ) location.href = "../information/infor01_01.html";
	else if( code == "sub03_02" ) location.href = "../information/infor02_01.html";
	else if( code == "sub03_03" ) location.href = "../information/infor03_01.html";
	else if( code == "sub03_04" ) location.href = "../information/infor04_01.html";
	else if( code == "sub03_05" ) location.href = "../information/infor05_01.html";
	else if( code == "sub03_06" ) location.href = "../information/infor06_01.html";
	else if( code == "sub03_07" ) MM_openBrWindow("http://arc.ken.go.kr/edu_static/board_list.php?sboard_class=stati", "new", "");
	else if( code == "sub03_08" ) MM_openBrWindow("http://arc.ken.go.kr/admin_infor_open/guide.php", "new", "");

	else if( code == "sub04_01" ) MM_openBrWindow("http://minwon.goe.go.kr/intro/minwon_office_guide.php", "new", "");
	else if( code == "sub04_02" ) MM_openBrWindow("http://minwon.goe.go.kr/post/post_view.php", "new", "");
	else if( code == "sub04_03" ) MM_openBrWindow("http://minwon.goe.go.kr/cert_minwon/guide.php", "new", "");
	else if( code == "sub04_04" ) MM_openBrWindow("http://minwon.goe.go.kr/internet_viewlock/minwon_list.php", "new", "");
	else if( code == "sub04_05" ) MM_openBrWindow("http://minwon.goe.go.kr/fqa/fqa_list.php", "new", "");
	else if( code == "sub04_06" ) MM_openBrWindow("http://minwon.goe.go.kr/notice/notice_list.php", "new", "");
	else if( code == "sub04_07" ) MM_openBrWindow("http://minwon.goe.go.kr/off_minwon/list.php", "new", "");
	else if( code == "sub04_08" ) MM_openBrWindow("http://neis.ken.go.kr/mw/index.html", "new", "");
	else if( code == "sub04_09" ) MM_openBrWindow("http://minwon.goe.go.kr/ombudsman/guide.php", "new", "");

	else if( code == "sub05_01" ) location.href = "../edunews/edunews01_01.html";
	else if( code == "sub05_02" ) location.href = "../edunews/edunews02_01.html";
	else if( code == "sub05_03" ) location.href = "../edunews/edunews03_01.html";
	else if( code == "sub05_04" ) location.href = "../edunews/edunews04_01.html";
	else if( code == "sub05_05" ) location.href = "../edunews/edunews05_01.html";
	else if( code == "sub05_06" ) MM_openBrWindow("http://ebook.goe.go.kr/home/", "new", "");

	else if( code == "sub06_01" ) location.href = "../introduction/intro01_01.html";
	else if( code == "sub06_02" ) location.href = "../introduction/intro02_01.html";
	else if( code == "sub06_03" ) location.href = "../introduction/intro03_01.html";
	else if( code == "sub06_04" ) location.href = "../introduction/intro04_01.html";
	else if( code == "sub06_05" ) MM_openBrWindow("http://gongbo.goe.go.kr/sub3/sub3_1.htm", "new", "");
	else if( code == "sub06_06" ) location.href = "../introduction/intro06_01.html";
	else if( code == "sub06_07" ) location.href = "../introduction/intro07_01.html";
	else if( code == "sub06_08" ) location.href = "../introduction/intro08_01.html";
	else if( code == "sub06_09" ) location.href = "../introduction/intro09_01.html";

}


// Image Change
var old_img = "";
function imgChange(obj,src){
	var iobj = document.getElementById(obj);
	if( src ) old_img = iobj.src;
	iobj.src = (src)?src : old_img;
}

//¸ÞÀÎ °Ë»ö ºÎºÐ ¹öÆ° Image Change
var old_img = "";
function SearchimgChange(obj){
	var imgTotal = document.getElementById("imgTotal");
	var imgStaff = document.getElementById("imgStaff");
	var imgWork = document.getElementById("imgWork");
	if( obj == "imgTotal" ) {
		imgTotal.src = "/images_n/srch_sub_all_on.gif";
		imgStaff.src = "/images_n/srch_sub_mber_off.gif";
		imgWork.src = "/images_n/srch_sub_job_off.gif";
	}else if( obj == "imgStaff" ) {
		imgTotal.src = "/images_n/srch_sub_all_off.gif";
		imgStaff.src = "/images_n/srch_sub_mber_on.gif";
		imgWork.src = "/images_n/srch_sub_job_off.gif";
	}else if( obj == "imgWork" ) {
		imgTotal.src = "/images_n/srch_sub_all_off.gif";
		imgStaff.src = "/images_n/srch_sub_mber_off.gif";
		imgWork.src = "/images_n/srch_sub_job_on.gif";
	}
}

function win(url, w, h) {
        //var posX = (screen.width - w) / 2;
       // var posY = (screen.height - h) / 2;
	   var posX = 10;
       var posY = 5;
		var w=670;
		var h=600;
		//var option = ",resizable=yes,scrollbars=yes,status=yes,toolbar=yes,location=yes,menubar=yes";
      var option = ",resizable=no,scrollbars=yes,status=no";
        window.open(url, "new_win","width="+w+",height="+h+",left="+posX +",top="+posY+option);
}
function wina(url, w, h) {
         //var posX = (screen.width - w) / 2;
       // var posY = (screen.height - h) / 2;
	   var posX = 10;
       var posY = 5;
	   var w=670;
		var h=600;
		//var option = ",resizable=yes,scrollbars=yes,status=yes,toolbar=yes,location=yes,menubar=yes";
       var option = ",resizable=no,scrollbars=yes,status=no";
        window.open(url, "new_win","width="+w+",height="+h+",left="+posX +",top="+posY+option);
}


/***************

		!!!!!!!!!!!!!!!!!!!! ÆË¾÷ !!!!!!!!!!!!!!!!!!!

****************/

function PZPlusViewSC(){
	parent.document.getElementById('PZPlusDIV').style.display = 'block';
//	parent.document.getElementById('PZPlusDIVRe').innerHTML = '<iframe src=\"../main/ifPoplist.html\" frameborder=\"0\" scrolling=\"no\" width=\"281\" height=\"216\"></iframe>';
}
// http://app.seoul.go.kr/html/r/GH_MAIN_00001_list.html
function PZPlusHiddenSC(){
	document.getElementById('PZPlusDIV').style.display = 'none';
}

function PopupList(mid,tid)
{
    for (var i=1; i < tid ; i++) {
		if (document.getElementById('menu' + i).style.display == 'block')
			document.getElementById('menu' + i).style.display = 'none';
			document.getElementById('tmenu' + i).className = 'title';
    }
    document.getElementById('menu' + mid).style.display = 'block';
	document.getElementById('tmenu' + mid).className = 'titlev';
//alert(document.getElementById('menu' + menuid).className);

}

// :*:*:*:*:*:*: ÆË¾÷ °ü·Ã ¸¶Ä§ :*:*:*:*:*:*:*: //


function clickLinkpop(){
		window.open('/main/ifPop_list.html','new3','width=840,height=840,scrollbars=yes,top=10,left=420');
}


function change1()
{
	document.search_page.searchtype.value="total";
}
function change2()
{
	document.search_page.searchtype.value="name";
}
function change3()
{
	document.search_page.searchtype.value="affairs";
}
function searchsubmit()
{
	//var searchtype;
	//searchtype = document.search_page.searchtype.value;
	//if(searchtype == "total")
	//{
	document.search_page.submit();
	//}
	//else if(searchtype == "name")
	//{
		//location.href = "/introduction/intro06_02_01.html?search_category=C_OITORGNAME+C_OIORGNAME+C_UIUSERNAME&search_word="+document.search_page.qt.value;
	//}
	//else if(searchtype == "affairs")
	//{
		//location.href = "/introduction/intro06_02_01.html?search_category=C_OITORGNAME+C_OIORGNAME+C_UIDUTY&search_word="+document.search_page.qt.value;
	//}
}