//ÇÃ·¡½Ã¸¦ »ðÀÔÇÏ´Â ½ºÅ©¸³Æ®.
function FlashMainbody(Ftrans,wid,hei) {
	mainbody = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+ wid +"' height='"+ hei +"'>";
	mainbody += "<param name='movie' value='"+ Ftrans +"'>";
	mainbody += "<param name='quality' value='high'>";
	mainbody += "<param name='wmode' value='transparent'>";
	mainbody += "<param name='menu' value='false'>";
	mainbody += "<embed src='"+ Ftrans +"' quality='high' wmode='transparent' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ wid +"' height='"+ hei +"'></embed>"
	mainbody += "</object>";

	//document.body.innerHTML = mainbody;
	document.write(mainbody);
	return;
}


//png¸¦ Åõ¸íÇÏ°Ô ÇÏ´Â ½ºÅ©¸³Æ®
function setPng24(obj) {
  obj.width=obj.height=1;
  obj.className=obj.className.replace(/\bpng24\b/i,'');
  obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
  obj.src='';
  return '';
}


function resizeFrame(iframeObj){
	/* ¾ÆÀÌÇÁ·¹ÀÓ¿¡¼­ ÀÐ¾îµéÀÎ ÆäÀÌÁöÀÇ body */
	var innerBody = iframeObj.contentWindow.document.body;

			document.onclick = function(){ resizeFrame(iframeObj, 1);};
			innerBody.onclick = function(){ resizeFrame(iframeObj, 1);};
			innerBody.onmouseover = function(){ resizeFrame(iframeObj, 1);};

	/*	 ³ôÀÌ ´Ù½Ã¼³Á¤ */
	var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
	iframeObj.style.height = innerHeight;
	iframeObj.style.height = innerHeight;

/*---------- ³ÐÀÌµµ ÇÔ²² ÀÚµ¿Á¶Á¤µÇ¾ß ÇÑ´Ù¸é ÁÖ¼®À» Ç®¾îÁÖ¼¼¿ä~--------------------------------
	// ³ÐÀÌ ´Ù½Ã¼³Á¤ 
	var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
	iframeObj.style.width = innerWidth;     
---------------------------------------------------------------------------------------------------*/
	  if( !arguments[1] )        /* Æ¯Á¤ ÀÌº¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
                this.scrollTo(1,1);
 
}

/******************Åé¸Þ´º ¹Ù·Î°¡±â********************/
function tmenu1(){
	location.href='/asp/ctn/intIntroduction.html';
}
function tmenu1_1(){
	location.href='/asp/ctn/intIntroduction.html';
}
function tmenu1_2(){
	location.href='/asp/ctn/intApplication.html';
}



function tmenu2(){
	location.href='/asp/ledMebField/ledMebField.html?field=1';
}
function tmenu2_1(){
	location.href='/asp/ledMebField/ledMebField.html?field=1';
}
function tmenu2_2(){
	location.href='/asp/ledMebNumber/ledM.html?led=9';
}
function tmenu2_3(){
	location.href='/asp/ledMebArea/ledMap.html?map=01';
}

function tmenu3(){
	location.href='/asp/brd/brdNoticeList.html';
}
function tmenu3_1(){
	location.href='/asp/brd/brdNoticeList.html';
}
function tmenu3_2(){
	location.href='/asp/brd/newsList.html';
}
function tmenu3_3(){
	location.href='/asp/brd/brdQnaList.html';
}

function tmenu4(){
	location.href='/asp/login/findid.html';
}
function tmenu4_1(){
	location.href='/asp/login/findid.html';
}
function tmenu4_2(){
	location.href='/asp/login/findpw.html';
}



/**********************Leader's Gallery*******************/
function lmenu2_1_1(){
	location.href='/asp/ledMebField/ledMebField.html?field=1';
}
function lmenu2_1_2(){
	location.href='/asp/ledMebField/ledMebField.html?field=14';
}
function lmenu2_1_3(){
	location.href='/asp/ledMebField/ledMebField.html?field=16';
}
function lmenu2_1_4(){
	location.href='/asp/ledMebField/ledMebField.html?field=2';
}
function lmenu2_1_5(){
	location.href='/asp/ledMebField/ledMebField.html?field=3';
}
function lmenu2_1_6(){
	location.href='/asp/ledMebField/ledMebField.html?field=5';
}
function lmenu2_1_7(){
	location.href='/asp/ledMebField/ledMebField.html?field=6';
}
function lmenu2_1_8(){
	location.href='/asp/ledMebField/ledMebField.html?field=7';
}


function lmenu2_2_1(){
	location.href='/asp/ledMebNumber/ledM.html?led=9';
}
function lmenu2_2_2(){
	location.href='/asp/ledMebNumber/ledM.html?led=8';
}
function lmenu2_2_3(){
	location.href='/asp/ledMebNumber/ledM.html?led=7';
}
function lmenu2_2_4(){
	location.href='/asp/ledMebNumber/ledM.html?led=6';
}
function lmenu2_2_5(){
	location.href='/asp/ledMebNumber/ledM.html?led=5';
}
function lmenu2_2_6(){
	location.href='/asp/ledMebNumber/ledM.html?led=4';
}
function lmenu2_2_7(){
	location.href='/asp/ledMebNumber/ledM.html?led=3';
}
function lmenu2_2_8(){
	location.href='/asp/ledMebNumber/ledM.html?led=2';
}
function lmenu2_2_9(){
	location.href='/asp/ledMebNumber/ledM.html?led=1';
}


function lmenu2_3_1(){
	location.href='/asp/ledMebArea/ledMap.html?map=01';
}
function lmenu2_3_2(){
	location.href='/asp/ledMebArea/ledMap.html?map=02';
}
function lmenu2_3_3(){
	location.href='/asp/ledMebArea/ledMap.html?map=03';
}
function lmenu2_3_4(){
	location.href='/asp/ledMebArea/ledMap.html?map=05';
}


function menu3_1(){
	location.href='/asp/brd/brdNoticeList.html';
}

function menu3_2(){
	location.href='/asp/brd/newsList.html';
}

function menu3_3(){
	location.href='/asp/brd/brdQnaList.html';
}

function lmenu3(){
	location.href='/asp/brd/brdQnaList.html';
}
function lmenu3_1(){
	location.href='/asp/brd/faq.html';
}
function lmenu3_2(){
	location.href='/asp/brd/brdQnaList.html';
}


/*************** ¸µÅ©µÈ ±×¸² Á¡¼± ¾ø¾Ö±â******************/
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();} 
document.onfocusin=bluring;


