// JavaScript Document
var hoverOffset= '-40px';

function initMB(variation)
{
	enableBB();
	var menuID= 'menuBar';
	if(typeof(variation) == "string")
	{
		menuID += variation;
		hoverOffset= '-'+variation+'px';
	}
	var elMenu= document.getElementById(menuID);
	var imgs= elMenu.getElementsByTagName('img');
	for(var i= 0; i < imgs.length; i++)
	{
		imgs[i].onmouseover= hover;
		imgs[i].onmouseout= hoverOut;
	}
}
function hover()
{
	this.style.top= hoverOffset;
}
function hoverOut()
{
	this.style.top= "0px";
}
function enableBB()
{
	var bb= document.getElementById('bb');
	if(bb) bb.style.display= 'block';
}
