<!--
	// 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 eval(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.top = from;
		}
		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;
	}

	function positionLayers()
	{
		var pos;
		if(netscape)
		{
			screenWidth = window.innerWidth-10;
			if(screenWidth > 750) pos = (screenWidth-750)/2;
			else pos=2;
			offset = 750/4;

			document.layers['About'].left=pos;
			document.layers['Work'].left=pos+offset;
			document.layers['Order'].left=pos+(offset*2)-1;
			document.layers['Other'].left=pos+(offset*3)-1;
			document.layers['Menu'].left=pos-8;
		}
		else
		{
			screenWidth = (document.body.clientWidth) + 4;
			if(screenWidth > 750) pos = (screenWidth-750)/2;
			else pos=2;
			pos = parseInt(pos);
			offset = 750/4;

			document.getElementById("About").style.left=pos
			document.getElementById("Work").style.left=pos+offset;;
			document.getElementById("Order").style.left=pos+(offset*2)-1;
			document.getElementById("Other").style.left=pos+(offset*3)-1;
		}
	}
//-->