<!--
	  var ns = 0;
	  var ie = 0;
	  var mac = 0;
	  var win = 0;

	  if (navigator.appVersion.indexOf("Mac") != -1)
	    {
		  mac=1;
		  scr="mac";
		}
	  else
	    {
		  win=1;
		  scr="win";
		}

	  if (navigator.userAgent.indexOf("MSIE") != -1)
	    {
		  ie=1;
		}
	  else
	    {
		  ns=1;
		}

	  //document.write('<LINK REL="stylesheet" HREF="'+baseref+'script/'+scr+'.css" TYPE="text/css">');


  function imgSwap(pic1,pic2) {
    if (document.images) {
	  //alert(pic1)
	  //alert(pic2)
	  //alert(document[pic1].src);
      document[pic1].src = eval(pic2 + ".src");
    }
  }

   function imgSwap2(el) {
     document.g.src = eval("g"+ el + ".src");
   }

   function imgSwap3() {
     document.g.src = eval("g"+ (pick+1) + ".src");
   }

var wind = null;
function NewWindow(mypage,myname,w,h,scroll){
  h=h+45;
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll
  wind = window.open(mypage,myname,settings)
  if(wind.window.focus){wind.window.focus();}
}

function ApriFinestra(myimg,myname,w,h,imgW,imgH,myTitle,myAlt,scroll,myBgColor,mybaseref) {
  sw=screen.width;
  sh=screen.height;

  //alert(h)

  if ((sh==480) && (h>300))
    {
	  h=300;
	  scroll = 'yes';
    }
  else if ((sh==600) && (h>500))
    {
      h=500;
	  scroll = 'yes';
    }

  //alert(h)

  nh=h+46;

  sh=sh - 20;

  //alert(sw)
  //alert(sh)

  LeftPosition = (sw) ? (sw-w)/2 : 0;
  TopPosition = (sh) ? (sh-nh-20)/2 : 0;

  if ((TopPosition+nh) > sh)
    TopPosition = 0;

  if (navigator.appVersion.indexOf("Mac") != -1)
    scr="mac";
  else
    scr="win";

//LeftPosition = (sw-w)/2;
  //TopPosition = 20;

  settings = 'height='+nh+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll;

  if (myBgColor=="") {
    myBgColor = "#000000";
  }

  var msg = window.open("",myname,settings);

  msg.document.open();
  msg.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">n");
  msg.document.write("<HTML>\n");
  msg.document.write("<HEAD>\n<TITLE>"+myTitle+"</TITLE>\n");
  msg.document.write("<META NAME=\"Author\" CONTENT=\"Akensoft - www.akensoft.it\">\n");

  astr='<LINK REL="stylesheet" HREF="'+mybaseref+'script/'+scr+'.css" TYPE="text/css">\n';
  //alert(astr)
  msg.document.write(astr);

  msg.document.write("<STYLE>\n");
  msg.document.write("<!--\n");
  msg.document.write("BODY\n");

  msg.document.write("A:link {text-decoration: none;}\n");
  msg.document.write("A:visited {text-decoration: none;}\n");
  msg.document.write("-->\n");
  msg.document.write("<\/STYLE>\n");

  msg.document.write("<SCRIPT language=\"JavaScript\">\n");
  msg.document.write("function chiudiFinestra() {\n");
  msg.document.write("window.close(); }\n");
  msg.document.write("</script>\n");

  msg.document.write("</head>\n");
  msg.document.write("<body bgcolor=\""+myBgColor+"\" marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0>\n");
  msg.document.write("<center>\n");
  msg.document.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD>\n");
  astr='<center><IMG SRC="'+myimg+'" BORDER=0 WIDTH='+imgW+' HEIGHT='+imgH+' ALT=\"'+myAlt+'\" title=\"'+myAlt+'\">\n</center>\n';

  msg.document.write(astr);
  msg.document.write("</TD></TR>\n");
  msg.document.write("<tr><TD><FONT SIZE=1><BR></font></TD></tr>\n");
  msg.document.write("<tr><TD ALIGN=RIGHT CLASS=\"closebut\">\n");
  msg.document.write("<A HREF=\"javascript:chiudiFinestra()\" onFocus=\"this.blur()\"><IMG SRC=\"img/fig/pulsanti/chiudi_wind.gif\" BORDER=0 WIDTH=100 HEIGHT=31 alt=\"Chiudi la finestra\" title=\"Chiudi la finestra\"></A>&nbsp;</TD></tr>\n");
  msg.document.write("</TABLE>\n");
  msg.document.write("</center>\n");
  msg.document.write("</body>\n");
  msg.document.write("</html>");
  msg.document.close();

  if(msg.window.focus){msg.window.focus();}
}

