// developed by plgrs@lacab.roma.it if you want, leave this remarks

// Browser 
var nvn = navigator.appName;
var nvv = parseInt(navigator.appVersion);
var ie = ((nvn.substring(0,9) == "Microsoft") && (nvv >= 4));
var ne = ((nvn == "Netscape") && (nvv >= 4));
var to; var flag=true;

function toggle() {
 if (flag) {
  flag=false;
  startclick();
 } else {
  flag=true;
  startout();
 };
};

function init() {
 window.onError = null;
if (ne) {
 r = document.links[document.links.length-1].href;
} else {
 r = document.all["root"].href;
};
 r = r.substr(0,r.length-9);

c = '<table width="115" border="0" cellspacing="0" cellpadding="0" height="78">';
c += '<tr>';
c += '<td width="115" height="78" align="center">';
c += '<a href="javascript:toggle()"><img src="'+r+'/forumpa2002/img/menu/blogo.gif" heigth="78" width="80" border="0" alt="MENU FORUM P.A."></a>'; 
c += '</td>';
c += '</tr>';
c += '</table>';
newLayer("s",115,78,1,11,c,"hidden",10,null);
c = '<table width="115" border="0" cellspacing="0" cellpadding="0" height="342">';
c += '<tr>';
c += '<td width="115" height="77" align="center">';
c += '<a href="javascript:toggle()"><img src="'+r+'/forumpa2002/img/menu/blogo.gif" alt="MENU FORUM P.A." border="0" height="78" width="80"></a></td>';
c += '</td>';
c += '</tr>';
c += '<tr>';
c += '<td width="115" height="44"><a href="'+r+'/forumpa2002/home/home.htm"><img src="'+r+'/forumpa2002/img/menu/bhome.gif" alt="Home page FORUM P.A." border="0" height="44" width="115" align="top"></a></td>';
c += '</tr>';
c += '<tr>';
c += '<td width="115" height="44"><a href="'+r+'/forumpa2002/info/cosaeforumpa.html"><img src="'+r+'/forumpa2002/img/menu/bforumpacose.gif" alt="Cosa è FORUM P.A." border="0" height="44" width="115" align="top"></a></td>';
c += '</tr>';
c += '<tr>';
c += '<td width="115" height="44"><a href="'+r+'/forumpa2002/info/forumpa2002.html"><img src="'+r+'/forumpa2002/img/menu/b2002.gif" alt="La prossima edizione di FORUM P.A." border="0" height="44" width="115" align="top"></a></td>';
c += '</tr>';
c += '<tr>';
c += '<td width="115" height="44"><a href="'+r+'/forumpa2001/home.html"><img src="'+r+'/forumpa2002/img/menu/b2001.gif" width="115" height="44" alt="FORUM P.A. 2001" border="0"></a></td>';
c += '</tr>';
c += '<tr>';
c += '<td width="115" height="44"><a href="'+r+'/forumpa2001/convegni/home.htm"><img src="'+r+'/forumpa2002/img/menu/batti2001.gif" width="115" height="44" border="0" alt="Le relazioni presentate a FORUM P.A. 2001"></a></td>';
c += '</tr>';
c += '<tr>';
c += '<td width="115" height="44">&nbsp;</td>';
c += '</tr>';
c += '</table>';

newLayer("m",115,342,1,11,c,"hidden",15,null);
faceLayer('s','visible');
}

// function makeLayer(id,left,top,width,height,visibility,zIndex,content) {
// var html = '\n<DIV onMouseOut="startout()" onMouseOver="startclick()" id='+id+' style="position:absolute; left:'+left+'; top:'+top+'; width:'+width+'; height:'+height+'; clip:rect(0,'+width+','+height+',0); z-index:'+zIndex+'; visibility:'+visibility+'; clip:rect(0,"+dx+","+dy+",0);">'+content+'</DIV>';
// document.body.insertAdjacentHTML("BeforeEnd",html)
// }


function newLayer(n,w,h,l,t,c,v,z,b) {
if (ne) {
 if (document.layers[n]) delLayer(n);
 document.layers[n] = new Layer(w);
 with ( document.layers[n] ) {
  if (l) left = l ;
  if (t) top = t;
  if (h) height = h;
  if (b) bgColor = b;
  if (v) visibility = v;
  if (z) zIndex = z;
  if (c) {
   document.open();
   document.write(c);
   document.close();
  };
 };
} else {
  if (document.all[n]) delLayer(n);
  cont = '\n<DIV ID="'+n+'" STYLE="position:absolute; ';
  if (w) cont += ' width:'+w+'; '
  if (l) cont += ' left:'+l+'; '
  if (t) cont += ' top:'+t+'; ';
  if (h) cont += ' height:'+h+'; ';
  if (b) cont += ' background-color:'+b+'; ';
  if (v) cont += ' visibility:'+v+'; ';
  if (z) cont += ' z-index:'+z+'; ';
  //if ((h) && (w)) cont += ' clip:rect(0,'+w+','+h+',0); '
  cont += '">\n' + c + '\n</DIV>\n';
  document.body.insertAdjacentHTML("BeforeEnd",cont);
}
}

function faceLayer(id,visibility) {
(ne) ?  document.layers[id].visibility = visibility : document.all[id].style.visibility = visibility;
}

function iconreset() {
 faceLayer("m", "hidden");
}

function startclick() {
 faceLayer("m", "visible");
}

function startover() {
}

function startout() {
 iconreset();
}

