
  var hires = false;
  var msg1Italiano = "cliccare sull'immagine per l'alta risoluzione - click on image for hi-res";
  

					var nomeimg;
					var i;
					function cambiaimg(fileimg) { 
 						 document.fotog.src= 'fotocam/' + fileimg + '.jpg'; 
						}
						
					function cambiaimgs(fileimg) { 
 						 document.fotog.src= 'fotosale/' + fileimg + '.jpg'; 
						}						
						
					function mostrahires () {
							nomeimg = document.fotog.src ;
							for (i = 0;i < nomeimg.length - 8; i=i+1) {
								if (nomeimg.substr (i,7) == 'fotocam') {
									nomeimg = nomeimg.substr (0,i) + 'fotocamhr' + nomeimg.substr (i+7,nomeimg.length-1)
								}
								if (nomeimg.substr (i,8) == 'fotosale') {
									nomeimg = nomeimg.substr (0,i) + 'fotosalehr' + nomeimg.substr (i+8,nomeimg.length-1)
								}
							}
							nomeimg = nomeimg.substr (0,nomeimg.length - 4);
							nomeimg = nomeimg + 'h' + '.jpg';
							if (hires == true) {
						 		window.location =  nomeimg ; 
							}
						}
