function menu(){
var link = new Array();
  for(x=0;x<=6;x++){
    link[x]=document.getElementById('m'+x);
    link[x].onmouseover = new Function ("this.style.overflow='visible';document.getElementById('bg"+x+"').style.visibility='visible';")
    link[x].onmouseout = new Function ("this.style.overflow='hidden';document.getElementById('bg"+x+"').style.visibility='hidden';")
  }
}

function flip (id,w) {
	if (document.getElementById(id).style.display=='none' || w=='on') document.getElementById(id).style.display='';
	else document.getElementById(id).style.display='none';
	return false;
}

function f (id,dir)  { document.getElementById(id).style.visibility = (dir)?'visible':'hidden'; }

function dialog (url) {
	var top = (screen.height - 350) / 2;
	var left = (screen.width - 120) / 2;
	window.open(url,'image','top=' + top + ',left=' + left + ',width=350,height=120,toolbar=0,menubar=0,resizable=0');
}