/*****************ÁöµµÃ¢ µ¥ÀÌÅ¸ º¸ÀÌ±â**********************/
function chmap(num){
										    mapnum=num;
											mapname="/images/ledMebArea/map"+mapnum+".gif";
											document.getElementById('map').src=mapname;
											for(m=1; m<=4; m++){
											 if(m!=num){
													n2="m"+m;
													document.getElementById(n2).style.display='none';
											 }else{					
 													n2="m"+m;
													document.getElementById(n2).style.display='block';
												 }
											}
										}

function chmap2(num){
										    mapnum=num;
											mapname="/images/ctn/map"+mapnum+".gif";
											document.getElementById('map').src=mapname;
											/*
											for(m=1; m<=4; m++){
											 if(m!=num){
													n2="m"+m;
													document.getElementById(n2).style.display='none';
											 }else{					
 													n2="m"+m;
													document.getElementById(n2).style.display='block';
												 }
											}
											*/
										}



/*********ÇÑ¿µÅÇ ¹Ù²Ù±â**************/
function btn_kor(lannum){
			lannum100="lan"+lannum;
			lannum200="lan"+(lannum+1);
			lanbox100="lanfrm"+lannum;
			lanbox200="lanfrm"+(lannum+1);
			if(lannum<10){
				document.getElementById(lanbox100).style.display="block"
				document.getElementById(lanbox200).style.display="none"
				}
				document.getElementById(lannum100).style.cursor="hand";
				document.getElementById(lannum100).src="/images/ledMebMain/btn_kor_on.gif";
				document.getElementById(lannum200).src="/images/ledMebMain/btn_eng.gif";
				
			}

function btn_eng(lannum){
			lannum100="lan"+lannum;
			lannum200="lan"+(lannum+1);
			lanbox100="lanfrm"+lannum;
			lanbox200="lanfrm"+(lannum+1);
			if(lannum<10){
				document.getElementById(lanbox100).style.display="none"
				document.getElementById(lanbox200).style.display="block"
				}
				document.getElementById(lannum200).style.cursor="hand";
				document.getElementById(lannum200).src="/images/ledMebMain/btn_eng_on.gif";
				document.getElementById(lannum100).src="/images/ledMebMain/btn_kor.gif";
			}


