//*****************************
//**** menuScorrevole.js
//**** autore Cosimo marinelli (02/10/2007)
//********************************

		var distdasx = 0; //distanza dalla parte sx dello schermo
		var distdasopra = 170; // distanza dalla parte superiore
		
		ie4=document.all;
		ns6=document.getElementById&&!document.all;
		ns4=document.layers;
		
		function mostramenu() {
			var idMenu = 'menuDiv';
			var objMenu = document.getElementById(idMenu);
			if (ie4) {
				menuDiv.style.pixelTop = document.body.scrollTop+distdasopra;
			}
			else if (ns6) {objMenu.style.top=window.pageYOffset+distdasopra}
			else if (ns4) {eval(document.menuDiv.top = eval(window.pageYOffset+distdasopra));}
			if(ie4 || ns6 || ns4)
				setTimeout("mostramenu()",1);
		}
		
		
		function leggiPosizione(){
        	objMenu = document.getElementById('menuDiv');
        	if (objMenu != null) {
				var offsetTrail = objMenu;
				
				var offsetLeft = 0;
				var offsetTop = 0;
				while (offsetTrail){ 
					offsetLeft += offsetTrail.offsetLeft; 
					offsetTop += offsetTrail.offsetTop; 
					offsetTrail = offsetTrail.offsetParent;
				}
				if (navigator.userAgent.indexOf('­Mac') != -1 && typeof document.body.leftMargin != 'undefined'){ 
					offsetLeft += document.body.leftMargin; 
					offsetTop += document.body.topMargin;
				}
				
				distdasx = offsetLeft;
				distdasopra = offsetTop;
				objMenu.style.position = 'absolute';
		}
		
		
	}
	
	
	function muoviMenuVerticale(){
		var idMenu = 'menuDiv';
		var objMenu = document.getElementById(idMenu);
		if (objMenu != null){
			leggiPosizione();	
			mostramenu();
		}
		
	}
		
		
	//window.onload = muoviMenuVerticale;
	
	
	function openPrivacyAncora(ancora){
			propertyWindow = 'left=200, top=100, toolbar=no,directories=no,resizable=yes,scrollbars=yes,width=600,height=450';
			link = './common/fondirigenti/privacy.do#' + ancora;
			window.open(link,'infoPrivacy',propertyWindow);
		
	}
		
		