<!-- Beginning of Script

function remove_html_tag(st){
	var txt = st;
 	txt = txt.replace(/&(lt|gt);/g, function (strMatch, p1){
 		 	return (p1 == "lt")? "<" : ">";
 		});
 	txt = txt.replace(/<\/?[^>]+(>|$)/g, "");
 	return txt;
 	}
function hide_tooltip(dida,cln){
  var txt=document.getElementById(dida).innerHTML;
  txt = remove_html_tag(txt);
  document.getElementById(dida).innerHTML=txt;
  document.getElementById(dida).className=cln;
}
function show_tooltip(dida,txt,cln){
  document.getElementById(dida).className=cln;
  document.getElementById(dida).innerHTML=txt;
}
function WinClose() {
  try{photoWin.close();}   catch(e){ }
}

// This script opens a new browser window and writes
// HTML to display an image with a title and caption

function show_photo(pFileName) {
// specify window parameters  

// var dd = Math.round(screen.availHeight / 5)
// var hh = screen.availHeight - dd
// var ww = screen.availWidth - dd
// var t = Math.round(dd / 2) 
// var l = Math.round(dd / 2)

  var ww = 900
//var hh = 700
  var hh = screen.availHeight - 50
  var t = Math.round ((screen.availHeight - hh ) / 3)
  var l = Math.round ((screen.availWidth - ww ) / 2)

  photoWin = window.open (pFileName,'ImgFrame','height='+hh+',width='+ww+',top='+t+',left='+l+',status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes')

// wrote content to window
  photoWin.document.write('<html>\n<head>\n<title>gavAudan</title>\n');
  photoWin.document.write('<link href="stili.css" rel="stylesheet" type="text/css">\n');
  photoWin.document.write('</head>\n');	
  photoWin.document.write('<BODY  TEXT=#FFFFFF LINK=#CC9933 VLINK=#CC9933 class="photo">\n');
  photoWin.document.write('<center>\n');
  photoWin.document.write('<span class="gavaudan">gav<font color="#CC9933">Au</font>dan</span><br>\n');
  photoWin.document.write('<img class="photo" src="' + pFileName + '" vspace="8" hspace="8"><br>\n');
  photoWin.document.write('<a href="mailto:giovanna@gavaudan.it"><u>info@gavaudan.it</u></a><br>');
  photoWin.document.write('</center>\n');
  photoWin.document.write('</body>\n</html>\n');
  photoWin.document.close();	
// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") photoWin.focus();
}
-->

