	function GetMedia(titolo, brano, ww, wh, l, t)
	{
		var popUpWin=eval("open('', 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + ww + ",height=" + wh + ",left=" + l + ",top=" + t + "');");
		popUpWin.document.writeln("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
		popUpWin.document.writeln("<html xmlns='http://www.w3.org/1999/xhtml'>");
		popUpWin.document.writeln("<head>");
		popUpWin.document.writeln("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />");
		popUpWin.document.writeln("<title>Lybra Guitar Orchestra (Il CD)</title>");
		popUpWin.document.writeln("<link href='lgo.css' rel='stylesheet' type='text/css' />");
		popUpWin.document.writeln("</head>");
		popUpWin.document.writeln("<body>");
		popUpWin.document.writeln("<div align='center'>");
		popUpWin.document.writeln("<table width='" + (ww - 25) + "' cellpadding='0' cellspacing='0' border='0'>");
		popUpWin.document.writeln("<tr><td align='center'><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='387' height='169' id='SfondoFinestraMusica' align='middle'></td></tr>");
		popUpWin.document.writeln("<param name='allowScriptAccess' value='sameDomain' />");
		popUpWin.document.writeln("<param name='movie' value='SfondoFinestraMusica.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#000000' /><embed src='SfondoFinestraMusica.swf' quality='high' bgcolor='#000000' width='387' height='169' name='SfondoFinestraMusica' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
		popUpWin.document.writeln("</object></td></tr>");		
		popUpWin.document.writeln("<tr><td align='center' valign='bottom' height='20' bgcolor='#990000'><font color='#FFFFFF' size='4' face='Verdana, Arial, Helvetica, sans-serif'>" + titolo + "</font></td></tr>");
		popUpWin.document.writeln("<tr><td align='center' valign='middle' bgcolor='#990000'><embed src='" + brano + "' autostart='true' height='45' width='372' loop='false' style='background-color:#990000; border:outset; border-color:#CC0000'></embed></td></tr>");
		popUpWin.document.writeln("<tr><td align='center' valign='bottom' bgcolor='#990000'><input type='button' name='chiudi' value='Chiudi' title='Termina la riproduzione del brano musicale' class='pulsanti_rossi' onclick='javascript:window.close();' /></td></tr>");
		popUpWin.document.writeln("</table>");
		popUpWin.document.writeln("</div>");
		popUpWin.document.writeln("</body>");
		popUpWin.document.writeln("</html>");
		return true;
	}

function VerificaDati() {
	var s = "";
	if (document.guestbooklgo.txtNome.value.length <= 3) {s = s + "Inserire il proprio nome.\n";}
	if (document.guestbooklgo.txtTesto.value.length <= 4) {s = s + "Inserire un testo minimo.\n";}
	if (s != "") {alert(s); return false;}
	document.guestbooklgo.submit();
	return true;
}

var NumFoto = "f1.jpg";
var w = 0;
var h = 0;

function ImgBigF(foto, testo, testo2, wf, hf) {
	document.fg.ImgBig.src = foto;
	document.fg.ImgBig.border = 0;
	document.fg.txtImgBig.value = testo;
	document.fg.txtImgBig2.value = testo2;

	NumFoto = foto;
	w = parseInt(wf, 10);
	h = parseInt(hf, 10);
	return true;
}

function WinMax() {
	var p = "max/" + NumFoto;
	var ls = screen.width;
	var hs = screen.height;
	var t = 0;
	var l = 0;
	var i = 0;
	var wn = 0;
	var hn = 0;
	if(w >(ls - 50)) {
		wn = (ls - 50);
		i = parseInt(wn / w * 100, 10);
		hn = parseInt(h * i / 100, 10);
		if (hn > (hs - 150)) {
			hn = (hs - 150);
			i = parseInt(hn / h * 100, 10);
			wn = parseInt(w * i / 100, 10);
			}
		}
	else {wn = w; hn = h;}

	t = parseInt((hs - hn) / 2, 10);
	l = parseInt((ls - wn)/ 2, 10);
	t = t - 60;

	if(t <= 0) {t = 0;}
	wm = window.open("", "maxifoto", "top=" + t + ", left=" + l + ", width=" + wn + ", height=" + hn + ", resizable=1, toolbar=, location=0, directories=0, status=0, menubar=0, scrollbars=0, copyhistory=0");
	wm.document.writeln("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
	wm.document.writeln("<html>");
	wm.document.writeln("<head>");
	wm.document.writeln("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />");
	wm.document.writeln("<title>Lybra Guitar Orchestra (Fotogallery)</title>");
	wm.document.writeln("<link href='../../lgo.css' rel='stylesheet' type='text/css' />");
	wm.document.writeln("</head>");
	wm.document.writeln("<body width='" + wn + "' height='" + hn + "' leftmargin='0' topmargin='0' bottommargin='0' rightmargin='0' style='background:#990000;'>");
	wm.document.writeln("<a href='#'><img align='middle' src='" + p + "' width='" + wn + "' height='" + hn + "' alt='Click sulla fotografia per chiudere la finestra' border='0' onclick='javascript:window.close();' /></a>");
	wm.document.writeln("</body>");
	wm.document.writeln("</html>");
return true;
}