<!--
var yPosition = 260;
new ypSlideOutMenu("menu1", "down", 37, yPosition + 41, 250, 180)
new ypSlideOutMenu("menu2", "down", 129, yPosition + 41, 250, 180)
new ypSlideOutMenu("menu2a", "right", 251, yPosition + 41, 250, 180)
new ypSlideOutMenu("menu2ab", "right", 378, yPosition + 91, 250, 180)
new ypSlideOutMenu("menu3", "down", 298, yPosition + 41, 250, 180)
new ypSlideOutMenu("menu4", "down", 577, yPosition + 41, 250, 180)
new ypSlideOutMenu("menu4a", "right", 734, yPosition + 41, 160, 100)
new ypSlideOutMenu("menu5", "down", 214, yPosition + 41, 250, 180)
new ypSlideOutMenu("menu5a", "right", 443, yPosition + 41, 250, 180)
new ypSlideOutMenu("menu5b", "right", 443, yPosition + 67, 250, 180)
new ypSlideOutMenu("menu5ba", "right", 601, yPosition + 67, 250, 180)
new ypSlideOutMenu("menu5c", "right", 443, yPosition + 93, 250, 180)
new ypSlideOutMenu("menu5d", "right", 443, yPosition + 171, 250, 180)
new ypSlideOutMenu("menu6", "down", 692, yPosition + 125, 250, 180)
		
		
		function repositionMenu(menu, offset)
		{
			var newLeft = getWindowWidth() / 2 + offset;
			menu.container.style ? menu.container.style.left = newLeft + "px" : menu.container.left = newLeft;
		}
		function getWindowWidth()
		{
			return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
		}	


    ypSlideOutMenu.writeCSS();