function showmenu(id, menunum, parent)
{
  themenu=document.getElementById(id);
  if(themenu) {
	themenu.style.visibility = "visible";
  	// if(parent == '0') {
  	//   themenu.style.top = 122 + (menunum + 1) * 26;
  	// } else {
  	parentmenu = document.getElementById(parent);
	if(parentmenu) {
  	  themenu.style.left = parseInt(parentmenu.style.left);
	  themenu.style.top = parseInt(parentmenu.style.bottom);
	}
  	// }
  }
}

function hidemenu(id) {
  themenu=document.getElementById(id);
  if(themenu) {
    themenu.style.visibility = "hidden";
  }
}

function goHome() {
	var re = new RegExp("^\\/([a-z][a-z])\\/");
	var m = re.exec(window.location.pathname);
	if(m && m[1]) {
		window.location.pathname = '/' + m[1] + '/';
	} else {
		window.location.pathname = '/';
	}
}

