
document.write("\n<style type=\"text/css\">");
document.write("\n.visited {FILTER: alpha(Opacity=80,FinishOpacity=50,style=1,StartX=0,FinishX=2,StartY=0,FinishY=2)}");
document.write("\n</style>\n");

document.write("\n<div onMouseOver=\"changeOpac('0','blendmenu');oppa=1;\"; id=\"layerbloc\" style=\"position:absolute; border:1px solid; border-color:black; left:50%; top:50%; margin-left:-495px; width:400; height:400px; background:#252525; z-index:2; filter: alpha(opacity=0); \'alpha(opacity=0)\'; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; visibility:hidden;\"></div>");


document.write("\n<div id=\"layerombra\" style=\"position:absolute; left:50%; top:50%; margin-top:100px; margin-left:100px;  width:100; height:70px; z-index:3; visibility:hidden;\">");
document.write("\n<table align=center border=0 cellspacing=0 cellpadding=0><tr><td width=4 valign=bottom><img src='/script/ombra/1.png'></td><td height=4 valign=bottom><table border=0 cellspacing=0 cellpadding=0 width=100% ><tr><td valign=bottom height=4 width=33><img src='/script/ombra/2p1.png' height=4 width=33></td><td width=100% bacKground='/script/ombra/2.png'><div style='position:relative; font-size:1px; height:3px; width:10;'></div></td><td valign=bottom height=4 width=33><img src='/script/ombra/2p2.png' height=4 width=33></td></tr></table></td><td valign=bottom width=12><img src='/script/ombra/3.png'></td></tr><tr><td width=4 background='/script/ombra/4.png'>&nbsp;</td><td bgcolor=black>");
document.write("\n<div id=\"layerfoto\" style='margin:0px; border:5px solid; border-color:black; position:relative; left:0px; top:0px; visibility:hidden;'></DIV>");
document.write("\n</td><td height=100% valign=bottom width=12><table width=12 height=100% border=0 cellspacing=0 cellpadding=0><tr><td valign=top width=12><img src='/script/ombra/6p1.png' width=12></td></tr><tr height=100%><td width=12 id=altezzaombra height=100% bacKground='/script/ombra/6.png'><br><br></td></tr><tr><td valign=top width=12><img src='/script/ombra/6p2.png' width=12></td></tr></table></td></tr><tr><td height=12 width=4 valign=top><img src='/script/ombra/7.png'></td><td height=12 valign=top><table border=0 cellspacing=0 cellpadding=0 width=100% ><tr><td valign=top height=12 width=33><img src='/script/ombra/8p1.png' height=12 width=33></td><td width=100% bacKground='/script/ombra/8.png'><div style='position:relative; font-size:1px; height:3px; width:10;'></div></td><td valign=top height=12 width=33><img src='/script/ombra/8p2.png' height=12 width=33></td></tr></table></td><td height=12 valign=top width=12><img src='/script/ombra/9.png'></td></tr></table></div>");


