function swap() {
	this.className="Over";
	if ((oldNav != this.id) && (oldNav != "")) {
		document.getElementById(oldNav).className = "Hidden";
	}
}
function swapBack() {
	this.className="Hidden";
	if(oldNav != "") {
		document.getElementById(oldNav).className = "Over";
	}
}


function mainMenu() {
	if (document.getElementById) {
	var mainTarget = document.getElementById("nav");
	var LI = mainTarget.getElementsByTagName("li");
	var zLI= LI.length;
		for (var k=0; k<zLI; k++) {
			LI[k].onmouseover = swap;
			LI[k].onmouseout = swapBack;
		}
	}
}

function oldActive(oldNav) {
	document.getElementById(oldNav).className = "Over";
}

window.onload = function() {
	mainMenu();
}
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function musicFct(musicBtn) {
	var monflash=getFlashMovieObject("son");
	var currentFrame=monflash.TGetProperty("/", 4);
	if(document.getElementById(musicBtn).className == "musicon"){
		document.getElementById(musicBtn).className = "musicoff";
		monflash.GotoFrame(2);
		document.cookie = "son = 1";
		return false;
		
	}else{
		document.getElementById(musicBtn).className = "musicon";
		monflash.GotoFrame(4);
		document.cookie = "son = 0";
		return false;
		
	}
}
