<!--

document.write("<script language='javascript' src='/js/flash_embed.js'></script>");
document.write("<script language='javascript' src='/js/top_menu.js'></script>");
document.write("<script language='javascript' src='/js/movie.js'></script>");

// Äü¸Þ´º ½ºÅ©·Ñ
	self.onError=null;
	currentX = currentY = 0;
	whichIt = null;
	lastScrollX = 0; lastScrollY = 0;
	NS = (document.layers) ? 1 : 0;
	IE = (document.all) ? 1: 0;

	function heartBeat() {
	if(IE) {
	diffY = document.body.scrollTop;
	if(diffY > 1500) diffY = 1500;
	diffX = 0;
	}
	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
	percent = .1 * (diffY - lastScrollY);
	if(percent > 0) percent = Math.ceil(percent);
	else percent = Math.floor(percent);
	if(IE) document.all.floater.style.pixelTop += percent;
	if(NS) document.floater.top += percent;
	lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX) {
	percent = .1 * (diffX - lastScrollX);
	if(percent > 0) percent = Math.ceil(percent);
	else percent = Math.floor(percent);
	if(IE) document.all.floater.style.pixelLeft += percent;
	if(NS) document.floater.top += percent;
	lastScrollY = lastScrollY + percent;
	}
	}
	



// ½ºÅ©·Ñ ÀÌ¹ÌÁö
function move(direction, kind) { 
		if(kind == 1) { 
				mq1.start(); 
		} 
		if(direction == 'L' || direction == 'l') { 
				mq1.direction = 'left'; 
		}          
		else if(direction == 'R' || direction == 'r') { 
				mq1.direction = 'right'; 
		}          
	} 

	// Á¤Áö 
	function stop(kind) { 
			if(kind == 1) { 
					mq1.stop(); 
		} 
} 



// ÀÎ¼â±¤°í
function ChangePhoto(str)
{
	document.all.div01.style.display = "none" 
	document.all.div02.style.display = "none" 
	document.all.div03.style.display = "none" 
	document.all.div04.style.display = "none" 
	document.all.div05.style.display = "none" 
	document.all.div06.style.display = "none" 
	document.all.div07.style.display = "none"
	document.all.div08.style.display = "none" 
	document.all.div09.style.display = "none"
	str9 = eval("document.all.div" + str )
	str9.style.display = "inline"
}


// °ø¹éÃ¼Å©
function isEmpty(str)
{
	for(var i = 0 ; i < str.length ; i++ ){
		if ( str.substring( i, i+1 ) != " " )
			return false;
	}
	return true;
}

function IsNumeric(num)
{
	var ch, ch2=1;

	for ( k = 0; k < num.value.length; k++ )
	{
		ch = num.value.charAt(k);
		if ( ch < '0' || ch > '9' )
	    {
			num.value = "";
			num.focus();
			return (false);
		}
	}
	return (true);
}



function isEmail( objEmail ) 
{
  //var objEmail = eval(objEmail) ;
  var szEmail = objEmail ;
  var regDoNot = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
  var regMust = /^[a-zA-Z0-9\-\.\_]+@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3})$/;
  if ( !regDoNot.test(szEmail) && regMust.test(szEmail) )
    return false;
  else
    return true;
}


// ÀÔ·Â±ÛÀÚ¼ö Ã¼Å©
function chkMsgLength(intMax,objMsg,st) {
	var length = lengthMsg(objMsg.value);
	st.innerHTML = length;//ÇöÀç byte¼ö¸¦ ³Ö´Â´Ù
	if (length > intMax) {
		alert("ÃÖ´ë " + intMax + "byteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.\n");
		objMsg.value = objMsg.value.replace(/\r\n$/, "");
		objMsg.value = assertMsg(intMax,objMsg.value,st );
	}
}

function lengthMsg(objMsg) {
	var nbytes = 0;
	for (i=0; i<objMsg.length; i++) {
		var ch = objMsg.charAt(i);
		if(escape(ch).length > 4) {
			nbytes += 2;
		} else if (ch == '\n') {
			if (objMsg.charAt(i-1) != '\r') {
				nbytes += 1;
			}
		} else if (ch == '<' || ch == '>') {
			nbytes += 4;
		} else {
			nbytes += 1;
		}
	}
	return nbytes;
}

function assertMsg(intMax,objMsg,st ) {
	var inc = 0;
	var nbytes = 0;
	var msg = "";

	var msglen = objMsg.length;
	for (i=0; i<msglen; i++) {
		var ch = objMsg.charAt(i);
		if (escape(ch).length > 4) {
			inc = 2;
		} else if (ch == '\n') {
			if (objMsg.charAt(i-1) != '\r') {
				inc = 1;
			}
		} else if (ch == '<' || ch == '>') {
			inc = 4;
		} else {
			inc = 1;
		}
		if ((nbytes + inc) > intMax) {
			break;
		}
		nbytes += inc;
		msg += ch;
	}
	st.innerHTML = nbytes; //ÇöÀç byte¼ö¸¦ ³Ö´Â´Ù
	return msg;
}

// È«º¸¿µ»ó
function ChangeMovie(str)
{
	document.all.div01.style.display = "none" 
	document.all.div02.style.display = "none" 
	document.all.div03.style.display = "none" 
	document.all.div04.style.display = "none" 
	document.all.div05.style.display = "none" 
	document.all.div06.style.display = "none" 
	document.all.div07.style.display = "none" 
	document.all.div08.style.display = "none" 
	document.all.div09.style.display = "none" 
	document.all.div10.style.display = "none" 
	document.all.div11.style.display = "none" 
	document.all.div12.style.display = "none" 

	str12 = eval("document.all.div" + str )
	str12.style.display = "inline"
}

// µ¿¿µ»ó ÄÁÆ®·Ñ·¯

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer01.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer01.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer02.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer02.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer03.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer03.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer04.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer04.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer05.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer05.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer06.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer06.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer07.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer07.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer08.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer08.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer09.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer09.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer10.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer10.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer11.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer11.stop(); 
} 

function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer12.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
MediaPlayer12.stop(); 
} 


function mediPlay() { //Àç»ý¹öÆ°ÀÔ´Ï´Ù. 
mainplay.play(); 
} 
function mediStop() { //Á¤Áö¹öÆ°ÀÔ´Ï´Ù. 
mainplay.stop(); 
} 


//-->