//Å¾¹öÆ° ½º¹«½ºÇÏ°Ô ¿Ã¶ó°¡±â
function goTop(orix,oriy,desx,desy) {
		var Timer;
		var winHeight = document.body.scrollTop;
		if(Timer) clearTimeout(Timer);
		startx = 0;
		starty = winHeight;
		if(!orix || orix < 0) orix = 0;
		if(!oriy || oriy < 0) oriy = 0;
		var speed = 7;
		if(!desx) desx = 0 + startx;
		if(!desy) desy = 0 + starty;
		desx += (orix - startx) / speed;
		if (desx < 0) desx = 0;
		desy += (oriy - starty) / speed;
		if (desy < 0) desy = 0;
		var posX = Math.ceil(desx);
		var posY = Math.ceil(desy);
		window.scrollTo(posX, posY);
		if((Math.floor(Math.abs(startx - orix)) < 1) && (Math.floor(Math.abs(starty - oriy)) < 1)){
			clearTimeout(Timer);
			window.scroll(orix,oriy);
		}else if(posX != orix || posY != oriy){
			Timer = setTimeout("goTop("+orix+","+oriy+","+desx+","+desy+")",1);//¿Ã¶ó°¡´Â ¼Óµµ(³·À»¼ö·Ï ºü¸§)
		}else{
			clearTimeout(Timer);
		}
	}
//Å¾¹öÆ° ½º¹«½ºÇÏ°Ô ¿Ã¶ó°¡±â

function GoTop_Call() {
	document.body.ondblclick = Top;	
}


var Xpos = 0;
var Ypos = 0;
var Ygravity = 0.85;
var scrollPos = 0;
var oldScrollPos = 0;


function FloatMenu() {
docWidth = document.body.clientWidth; // Update document width
docHeight = document.body.clientHeight; // Update document height
oldScrollPos = scrollPos;
scrollPos = document.body.scrollTop; // Update scrollbar position

Xpos = 881;
//Xpos = (docWidth - Layer1.offsetWidth) - 10; //¿À¸¥ÂÊ ¿©¹é ¹è³Ê°¡ ¿À¸¥ÂÊ¿¡ ºÙÀ»°æ¿ì
//Xpos = (docWidth / 2) + 410; // Áß¾ÓÁ¤·ÄÀÏ°æ¿ì. " + 410 Àº Å×ÀÌºí Å©±â / 2 "
Yboundary = (scrollPos) +101; //»ó´Ü¿©¹é

if (Layer1.offsetTop > Yboundary + 1) // Object is behind boundary
Ypos -= 1;

if (Layer1.offsetTop < Yboundary - 1) // Object is past boundary
Ypos += 2;

Ypos *= Ygravity; // Slow object down

Layer1.style.pixelLeft = Xpos;
Layer1.style.pixelTop += Ypos; // Make object bounce

}

window.setInterval("FloatMenu()", 1); //¸Å°³º¯¼öÁß µÞÂÊ ¼ýÀÚ´Â ³»·Á¿À´Â ¼Óµµ


