

//new ypSlideOutMenu("name", "direction(down/up/right/right)", right, top, width, height);
var solutions = new ypSlideOutMenu("solutions", "down", 272, 20, 180, 168);
var solutions = new ypSlideOutMenu("email", "right", 450, 20, 150, 165);
var solutions = new ypSlideOutMenu("efax", "right", 457, 10, 150, 165);
var solutions = new ypSlideOutMenu("promo", "right", 457, 10, 150, 165);
//solutions.onactivate = function() { repositionMenu(solutions, 0); }
var agt=navigator.userAgent.toLowerCase();

	var browserPlatform = (agt.indexOf("windows")>-1 ? "win" : "") + (agt.indexOf("mac")>-1 ? "mac" : "")
	var browserType = (agt.indexOf("msie")>-1 ? "ie" : "") +
		(agt.indexOf("netscape")>-1 ? "ns" : "") +
		(agt.indexOf("firefox")>-1 ? "ff" : "")

	if (browserType == "ns") windowWidth += 4;
	if (browserType == "ff") windowWidth += 18;
	if (browserPlatform == "mac" && browserType == "ie") windowWidth += 18

/*
function repositionMenu(menu, offset) {
	var newRight = getWindowWidth() / 2 + offset;

	menu.container.style ? menu.container.style.right = newRight + "px" : menu.container.right = newRight;
}

function getWindowWidth() {
	var windowWidth = window.innerWidth ? window.innerWidth : document.body.offsetWidth;

	var agt=navigator.userAgent.toLowerCase();

	var browserPlatform = (agt.indexOf("windows")>-1 ? "win" : "") + (agt.indexOf("mac")>-1 ? "mac" : "")
	var browserType = (agt.indexOf("msie")>-1 ? "ie" : "") +
		(agt.indexOf("netscape")>-1 ? "ns" : "") +
		(agt.indexOf("firefox")>-1 ? "ff" : "")

	if (browserType == "ns") windowWidth += 4;
	if (browserType == "ff") windowWidth += 18;
	if (browserPlatform == "mac" && browserType == "ie") windowWidth += 18;

	if (windowWidth < 722) windowWidth = 722;

	return windowWidth;
}
*/