document.write('<table width=900 border=0 align=center cellpadding=0 cellspacing=0>');
document.write('<tr>');
document.write('<td width=294><img src=/WebUiDemo/images/common/copyright.gif width=294 height=42 border=0 usemap=#Map></td>');
document.write('<td width=350 bgcolor=#E4E3DC>&nbsp;</td;>');
document.write(	'<td width=130 align="right" ><a href="http://www.ebizmart.co.kr/ "><img src=/WebUiDemo/images/common/footer_dacom.gif></a></td>');
document.write(	'<td ><a href="http://www.00db.co.kr"> <img src=/WebUiDemo/images/common/00db.gif></a></td>');
document.write(	'</tr>');
document.write(	'</table>');
document.write(	'<map name=Map>');
document.write(	'<area shape=rect coords=5,12,60,29 a href="http://www.lguplus.com/lguplus/kr/jsp/common/privacy.jsp" target=_blank>');
document.write(	'  <area shape=rect coords=70,12,128,27 href=/WebUiDemo/common/policy.asp>');
document.write(	'<area shape=rect coords=138,13,185,29 href=/WebUiDemo/common/agreement.asp>');
document.write(	'<area shape=rect coords=188,12,246,29 href=/WebUiDemo/customer/notice_ContactUs.asp>');
document.write(	'</map>');
document.write(	'<div id="LayerBox">');
document.write(	'<div id="Topgo" style="position:relative; top:450px;left:470px;">');
document.write(	'<a href="#"><img src="/WebUiDemo/images/common/top.gif" width="20" height="17"></a>');
document.write(	'</div></div>');


var stmnBASE = 150;
var stmnGAP = 300;
var stmnTop = 450;
//var stmnLeft = 810;
var stmnBTTM = 200;
var stmnActivateSpeed = 100;
var stmnScrollSpeed = 2;
var stmnTimer;
var bMove = 1;

// 0.5 sec after action
setTimeout('InitializeTopgo();',500);

function InitializeTopgo() {
//	if ( document.body.scrollHeight < 1000 ) return;
			
	Topgo.style.display = "inline";
			if ( stmnBASE == 150 ) stmnBASE = stmnTop;
			Topgo.style.top = stmnBASE;

			RefreshTopgo();
		}

function RefreshTopgo() {
			if (!bMove) return

			var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
			stmnStartPoint = parseInt(Topgo.style.top, 10);
			stmnEndPoint = document.body.scrollTop + stmnGAP;

			if (stmnEndPoint < stmnBASE) stmnEndPoint = stmnBASE;
			stmnRefreshTimer = stmnActivateSpeed;
			if ( stmnStartPoint != stmnEndPoint && stmnEndPoint <= (document.body.scrollHeight - stmnBTTM) ) {
				stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
				Topgo.style.top = parseInt(Topgo.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
				stmnRefreshTimer = stmnScrollSpeed;
			}
			stmnTimer = setTimeout ("RefreshTopgo();", stmnRefreshTimer);
		}
