// JavaScript Document
var mainMenu = new Array();
var subMenu = new Array();
var subMenuId,mainMenuId;
mainMenu = ['mainMenu8'];
subMenu = ['subMenu8'];
function showSubMenu(id){
	var obj = document.getElementById(id);
	subMenuId = id;
	for (i=0; i<subMenu.length; i++) {
		if (subMenuId == subMenu[i]){
			mainMenuId = mainMenu[i];
		}
	}
	if (obj) {
		obj.style.display = 'block';
		if (document.getElementById(mainMenuId))
			document.getElementById(mainMenuId).className = 'current';
		//alert(obj.style.visibility);
	}
	//hiddenSubMenu('');
}
function hiddenSubMenu(id){
	var obj;
	if (id){
			obj = document.getElementById(id);
			obj.style.display = 'none';
	}else{
		for (i=0; i<subMenu.length; i++) {
			obj = document.getElementById(subMenu[i]);
			if (subMenuId != subMenu[i]){
				obj.style.display = 'none';
			}
		}
	}
	if (document.getElementById(mainMenuId))
		document.getElementById(mainMenuId).className = '';
}
