<!--

function voidFunction(){
	//do nothing
}

function overMenu(id, tit){
	if (document.images["imgMenu" + id]){
		document.images["imgMenu" + id].src = "upload/ImmaginiMenuNew/" + id + "_roll.jpg";
	}
	if (tit != ''){
		var nuovoTit = document.getElementById("titolo");
		nuovoTit.innerText = tit + '  ';
	}	
}

function outMenu(id,sel,tit){
	if (document.images["imgMenu" + id]){
		document.images["imgMenu" + id].src = "upload/ImmaginiMenuNew/" + id + sel + ".jpg";
	}
	if (tit != ''){
		var nuovoTit = document.getElementById("titolo");
		nuovoTit.innerText = tit + '  ';
	}	
}

function goToAnchor(v_strAnchorID){
	document.location.href = "#" + v_strAnchorID
}

function openCredits(v_intIdLanguage){
	window.open("credits.htm","Credits","dependent=yes,Height=140,Width=320,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=yes,toolbar=no");
}

function loadInOpener(v_strUrl){
	window.opener.location = v_strUrl;
	window.focus()
}
function MM_preloadImages() {
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function returnBack(){
	history.back();
}
function getObject(v_strIdImage){
	var strBrowserName = "";
	var vObj;
	
	strBrowserName = whatbrowser();
	
	switch(strBrowserName){
		case "NN6":{
			vObj = document.getElementById(v_strIdImage);
			break;
		}
		case "NN4":{
			vObj = document.getElementById(v_strIdImage);
			break;
		}
		case "ie4":
		case "ie6":
		case "ieMac":{
			vObj = document.all(v_strIdImage);
			break;
		}
		default:{
			vObj = document.all(v_strIdImage);
		}
	}
	
	return(vObj);
}


//whatbrowser()
//
//determina con quale browser l'utente è collegato e restituisce la sigla corrispondente
//
//argomenti:
//	nessuno
//
//valore di ritorno:
//	stringa	=	sigla corrispondente al browser con cui l'utente è collegato
//				NN4	=	netscape4
//				NN6	=	netscape6
//				ie	=	internet explorer
function whatbrowser(){
	var thisbrowser = "";	//sigla del browser utilizzato dall'utente
	var strAppVersion = navigator.appVersion;

	var blnIsIe4 = (strAppVersion.indexOf("MSIE 4") == -1) ? 0 : 1;
	var blnIsIe5 = (strAppVersion.indexOf("MSIE 5") == -1) ? 0 : 1;
	var blnIsIe6 = (strAppVersion.indexOf("MSIE 6") == -1) ? 0 : 1;
	var blnIsMac = (strAppVersion.indexOf("Macintosh") == -1) ? 0 : 1;
	
	//interrogo l'oggetto document per capire quale broeser sta utilizzando l'utente
    if(document.layers){
        thisbrowser="NN4";
    }
    if(document.all){
         if(blnIsIe4 == 1 || blnIsIe5==1) thisbrowser="ie4";
         else if(blnIsIe6 == 1) thisbrowser="ie6";
         else if(blnIsMac == 1) thisbrowser="ieMac";
         else thisbrowser="ie";
         
         //alert(thisbrowser);
    }
    if(!document.all && document.getElementById){
         thisbrowser="NN6";
    }
    
    return(thisbrowser);
}

function printPage(){
	var strPage = "";
	var intStartIndex = 0;
	var intEndIndex = 0;
	
	strPage = document.location.href;
		
	intStartIndex = strPage.lastIndexOf("/") + 1;
	//intEndIndex = strPage.indexOf(".aspx", intStartIndex) + 5;
	
	strPage = strPage.substr(intStartIndex);
	window.open("printPage.asp?page=" + strPage,"printPage","dependent=yes,Height=400,Width=600,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=yes,toolbar=no");
}

function openPage(v_strPage, v_intWidth, v_intHeight){
	window.open(v_strPage,"popuppage","dependent=yes,Height=" + v_intHeight + ",Width=" + v_intWidth + ",location=no,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=yes,toolbar=no");
}

function OpenZoomWindow(strImg){

	window.open("tools/ZoomWindow.aspx?img=" + strImg,"zoomWindow",'height=200,width=200,status=0,scrollbars=0');
}

function WriteSpace(v_intWidth){
	alert("v_intWidth: " + v_intWidth);
	
	var strSpace = "";
	
	strSpace = "<td width=\"" + v_intWidth + "\"><img src=\"img/shared/np.gif\" border=\"0\" width=\"" + v_intWidth + "\" height=\"1\"></td>";
	
	if(v_intWidth > 0){
		document.write(strSpace);
	}
}

//npwidthmax()
//
//calcola width della pagina, toglie larghezza menu sinistra e larghezza menu 
//destra return (la differenza)
function npwidthmax(){
	size = parseInt(window.innerWidth) - 161;
	return size;
}
-->