<!--
	// Browser Detection
	function BrowserCheck() {
		var b = navigator.appName;
		if (b=="Netscape") this.b = "ns";
		else if (b=="Microsoft Internet Explorer") this.b = "ie";
		else this.b = b;
		this.version = navigator.appVersion;
		//if (this.version.indexOf('Win')>0) this.os = "PC";
		//else if (this.version.indexOf('Mac')>0) this.os = "Mac";
		this.WinOs = (this.version.indexOf('Win')>0);
		this.v = parseInt(this.version);
		this.ns = (this.b=="ns" && this.v>=4);
		this.ns4 = (this.b=="ns" && this.v==4);
		this.ns5 = (this.b=="ns" && this.v==5);
		this.ie = (this.b=="ie" && this.v>=4);
		this.ie4 = (this.version.indexOf('MSIE 4')>0);
		this.ie5 = (this.version.indexOf('MSIE 5')>0);
		this.ie6 = (this.version.indexOf('MSIE 6')>0);
		this.min = (this.ns||this.ie);
	}
	var browser = new BrowserCheck();

	var topPosition = 163;
	if (!browser.WinOs && browser.ie){
		topPosition -= 1;
	} else if (browser.ns){
		topPosition -= 7;
	}


	function getWindowWidth()
	{
		return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
	}


	//var windowWidth = getWindowWidth;
	//var menu1Left = ((windowWidth - 728) / 2) + myOffset;
	//alert("menu1left: "+menu1Left);

		// the number you pass to initLeft doesn't matter since it will get
		// changed onactivate
		var menu1 = new ypSlideOutMenu("menu1", "down", 0, topPosition, 150, 90)
		var menu2 = new ypSlideOutMenu("menu2", "down", 0, topPosition, 150, 15)
		var menu3 = new ypSlideOutMenu("menu3", "down", 0, topPosition, 150, 60)
    // for each menu, we set up hte onactivate event to call repositionMenu with the amount offset from center, in pixels
		menu1.onactivate = function() { repositionMenu(menu1, -170); }
		menu2.onactivate = function() { repositionMenu(menu2, -50); }
		menu3.onactivate = function() { repositionMenu(menu3, 60); }
    // this function repositions a menu to the speicified offset from center
		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;
		}	
		// -->