//MENU OPTIONS

// the number you pass to initLeft doesn't matter since it will get
// changed onactivate

var servicesMenu = new ypSlideOutMenu("services", "down", 0,0,110,431)
var bookingMenu = new ypSlideOutMenu("booking", "down", 0,0,130,100)
//specialMenu.onactivate = function() { repositionMenu(specialMenu, 201); }
//servicesMenu.onactivate = function() { repositionMenu(servicesMenu, -113); }
//bookingMenu.onactivate = function() { repositionMenu(bookingMenu, -50); }
function repositionMenu(menu, offset)
{
	// the new left position should be the center of the window + the offset
	var newLeft = getWindowWidth() / 2 + offset;

	// setting the left position in netscape is a little different than IE
	menu.container.style ? menu.container.style.left = newLeft + "px" : menu.container.left = newLeft;
}
 
// this function calculates the window's width - different for IE and netscape
function getWindowWidth()
{
	return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
}

//-->zzz