function lien(lien)
{
	alert("Vous allez quitter le site Amiens Métropole.");
	window.open(lien);
}

function pop(N1,i)
{
N1_string = String(N1)
N1 = eval(N1)
if(document.getElementById("N1_"+N1_string+"_N2_"+i+"_N3_1").style.display=="none")
  {
    for (j=1;j<N1[i].length;j++)
      document.getElementById("N1_"+N1_string+"_N2_"+i+"_N3_"+j).style.display = "block"  
  }
  else
  {
    for (j=1;j<N1[i].length;j++)
      document.getElementById("N1_"+N1_string+"_N2_"+i+"_N3_"+j).style.display = "none"  
  }
}

function calque(N1,ssrub,color1,color2)
{
	N1_string = String(N1)
	N1 = eval(N1)
// PREPARATION DU MENU PUIS AFFICHAGE
	BLOC = '<DIV ID='+N1_string+' class="N1" style="background-color:'+color1+'"><img src="/images/integration/fleche-rub.gif" align="absmiddle" alt="**">&nbsp;&nbsp;'+N1[0][0];
	
	for (i=1;i<N1.length;i++)
	{
	  if (N1[i].length !=1)
      {
      BLOC = BLOC+'<div class="N2" id="N1_'+N1_string+'_N2_'+i+'" onClick=pop("'+N1_string+'",'+i+') style="background-color:'+color2+'"><img src="/images/integration/fleche-ssrub.gif" align="absmiddle" alt="*">&nbsp;&nbsp;'
      BLOC = BLOC+= N1[i][0];

    	for (j=1;j<N1[i].length;j++)
    	{
        BLOC = BLOC+= '<div class="N3" id="N1_'+N1_string+'_N2_'+i+'_N3_'+j+'" style="background-color:'+color2+'">'+N1[i][j]+'</div>'
     	}
      BLOC = BLOC+= '</div>'
      }
	  else
	  {
		  BLOC = BLOC+'<div class="N2" id="N1_'+N1_string+'_N2_'+i+'"" style="background-color:'+color2+'"><img src="/images/integration/fleche-ssrub.gif" align="absmiddle" alt="*">&nbsp;&nbsp;'+N1[i][0]+'</div>'
	  }
	}
    BLOC = BLOC + '</DIV>'
  document.write(BLOC)

//##########################################
// CACHE LES NIVEAUX 3
	for (i=0;i<N1.length;i++)
	{
	  if (N1[i].length !=1)
      {
		  if (ssrub!=i)
		  	{
			for (j=1;j<N1[i].length;j++)
			   document.getElementById("N1_"+N1_string+"_N2_"+i+"_N3_"+j).style.display = "none"  
			}
		   
      }
	}
//#####################
}

function fenetreplan(lien)
	{
	window.open(lien,'mini','toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=630');
	}


function titre_principal(titre,color){
	//color = "#DC1432";
	document.write("<div class='titre_principal' style='background-color:"+color+"'><img src='/images/integration/fleche-rub.gif' align='absmiddle' alt='*'>&nbsp;"+titre+"</div>")
}

function titre_droite(titre,color){
	document.write("<div class='titre_droite' style='background-color:"+color+"'><img src='/images/integration/fleche-rub.gif' align='absmiddle' alt='*'>&nbsp;"+titre+"</div>")
}

function titre(titre,color)
{
	//color = "#DC1432";
	document.write("<div class='titre_ponctuel_0'><div class='titre_ponctuel' style='background-color:"+color+"'><img src='/images/integration/fleche-rub.gif' align='absmiddle' alt='*'>&nbsp;"+titre+"</div></div>")
}

///////////     MAISON DU THEATRE     //////////////////

function arr()
{
	document.getElementById("arr").style.display ="block";
	document.getElementById("log").style.display ="none";
	document.getElementById("pla").style.display ="none";
	document.getElementById("qua").style.display ="none";
	document.getElementById("sal").style.display ="none";
}
function log()
{
	document.getElementById("arr").style.display ="none";
	document.getElementById("log").style.display ="block";
	document.getElementById("pla").style.display ="none";
	document.getElementById("qua").style.display ="none";
	document.getElementById("sal").style.display ="none";
}
function pla()
{
	document.getElementById("arr").style.display ="none";
	document.getElementById("log").style.display ="none";
	document.getElementById("pla").style.display ="block";
	document.getElementById("qua").style.display ="none";
	document.getElementById("sal").style.display ="none";
}
function qua()
{
	document.getElementById("arr").style.display ="none";
	document.getElementById("log").style.display ="none";
	document.getElementById("pla").style.display ="none";
	document.getElementById("qua").style.display ="block";
	document.getElementById("sal").style.display ="none";
}
function sal()
{
	document.getElementById("arr").style.display ="none";
	document.getElementById("log").style.display ="none";
	document.getElementById("pla").style.display ="none";
	document.getElementById("qua").style.display ="none";
	document.getElementById("sal").style.display ="block";
}



