// JavaScript Document
var _mx = -200;
var _d = 20;
var mx = -200;
var move_in = false;
var move_out = false;

//alert(app=navigator.userAgent);


function moveIn() {
	if (document.getElementById && move_out == false) {
		move_in = true;
		if(mx < 0) {
			mx = mx + _d;
			document.getElementById("MENU").style.left = mx.toString() + "px";
			//alert(document.getElementById("MENU").style.left);
			setTimeout("moveIn()", 1);
		}
		else {
			move_in = false;
			clearTimeout();
		}
	} else {
		move_in = false;
	}

}
function moveOut() {
	if (document.getElementById && move_in == false) {
		move_out = true;
		if(mx > _mx) {
			mx = mx - _d;
			document.getElementById("MENU").style.left = mx.toString() + "px";
			//alert(document.getElementById("MENU").style.left);
			setTimeout("moveOut()", 1);
		}
		else {
			move_out = false;
			clearTimeout();
		}
	} else {
		move_out = false;
	}
}

function show () {
	if (document.getElementById) {
		mx = 0
  	document.getElementById("MENU").style.left = mx.toString() + "px";
    }
}
function hide () {
	if (document.getElementById) {
		mx = _mx
		document.getElementById("MENU").style.left = mx.toString() + "px";
  	}
}

/* for the f.cking IE, which will never support web standards -- even if they are as old as the web */
/* this is commonly done by a simple tag:hover css statement *grmpf* */
function h(t) {
  t.className = "hover";
}
function dh(t) {
  t.className = "";
}