document.write("\n<div id=\"layerposta\" style=\"position:absolute; top:50%; left:50%; margin-left:-250px; margin-top:-120px; width:500px; z-index:3; height:240px; z-index:1; visibility:hidden;\">");
document.write("\n<table align=center border=0 cellspacing=0 cellpadding=0><tr><td width=4 valign=bottom><img src='/script/ombra/1.png'></td><td height=4 valign=bottom><table  border=0 cellspacing=0 cellpadding=0 width=100% ><tr><td valign=bottom height=4 width=33><img src='/script/ombra/2p1.png' height=4 width=33></td><td width=100% bacKground='/script/ombra/2.png'><div style='position:relative; font-size:1px; height:3px; width:10;'></div></td><td valign=bottom height=4 width=33><img src='/script/ombra/2p2.png' height=4 width=33></td></tr></table></td><td valign=bottom width=12><img src='/script/ombra/3.png'></td></tr><tr><td width=4 background='/script/ombra/4.png'>&nbsp;</td><td>");
document.write("\n<scr"+"ipt>iniziatab2()</SCR"+"IPT><div id=\"txtlai\" style=\"font-size:12px; position:relative; font-face:arial-narrow; height:22px; margin-top:5px; margin-left:2px; margin-right:4px; cursor:default;\" onClick=\"javascript:homeposta('')\"></div><scr"+"ipt>iniziatab3()</SCR"+"IPT><table width=100% height=150 cellspacing=12 cellpadding=0 border=0><tr><td><CENTER>");
document.write("\n<div id=\"winlai\"><img src='/script/wait/indicator-lite$quanto.gif'></DIV></NOBR>");
document.write("\n</TD></TR></TABLE></td></tr></table></td></tr></table>");
document.write("\n</td><td valign=bottom width=12><table height=216 border=0 cellspacing=0 cellpadding=0><tr><td valign=top width=12 height=33><img src='/script/ombra/6p1.png' width=12></td></tr><tr><td width=12 height=100% bacKground='/script/ombra/6.png'>&nbsp;</td></tr><tr><td valign=top width=12><img src='/script/ombra/6p2.png' height=33 width=12></td></tr></table></td></tr><tr><td height=12 width=4 valign=top><img src='/script/ombra/7.png'></td><td height=12 valign=top><table border=0 cellspacing=0 cellpadding=0 width=100% ><tr><td valign=top height=12 width=33><img src='/script/ombra/8p1.png' height=12 width=33></td><td width=100% bacKground='/script/ombra/8.png'><div style='position:relative; font-size:1px; height:3px; width:10;'></div></td><td valign=top height=12 width=33><img src='/script/ombra/8p2.png' height=12 width=33></td></tr></table></td><td height=12 valign=top width=12><img src='/script/ombra/9.png'></td></tr></table></div>");








function makeStatic() {
	if (document.all) {layerposta.style.marginTop=document.body.scrollTop-125}
	else if (document.getElementById){document.getElementById("layerposta").style.marginTop=eval(window.pageYOffset-125);}}





scritte = "<a href='javascript:nodo()'>Salva e chiudi3</a>";
var slidefoto;
var cliente;
var aprifoto;
var immprec;
var slidetn;
var which;
var pos = "0";
var oppa = 1;
var h;
var w;
var e;
var nocach;

if (slidetn == null ){slidetn = new Array('/'+cliente+'/1.jpg','/'+cliente+'/2.jpg','/'+cliente+'/3.jpg','4.jpg')}



function caricaimg(which,e,nocach){

descrivi('carica'+which)
	
	setTimeout ("enlarge(''+which+'',''+e+'',''+nocach+'')",10);
}


