document.writeln("<div id=\"div_top\" style=\"position:absolute; left:910px; top: 300px;\">");
document.writeln("<table width=\"24\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr>");
document.writeln("	<td><img src=\"/images/company/top_btn_bg.gif\"></td>");
document.writeln("	<td><a href=\"#\" onFocus='this.blur()'><img src=\"/images/company/top_btn.gif\" border=\"0\" hspace=\"0\" vspace=\"0\"></a></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</div>");

var scroll_pixel,div_pixel,gtpos,gbpos,loop,moving_spd;
var top_margin = 400;         /// Ã¢ÀÇ ¸ÇÀ§¿ÍÀÇ ¿©¹é ³»·Á¿Ã¶§
var top_margin2 = 400;      /// Ã¢ÀÇ ¸ÇÀ§¿ÍÀÇ ¿©¹é ¿Ã¶ó¿Ã¶§ 
var speed = 20;            /// Á¡Â÷ ÁÙ¾îµå´Â ¼Óµµ¸¦ À§ÇÑ ¼³Á¤           
var speed2 = 15;           /// setTimeoutÀ» À§ÇÑ ¼Óµµ ¼³Á¤
var moving_stat = 1;      /// ¸Þ´ºÀÇ ½ºÅ©·ÑÀ» ·Îµù½Ã on/off¼³Á¤ 1=¿òÁ÷ÀÓ 0Àº ¸ØÃã 

function check_scrollmove() {
	scroll_pixel = document.body.scrollTop;
	gtpos = document.body.scrollTop+top_margin;
	gbpos = document.body.scrollTop+top_margin2;

	if(div_top.style.pixelTop < gtpos) { 
		 moving_spd = (gbpos-div_top.style.pixelTop)/speed;
		 div_top.style.pixelTop += moving_spd;    
	}

	if(div_top.style.pixelTop > gtpos){
		 moving_spd = (div_top.style.pixelTop-gtpos)/speed;
		 div_top.style.pixelTop -= moving_spd;
	}
	loop = setTimeout("check_scrollmove()",speed2);
}

function moving_control(){
	if(!moving_stat){ check_scrollmove(); moving_stat = 1;}
	else{ clearTimeout(loop); moving_stat = 0; div_top.style.pixelTop = top_margin;}
}

check_scrollmove();