<!-- hide script from old browsers 
var currentPhoto=0;
var maxNumPhoto=30;
var h=0;
var imgs = new Array();
var imgsZoom = new Array();
var imgsIds = new Array();

	imgs[h]='schlegelmilch/996-1585-1.jpg';
	imgsZoom[h]='schlegelmilch/996-1585-1.jpg';
	imgsIds[h]='img_1';
	h++;

	imgs[h]='schlegelmilch/004-1253-1.jpg';
	imgsZoom[h]='schlegelmilch/004-1253-1.jpg';
	imgsIds[h]='img_2';
	h++;

	imgs[h]='schlegelmilch/005-1487-1.jpg';
	imgsZoom[h]='schlegelmilch/005-1487-1.jpg';
	imgsIds[h]='img_3';
	h++;

	imgs[h]='schlegelmilch/006-1561-1.jpg';
	imgsZoom[h]='schlegelmilch/006-1561-1.jpg';
	imgsIds[h]='img_4';
	h++;

var totPhotos=imgs.length;
//alert("zoom: "+imgsZoom[1]+" Id: "+imgsIds[1])
	
//alert(imgs[0]+" "+imgs[1]);

NS4 = document.layers;
IE4 = document.all;
domL1 = document.getElementById;
var txtVisible;
var txtHidden;
if (NS4) {
	txtVisible="show";
	txtHidden="hide";
}else if (IE4){
	txtVisible="visible";
	txtHidden="hidden";
}else if (domL1) {
	txtVisible="visible";
	txtHidden="hidden";
}

function hide4(obj) {
	if (NS4){
		var theObj = eval('document.layers.container.document.layers.' + obj); 
	}
	else if (IE4){
		var theObj = eval('document.all.' + obj + '.style');
	}
	else if (domL1) {
		var theObj = document.getElementById(obj).style;
	}
	if(theObj != null) {
		theObj.visibility = txtHidden;
	}
}

function show4(obj){ 
	if(NS4){
		var theObj = eval('document.layers.container.document.layers.' + obj);
	}
	else if (IE4) {var theObj = eval('document.all.' + obj + '.style');}
	else if (domL1) {
		var theObj = document.getElementById(obj).style;
	}
	if (theObj != null) {
		theObj.visibility = txtVisible;
	}
	
}

function aprichiudi(obj,obj1){
	if (NS4){
		var theObj = eval('document.layers.container.document.layers.' + obj); 
		var theObj1 = eval('document.layers.container.document.layers.' + obj1); 
	}
	else if (IE4){
		var theObj = eval('document.all.' + obj + '.style');
		var theObj1 = eval('document.all.' + obj1 + '.style');
	}
	else if (domL1){
		var theObj = document.getElementById(obj).style;
		var theObj1 = document.getElementById(obj1).style;
	}
	
	if (theObj1.visibility == txtVisible){
		hide4(obj);
		hide4(obj1);
		}
	else {
		hideAll()
		show4(obj);
		show4(obj1);
	}
}


function hideAll() {
	hide4('selected1');
	hide4('selected2');
	hide4('selected3'); 
	hide4('selected4');
	//hide4('selected5');
	hide4('selectlist1');
	hide4('selectlist2');
	hide4('selectlist3');
	hide4('selectlist4');
	//hide4('selectlist5');
}



 
function zoomImage(myUrl,imgId){
		var pageZoom="" + "?url="+myUrl;
		if (imgId) pageZoom+="&imgid="+imgId;
		var son=window.open(pageZoom,'Zoom','scrollbars=no,resizable=no,width=780,height=530,status=yes,location=no,toolbar=no, menubar=no');
        son.moveTo(screen.availWidth/2-390,screen.availHeight/2-260);
		son.focus();
} 

 
 function changePhoto(Direction){
  	var Index=0;
 	if (Direction==0){
 		if (currentPhoto==0){
 			if(totPhotos > maxNumPhoto)
 				currentPhoto=maxNumPhoto-1;
 			else
 				currentPhoto=totPhotos-1;
 		}else 
 			currentPhoto--;
 	}else if (Direction==1){
 		if (currentPhoto==(totPhotos-1) || currentPhoto==(maxNumPhoto-1))
 			currentPhoto=0;
 		else 
 			currentPhoto++;
 		
 	}
 	Index=currentPhoto+1;
 	Index=Index.toString();
 	//document.all.CurrPhoto.src=imgs[currentPhoto];
 	//document.all.CurrImgId.src='/images/numeri/sx/'+Index+'.gif';


if (is.nav4){
	document.images["CurrPhoto"].src=imgs[currentPhoto];
	document.images["CurrImgId"].src='/images/numeri/sx/'+Index+'.gif';
	}
else if (is.ie4){
	document.all.CurrPhoto.src=imgs[currentPhoto];
	document.all.CurrImgId.src='/images/numeri/sx/'+Index+'.gif';
	}
else if (is.ie5up || is.nav6){
	document.getElementById("CurrPhoto").src=imgs[currentPhoto];
	document.getElementById("CurrImgId").src='/images/numeri/sx/'+Index+'.gif';	
	}	
}

//-->