function menuIn(id) {
	el =$$(id).getElementsByTagName("td");
	for (i=0;i<el.length;i++) {
		if (el[i].className=="menuhi") return 0;
		el[i].className = "menuover";
	}
}
function menuOut(id) {
	el =$$(id).getElementsByTagName("td");
	for (i=0;i<el.length;i++) {
		if (el[i].className=="menuhi") return 0;
		el[i].className = "menu";
	}
}
function subMenuIn(id) {
	el =$$(id).getElementsByTagName("td");
	for (i=0;i<el.length;i++) {
		if (el[i].className=="submenuhi") return 0;
		el[i].className = "submenuover";
	}
}
function subMenuOut(id) {
	el =$$(id).getElementsByTagName("td");
	for (i=0;i<el.length;i++) {
		if (el[i].className=="submenuhi") return 0;
		el[i].className = "submenu";
	}
}

function setOpacity(obj,ov) {
	el=document.getElementById(obj);
	el.style.opacity=ov/100;
	el.style.MozOpacity=ov/100;
  	el.style.KHTMLOpacity=ov/100;
	el.style.filter="alpha(opacity="+ov+")";
}
function fadeIn(objId,opacity,vmax) {
  if(!vmax)vmax=100;
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= vmax) {
      setOpacity(objId, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+","+vmax+")", 20);
    }
	else {fading=false;}
  }
}


function fadeOut(objId,opacity,sp) {
  if(!sp)sp=20;
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity > 0) {
      setOpacity(objId, opacity);
      opacity -= 10;
      window.setTimeout("fadeOut('"+objId+"',"+opacity+","+sp+")", sp);
    }
	else {
		obj.style.display="none";
		fading=false;
	}
  }
}

var fadeStep = 2;
var maxSteps = 25;
var currentFly = "";
var step = 0;


function debug(dText) {
	document.getElementById("debug").innerHTML=dText;
}