function enlarge(which,e,nocach){

clearInterval(aprifoto);
imm = new Image();
imm.src = which;
h = imm.height;
w = imm.width;
oppa = 1;

if (w > "1"){


if (w > "800"){
oldw = w;
oldh = h;
w = 800;
h = (oldh*800)/oldw;
}


if (h > "800"){
oldw = w;
oldh = h;
h = 800;
w = (oldw*800)/oldh;
}




if (immprec == which){
chiudifoto()
immprec = "nada";
return false;
}else{

identifica(which)

if (nocach != "svuota"){layerfoto.innerHTML="<div style='border:0 none; position:absolute; width:"+w+"; height:"+h+"; background:black; z-index:12; filter: alpha(opacity=100); \"alpha(opacity=100)\"; -moz-opacity: 1; -khtml-opacity: 1; opacity: 100;' id='blendimage'></div><div style='border:0 none; z-index:30; width:"+w+"; height:"+h+"; position:absolute; filter: alpha(opacity=0); \"alpha(opacity=0)\"; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0;'; id='blendmenu'; onMouseOver=\"fadechiudi('blendmenu')\";><table  width="+ w +"; height="+ (h+40) +"; border=0 cellspacing=0 cellpadding=0><tr><td valign=top align=right><a href=javascript:chiudifoto()><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante1'\" onMouseOver=\"descrivi('Chiudi'),fadechiudi('pulsante1',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante1',20)\"; src='/player/8.jpg' border=0 hspace=20 vspace=20></a></td></tr><tr><td valign=bottom align=center><table height=80 bgcolor=black cellpadding=3 cellspacing=0><tr><td><table cellspacing=0 cellpadding=0 bgcolor=black><tr><td><a href=javascript:cartolina('"+which+"')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante8'\" onMouseOver=\"descrivi('INVIA foto come CARTOLINA'),fadechiudi('pulsante8',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante8',20);\"; src='/player/6.jpg' border=0></a></td><td><a href=javascript:slide('indietro')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante6'\" onMouseOver=\"descrivi('SLIDE SHOW Indietro'),fadechiudi('pulsante6',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante6',20);\"; src='/player/2.jpg' border=0></a></td><td><a href=javascript:vai('-1')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante3'\" onMouseOver=\"descrivi('Immagine PRECEDENTE'),fadechiudi('pulsante3',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante3',20);\"; src='/player/3.jpg' border=0></a></td><td><a href=javascript:vai('+1')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante4'\" onMouseOver=\"descrivi('Immagine SUCCESSIVA'),fadechiudi('pulsante4',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante4',20);\"; src='/player/4.jpg' border=0></a></td><td><a href=javascript:slide('avanti')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante5'\" onMouseOver=\"descrivi('SLIDE SHOW Avanti'),fadechiudi('pulsante5',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante5',20);\"; src='/player/5.jpg' border=0></a></td></tr></table></td></tr><tr><td align=center valign=top><table align=center cellspacing=0 width=100% height=32 style=\"filter: alpha(opacity=80); font-size:11px; font-weigth:bold; \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='sptb'\"><tr><td bgcolor=black><font color=gray><center><font face=arial><b><span id=\"descrivisp\">"+nome+"</span></td></tr></table></td></tr></table></td></tr></table></div><div style='border:0 none; z-index:11; position:relative;'><img width='"+w+"' height='"+h+"' src='"+which+"'></div>"}
else{layerfoto.innerHTML="<div style='border:0 none; position:absolute; width:"+w+"; height:"+h+"; background:black; z-index:12; filter: alpha(opacity=100); \"alpha(opacity=100)\"; -moz-opacity: 1; -khtml-opacity: 1; opacity: 100;' id='blendimage'></div><div style='border:0 none; z-index:30; width:"+w+"; height:"+h+"; position:absolute; filter: alpha(opacity=0); \"alpha(opacity=0)\"; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0;'; id='blendmenu'; onMouseOver=\"fadechiudi('blendmenu')\";><table  width="+ w +"; height="+ (h+40) +"; border=0 cellspacing=0 cellpadding=0><tr><td valign=top align=right><a href=javascript:chiudifoto()><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante1'\" onMouseOver=\"descrivi('Chiudi'),fadechiudi('pulsante1',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante1',20)\"; src='/player/8.jpg' border=0 hspace=20 vspace=20></a></td></tr><tr><td valign=bottom align=center><table height=80 bgcolor=black cellpadding=3 cellspacing=0><tr><td><table cellspacing=0 cellpadding=0 bgcolor=black><tr><td><a href=javascript:cartolina('"+which+"')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante8'\" onMouseOver=\"descrivi('INVIA foto come CARTOLINA'),fadechiudi('pulsante8',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante8',20);\"; src='/player/6.jpg' border=0></a></td><td><a href=javascript:slide('indietro')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante6'\" onMouseOver=\"descrivi('SLIDE SHOW Indietro'),fadechiudi('pulsante6',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante6',20);\"; src='/player/2.jpg' border=0></a></td><td><a href=javascript:vai('-1')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante3'\" onMouseOver=\"descrivi('Immagine PRECEDENTE'),fadechiudi('pulsante3',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante3',20);\"; src='/player/3.jpg' border=0></a></td><td><a href=javascript:vai('+1')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante4'\" onMouseOver=\"descrivi('Immagine SUCCESSIVA'),fadechiudi('pulsante4',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante4',20);\"; src='/player/4.jpg' border=0></a></td><td><a href=javascript:slide('avanti')><img style=\"filter: alpha(opacity=80); \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='pulsante5'\" onMouseOver=\"descrivi('SLIDE SHOW Avanti'),fadechiudi('pulsante5',80);\"; onMouseOut=\"descrivi(nome),fademostra('pulsante5',20);\"; src='/player/5.jpg' border=0></a></td></tr></table></td></tr><tr><td align=center valign=top><table align=center cellspacing=0 width=100% height=32 style=\"filter: alpha(opacity=80); font-size:11px; font-weigth:bold; \"alpha(opacity=80)\"; -moz-opacity: 0.80; -khtml-opacity: 0.80; opacity: 80;' id='sptb'\"><tr><td bgcolor=black><font color=gray><center><font face=arial><b><span id=\"descrivisp\">"+nome+"</span></td></tr></table></td></tr></table></td></tr></table></div><div style='border:0 none; z-index:11; position:relative;'><img width='"+w+"' height='"+h+"' src='"+which+"?nocache="+new Date().getTime()+"'></div>"}





	if (document.all){if (layerfoto.style.visibility=="hidden"){mostra();}
	centraaltezza = (h/2)-document.body.scrollTop;
	centralarghezza = (w/2);
	layerombra.style.marginTop=-(centraaltezza+5);
	layerombra.style.marginLeft=-(centralarghezza+5);
	layerbloc.style.marginTop=-(centraaltezza+50);
	layerbloc.style.marginLeft=-(centralarghezza+50);
	layerbloc.style.height=(h+100);
	layerbloc.style.width=(w+100);
	
		if (layerfoto.style.visibility=="visible"){
		fademostra('blendimage');
		immprec = which;
		return false;}
	
	}	else if (document.getElementById){if (document.getElementById("layerfoto").style.visibility=="hidden"){mostra();}

	centraaltezza = (h/2)-eval(window.pageYOffset);
	centralarghezza = (w/2);
	document.getElementById("layerombra").style.marginTop=-(centraaltezza+5);
	document.getElementById("layerombra").style.marginLeft=-(centralarghezza+5);
	document.getElementById("layerbloc").style.marginTop=-(centraaltezza+50);
	document.getElementById("layerbloc").style.marginLeft=-(centralarghezza+50);
	document.getElementById("layerbloc").style.height=(h+50);
	document.getElementById("layerbloc").style.width=(w+50);
	document.getElementById("altezzaombra").height=h-60;
	
		if (document.getElementById("layerfoto").style.visibility=="visible"){
		fademostra('blendimage');
		immprec = which;
		return false;}
	}}

	}else{
	aprifoto = setInterval ("caricaimg(''+which+'',''+e+'',''+nocach+'')",500)
	return false;
	}
}





