function OpenNewsletter() {
  window.open('http://www.castagnettiec.it/newsletter.asp','newsletter','width=400,height=450,status=yes,');
}

function PhotoMenu(){
//Inizio tabella
document.write('<tr><td width="35" height="79" valign="top" bgcolor="#ab000A"><img src="img/spacer.gif" width="35" height="1" border="0" /></td><td height="79" bgcolor="#ab000A"> <table width="848" height="67" border="0" cellpadding="0" cellspacing="0">')
RigaDivisore(6,16)
//Prima lista di foto
ImageCell('amb.html','ambiente/amb_p.jpg','amb_p.gif','Allestimento ambiente 1','img1')
ImageCell('amb1.html','ambiente1/amb1_p.jpg','animaz_amb1.gif','Allestimento ambiente 2','img2')
ImageCell('amb7.html','ambiente7/amb7_p.jpg','animaz_amb7.gif','Allestimento ambiente 3','img3')
ImageCell('amb4.html','ambiente4/amb4_p.jpg','animaz_amb4.gif','Allestimento ambiente 4','img4')
ImageCell('amb6.html','ambiente6/amb6_p.jpg','animaz_amb6.gif','Allestimento ambiente 5','img5')
ImageCell('amb5.html','ambiente5/amb5_p.jpg','animaz_amb5.gif','Allestimento ambiente 6','img6')
ImageCell('amb2.html','ambiente2/amb2_p.jpg','animaz_amb2.gif','Allestimento ambiente 7','img7')
ImageCell('amb3.html','ambiente3/amb3_p.jpg','animaz_amb3.gif','Allestimento ambiente 8','img8')
RigaDivisore(6,16)
//Fine tabella
document.write('</table></td></tr>')
}

function RigaDivisore(altezza,celle){
document.write('<tr>')
for(i=0;i<celle;i++){
	document.write('<td height="'+altezza+'"></td>')
}
document.write('</tr>')
}

function ImageCell(page,imgOut,imgOver,text,id){
document.write('<td width="100" height="67" bgcolor="#000000"><a href="'+page+'" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\''+id+'\',\'\',\'img/ambienti/anim/'+imgOver+'\',1)"><img src="img/ambienti/'+imgOut+'" alt="'+text+'" name="'+id+'" width="100" height="67" border="0" id="'+id+'" /></a></td>');
document.write('<td width="6"><img src="img/spacer.gif" width="6" height="1" border="0" /></td>');
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
