
document.writeln('<div id="L1" style="position:absolute; width:10px; height:10px; z-index:3">');
document.writeln('<div id="moveLayer1" style="position:absolute; left:906px; top:166px; width:60; height:100; z-index:3">');
document.writeln('<table width="63" border="0" cellpadding="0" cellspacing="0">');
document.writeln('	<tr>');
document.writeln('		<td><img src="/images/common/quick_01.gif" alt="¹Ù·Î°¡±â" width="63" height="32"></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><a href="/menucode.asp?code=jg&subp=03"><img src="/images/common/quick_02.gif" alt="´ë°ü½ÅÃ»" width="63" height="31" border="0"></a></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><a href="/menucode.asp?code=event&subp=02"><img src="/images/common/quick_03.gif" alt="¿¹¸Å¾È³»" width="63" height="31" border="0"></a></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><a href="/menucode.asp?code=event&subp=01"><img src="/images/common/quick_04.gif" alt="°ø¿¬ÀÏÁ¤" width="63" height="33" border="0"></a></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><a href="/menucode.asp?code=fitness&subp=01"><img src="/images/common/quick_05.gif" alt="ÈÖÆ®´Ï½º" width="63" height="31" border="0"></a></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><a href="/menucode.asp?code=introduce&subp=04"><img src="/images/common/quick_06.gif" alt="¿À½Ã´Â ±æ" width="63" height="29" border="0"></a></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><img src="images/common/quick_07.gif" width="63" height="6"></td>');
document.writeln('	</tr>');

// top button
document.writeln('	<tr>');
document.writeln('		<td height="20"></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td><a href="javascript:jsGotoTop()"><img src="/images/common/btn_top.gif" border="0"></a></td>');
document.writeln('	</tr>');


document.writeln('</table>');
document.writeln('</div>');
document.writeln('</div>');


function jsGotoTop() {
	window.scrollTo(0,0);
}



var topLayer = document.getElementById("moveLayer1");
//ÀÍ½º¹öÀü 4.0 ÀÌ»ó¿¡¼­ Áö¿øµÊ
var isExplorer = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4") ;

var limitBottom = 0;

function jsMoveTopBtn() { 
	var yMenuFrom, yMenuTo, yOffset, NextMove, limitBottom

//	limitBottom = 50;

	if (topLayer) { 
		yMenuFrom   = parseInt (topLayer.style.top, 10); 
		yMenuTo     = (isExplorer ? document.body.scrollTop : window.pageYOffset) + 166; //À§Ä¡Á¶Á¤
	} 

	NextMove = 300;
	
	if (document.all["bottomLayer"]){
		limitBottom = document.all["bottomLayer"].offsetTop-50;
//		alert(limitBottom);
	}

	if (yMenuFrom != yMenuTo){
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (topLayer) {
			if (limitBottom > 0 && parseInt (topLayer.style.top, 10) + yOffset > (parseInt (limitBottom, 10) - topLayer.offsetHeight))	{
				topLayer.style.top = parseInt(limitBottom,10) - topLayer.offsetHeight;
			}
			else {
				topLayer.style.top = parseInt (topLayer.style.top, 10) + yOffset; 
			}
		}
		NextMove = 10; 

	} 

	setTimeout ("jsMoveTopBtn()", NextMove); 
	
}




if  (topLayer)	{ 
//	alert(document.body.scrollTop);
	topLayer.style.top = (isExplorer ? document.body.scrollTop : window.pageYOffset) + 160;	//Ã³À½À§Ä¡
	topLayer.style.visibility = "visible"; 
	jsMoveTopBtn(); 
}


