/*************************************************************************/
/*
//??운 ?크?(NS?서??구문 ?간 ?정?야 ????용????니??)
self.onError=null;
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat() {
if(IE) { 
diffY = document.body.scrollTop; 
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;
} 
} 
if(NS || IE) action = window.setInterval("heartBeat()",1);
*/

/************************************************************************* by sonix*/
//??? ?? ?크?
IE = (navigator.appName == "Microsoft Internet Explorer") ? 1: 0;
NS = (navigator.appName == "Netscape") ? 1: 0;
function Move(){
	if(IE) windowHeight = document.body.clientHeight;
	if(NS) windowHeight = self.innerHeight;
	if(IE) scrollY = document.body.scrollTop;
	if(NS) scrollY = self.pageYOffset;
	if(IE) scHeight = document.body.scrollHeight;
	if(NS) scHeight = document.body.scrollHeight;
//if(NS) alert(document.getElementById('floater').style.top);
//divTop = showDiv.style.top;
	if(IE || NS) divHeight = 552;

/*??스??
	document.getElementById('td0').style.top = windowHeight / 2 + scrollY;
	str = 'clientHeight/innerHeight='+windowHeight+'<br>scrollTop/pageYOffset='+scrollY+'<br>scrollHeight/innerHeight+pageYOffset='+scHeight+'<br>'
	str = str + '브라?? ?면 ?이(availHeight) :' + screen.availHeight + '<br>'
 	//str = str + '브라?? ?면 ?비(availWidth) :' + screen.availWidth + '<br>'
 	str = str + '?스???상?의 ?????이(height) :' + screen.height + '<br>'
 	//str = str + '?스???상?의 ?????비(width) :' + screen.width + '<br>'
 	//str = str + '?상??colorDepth) :' + screen.colorDepth + '<br>'
 	//str = str + '????비트??pixelDepth) :' + screen.pixelDepth;
	document.getElementById('td0').innerHTML = str;
*/

	if(scrollY == 0) {
		if(IE) document.all.floater.style.top = scrollY;
		if(NS) document.getElementById('floater').style.top = scrollY;
	}
	else if(scrollY + divHeight > scHeight - 140) { //140 = bottom height
		if(IE) return; 
		if(NS) return;
	}
	else {
		if(IE) document.all.floater.style.top = scrollY - 10; 
		if(NS) document.getElementById('floater').style.top = scrollY - 10;
	}
}
if(IE) document.body.onload = document.body.onscroll = document.body.onresize = Move;
if(NS) window.setInterval("Move()",10);
