<!--
function JustOpenPictureWindow(imageName, WindowSizeType, alt, posLeft, posTop, CustomSize) {
	a = '';
	if (CustomSize != '') {
		WindowSize = CustomSize.split('x');
		imageWidth = WindowSize[0];
		imageHeight= WindowSize[1];
		}
	else {
		switch(WindowSizeType) {
			case 'divano_cuoio':
				imageWidth = '750';
				imageHeight = '350';
				break;
			case 'divano_stoffa':
				imageWidth = '600';
				imageHeight = '500';
				break;
			case 'poltrona_cuoio':
				imageWidth = '600';
				imageHeight = '500';
				break;
			case 'poltrona_stoffa':	
				imageWidth = '600';
				imageHeight = '500';
				break;
			case 'letto':
				imageWidth = '600';
				imageHeight = '500';
				break;
			default:
				imageWidth = '600';
				imageHeight = '500';
				break;
			}
		}
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title>');
	
	newWindow.document.write('<head><scr'+ a +'ipt language="JavaScript">');
	newWindow.document.write('windowWidth='+ imageWidth + ';');
	newWindow.document.write('windowHeight='+ imageHeight + ';');
	newWindow.document.write('if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));');
	newWindow.document.write('</scr'+ a +'ipt></head>');
	newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function centerPopup(larghezza,altezza) {
windowWidth=larghezza;
windowHeight=altezza;
if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
}
//-->