/*********¼­Ä¡ÅÇ ¹Ù²Ù±â**************/
function srchTab_01(srchnum){
			srchnum100="srch"+srchnum;
			srchnum200="srch"+(srchnum+1);
			srchnum300="srch"+(srchnum+2);
			srchnum400="srch"+(srchnum+3);
			srchnum500="srch"+(srchnum+4);
			srchbox100="srchfrm"+srchnum;
			srchbox200="srchfrm"+(srchnum+1);
			srchbox300="srchfrm"+(srchnum+2);
			srchbox400="srchfrm"+(srchnum+3);
			srchbox500="srchfrm"+(srchnum+4);
			if(srchnum<10){
				document.getElementById(srchbox100).style.display="block"
				document.getElementById(srchbox200).style.display="none"
				document.getElementById(srchbox300).style.display="none"
				document.getElementById(srchbox400).style.display="none"
				document.getElementById(srchbox500).style.display="none"
				}
				document.getElementById(srchnum100).style.cursor="hand";
				document.getElementById(srchnum100).src="/images/srh/srchTab_01_o.gif";
				document.getElementById(srchnum200).src="/images/srh/srchTab_02.gif";
				document.getElementById(srchnum300).src="/images/srh/srchTab_03.gif";
				document.getElementById(srchnum400).src="/images/srh/srchTab_04.gif";
				document.getElementById(srchnum500).src="/images/srh/srchTab_05.gif";
				
			}

function srchTab_02(srchnum){
			srchnum100="srch"+srchnum;
			srchnum200="srch"+(srchnum+1);
			srchnum300="srch"+(srchnum+2);
			srchnum400="srch"+(srchnum+3);
			srchnum500="srch"+(srchnum+4);
			srchbox100="srchfrm"+srchnum;
			srchbox200="srchfrm"+(srchnum+1);
			srchbox300="srchfrm"+(srchnum+2);
			srchbox400="srchfrm"+(srchnum+3);
			srchbox500="srchfrm"+(srchnum+4);
			if(srchnum<10){
				document.getElementById(srchbox100).style.display="none"
				document.getElementById(srchbox200).style.display="block"
				document.getElementById(srchbox300).style.display="none"
				document.getElementById(srchbox400).style.display="none"
				document.getElementById(srchbox500).style.display="none"
				}
				document.getElementById(srchnum200).style.cursor="hand";
				 document.getElementById(srchnum200).src="/images/srh/srchTab_02_o.gif";
				 document.getElementById(srchnum100).src="/images/srh/srchTab_01.gif";
				 document.getElementById(srchnum300).src="/images/srh/srchTab_03.gif";
				 document.getElementById(srchnum400).src="/images/srh/srchTab_04.gif";
				 document.getElementById(srchnum500).src="/images/srh/srchTab_05.gif";
				
			}

function srchTab_03(srchnum){
			srchnum100="srch"+srchnum;
			srchnum200="srch"+(srchnum+1);
			srchnum300="srch"+(srchnum+2);
			srchnum400="srch"+(srchnum+3);
			srchnum500="srch"+(srchnum+4);
			srchbox100="srchfrm"+srchnum;
			srchbox200="srchfrm"+(srchnum+1);
			srchbox300="srchfrm"+(srchnum+2);
			srchbox400="srchfrm"+(srchnum+3);
			srchbox500="srchfrm"+(srchnum+4);
			if(srchnum<10){
				document.getElementById(srchbox100).style.display="none"
				document.getElementById(srchbox200).style.display="none"
				document.getElementById(srchbox300).style.display="block"
				document.getElementById(srchbox400).style.display="none"
				document.getElementById(srchbox500).style.display="none"
				}
				document.getElementById(srchnum300).style.cursor="hand";
				 document.getElementById(srchnum300).src="/images/srh/srchTab_03_o.gif";
				 document.getElementById(srchnum100).src="/images/srh/srchTab_01.gif";
				 document.getElementById(srchnum200).src="/images/srh/srchTab_02.gif";
				 document.getElementById(srchnum400).src="/images/srh/srchTab_04.gif";
				 document.getElementById(srchnum500).src="/images/srh/srchTab_05.gif";
				
			}

function srchTab_04(srchnum){
			srchnum100="srch"+srchnum;
			srchnum200="srch"+(srchnum+1);
			srchnum300="srch"+(srchnum+2);
			srchnum400="srch"+(srchnum+3);
			srchnum500="srch"+(srchnum+4);
			srchbox100="srchfrm"+srchnum;
			srchbox200="srchfrm"+(srchnum+1);
			srchbox300="srchfrm"+(srchnum+2);
			srchbox400="srchfrm"+(srchnum+3);
			srchbox500="srchfrm"+(srchnum+4);
			if(srchnum<10){
				document.getElementById(srchbox100).style.display="none"
				document.getElementById(srchbox200).style.display="none"
				document.getElementById(srchbox300).style.display="none"
				document.getElementById(srchbox400).style.display="block"
				document.getElementById(srchbox500).style.display="none"
				}
				document.getElementById(srchnum400).style.cursor="hand";
				 document.getElementById(srchnum400).src="/images/srh/srchTab_04_o.gif";
				 document.getElementById(srchnum100).src="/images/srh/srchTab_01.gif";
				 document.getElementById(srchnum200).src="/images/srh/srchTab_02.gif";
				 document.getElementById(srchnum300).src="/images/srh/srchTab_03.gif";
				 document.getElementById(srchnum500).src="/images/srh/srchTab_05.gif";
				
			}


