startList = function() { 
var nodes = document.getElementById("nav").getElementsByTagName("LI"); 
for (var i=0; i<nodes.length; i++) { 
nodes[i].onmouseover = function() { 
this.className += " over"; 
} 
nodes[i].onmouseout = function() { 
this.className = this.className.replace(new RegExp(" over\\b"), ""); 
} 
} 
} 
if (window.attachEvent) window.attachEvent("onload", startList);

function ViewImage(img,header){
  im= new Image();
  im.src=(img);
  Control(img,header);
}
function Control(img,header){
  if((im.width!=0)&&(im.height!=0)){
    viewFoto(img,header);
  }
  else{
    funzione="Control('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img,header){
  largh=im.width+20;
  altez=im.height+20;
  stringa="width="+largh+",height="+altez;
  wi=window.open('',"wi",stringa);  
  wi.document.open();
  wi.document.write('<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head><title>'+header+'</title><style>body{background : #F2FFFF;}</style></head><body><center><img src='+img+'border=1></center></body></html>');
  wi.document.images[0].src=img;
  wi.document.close();
  wi.focus();
}






