function createChromeLessWindow(w, h, windowName, theURL){
	if (chromelessCompatible){
		var barTitle	= '';						// Percorso dell'immagine della barra della finestra
		var btnMinimize	= '/images/chromelesswindow/minimize.gif';	// Percorso dell'immagine del bottone 'riduci a icona'
		var btnClose	= '/images/chromelesswindow/close.gif';		// Percorso dell'immagine del bottone 'chiudi'
		
		return new ChromelessWindow(theURL, windowName, barTitle, 25, 'Verdana' , 12, '#FFFFFF', false, w, h, true, 0, 0, '#081052', 5 , btnMinimize , btnClose);
	}
}

function openWindow(w, h, windowName, theURL, chromeLess){
	myWindow = Windows[windowName];
	
	if ((myWindow) && !myWindow.closed){
		if(!chromeLess || !chromelessCompatible){
			myWindow.location.replace(theURL);
			myWindow.focus();
		}
		else{
			myWindow.openChromeless();
			myWindow.setURL(theURL);
		}
	}
	else{
		if(!chromeLess || !chromelessCompatible)
			Windows[windowName] = window.open(theURL, windowName, "width=" + w + ", height=" + h + ", scrollbars=no, menubars=no, files=no, resize=no");
		else{
			Windows[windowName] = createChromeLessWindow(w, h, windowName, theURL);
			Windows[windowName].openChromeless();
		}
		
		myWindow = Windows[windowName];
	}
	
	return myWindow;
}

var Windows = new Array();

//------------------------------------------------------------------------//
function disclaimer(){
	openWindow(500, 300, 'disclaimer', '/disclaimer.html', true);
}

function privacy(){
	openWindow(500, 300, 'privacy', '/privacy.html', true);
}

function fotogallery(sFotoName){
	openWindow(750, 650, 'fotogallery', '/galleria-dettagli.asp?foto=' + sFotoName, true);
}