function toggleDiv(divId, half) {
	var div=document.getElementById(divId);
	if (!div) return;
	if (half) {
		if (div.offsetHeight == div.scrollHeight)
			div.style.height=div.scrollHeight/2;
		else
			div.style.height=div.scrollHeight;
	}else{
		if (div.style.display == 'none')
			div.style.display='block';
		else
			div.style.display='none';
	}
}

function blogGo(userSeq) {
	if (!userSeq) return;
	if (parseInt(userSeq).toString() == userSeq)
		document.location='/kms/blog/blog.jsp?user_seq='+userSeq;
	else
		open(userSeq);
}

function clubGo(clubId) {
	if (clubId)
		open('/kms/club/club_index.jsp?club_seq='+clubId);
}

function plazaNoUserImg(img) {
	img.src="/kms/plaza/img/knowledge/no_img.gif";
}

function plazaGoCategory(section, catId) {
	switch (parseInt(section)) {
		case 3:
			top.document.location="/kms/plaza/index_know.jsp?section="+section+"&catId="+catId;
		break;
		case 2:
			top.document.location="/kms/plaza/index_local.jsp?section="+section+"&catId="+catId;
		break;
		default:
			top.document.location="/kms/plaza/index_qna.jsp?section="+section+"&catId="+catId;
		break;
	}
}

function logout() {
	if (!confirm('·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?')) return;
	document.location="/kms/login/logout.jsp";
}