<!--
//function JustOpenPictureWindow(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
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':	//Divano
				imageWidth = '750';
				imageHeight = '350';
				break;
			case 'divano_stoffa':	//Divano
				imageWidth = '600';
				imageHeight = '500';
				break;
			case 'poltrona_cuoio':	//Poltrona
				imageWidth = '600';
				imageHeight = '500';
				break;
			case 'poltrona_stoffa':	//Poltrona
				imageWidth = '600';
				imageHeight = '500';
				break;
			case 'letto':	//Letto
				imageWidth = '600';
				imageHeight = '500';
				break;
			default:	//Default
				imageWidth = '600';
				imageHeight = '500';
				break;
			}
		}
	
	//alert('posLeft:' + posLeft);
	//alert('posTop:' + posTop);
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	//newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<html><title>'+alt+'</title>');
	
	//if (posLeft!='' & posTop!='')
	//} else {
	//	BEGIN CENTER WINDOW SCRIPT
	//alert('Center Script');
	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>');
	//	END CENTER WINDOW SCRIPT
	//}
	
	newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	//newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >');
	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));
}
//-->