function srchTab_05(srchnum){
			srchnum100="srch"+srchnum;
			srchnum200="srch"+(srchnum+1);
			srchnum300="srch"+(srchnum+2);
			srchnum400="srch"+(srchnum+3);
			srchnum500="srch"+(srchnum+4);
			srchbox100="srchfrm"+srchnum;
			srchbox200="srchfrm"+(srchnum+1);
			srchbox300="srchfrm"+(srchnum+2);
			srchbox400="srchfrm"+(srchnum+3);
			srchbox500="srchfrm"+(srchnum+4);
			if(srchnum<10){
				document.getElementById(srchbox100).style.display="none"
				document.getElementById(srchbox200).style.display="none"
				document.getElementById(srchbox300).style.display="none"
				document.getElementById(srchbox400).style.display="none"
				document.getElementById(srchbox500).style.display="block"
				}
				document.getElementById(srchnum500).style.cursor="hand";
				 document.getElementById(srchnum500).src="/images/srh/srchTab_05_o.gif";
				 document.getElementById(srchnum100).src="/images/srh/srchTab_01.gif";
				 document.getElementById(srchnum200).src="/images/srh/srchTab_02.gif";
				 document.getElementById(srchnum300).src="/images/srh/srchTab_03.gif";
				 document.getElementById(srchnum400).src="/images/srh/srchTab_04.gif";
				
			}
/********************·Î±×ÀÎ ¹Ú½º********************/
function log100() {
		navinm=navigator.appName;
				if(navinm=='Microsoft Internet Explorer'){
					 logbg.filters.blendTrans.Apply();
					 logbg.filters.alpha.opacity='50';
					 logbg.style.display= 'block';
					 logbg.filters.blendTrans.Play();

					 login.filters.blendTrans.Apply();
					 login.filters.alpha.opacity='100';
					 login.style.display= 'block';
					 login.filters.blendTrans.Play();
				 }else{
					 document.getElementById("logbg").style.display= 'block';			
					 document.getElementById("login").style.display= 'block';			
				 }
		}

			function log200() {
		navinm=navigator.appName;
				if(navinm=='Microsoft Internet Explorer'){
					 logbg.filters.blendTrans.Apply();
					 logbg.style.display= 'none';
					 logbg.filters.blendTrans.Play();

					 login.filters.blendTrans.Apply();
					 login.style.display= 'none';
					 login.filters.blendTrans.Play();
				 }else{
					 document.getElementById("logbg").style.display= 'none';			
					 document.getElementById("login").style.display= 'none';			
				 }
		}


	/************È¸¿ø °¡ÀÔ**********/
		function chmebtab(num){
											for(m=1; m<=5; m++){
												 if(m!=num){
														n2="tab"+m;
														n3="tabbtn"+m;
														if(document.getElementById(n3).src){
															imgname="/images/etc/find_tab0"+m+"_kor.gif";
														}else{
															imgname="/images/etc/jointab0"+m+".gif";
														}
														document.getElementById(n3).src=imgname;
														document.getElementById(n2).style.display='none';
												 }else{					
														n2="tab"+m;
														n3="tabbtn"+m;
														if(document.getElementById(n3).src){
														imgname="/images/etc/find_tab0"+m+"_o_kor.gif";
														}else{
															imgname="/images/etc/jointab0"+m+"_o.gif";
														}
														document.getElementById(n3).src=imgname;														
														document.getElementById(n2).style.display='block';
													 }
											} //for
										} //function


function shphoto(){
	//thisObj,preViewer
//							alert(thisObj);
							cc=document.form1.filename01.value;
//							dd=document.form1.filetxt1;
							document.getElementById("phototd").style.display='block';
//							document.form1.filename01.focus=blur();

//							var dest = document.getElementById("preview");
//							 preViewer = (typeof(preViewer) == "object") ? preViewer : document.getElementById(preViewer);
//							thisObj.select();
//							var selectionRange = document.selection.createRange();
//							 img_path = selectionRange.text.toString();
//							 dd.value=cc;
//							alert(img_path);
//							 thisObj.blur();
//							alert(img_path.width)
//							preViewer.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fi" + "le://" + img_path + "', sizingMethod='scale')";
						}
