<!--

/**
 * Top ÀÌµ¿ ¹öÆ° ½½¶óÀÌµù
 */
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

var topLimit=0;	//¸Ç À§ Á¦ÇÑ¼±

// À©µµ¿ì »çÀÌÁî¸¦ ±¸ÇÑ´Ù.
function getWindowSize(type) {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement &&
			( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	if(type==1)
		return myWidth;
	else
		return myHeight;
}

var layerPos = 550;
// À©µµ¿ì »çÀÌÁî¿¡ µû¶ó LayerÀÇ »çÀÌÁî¸¦ º¯°æ
function resizeTopAnchor()
{
	var wWidth = getWindowSize(1);
	var wHeight = getWindowSize(2);

	if(wWidth<941)
	{
		if(topAnchor.style.display=='block')
		{
			topAnchor.style.display='none';
		}
	}
	else
	{
		if(topAnchor.style.display=='none')
		{
			topAnchor.style.display='block';
		}
		topAnchor.style.height=55;
		topAnchor.style.left=941;
	}
	layerPos = 340
	timerTopAnchor=setTimeout("resizeTopAnchor()",1);
}

// ºê¶ó¿ìÁ® Å¸ÀÔ ¹ÝÈ¯ ÇÔ¼ö
function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

// ¹öÆ° ·¹ÀÌ¾î À§Ä¡ ÀÌµ¿
function moveLayer() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	//setBottomLimit();

	if (isDOM) {
		yMenuFrom   = parseInt (topAnchor.style.top, 10);
		//yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop)+layerPos; // À§ÂÊ À§Ä¡
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 345; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 100;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			topAnchor.top += yOffset;
		else if (isDOM)
			topAnchor.style.top = parseInt (topAnchor.style.top, 10) + yOffset;
		timeoutNextCheck = 10;
	}

	if(parseInt(topAnchor.style.top,10)<topLimit){
		topAnchor.style.top=topLimit;
	}else{
	}

	setTimeout ('moveLayer()', timeoutNextCheck);
}

function changeimage(towhat){
	if (document.images){
		document.images.targetimage.src=towhat.src
	}
}

var myimages=new Array()
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		myimages[i]=new Image()
		myimages[i].src=preloadimages.arguments[i]
	}
}
preloadimages('/images/quickmenu/img_sm1.gif','/images/quickmenu/img_sm2.gif','/images/quickmenu/img_sm3.gif')

// document typeÀÌ DOMÀÏ °æ¿ì¸¸ ½ÇÇàµÈ´Ù.
if(isDOM)
{
	document.write("<div id='topAnchor' style='position:absolute;display:block;'>");
	document.write("<table border=0 cellpadding=0 cellspacing=0 width=54 background='/images/quickmenu/sbg_main.gif'>");
	document.write("	<tr>");
	document.write("		<td colspan=3><img src='/images/quickmenu/title_sub.gif'></td>");
	document.write("	</tr>");
	document.write("	<tr height=7><td colspan=3></td></tr>");
	document.write("	<tr>");
	document.write("		<td width=5></td>");
	document.write("		<td width=44>");
	document.write("			<table border=0 cellpadding=0 cellspacing=0 width=44>");
	document.write("				<tr>");
	document.write("					<td><img src='/images/quickmenu/img_sm1.gif'  name='targetimage' width=44></td>");
	document.write("				</tr>");
	document.write("			</table>");
	document.write("		</td>");
	document.write("		<td width=5></td>");
	document.write("	</tr>");
	document.write("	<tr height=7><td colspan=3></td></tr>");
	document.write("</table>");
	document.write("<table border=0 cellpadding=0 cellspacing=0 width=54 background='/images/quickmenu/sbg_main1.gif'>");
	document.write("	<tr>");
	document.write("		<td width=5></td>");
	document.write("		<td width=44>");
	document.write("			<table border=0 cellpadding=0 cellspacing=0 width=44>");
	document.write("				<tr>");
	document.write("					<td><img src='/images/quickmenu/sline_main.gif'></td>");
	document.write("				</tr>");
	document.write("				<tr>");
	document.write("					<td><a href='/dlsearch/DLSearch/TOTWSearchMain.asp?TitleImageName=searchtitleMON.jpg&MainMenuNo=500&InformYN=N&InformHTML=%20&InformTarget=%20&InformWidth=%20&InformHeight=%20&SysKey=SYS03&SysDiv=MON&ViewSysDiv=´ÜÇàº»' onMouseover='changeimage(myimages[0],this.src)' onMouseout='changeimage(myimages[0],this.src)'><img src='/images/quickmenu/btn_sm1.gif' border=0 onMouseover=this.src='/images/quickmenu/btn_sm1on.gif' onMouseOut=this.src='/images/quickmenu/btn_sm1.gif'></a></td>");
	document.write("				</tr>");
	document.write("				<tr>");
	document.write("					<td><img src='/images/quickmenu/sline_main.gif'></td>");
	document.write("				</tr>");
	document.write("				<tr>");
	document.write("					<td><a href='/dlsearch/new_ddl/introduction/introduction.asp' onMouseover='changeimage(myimages[1],this.src)' onMouseout='changeimage(myimages[0],this.src)'><img src='/images/quickmenu/btn_sm2.gif' border=0 onMouseover=this.src='/images/quickmenu/btn_sm2on.gif' onMouseOut=this.src='/images/quickmenu/btn_sm2.gif'></a></td>");
	document.write("				</tr>");
	document.write("				<tr>");
	document.write("					<td><img src='/images/quickmenu/sline_main.gif'></td>");
	document.write("				</tr>");
	document.write("				<tr>");
	document.write("					<td><a href='/dlsearch/new_ddl/introduction/introduction9.asp' onMouseover='changeimage(myimages[2],this.src)' onMouseout='changeimage(myimages[0],this.src)'><img src='/images/quickmenu/btn_sm3.gif' border=0 onMouseover=this.src='/images/quickmenu/btn_sm3on.gif' onMouseOut=this.src='/images/quickmenu/btn_sm3.gif'></a></td>");
	document.write("				</tr>");
	document.write("			</table>");
	document.write("		<td width=5></td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td colspan=3 ><img src='/images/quickmenu/sbottom_main.gif'></td>");
	document.write("	</tr>");
	document.write("</table>");
	document.write("<!-- ÀÌ¹ÌÁö ½æ³×ÀÏ ÆÄÆ® -->");
	document.write("<table border=0 cellpadding=0 cellspacing=0 width=54>");
	document.write("	<tr>");
	document.write("		<td style='padding-top:10px;'><a href='javascript:pop_schedule2();'><img src='/images/main/schedule_btn.jpg' border='0' width='54'></a></td>");
	document.write("	</tr>");
	document.write("</table>");
	document.write("</div>");

	var topAnchor = getRef('topAnchor');

	topAnchor.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + layerPos;
	topAnchor.style.visibility = "visible";
	resizeTopAnchor();
	moveLayer();

	function pop_schedule2(){
		LeftPosition = (screen.width) ? (screen.width-752)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-537)/2 : 0;

		window.open("/dlsearch/new_ddl/schedule/pop_schedule.asp","schedule","width=752,height=537,top="+TopPosition+",left="+LeftPosition+",menubar=no,scrollbars=no,resizable=no");
	}
}

//-->