
var menus=[],
_m3=window.external?[' style="width:100%;height:100%"','div onclick="','div']:['','a href="javascript:','a'],
_mC=document.getElementById?function(_mR){return document.getElementById(_mR)}:function(_mR){return document.all[_mR]};




function menu(_m1,_mO){
var _=this,i;_._m1=_m1;_._mO=_mO;_._mS='';_.id=menus.length;_._m0=[];
_._m2=[];
_._m4=[0,0];
_._mO[-1]={'firstX':20,'firstY':20,'nextX':15,'nextY':15,'width':100,'height':22,'hideAfter':200,'target':'_self','trace':0,'css':''};
for(i=0;i<_._m1.length;i++)
if(_._m1[i])
	new _mE(0,_,_,_._m1[i]);
for(i=0;i<_._m2.length;i++)_mA(_._m2[i],1);menus[_.id]=_;}



function _mD(_mK){
	var i,a=menus[_mK]._m0;
	for(i=0;i<a.length;i++){
		_mA(a[i],0);
		_mB(a[i],'norm');
	}
}


function _mF(_mK,_mI){
var m=menus[_mK],_=m._m0[_mI]._m1[1];
_mB(m._m0[_mI],'clck');
if(_)
	open(_,_m9(m._m0[_mI]._m8,m._mO,'target'));
}


function _mG(_mK,_mI){
var m=menus[_mK];m._mL=setTimeout('_mD('+_mK+')',_m9(m._mN._m8,m._mO,'hideAfter'));
if(m._mN.id==_mI)m._mN=null;
}


function _mH(_mK,_mI,c){
/*if (c=='selected')
	return;*/
var m=menus[_mK],_,_m7,i;m._mN=_=m._m0[_mI];if(m._mL)clearTimeout(m._mL);


for(i=0;i<m._m0.length;i++){
_=m._m0[i];
_m7=!m._mN._mS.indexOf(_._mT);
if(_m7)
_mB(_,_==m._mN?'over':'norm');
_mA(_,_m7);

}


if(m._mN._m6)
	for(i=m._mN;i&&i._m5;i=i._mP) {
		
			_mB(i,'over');
		}
		}
		


		