function slide(direzione){

	clearInterval(slidefoto);
	if (direzione == "avanti"){vai('+1')
	slidefoto = setInterval ("vai('+1','slide')",4000)}
	else{vai('-1')
	slidefoto = setInterval ("vai('-1','slide')",5000)}}



function descrivi(cosa){document.getElementById("descrivisp").innerHTML = cosa;}



function identifica(search) {

	pos = "0";
	trovato = "0";
	for (i=0; i<100; i++) {if(slidetn[i] == search){pos = i;}}}



function vai(direz,modo) {

	if(modo != "slide"){clearInterval(slidefoto);}
	fadechiudi('blendimage');
	quanteslide = slidetn.length+(-3);
	descslide = slidetn.length+(-1);
	if (direz==+1){if (pos<=quanteslide){pos++;}else{pos = 0;}}
	else if (direz==-1){if (pos>0){pos--;}else{pos = quanteslide;}}
	descpos = pos+1;
	setTimeout ("enlarge(slidetn[pos])",500);
	setTimeout ("descrivi('Immagine '+descpos+' di ' + descslide + '')",500);}



function changeOpac(opacity, id) {

	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";}



function mostra(){

	if (document.all) { document.all["layerfoto"].style.visibility="visible";document.all["layerombra"].style.visibility="visible";document.all["layerbloc"].style.visibility="visible";} 
	else if (document.layers){ document.layers["layerfoto"].visibility="show";document.layers["layerombra"].visibility="show";document.layers["layerbloc"].visibility="show";} 
	else if (document.getElementById) {document.getElementById("layerfoto").style.visibility="visible";document.getElementById("layerombra").style.visibility="visible";;document.getElementById("layerbloc").style.visibility="visible"; }
	fademostra('blendimage');}



function fademostra(cosamostro,gradoopa){

	if (gradoopa > 1){graddazione = gradoopa}else{graddazione = 100}
	if (oppa != 1 || cosamostro != "blendmenu"){
	var speed = 5;
	var timer = 0;
	for(i = 0; i <= graddazione; i++) {
	setTimeout("changeOpac(" + (100+-i) + ", '" + cosamostro + "')",(timer * speed));
	timer++;}}
	if (cosamostro == "blendmenu"){oppa = 1;}
	graddazione = 100;}
	


function fadechiudi(cosachiudo,gradoopa) { 

	if (gradoopa > 1){graddazione = gradoopa}else{graddazione = 0}
	if (oppa != 0 || cosachiudo != "blendmenu"){
	var speed = 5;
	var timer = 0;
	for(i = graddazione; i <= 100; i++) {
	setTimeout("changeOpac(" + i + ", '" + cosachiudo + "')",(timer * speed));
	timer++;}}
	if (cosachiudo == "blendmenu"){oppa = 0;}
	graddazione = 0;}



function chiudifoto() { 

	clearInterval(slidefoto);
	fademostra('blendmenu');
	fadechiudi('blendimage');
	setTimeout("chiudibene()",200);
}



function cartolina(myurl){

	clearInterval(slidefoto);

	if (document.all){
	layerombra.style.marginTop=-200;
	layerombra.style.marginLeft=-350;
	layerbloc.style.marginTop=-300;
	layerbloc.style.marginLeft=-450;
	layerbloc.style.height=600;
	layerbloc.style.width=900;
	}else if (document.getElementById){
	document.getElementById("layerombra").style.marginTop=-(200);
	document.getElementById("layerombra").style.marginLeft=-(350);
	document.getElementById("layerbloc").style.marginTop=-(300);
	document.getElementById("layerbloc").style.marginLeft=-(450);
	document.getElementById("layerbloc").style.height=600;
	document.getElementById("layerbloc").style.width=900;
	document.getElementById("altezzaombra").height=340;	}
	oppa = 1;

	layerfoto.innerHTML="\n\n<div style='border:0 none; position:absolute; width:675; height:520; background:black; z-index:15; filter: alpha(opacity=100); \"alpha(opacity=100)\"; -moz-opacity: 1; -khtml-opacity: 1; opacity: 100;' id='blendimage'></div><div style='border:0 none; z-index:30; width:70; height:50; position:absolute; filter: alpha(opacity=0); \"alpha(opacity=0)\"; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0;'; id='blendmenu'; ondblclick=\"javascript:chiudifoto()\" onClick=\"fadechiudi('blendmenu'),oppa=1;\" onMouseOver=\"fadechiudi('blendmenu')\"; ><table width=675; height=90; border=0 cellspacing=0 cellpadding=0><tr><td valign=top align=right><a href=javascript:chiudifoto()><img src='/player/8.jpg' border=0 hspace=20 vspace=20></a></td></tr></table></div><div style='border:0 none; z-index:20; position:relative;'><iframe name=\"slideframe\" id=\"slideframe\" width=675 height=520 FRAMESPACING=0 FRAMEPADDING=0 FRAMEBORDER=0 SCROLLING=NO  src='/cgi-bin/cartolina.cgi?cliente="+cliente+"&fronte="+myurl+"'></iframe></div>";
	fademostra('blendimage');
}


function chiudibene() { 

if (document.all) {document.all["layerfoto"].style.visibility="hidden";document.all["layerombra"].style.visibility="hidden";document.all["layerbloc"].style.visibility="hidden";} 
	else if (document.layers){document.layers["layerfoto"].visibility="hide";document.layers["layerombra"].visibility="hide";document.layers["layerbloc"].visibility="hide";}
	else if (document.getElementById) {document.getElementById("layerfoto").style.visibility="hidden";document.getElementById("layerombra").style.visibility="hidden";document.getElementById("layerbloc").style.visibility="hidden";} 
}



function mostrastrumenti(nomelvl){

	if (document.all) { document.all[nomelvl].style.visibility="visible";} 
	else if (document.layers){ document.layers[nomelvl].visibility="show";} 
	else if (document.getElementById) {document.getElementById(nomelvl).style.visibility="visible";}
}

function chiudistrumenti(nomelvl) { 

	if (document.all) {document.all[nomelvl].style.visibility="hidden";} 
	else if (document.layers){document.layers[nomelvl].visibility="hide";}
	else if (document.getElementById) {document.getElementById(nomelvl).style.visibility="hidden";} 
}


function nodo(){

	homeposta('nodo');
}




function vedinodo(){
chenodo=GetCookie('nodo');
if (chenodo == ""){chenodo='Utilizzalo per ricordardi qualunque cosa'} 
if (chenodo == null){chenodo='Utilizzalo per ricordardi qualunque cosa'} 
if (chenodo == "null"){chenodo='Utilizzalo per ricordardi qualunque cosa'} 
document.nodo.nodoscritto.value = chenodo;
}

function salvanodo(){
chenodo=document.nodo.nodoscritto.value;
var expdate = new Date();
expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 365)); 
SetCookie("nodo", chenodo, expdate, "/", null, false);
chiudistrumenti('layerombrastrumenti');

}