function ApriFinestraReal(myVideo,myVideoDir,myname,w,h,videoW,videoH,myTitle,scroll,myBgColor,mybaseref) {
  sw=screen.width;
  sh=screen.height;

  //alert(h)

  if ((sh==480) && (h>300))
    {
	  h=300;
	  scroll = 'yes';
    }
  else if ((sh==600) && (h>500))
    {
      h=500;
	  scroll = 'yes';
    }

  //alert(h)

  nh=h+40;
  sh=sh - 20;
  //alert(sw)
  //alert(sh)

  LeftPosition = (sw) ? (sw-w)/2 : 0;
  TopPosition = (sh) ? (sh-nh-20)/2 : 0;

  if ((TopPosition+nh) > sh)
    TopPosition = 0;

  if (navigator.appVersion.indexOf("Mac") != -1)
    scr="mac";
  else
    scr="win";

//LeftPosition = (sw-w)/2;
  //TopPosition = 20;

  settings = 'height='+nh+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll


  //alert(settings)
  msg = open("",myname,settings)

  msg.document.write("<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\n");
  msg.document.write("<HTML>\n");
  msg.document.write("<HEAD>\n<TITLE>"+myTitle+"</TITLE>\n");
  msg.document.write("<META NAME=\"Author\" CONTENT=\"Akensoft - www.akensoft.it\">\n");

  astr='<LINK REL="stylesheet" HREF="'+mybaseref+'script/'+scr+'.css" TYPE="text/css">\n';
  //alert(astr)
  msg.document.write(astr);

  msg.document.write("<STYLE>\n");
  msg.document.write("<!--\n");
  msg.document.write("BODY\n");

  msg.document.write("A:link {text-decoration: none;}\n");
  msg.document.write("A:visited {text-decoration: none;}\n");
  msg.document.write("-->\n");
  msg.document.write("<\/STYLE>\n");

  msg.document.write("<SCRIPT language=\"JavaScript\">\n");
  msg.document.write("function chiudiFinestra() {\n");
  msg.document.write("window.close(); }\n");
  msg.document.write("</script>\n");

  msg.document.write("</head>\n");
  msg.document.write("<body bgcolor=\""+myBgColor+"\" marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0>\n");
  msg.document.write("<center>\n");

  msg.document.write('<table border="0" cellspacing="1" cellpadding="3" align="center">\n');
  msg.document.write('<tr>\n');
  msg.document.write('<td><!--- video ---->\n');
  msg.document.write('<! HTML INSERT BEGIN /!>\n');
  msg.document.write('<! RealPublisher\n');
  msg.document.write('-- Comment Text Created By RealProducer Web Page Wizard - 7/24/2000\n');
  msg.document.write('-- Caution: Do not make changes to this comment section.  Any local file\n');
  msg.document.write('references that appear here are automatically updated when uploaded to a\n');
  msg.document.write('remote web server. Alterations to this section or any file references\n');
  msg.document.write('listed below or contained in the associated RAM or RPM metafiles may cause\n');
  msg.document.write('errors when publishing your web page to a remote server. These values should\n');
  msg.document.write('not be altered.\n');
  msg.document.write('-- pagelayout="embedded"\n');
  myStr='-- serverpath="'+myVideoDir+'"\n';
  msg.document.write(myStr);
  //alert(myStr);
  myStr='-- mediafile="'+myVideo+'.rm"\n';
  msg.document.write(myStr);
  //alert(myStr);
  myStr='-- metafile="'+myVideo+'.rpm"\' /!> \n';
  msg.document.write(myStr);
  //alert(myStr);
  msg.document.write('<p>\n');
  msg.document.write('<object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height='+videoH+' width='+videoW+'>\n');
  msg.document.write('<param name="controls" value="ImageWindow">\n');
  msg.document.write('<param name="console" value="Clip1">\n');
  msg.document.write('<param name="autostart" value="true">\n');
  msg.document.write('<param name="src" value="'+myVideo+'.rm">\n');
  msg.document.write('<embed src="'+myVideo+'.rpm" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ImageWindow" height='+videoH+' width='+videoW+' autostart=true>\n');
  msg.document.write('</object>\n');
  msg.document.write('<p>\n');
  msg.document.write('<object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height=25 width=45>\n');
  msg.document.write('<param name="controls" value="PlayButton">\n');
  msg.document.write('<param name="console" value="Clip1">\n');
  msg.document.write('<embed type="audio/x-pn-realaudio-plugin" console="Clip1" controls="PlayButton" height=25 width=45 autostart=true>\n');
  msg.document.write('</object>\n');
  msg.document.write('<object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height=25 width=35>\n');
  msg.document.write('<param name="controls" value="StopButton">\n');
  msg.document.write('<param name="console" value="Clip1">\n');
  msg.document.write('<embed type="audio/x-pn-realaudio-plugin" console="Clip1" controls="StopButton" height=25 width=35 autostart=true>\n');
  msg.document.write('</object>\n');
  msg.document.write('<p><p><p>\n');
  msg.document.write('<! HTML INSERT END /!></td>\n');
  msg.document.write('</tr>\n');
  msg.document.write('</table>\n');

  msg.document.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD>\n");
  msg.document.write("<tr><TD ALIGN=CENTER CLASS=\"closebut\">\n");
  msg.document.write("<A HREF=\"javascript:chiudiFinestra()\"><B>Chiudi finestra</B></A><BR><BR>\n</TD></tr>\n");

  msg.document.write("</TABLE>\n");
  msg.document.write("</center>\n");
  msg.document.write("</body>\n");
  msg.document.write("</HTML>");

  if(msg.window.focus){msg.window.focus();}
}


  function myAlert(msg) {
    alert(msg)
  }

   if (document.layers) window.onresize=ricarica;

   function ricarica()
   {document.location.reload()}

//--->