/*½ºÅ©·Ñ Å¾ ¹öÆ°*/
function gotop(){
  document.body.scrollTop=0;
}
/* flash È£Ãâ */
/* flash È£Ãâ */
function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="best">';
	html += '<param name="wmode" value="transparent">';
	html += '<embed src="'+src+'" quality=best width="'+w+'" height="'+h+'" quality="best" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

/*ÆäÀÌÁö focus blur */
function bluring(){
	if (event.srcElement!=null) {
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}
}
document.onfocusin=bluring;


/* ·Ñ¿À¹ö */
function addLoadEvent(funct) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = funct;
  } else {
    window.onload = function() {
      oldonload();
      funct();
    }
  }
}

function imgover(img) {
	img.src = img.src.replace('.gif','_over.gif');
}

function imgrecover(img) {
	img.src = img.src.replace('_over.gif','.gif');
}

function moveUrl(form) { 
	var url=form.options[form.selectedIndex].value;
	if(url !="") { 
		window.open(url, "linkOrgan","");
	} 
}
/* obj : °´Ã¼, active : È°¼ºÈ­ ÄÚµå */
function initTabControllerType01(obj,active) {
	tabobj = document.getElementById(obj);
	tabobjList = tabobj.getElementsByTagName('li');
	for(i=0;i<tabobjList.length;i++) {
		tabobjList[i].getElementsByTagName('a').item(0).onclick = function() {
			return false;
		}
		tabobjList[i].onclick = function() {
			clear();
			getObj = this.getElementsByTagName('a').item(0);
			document.getElementById(getObj.href.split('@')[1]).style.display="block";
			getObj.getElementsByTagName('img').item(0).src = getObj.getElementsByTagName('img').item(0).src.replace('.gif','_on.gif');

			if(this.previousSibling) {
				preobj = (this.previousSibling.nodeType != '1') ? this.previousSibling.previousSibling.getElementsByTagName('a').item(0): this.previousSibling.getElementsByTagName('a').item(0);
				preobj.getElementsByTagName('img').item(0).src = preobj.getElementsByTagName('img').item(0).src.replace('.gif','_over.gif');
			}
			if(this.nextSibling && this.className != 'first') {
				nextobj = (this.nextSibling.nodeType != '1') ? this.nextSibling.nextSibling.getElementsByTagName('a').item(0): this.nextSibling.getElementsByTagName('a').item(0);
				nextobj.getElementsByTagName('img').item(0).src = nextobj.getElementsByTagName('img').item(0).src.replace('.gif','_over.gif');
			}

			return false;
		}
	}

	function clear() {

		for(i=0;i<tabobjList.length;i++) {
			objname = tabobjList[i].getElementsByTagName('a').item(0);
			imgreset = objname.getElementsByTagName('img').item(0);
			imgreset.src = imgreset.src.replace('_on.gif','.gif');
			imgreset.src = imgreset.src.replace('_over.gif','.gif');
			document.getElementById(objname.href.split('@')[1]).style.display="none";
		}
	}

	if(active) { tabobjList[active-1].onclick(); } else { tabobjList[0].onclick(); }
}

function faqinit_type01(obj) {
	getObj = document.getElementById(obj);
	getDt = getObj.getElementsByTagName('dt');
	for(i=0;i<getDt.length;i++) {
		getDt[i].onclick = function() {
			if(this.className == "select") { 
				this.setAttribute('class','');
				this.className = '';
				if(this.nextSibling.nodeType != '1') this.nextSibling.nextSibling.style.display = "none";
				else this.nextSibling.style.display = "none";
			} 
			else {
				getDd = this.parentNode.getElementsByTagName('dd');
				getDt = this.parentNode.getElementsByTagName('dt');
				for(j=0;j<getDd.length;j++) {
					getDt[j].className = "";
					getDd[j].style.display = "none";
				}
      	
				this.setAttribute('class','select');
				this.className = 'select';
				if(this.nextSibling.nodeType != '1') this.nextSibling.nextSibling.style.display = "block";
				else this.nextSibling.style.display = "block";
			}

		}
	}
}

function makeTagDesign(type,obj,styleoption) {

/*
	Type = "file" ÀÏ °æ¿ì ÅÂ±×´Â
	<div id="filetag01" class="filetag"><input type="file" style="width:300px;" class="/images/btn/btn_filefind.gif" /></div>
	class¸íÀ¸·Î ¹öÆ°°æ·Î ³Ö½À´Ï´Ù. filetag½ºÅ¸ÀÏ½ÃÆ® ¼³Á¤

	.filetag {
		filter:alpha(opacity: 0); outline: none;
		selector-dummy:expression(this.hideFocus=true);-moz-opacity:0;
		position:absolute;
		cursor:pointer;
	}
*/

	switch(type) {
		case 'file':
			var fileobj = document.getElementById(obj).getElementsByTagName('input').item(0);

			fileobjBtnName = fileobj.className;
			fileobjWidth = (fileobj.style.width=='') ? '300' : parseInt(fileobj.style.width);

			var newObj = document.createElement("input");
			newObj.setAttribute('type','text');
			newObj.setAttribute('width',fileobjWidth);

			var btnObj = document.createElement("img");
			btnObj.setAttribute('src',fileobjBtnName);

			document.getElementById(obj).appendChild(newObj);
			document.getElementById(obj).appendChild(btnObj);

			newObj.readOnly = true;

			fileobj.className = fileobj.className + " filetag";
			fileobj.style.width = "1";
			fileobj.style.marginLeft = fileobjWidth;

			fileobj.onchange = function() {
				newObj.value = fileobj.value;
			}

		break;

		case 'select':

			var selectobj = document.getElementById(obj);
			var newselectList = document.createElement("ul");


			for(i=0;i<selectobj.length;i++) {
				selectitem = document.createElement("li");
				selectitem.text = selectobj.options[i].text;
				newselectList.appendChild(selectitem);
			}

			selectobj.parentNode.replaceChild(newselectList,selectobj);
			tmpstr = '';
			tmpstr += 'style';

		break;

		default:
	}

}
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_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;
}
//¸Þ´ººÎºÐ//