function apripopup(myurl)
{chiudifoto();
Popup.open({url:"/cgi-bin/cartolina.cgi?cliente="+cliente+"&fronte="+myurl})
}


function facebook(myurl)
{Popupfb.open({url:"http://www.facebook.com/sharer.php?u="+myurl})
}






var cosaora;
var txtpop;
var winpop;


function homeposta(cosa){

	if (cosa == "" || cosa == undefined || cosa == null){cosa = "login";}
	if (cosa == "nodo"){
	winpop = "<IFRAME SRC=\"/documenti/nodo.html\" NAME=NODO FRAMEBORDER=0 SCROLLING=NO FRAMESPACING=0 FRAMEPADDING=0 height=\"150\" width=\"310\"></iframe>";
	txtpop = "<img src='/bottoni7/tipo/"+top.name+"nodo.gif' width=16 height=12 align=left border=0></a><b>Nodo al Fazzoletto</b>";}

	else if (cosa == "login"){
	winpop = "<IFRAME SRC=\"/cgi-bin/entra.pl\" NAME=LOGIN FRAMEBORDER=0 SCROLLING=NO FRAMESPACING=0 FRAMEPADDING=0 height=\"150\" width=\"310\"></iframe>"
	txtpop = "<img src='/bottoni7/tipo/"+top.name+"key.gif' width=16 height=12 align=left border=0></a><b>Login Aziende</b>";}

	else if (cosa == "disconnetti"){
	winpop = "<IFRAME SRC=\"/documenti/disconnetti.html\" NAME=LOGIN FRAMEBORDER=0 SCROLLING=NO FRAMESPACING=0 FRAMEPADDING=0 height=\"150\" width=\"310\"></iframe>"
	txtpop = "<img src='/bottoni7/tipo/"+top.name+"key.gif' width=16 height=12 align=left border=0></a><b>Disconnessione</b>";}

	makeStatic()
	txtlai.innerHTML=txtpop;
	winlai.innerHTML=winpop;

	if (document.all){
	if (layerposta.style.visibility=="hidden"){mostrastrumenti('layerposta');}
	else if (layerposta.style.visibility=="visible" && cosa == cosaora)
	chiudistrumenti('layerposta');}

	else if (document.getElementById){if (document.getElementById("layerposta").style.visibility=="hidden"){mostrastrumenti('layerposta');}
	else if (document.getElementById("layerposta").style.visibility=="visible" && cosa == cosaora)
	chiudistrumenti('layerposta');}

cosaora = cosa;
}












function chiudimezzano(){
clearInterval(chiudimezz)
}



ricordautente=GetCookie('ricordautente');






function ricevimsg(){

	quantimess = tnmessaggiric.value;
	if(ricordapvd != "" && ricordapvd != "null" && ricordapvd != null) {

if (document.getElementById("mynumeromessaggi") != null){
		if (quantimess < 1)
		{document.getElementById("mynumeromessaggi").innerHTML = "";}
		else{document.getElementById("mynumeromessaggi").innerHTML = " ( "+quantimess+" ) ";}
	}}

}











if(ricordapvd != "" && ricordapvd != "null" && ricordapvd != null && ricordapvd != undefined) {
document.write("<iframe width=\"0\" height=\"0\" FRAMEBORDER=\"0\" FRAMESPACING=\"0\" FRAMEPADDING=\"0\" name='mailnumeromessaggi' id='mailnumeromessaggi' src='/cgi-bin/mailnumeromessaggi.cgi?chile="+ricordautente+"'></iframe><input type=hidden size=1 name=\"tnmessaggiric\" id=\"tnmessaggiric\"  value=\"0\">");
mezz=setInterval("ricevimsg()",8000);
}

 





