// JavaScript Document

path="http://www.nonvaaffattobene.com/";

function aprifoto(pic, width, height) {
  wind=window.open(pic,"picture",'width='+width+',height='+height+',left='+(screen.availWidth - width)/2+',top='+(screen.availHeight - height)/2+',toolbar=no,menubar=no,status=no,resizable=yes');

	wind.document.open()
	
	content=''
	content+='<html><title>Le Photo di nonvaaffattobene.com</title><body style="overflow: hidden; " onload=\'this.focus()\' BGCOLOR="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n'
	content+='<a href="javascript:window.close();"><img src="' + pic + '" border=0></a>\n'
	content+='</body></html>\n'
	wind.document.write(content)
	wind.document.close()
}


function aprifoto2(nome,i,j)
{
	var pippo=0;
	while (i>screen.width*0.92 || j>screen.height*0.92) {
		i=i*0.95;j=j*0.95
		pippo=1;
	}
	if (pippo==0) {i=i+21;j=j+31;}
	var specifiche="height=" + j + ", width=" + i + ", scrollbars=0, resizable=0, status=0, menubar=0, toolbar=0"
	open (nome, "new", specifiche)
//settando i parametri a 1, le barre vengono visualizzate, a 0 no.
}

function emoticon(nome)
{
	var testo = "<img src='" + path + "smiliny/" + nome + ".gif' alt='emoticon - " + nome + "'>";
	document.write(testo);
}

function nomesezione(testo)
{
	NomeSez.innerHTML=testo;
}