/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/

	var NoOffFirstLineMenus=10;			// Number of first level items
	var LowBgColor="#245BFF";			// Background color when mouse is not over
	var LowSubBgColor='#245BFF';			// Background color when mouse is not over on subs
	var HighBgColor='black';			// Background color when mouse is over
	var HighSubBgColor='black';			// Background color when mouse is over on subs
	var FontLowColor='D5F7FF';			// Font color when mouse is not over
	var FontSubLowColor='D5F7FF';			// Font color subs when mouse is not over
	var FontHighColor='White';			// Font color when mouse is over
	var FontSubHighColor='White';			// Font color subs when mouse is over
	var BorderColor='black';			// Border color
	var BorderSubColor='black';			// Border color for subs
	var BorderWidth=2;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var FontFamily="Verdana"	// Font family menu items
	var FontSize=9;				// Font size menu items
	var FontBold=0;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.2;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=10;				// Menu offset x coordinate
	var StartLeft=2;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// Left padding
	var TopPaddng=2;				// Top padding
	var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=500;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='self';			// Frame where first level appears
	var SecLineFrame='self';			// Frame where sub levels appear
	var DocTargetFrame='self';			// Frame where target documents appear
	var TargetLoc='LMenuM';				// span id for relative positioning
	var HideTop=0;				// Hide first level when loading new document 1 or 0
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=1;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];	// Arrow source, width and height
startleft = 38



	







function BeforeStart()






{return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}
function readStyleParams()
{
	var menuStyle = getStyle("menu");
	var subMenuStyle = getStyle("submenu");
	var menuStyleRoll = getStyle("rollovermenu");
	var subMenuStyleRoll = getStyle("rolloversubmenu");

	if(menuStyle.direction) FirstLineHorizontal = (menuStyle.direction == 'ltr') ? 0 : 1;

	if(menuStyle.fontWeight && (menuStyle.fontWeight == "bold")) FontBold = 1;

	if(menuStyle.backgroundColor) LowBgColor = menuStyle.backgroundColor;
	if(menuStyleRoll.backgroundColor) HighBgColor = menuStyleRoll.backgroundColor;
	if(subMenuStyle.backgroundColor) LowSubBgColor = subMenuStyle.backgroundColor;
	if(subMenuStyleRoll.backgroundColor) HighSubBgColor = subMenuStyleRoll.backgroundColor;

	if(menuStyle.color) FontLowColor = menuStyle.color;
	if(subMenuStyle.color) FontSubLowColor = subMenuStyle.color;
	if(menuStyleRoll.color) FontHighColor=menuStyleRoll.color;
	if(subMenuStyleRoll.color) FontSubHighColor=subMenuStyleRoll.color;

	// Il metodo borderColor in Mozilla restituisce i 4 colori del bordo
	if(menuStyle.borderLeftColor) BorderColor = menuStyle.borderLeftColor;
	if(subMenuStyle.borderLeftColor) BorderSubColor = subMenuStyle.borderLeftColor;

	if(menuStyle.textAlign) MenuCentered = menuStyle.textAlign;
	if(menuStyle.verticalAlign) MenuVerticalCentered = menuStyle.verticalAlign;

	if(menuStyle.fontSize) nfontXWidth = parseInt(menuStyle.fontSize);
	if(menuStyle.paddingLeft) nMinCellWidth = parseInt(menuStyle.paddingLeft);
	if(menuStyle.paddingRight) nMaxCellWidth = parseInt(menuStyle.paddingRight);
	if(menuStyle.height) nCellHeight = parseInt(menuStyle.height);
	if(subMenuStyle.paddingLeft) nMinSubCellWidth = parseInt(subMenuStyle.paddingLeft);
	if(subMenuStyle.paddingRight) nMaxSubCellWidth = parseInt(subMenuStyle.paddingRight);
	if(subMenuStyle.height) nSubCellHeight = parseInt(subMenuStyle.height);
}
function calcDim(nLen, nMax, nMin)
{
	var dim = (nLen * nfontXWidth) / 10 + 6;
	
  if(dim > nMax)
		dim = nMax;
	else if(dim < nMin)
		dim = nMin;

	return Math.round(dim);	
}

