var oUnPopTimer;
var bKeepPop = false;

function Pop(sDivID, sVisibility) {
	var oStyle = document.getElementById(sDivID).style;
	if (sVisibility)
		oStyle.visibility = sVisibility;
	else
		if (oStyle.visibility=='visible')
			oStyle.visibility = 'hidden';
		else
			oStyle.visibility = 'visible';

	clearInterval(oUnPopTimer);
}

function unPop(sDivID) {
	clearInterval(oUnPopTimer);
	oUnPopTimer = setInterval('Pop("'+sDivID+'", "hidden")', 500);
}

function keepPop() {
	clearInterval(oUnPopTimer);
}

function Activate(sDivID) {
	if (sDivID == 'ej_menu_js') {
		document.getElementById('ej_menu_js').className = 'option active';
		document.getElementById('ej_menu_jp').className = 'option';
	}
	else {
		document.getElementById('ej_menu_js').className = 'option';
		document.getElementById('ej_menu_jp').className = 'option active';
	}
}

function Show(sDivID, sDisplay) {
	var oStyle = document.getElementById(sDivID).style;
	oStyle.display = sDisplay;
}

function Hide(sDivID) {
	var oStyle = document.getElementById(sDivID).style;
	oStyle.display = 'none';
}
