function hidemenu(n)
{
document.styleSheets[1].rules[n].style.display="none";
}


function showmenu(number)
{
for (i=0;i<2;i++)
{
if (i==number) document.styleSheets[1].rules[number].style.display="block";
else
hidemenu(i);
}
}



function show(img0)
{
foto= new Image();
foto.src=img0.src.substr(0,img0.href.indexOf("_thumb"))+'.jpg';
foto.alt=img0.alt;
var img=foto;
Controlla(img);
}



function Controlla(img1){
  if((foto.width!=0)&&(foto.height!=0)){
    
    viewFoto(img1);
  }
  else{
    funzione="Controlla('"+img1+"')";
    intervallo=setTimeout(funzione,20);
  }
}



function viewFoto(img)
{
var h=0;
var w=0;
var winl=0;
var wint=0;
h=foto.height+44+100;
w=foto.width+130;
winl = (screen.width-w)/2;
wint = (screen.height-h)/2;
var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='resizable=no';
win=window.open('','',settings);
with (win)
{
	with (document){
	write('<html><head><title>Isabella Brancolini - Arte Contemporanea</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
	writeln('<link rel="stylesheet" type="text/css" href="stylesheet.css">');
	writeln('</head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" link="#000000" alink="#CCCCCC" vlink="#000000">');
	write('<div align="center"><a href="http://www.isabellabrancolini.it"><img border=0 src="logo_small.png" alt="Isabella Brancolini - Arte contemporanea" name="logo" class="logo"></a></div>');
	write('<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
	write('<td><div align="center" id="image_big"><img src='+foto.src);
	write('>');
	write('</div></td>');
	write('</tr></table><div align="center"><p>'+foto.alt+'</p></div>');
	write("</body></html>");
	}
}

}


function viewFoto2(img,w,h)
{
var winl=0;
var wint=0;
l=w+130;
a=h+144;
winl = (screen.width-l)/2;
wint = (screen.height-a)/2;
var settings  ='height='+a+',';
      settings +='width='+l+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='resizable=no';
win=window.open('','',settings);
with (win)
{
with (document){
write('<html><head><title>Isabella Brancolini - Arte Contemporanea</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
writeln('<link rel="stylesheet" type="text/css" href="stylesheet.css">');
writeln('</head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" link="#000000" alink="#CCCCCC" vlink="#000000">');
write('<div align="center"><a href="http://www.isabellabrancolini.it"><img border=0 src="logo_small.png" alt="Isabella Brancolini - Arte contemporanea" name="logo" class="logo"></a></div>');
write('<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
write('<td><div align="center" id="image_big"><img src='+foto.src);
write('>');
write('</div></td>');
write('</tr></table><div align="center"><p>'+foto.alt+'</p></div>');
write("</body></html>");
}
}
}



function show2(img0,w,h)
{
foto= new Image();
foto.src=img0.src.substr(0,img0.href.indexOf("_thumb"))+'.jpg';
foto.alt=img0.alt;
var img=foto;
Controlla2(img,w,h);
}

function Controlla2(img1,w,h){
  if((foto.width!=0)&&(foto.height!=0)){
    
    viewFoto2(img1,w,h);
  }
  else{
    funzione="Controlla('"+img1+"')";
    intervallo=setTimeout(funzione,20);
  }
}













