<!--
	// Make window top layer
	if(window != top) top.location.href = location.href;

	var netscape = (document.layers) ? 1 : 0;
	var ie = (document.all) ? 1 : 0;
	var ver4 = (netscape || ie) ? 1 : 0;
	var loaded = false;

	var UP = 0;
	var DOWN = 1;
	var LEFT = 2;
	var RIGHT = 3;

	var workMenu, aboutMenu, orderMenu, otherMenu, workSub1, workSub2;

	function hideMenus()
	{
		workMenu.hide();
		aboutMenu.hide();
		orderMenu.hide();
		otherMenu.hide();
	}

	var hiding = -1;
	function prepareToHide(time)
	{
		if(hiding > -1)	clearTimeout(hiding);
		hiding = setTimeout("hideMenus()", time);
	}
	function cancelHide()
	{
		if(hiding > -1)
		{
			clearTimeout(hiding);
			hiding = -1;
		}
	}

	function findVPosition(menu)
	{
		var pos, i;
		if(netscape)
			i = eval("document.layers[menu].top");
		else
		{
			i = document.getElementById(menu).style.top;
			if((pos = i.indexOf("px")) > 0)	i = i.substring(0, pos);
		}
		return parseInt(i);
	}
	function findHPosition(menu)
	{
		var pos, i;
		if(netscape)
			i = eval("document.layers[menu].left");
		else
		{
			i = document.getElementById(menu).style.left;
			if((pos = i.indexOf("px")) > 0)	i = i.substring(0, pos);
		}
		return parseInt(i);
	}

	function getMenuFromName(menu)
	{
		if(menu == "\"Work\"") return workMenu;
		else if(menu == "\"About\"") return aboutMenu;
		else if(menu == "\"Order\"") return orderMenu;
		else if(menu == "\"Other\"") return otherMenu;
		return;
	}

	function isScrolling(menu, direction) { return menu.scrolling[direction]; }
	function setScrolling(menu, value, direction) { menu.scrolling[direction] = value; }

	function setVisiblity(value)
	{
		if(netscape) eval("document.layers['"+this.theMenu+"'].visibility = '"+value+"'");
		else document.getElementById(this.theMenu).style.visibility = value;
	}

	function scrollDown()
	{
		if(this.scrolling[DOWN]) return;
		if(this.scrolling[UP]) this.scrolling[UP] = false;
		this.scrolling[DOWN] = true;
		move("\""+this.theMenu+"\"", findVPosition(this.theMenu), this.bottom, this.speed, DOWN);
	}
	function scrollUp()
	{
		if(this.scrolling[UP])
			return;
		if(this.scrolling[DOWN])
			this.scrolling[DOWN] = false;
		this.scrolling[UP] = true;
		move("\""+this.theMenu+"\"", findVPosition(this.theMenu), this.top, this.speed, UP);
	}
	function scrollLeft()
	{
		if(this.scrolling[LEFT]) return;
		if(this.scrolling[RIGHT]) this.scrolling[RIGHT] = false;
		this.scrolling[LEFT] = true;
		move("\""+this.theMenu+"\"", findHPosition(this.theMenu), this.left, this.speed, LEFT);
	}
	function scrollRight()
	{
		if(this.scrolling[RIGHT]) return;
		if(this.scrolling[LEFT]) this.scrolling[LEFT] = false;
		this.scrolling[RIGHT] = true;
		this.setVisiblity("visible");
		move("\""+this.theMenu+"\"", findHPosition(this.theMenu), this.right, this.speed, RIGHT);
	}

	function move(menu, from, to, speed, direction)
	{
		var menuObj = getMenuFromName(menu);
		if(!isScrolling(menuObj, direction))
			return;
		if((direction == DOWN || direction == RIGHT))
		{
			if(from >= to)
			{
				setScrolling(menuObj, direction, false);
				menuObj.onVisible();
				return;
			}
			else if(from+speed > to) from = to;
			else from += speed;
		}
		else if((direction == UP || direction == LEFT))
		{
			if(from <= to)
			{
				setScrolling(menuObj, direction, false);
				menuObj.onHidden();
				return;
			}
			else if(from-speed < to) from = to;
			else from -= speed;
		}
		if(direction == UP || direction == DOWN)
		{
			if(netscape) eval("document.layers['"+menu.substring(1,menu.length-1)+"'].top = from");
			else document.getElementById(menu.substring(1,menu.length-1)).style.top = from;
		}
		else
		{
			if(netscape) eval("document.layers['"+menu.substring(1,menu.length-1)+"'].left = from");
			else document.getElementById(menu.substring(1,menu.length-1)).style.left = from;
		}
		var distLeft = Math.abs(to-from);
		var acceleration = 0.5;
//alert("DistLeft: "+distLeft+", dist to decellerate: "+((speed*speed) / (2.0 * acceleration))+", speed: "+speed);
		if(distLeft <= ((speed*speed) / (2.0 * acceleration)))
			speed = speed - acceleration;
		setTimeout("move('"+menu+"',"+from+","+to+","+speed+","+direction+")", 1);
	}

	function Menu(theMenu, bottom, right)
	{
		this.theMenu = theMenu;
		this.top = findVPosition(theMenu);
		this.left = findHPosition(theMenu);
		this.bottom = bottom;
		this.right = right;
		this.speed = 2;
		this.scrollDown = scrollDown;
		this.scrollUp = scrollUp;
		this.scrollLeft = scrollLeft;
		this.scrollRight = scrollRight;
		this.scrolling = new Array(4);
		this.scrolling[UP] = false;
		this.scrolling[DOWN] = false;
		this.scrolling[LEFT] = false;
		this.scrolling[RIGHT] = false;
		this.visible = false;
		this.setVisiblity = setVisiblity;
	}

	function initMenus()
	{
		initWork();
		initAbout();
		initOrder();
		initOther();
		loaded = true;
	}
//-->