function calcWidth(nLen)
{
  return calcDim(nLen, nMaxCellWidth, nMinCellWidth);
}

function calcSubWidth(nLen, sSubId)
{
	var nMin = submenutable[sSubId];

	if(nMin && nMin > nLen)
		nLen = nMin;

  var nDim = calcDim(nLen, nMaxSubCellWidth, nMinSubCellWidth);

	return nDim;
}


// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

Menu1=new Array("Homepage","index.htm","",0,20,138);

Menu2=new Array("Presentazione","","",4,20,138);
	Menu2_1=new Array("Chi siamo","chisiamo.htm","",0,20,170);	
	Menu2_2=new Array("Dove siamo","dovesiamo.htm","",0,20,170);
	Menu2_3=new Array("Informazioni generali","infogen.htm","",0,20,170);
	Menu2_4=new Array("Regolamento d'Istituto","regist.htm","",0,20,170);	

Menu3=new Array("Informazioni","","",6,20,138);
	Menu3_1=new Array("Colloqui","","",2,20,150);
		Menu3_1_1=new Array("Colloqui generali","colloquigen.htm","",0,20,130);
		Menu3_1_2=new Array("Colloqui individuali","colloquind.htm","",0,20,130);
	Menu3_2=new Array("Orario Docenti","orario.htm","",0,20,150);	
	Menu3_3=new Array("Calendario scolastico","calendario.htm","",0,20,150);		
	Menu3_4=new Array("Crediti e Debiti","credito.htm","",0,20,150);		
	Menu3_5=new Array("Tutela minori","tutmin.htm","",0,20,150);
	Menu3_6=new Array("Esami Trinity","trinity.htm","",0,20,150);
	
Menu4=new Array("Organigramma","","",8,20,138);
	Menu4_1=new Array("Presidenza","presidenza.htm","",0,20,150);
	Menu4_2=new Array("Collaboratori","collab.htm","",0,20,150);
	Menu4_3=new Array("Docenti","docenti.htm","",0,20,150);		
	Menu4_4=new Array("Consigli di Classe","consclasse.htm","",0,20,150);		
	Menu4_5=new Array("Collegio Docenti","colldocenti.htm","",0,20,150);	
	Menu4_6=new Array("Consiglio d'Istituto","consist.htm","",0,20,150);
	Menu4_7=new Array("Dipartimenti","dipartimenti.htm","",0,20,150);
	Menu4_8=new Array("Giunta","giunta.htm","",0,20,150);
	
Menu5=new Array("Segreteria","","",4,20,150);
	Menu5_1=new Array("Orari","orari.htm","",0,20,110);
	Menu5_2=new Array("Personale","personale.htm","",0,20,110);
	Menu5_3=new Array("Iscrizioni","iscrizioni.htm","",0,20,110);
	Menu5_4=new Array("Moduli","moduli.htm","",0,20,150);

Menu6=new Array("Didattica","","",3,20,140);
	Menu6_1=new Array("Scelte didattiche","scelte.htm","",0,20,170);
	Menu6_2=new Array("Obiettivi","obiettivi.htm","",0,20,170);
    Menu6_3=new Array("Percorso Formativo","percorso.htm","",0,20,170);
	
Menu7=new Array("Progetti","progetti.htm","",0,20,140);
		
Menu8=new Array("Scambi scolastici","","",4,20,140);
	Menu8_1=new Array("Regolamento","regolscambi.htm","",0,20,200);
	Menu8_2=new Array("Programma","progscambi.htm","",0,20,200);
	Menu8_3=new Array("Information about Fano","","",4,20,200);
		Menu8_3_1=new Array("Historical outline of Fano","historicalfano.htm","",0,20,230);
		Menu8_3_2=new Array("The Harbour and the Beach","hb.htm","",0,20,230);
		Menu8_3_3=new Array("The Carnival","carnival.htm","",0,20,230);
		Menu8_3_4=new Array("The Metauro river","metauro.htm","",0,20,230);
	Menu8_4=new Array("Useful Links","linkscambio.htm","",0,20,160);

Menu9=new Array("Links","links.htm","",0,20,140);
	
	
Menu10=new Array("P.O.F.","pof.htm","",0,20,140);




	
	
	
	
	