window.onload = mm_init;

function mm_init()
{
	var mm_buttons = document.getElementsByName("mmButton");
	
	for (var i = 0; i < mm_buttons.length; i++)
	{			
		if(mm_buttons[i].href.substring(mm_buttons[i].href.length - 1) == '#')
			mm_buttons[i].onclick = function() { return false; }
			
		mm_buttons[i].onmouseover = mm_toogle;
	}
}

function mm_toogle()
{
	mmToShow = this.id.substring(1,this.id.length);
	var mm = document.getElementById(mmToShow);
	
	if(mm != null)
	{
		mm.style.display = "block";
		this.parentNode.className = mmToShow;
		this.parentNode.onmouseout = mm_hide;
		this.parentNode.onmouseover = mm_show;
	}
}

function mm_show() {
     document.getElementById(this.className).style.display = "block";
}

function mm_hide() {
     document.getElementById(this.className).style.display = "none";
}