// full_menu01 function ---

 function full_menu01()
    { showHideLayer(true) }


//home,notice,countactus
	function top01()
    { self.location.href = '/HTML/index.php'; }
	function top02()
    { 
        self.location.href = '/HTML/';
    }
	


//INTRO
	function menu010101()
    { self.location.href = '/HTML/Intro/intro010101.php'; }//ÇÐ°ú¼Ò°³/ÇÐ°úÀåÀÎ»ç¸»

	function menu010201()
    { self.location.href = '/HTML/Intro/intro010201.php'; }

	function menu010301()
    { self.location.href = '/HTML/Intro/intro010301.php'; }
	
	function menu010401()
    { self.location.href = '/HTML/Intro/intro010401.php'; }
	
	function menu010501()
    { self.location.href = '/HTML/Intro/intro010501.php'; }
	
	function menu010601()
    { self.location.href = '/HTML/Intro/intro010601.php'; }

/*	function menu010401()
  { 
	window.open('/compus.php','','width=970,height=615,left=1,top=1');
	 }

	

*/
//ADMISSIONS
	function menu020101()
    { self.location.href = '/HTML/Admission/010101.php'; }//ÀÔÇÐ¾È³»

	function menu020201()
    { self.location.href = '/HTML/Admission/010201.php'; }

	function menu020301()
    { self.location.href = '/HTML/Admission/010301.php'; }

	function menu020401()
    { self.location.href = '/HTML/Admission/010401.php'; }

	function menu020501()
    { self.location.href = '/HTML/Admission/010501.php'; }

	function menu020601()
    { self.location.href = '/HTML/Admission/010601.php'; }

//ACADEMICS
	function menu030101()
    { self.location.href = '/HTML/Academics/010101.php'; }//±³À°°úÁ¤

	function menu030201()
    { self.location.href = '/HTML/Academics/010201.php'; }

	function menu030301()
    { self.location.href = '/HTML/Academics/010301.php'; }
	
	function menu030401()
    { self.location.href = '/HTML/Academics/010401.php'; }
	
	function menu0303401()
    { self.location.href = '/HTML/Academics/010501.php'; }

//PEOPLE
	function menu040101()
    { self.location.href = '/HTML/People/010101.php'; }//»ç¶÷µé

	function menu040201()
    { self.location.href = '/HTML/People/010201.php'; }

	function menu040301()
    { self.location.href = '/HTML/People/010301.php'; }

	function menu040401()
    { self.location.href = '/HTML/People/010401.php'; }

	function menu040501()
    { self.location.href = '/HTML/People/010501.php'; }

//INFO
	function menu050101()
    { self.location.href = '/HTML/Info/010101.php'; }//°Ô½ÃÆÇ

	function menu050201()
    { self.location.href = '/HTML/Info/010201.php'; }

	function menu050301()
    { self.location.href = '/HTML/Info/010301.php'; }

	function menu050401()
    { self.location.href = '/HTML/Info/010401.php'; }

	function menu050501()
    { self.location.href = '/HTML/Info/010501.php'; }

	function menu050601()
    { self.location.href = '/HTML/Info/010601.php'; }

//LECTURE
	function menu060101()
    { self.location.href = '/HTML/Lecture/010101.php'; }//°­ÀÇ½Ç

	function menu060201()
    { self.location.href = '/HTML/Lecture/010201.php'; }

	function menu060301()
    { self.location.href = '/HTML/Lecture/010301.php'; }
	
	function menu060401()
    { self.location.href = '/HTML/Lecture/010401.php'; }

//	function menu060401()
//   {window.open('http://'); }
	
//Member	
	function menu070101()
    { self.location.href = '/HTML/Member/'; }

	function menu070201()
    { self.location.href = '/HTML/Member/'; }

	function menu070301()
    { self.location.href = '/HTML/Member/?MemberMode=lost'; }

	function menu070401()
    { self.location.href = '/HTML/Member/agreement.php' }

	function menu070501()
    { self.location.href = '/HTML/Member/provision.php' }

	function menu070601()
    { self.location.href = '/HTML/Member/veto.php' }