	function showAbout() {
		// 배경 생성
		var wcWidth = window.getScrollWidth();
		var wcHeight = window.getScrollHeight();
		
		if (window.ie6) {
			wcWidth -= 22;
			wcHeight -= 4;
		}

		new Element('div', {
			'id': 'aboutBack',
			'styles': {
				width: wcWidth.px(),
				height: wcHeight.px(),
				position: 'absolute',
				top: 0,
				left: 100,
				opacity: 0.6,
				zindex: '1',
				backgroundColor: '#ffffff'
			}
		}).inject(document.body);

		document.getElementById('aboutBack').addEvent('click', function() { popupClose(this); document.getElementById('aboutDialog').style.display = 'none'; });
		document.getElementById('aboutDialog').style.display = 'block';
	};

	function showConfig() {
		// 배경 생성
		var wcWidth = window.getScrollWidth();
		var wcHeight = window.getScrollHeight();
		
		if (window.ie6) {
			wcWidth -= 22;
			wcHeight -= 4;
		}

		new Element('div', {
			'id': 'configBack',
			'styles': {
				width: wcWidth.px(),
				height: wcHeight.px(),
				position: 'absolute',
				top: 0,
				left: 100,
				opacity: 0.6,
				zindex: '1',
				backgroundColor: '#ffffff'
			}
		}).inject(document.body);

		document.getElementById('configBack').addEvent('click', function() { popupClose(this); document.getElementById('configDialog').style.display = 'none'; });
		document.getElementById('configDialog').style.display = 'block';

		// 설정사항 복원
		var uf;
		if (Cookie.get('useFilter') == false)
			uf = 'y';
		else
			uf = Cookie.get('useFilter');
		$('useFilter').checked = (uf == 'y' ? true : false);
	};

	function hideAbout() {
		popupClose(document.getElementById('aboutBack'));
		document.getElementById('aboutDialog').style.display = 'none';
	};

	function hideConfig() {
		popupClose(document.getElementById('configBack'));
		document.getElementById('configDialog').style.display = 'none';
	};

	function limitMent(obj) {
		document.getElementById('txtLength').innerHTML = 300-obj.value.length; 
		if (obj.value.length>300) obj.value = obj.value.substring(0, 300);
	};

	function getComments(no) {
		if ($('cmtRow_'+no).getStyle('display') == 'block') {
			$('cmtRow_'+no).setStyle('display', 'none');
		} else {
			$('cmtRow_'+no).setStyle('display', 'block');
			var loading = $('loading');
			new Ajax(miniDir + 'ajax.php', {
					onRequest: function () {
							loading.toggle('show');
							loading.center();
					},
					onComplete: function (item) {
							loading.toggle('hide');

							if (item) {
								var data = Json.evaluate(item);
								$('cmtList_'+no).innerHTML = data['html'];
								$('cmtForm_'+no).setStyle('display', 'block');
							} else {
								error('댓글을 가져오지 못했습니다. 잠시 후에 다시 시도해 주세요');
							}
					}, 
					onfailure: function () {
							loading.toggle('hidden');
							error('댓글을 가져오지 못했습니다. 관리자에게 연락해주십시오.');
					}
			}).send(miniDir + 'ajax.php?mode=getComments&no='+no);
		};
	};

/*	window.onload = function() {
		var isFirstVisit = !Cookie.get('iamvisited');
		if (isFirstVisit == true) {
			showAbout();
		};
		Cookie.set('iamvisited', true,{duration:1});
	};*/