
	
	
	//퀵메뉴 Move
	function fctInitMoving(target, position, topLimit, btmLimit) {
		 if (!document.getElementById(target)) return false;
		
		 var obj = document.getElementById(target);
		
		 obj.initTop = position;
		 obj.topLimit = topLimit;
		 obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;
		
		 obj.style.position = "absolute";
		 obj.top = obj.initTop;
		 obj.left = obj.initLeft;
		
		 if (typeof(window.pageYOffset) == "number") {
		 obj.getTop = function() {
		 return window.pageYOffset;
		 }
		 } else if (typeof(document.documentElement.scrollTop) == "number") {
		 obj.getTop = function() {
		 return document.documentElement.scrollTop;
		 }
		 } else {
		 obj.getTop = function() {
		 return 0;
		 }
		 }
		
		 if (self.innerHight) {
		 obj.getHeight = function() {
		 return self.innerHeight;
		 }
		 } else if (document.documentElement.clientHeight) {
		 obj.getHeight = function() {
		 return document.documentElement.clientHeight;
		 }
		 } else {
		 obj.getHeight = function() {
		 return 500;
		 }
		 }
		
		 obj.move = setInterval(function() {
		 if (obj.initTop > 0) {
		 pos = obj.getTop() + obj.initTop;
		 } else {
		 pos = obj.getTop() + obj.getHeight() + obj.initTop;
		 }
		
		 if (pos > obj.bottomLimit) pos = obj.bottomLimit;
		 if (pos < obj.topLimit) pos = obj.topLimit;
		
		 interval = obj.top - pos;
		 obj.top = obj.top - interval / 3;
		 obj.style.top = obj.top + "px";
		
		 // 퀵메뉴 위치잡기
		 if ((document.body.offsetWidth/2 + 450) <= 900) {
			 left = document.body.offsetWidth / 2 + 450;
		 }else{
			 left = document.body.offsetWidth / 2 + 420;
		 }
		 obj.style.left = left + "px"; 
		 }, 10)
		
	}
	
	//퀵메뉴 Layer 위치 잡기
	function fctLayerPosition(target) {
		
	 var obj = document.getElementById(target);
	
	 layerLeftPosition = (document.body.offsetWidth / 2) + 450;
	 
	 if (layerLeftPosition <= 900) {
		 layerLeftPosition = document.getElementById("main").offsetWidth + 15;//960;
	 }
	 
	 obj.style.left = layerLeftPosition + "px";
	 alert(document.getElementById("main").offsetWidth);
	 //fctSetheader_notice();
	 //fctSetheader_background();
	}
	
	function goUp(){ //top 버튼 (맨위로 가기)
		window.scroll(0,0);
	}


