
	// [s] :: 움직이는 레이어 스크립트
	//*************************************************************************
	var iex, iey;
	var tempx, tempy;
	var layer;
	var dragapproved = false;

	function drag_dropie() {
		if (dragapproved == true) {
			document.getElementById(layer).style.pixelLeft = tempx+event.clientX-iex;
			document.getElementById(layer).style.pixelTop = tempy+event.clientY-iey;
			return false;
		}
	}

	function initializedragie(val) {
		layer = val;
		iex = event.clientX;
		iey = event.clientY;
		tempx = document.getElementById(layer).style.pixelLeft;
		tempy = document.getElementById(layer).style.pixelTop;
		dragapproved = true;
		document.onmousemove = drag_dropie;
	}

	if (document.all) {
		document.onmouseup = new Function("dragapproved=false")
	}

	function terminatedragie(val) {
		dragapproved = false;
	}
	//*************************************************************************
	// [e] :: 움직이는 레이어 스크립트
	


	
	// [s] :: 공지 팝업/레이어 띄우기 스크립트
	//********************************************************************************************
	// Cookie 생성
	function getCookie(name) {
		var nameOfCookie = name + "="; 
		var x = 0; 
		while (x <= document.cookie.length) {
			var y = (x+nameOfCookie.length); 
			if (document.cookie.substring(x, y) == nameOfCookie) {
				if ((endOfCookie=document.cookie.indexOf(";", y)) == -1)
					endOfCookie = document.cookie.length; 
				return unescape(document.cookie.substring(y, endOfCookie)); 
			}

			x = document.cookie.indexOf( " ", x ) + 1; 
			if(x == 0)
				break; 
		} 
		return ""; 
	}

	// Cookie 제거
	function setCookie(name, value, expiredays) { 
        var todayDate = new Date(); 
        todayDate.setDate( todayDate.getDate() + expiredays ); 
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
	} 



	// 공지 팝업 띄우기
	function openNoticePopup(num, w, h, x, y) {
		if (getCookie("noticeCookie_"+num) != "done") {		//새창을 띄우는 함수 
			window.open("/_common/popup/notice_popup.asp?seq="+num, "noticePopup"+num, "width="+w+",height="+h+",left="+x+",top="+y);
		}
	}

	function openNoticePopupScroll(num, w, h, x, y) {
		if (getCookie("noticeCookie_"+num) != "done") {		//새창을 띄우는 함수 
			window.open("/_common/popup/notice_popup.asp?seq="+num, "noticePopup"+num, "width="+w+",height="+h+",left="+x+",top="+y+",scrollbars=yes");
		}
	}


	// 공지 팝업 그만 띄우기
	function onlyCloseNoticePopup(num) { 
		setCookie("noticeCookie_"+num, "done" , 1); 
		window.close();
	} 



	// 공지 레이어 띄우기
	function openNoticeLayer(num) {
		if (getCookie("noticeCookie_"+num) != "done") {		//새창을 띄우는 함수 
			document.getElementById("noticeLayer_"+num).style.display = "block";
		}
	}

	// 공지 레이어 닫기
	function closeNoticeLayer(num) {
		document.getElementById("noticeLayer_"+num).style.display = "none";
	}

	// 공지 레미어 그만 띄우기
	function onlyCloseNoticeLayer(num) { 
		setCookie("noticeCookie_"+num, "done" , 1); 
		closeNoticeLayer(num);
	} 
	//********************************************************************************************
	// [e] :: 공지 팝업/레이어 띄우기 스크립트


/*
	function window::onLoad() {
		openNoticeLayer("1");
		openNoticeLayer("2");
		openNoticeLayer("3");
	}
*/