function _mE(l,p,m,_m1){
var _=this,i,c=p._m2.length,_mO=m._mO;
_._m1=_m1;
_._mP=p;_._mT=p._mS;_._mS=p._mS+c+':';_._m8=l;_.id=m._m0.length;m._m0[_.id]=_;p._m2[c]=_;
var id=m.id+','+_.id,nX,nY;_._m6=_m9(l,_mO,'trace');
for(i=l;i>=-1;i--){
if(_mO[i]&&_mO[i]['nextX']!=null)
nX=_mO[i]['nextX'];
if(_mO[i]&&_mO[i]['nextY']!=null)
nY=_mO[i]['nextY'];
if(nX!=null||nY!=null)
break;
}


_._m4=[p._m4[0]+_m9(l,_mO,'firstX')+(nX!=null?nX*c+_m9(l,_mO,'width')*c:0),

p._m4[1]+_m9(l,_mO,'firstY')+(nY!=null?nY*c+_m9(l,_mO,'height')*c:0)];

var lunghezze = 100;
var re0 = /chi/;
var re1 = /spettacoloa1/;
var re2 = /spettacolor1/;
var re7 = /spettacoloa2/;
var re8 = /spettacolor2/;
var re4 = /progetti/;
var re3 = /tour/;
var re5 = /scuola/;
var re6 = /contatti/;

var url = document.URL;
var identificatori = ['deselected','deselected','deselected','deselected','deselected','deselected','deselected','deselected','deselected','deselected'];

if (url.match(re0)!= null)
	identificatori[0] = 'selected';
	
if (url.match(re1)!= null || url.match(re7)!= null)
	identificatori[1] = 'selected';
	
if (url.match(re2)!= null || url.match(re8)!= null)
	identificatori[2] = 'selected';

if (url.match(re3)!= null)
	identificatori[3] = 'selected';

if (url.match(re4)!= null)
	identificatori[4] = 'selected';

if (url.match(re5)!= null)
	identificatori[5] = 'selected';
	
if (url.match(re6)!= null)
	identificatori[6] = 'selected';






	
	








if (id == "0,0")  {
_._m4[0] = 0;
lunghezze = 60; 
_link = 'href = "chi.htm"';
identificatore = identificatori[0];



}
else if (id == "0,1") {
 _._m4[0] = 80;
 lunghezze = 140;
 _link = '';
identificatore = identificatori[1];
 
}

else if (id == "0,2"){
    _link = 'href = "spettacoloa5.htm"';
    lunghezze = 190;
    identificatore = 'no';}

else if (id == "0,3"){
	_link = 'href = "spettacoloa3.htm"';
	lunghezze = 190;
	identificatore = 'no';}
else if (id == "0,4"){
	_link = 'href ="spettacoloa1.htm"';
	lunghezze = 190;
	identificatore = 'no';}
else if (id == "0,5"){
	_link = 'href = "spettacoloa2.htm"';
	lunghezze = 190;
	identificatore = 'no';}



else if (id == "0,6")
{
	_._m4[0] = 170;
	lunghezze = 150;
	_link ='';
	identificatore = identificatori[2];
}
else if (id == "0,7"){
	_link = 'href = "spettacolor3.htm"';
	lunghezze = 140;
	identificatore = 'no';}
else if (id == "0,8"){
	_link = 'href = "spettacolor2.htm"';
	lunghezze =140;
	identificatore = 'no';}

else if (id == "0,9"){
	_link = 'href = "spettacolor1.htm"';
	lunghezze =140;
	identificatore = 'no';}	
	
	
else if (id == "0,10")
	{
_._m4[0] = 290;
lunghezze = 60;
_link = 'href = "tour2009.htm"';
identificatore = identificatori[3];
}
else if (id == "0,11"){
_._m4[0] = 370;
lunghezze = 60;
_link = '';
identificatore = identificatori[4];
}
else if (id == "0,12"){
    _link = 'href = "progetto5.htm"';
    lunghezze = 140;
    identificatore = 'no';}


else if (id == "0,13"){
	_link = 'href = "progetto1.htm"';
	lunghezze = 140;
	identificatore = 'no';}
else if (id == "0,14"){
	_link = 'href ="progetto2.htm"';
	lunghezze = 140;
	identificatore = 'no';}
else if (id == "0,15"){
	_link = 'href = "progetto3.htm"';
	lunghezze = 140;
	identificatore = 'no';}
else if (id == "0,16"){
	_link = 'href ="progetto4.htm"';
	lunghezze = 140;
	identificatore = 'no';}
else if (id == "0,17")
{
_._m4[0] = 460;
lunghezze = 110;
_link = '';
identificatore = identificatori[5];
}
else if (id == "0,18"){
	_link = 'href = "scuola1.htm"';
	lunghezze = 190;
	identificatore = 'no';}
else if (id == "0,19"){
	_link = 'href ="scuola2.htm"';
	lunghezze = 190;
	identificatore = 'no';}
else  if (id =="0,20"){
_._m4[0] = 590;
lunghezze = 70;
_link = 'href = "contatti.htm"';
identificatore = identificatori[6];
}
else  if (id =="1,0"){
_._m4[0] = 40;
identificatore = 'no';
lunghezze = 290;
}
else  if (id =="1,1"){

lunghezze = 70;
_link = 'href = "TDC.pdf"';
identificatore = identificatori[7];
}
else  if (id =="1,2"){

lunghezze = 70;
_link = 'href = "TDC2008.pdf"';
identificatore = identificatori[8];

}


else  if (id =="1,3"){

lunghezze = 70;
_link = 'href = "Libretto TdC 09.pdf"';
identificatore = identificatori[8];

}

else  if (id =="1,4"){

lunghezze = 70;
_link = 'href = "TDC-010.jpg"';
identificatore = identificatori[8];

}


else  if (id =="1,5"){

lunghezze = 70;
_._m4[0] = 300;
identificatore = 'nullo';
}
else  if (id =="1,6"){

lunghezze = 70;
_link = 'href = "serale.htm"';
identificatore = identificatori[9];
}
else  if (id =="1,7"){

lunghezze = 70;
_link = 'href = "ragazzi.htm"';
identificatore = identificatori[10];
}



var classe;
var pollo;
if (identificatore == 'selected')
	pollo = ' style="color:#890C08; border-left:2px solid #890C08" ';
else
	pollo = ' ';

document.write('<a ',_link,' id="me',id,'" class="' ,identificatore,'" style="position:absolute;top:',_._m4[1],'px;left:',_._m4[0],'px; width:',lunghezze,'px; visibility:hidden;z-index:',l,';text-decoration:none"');

document.write('onmouseout="_mG(',id,')" onmouseover="_mH(',id,')"');
document.write('><div' ,_m3[0],'',pollo,' id="mi',id,'" class="',_m9(l,_mO,'css'),'norm">',_m1[0],'</div></a>');
_._m5=[_mC('me'+m.id+','+_.id),_mC('mi'+m.id+','+_.id),_m9(l,_mO,'css')];
if(_m1.length>2){
	_._m2=[];
	for(i=2;i<_m1.length;i++)
		if(_m1[i])
			new _mE(l+1,_,m,_m1[i]);
	}
}


function _mA(_,_mJ){if(_._mQ==_mJ)
return;
_._mQ=_mJ;
if(_mJ)
	_._m5[0].style.visibility='visible';
else if(_._m8)
_._m5[0].style.visibility='hidden';
}


function _mB(_,_mM){if(_._m5[3]==_mM)return;_._m5[3]=_mM;_._m5[1].className=_._m5[2]+_mM}


function _m9(l,_mO,k){for(var i=l;i>=-1;i--)if(_mO[i]&&_mO[i][k]!=null)return _mO[i][k];}

