// JavaScript Document

// active page
function ActivePage(Matching,ImgId) {
	PageUrl = document.URL;
	if (PageUrl.match(/\/$/)) {
		PageUrl = PageUrl + 'index.html';  // for toppage
	}
	re = new RegExp(Matching, "i");
	ImgFilePath = document.getElementById(ImgId).src;
	
	if (PageUrl.match(re)) {
		document.getElementById(ImgId).src = ImgFilePath.replace('_off.','_on.');
	}
}

// top_menu
function visible(IdName) {
	document.getElementById(IdName).style.display='block';
}
function invisible() {
	document.getElementById(IdName).style.display='none';
}
