var htmlstr = "", flag=true, imgflag=true, mouse=1, speed=1, wait=3000, temp=0, height=100, amount=100;
var ctnt=new Array(), ctnt_i=new Array(), startPanel=0, n_panel=0, i=0, j=0, count=1;
function startText() {
	for (i=0; i<ctnt.length; i++) insertText(i);
	window.setTimeout("scroll()",wait);
}

function scroll() {
	if (mouse && flag) {
		for (i=0;i<ctnt.length;i++) {
			temp++;
			tmp = document.getElementById('scroll_area'+i).style;
			tmp.top = parseInt(tmp.top)-speed;
			if (parseInt(tmp.top) <= height*(-1)) {
				tmp.top = height*(ctnt.length-1);
			}
			if (temp>(amount-1)*ctnt.length) {
				flag=false;
				temp=0;
				window.setTimeout("flag=true;temp=0;imgflag=true;",wait);
			}
		}
	}
	window.setTimeout("scroll()",1);
}
function insertText(i) {
	htmlstr='<div style="font-size:12px; left: 0px; width: 655px; position: absolute; top: '+(height*i+1)+'px" id="scroll_area'+i+'">\n';
	htmlstr+=ctnt[i]+'\n'+'</div>\n';
	document.write(htmlstr);
	//scroll_div.innerHTML = htmlstr;
}
ctnt[0]="<b> Åä¸ñ°ÇÃà´ëÇÐ ÁÖ¿äÁ¤º¸</b> <br><a href='main/univer.htm'>1) ´ëÇÐ ¼Ò°³</a><br><a href='http://iphak.khu.ac.kr/'>2) Åä¸ñ°ÇÃà´ëÇÐ ÀÔÇÐ ¾È³»</a> <br><a href='http://iphak.khu.ac.kr/'>3) Åä¸ñ°ÇÃà´ëÇÐ ÆíÀÔÇÐ ¾È³»</a> <br>";
ctnt[1]="<b> °ÇÃà°øÇÐÀü°ø ÁÖ¿äÁ¤º¸</b> <br><a href='engineer/eng_info1.htm'>1) °ÇÃà°øÇÐÀü°ø ¼Ò°³</a><br><a href='http://khu.ac.kr/m3/s1/f1_1.html'>2) ÇÐ»çÀÏÁ¤</a> <br>";
ctnt[2]="<b> Åä¸ñ°øÇÐÀü°ø ÁÖ¿äÁ¤º¸</b> <br><a href='technical/tech_info1.htm'>1) Åä¸ñ°øÇÐÀü°ø ¼Ò°³</a><br><a href='http://khu.ac.kr/m3/s1/f1_1.html'>2) ÇÐ»çÀÏÁ¤</a> <br>";
ctnt[3]="<b> °ÇÃàÇÐÀü°ø ÁÖ¿äÁ¤º¸</b> <br><a href='archi/arc_info1.htm'>1) °ÇÃàÇÐÀü°ø ¼Ò°³</a><br><a href='http://khu.ac.kr/m3/s1/f1_1.html'>2)  ÇÐ»çÀÏÁ¤</a> <br>";
