function showBoard(where) {
	[$("noticeLayer"), $("pdsLayer")].each(function(div) {
		div.removeClassName("divShow");
		div.addClassName("divHide");
	});
	var targetLayer = $("{0}Layer".format(where));
	targetLayer.addClassName("divShow");
	targetLayer.down(".{0}Btn".format(where)).focus();
}
function jsMainLinkFunc(idx) {
	switch(idx) {
		case "1" :
			self.location.href = "/home/ccb/intro/GCH_BusinessIntro.do";
			break;
		case "2" :
			self.location.href = "/home/ngo/GCH_Woman.do";
			break;
		case "3" :
			self.location.href = "/home/corporate/GCH_Corporate.do";
			break;
		case "4" :
			self.location.href = "/ccbs/CCB_Login.do?returnURL=/ccbs/status/CCB_BusinessStateView.do";
			break;
	}
}
var nowZoom = 100; // 현재비율 
var maxZoom = 200; // 최대비율(500으로하면 5배 커진다) 
var minZoom = 80; // 최소비율
function zoomIn() { 
	if (nowZoom < maxZoom) { 
		nowZoom += 10; //25%씩 커진다. 
	} else {
		return;  
	}
	document.getElementById("wrap").style.zoom = nowZoom + "%"; 
} 
function zoomOut() {  
	if (nowZoom > minZoom) {   
		nowZoom -= 10; //25%씩 작아진다.  
	} else {
		return; 
	} 
	document.getElementById("wrap").style.zoom = nowZoom + "%"; 
}

function noticeView(seq) {
	$Util.UI.popup("/home/popup/GCH_NoticeDetail.do?seq={0}".format(seq), 590, 591, "noticeViewPop");
}

function pdsView(seq) {
	$Util.UI.popup("/home/popup/GCH_PdsDetail.do?seq={0}".format(seq), 590, 591, "pdsViewPop");;
}

function hongboView(seq) {
	self.location.href = "/home/ccb/pr/GCH_PrDetail.do?seq={0}".format(seq);
}
