﻿function getPositionV2(){
	var start, end, scale, term;
	start = parseInt (document.getElementById('quicktop').style.top, 0);
	if ( window.navigator.userAgent.indexOf('MSIE 7') <= 0 && window.navigator.userAgent.indexOf('Firefox/') <= 0 )
	{
		end = document.getElementById('layoutWrap').scrollTop + 0;
	}
	else {
		end = document.documentElement.scrollTop + 0;
	}
	term = 5;

	if ( start != end ) {
	scale = Math.ceil( Math.abs( end - start ) / 20 );
		if ( end < start )	scale = -scale;
		document.getElementById('quicktop').style.top = parseInt (document.getElementById('quicktop').style.top, 0)+ scale + "px";
		term = 1;
	}
	setTimeout ("getPositionV2()", term);
}
function moveBanner() {
	document.getElementById('quicktop').style.top = document.documentElement.scrollTop + 0 + "px"; //숫자가 같으면 슬라이드 없다.
	getPositionV2();
	return true;
}

function FloatingDIV()
{
	moveBanner();
}
