// Browser sniff /////////////////
var ie5ns6up=0;
var ns4up=0;
var ie4up=0;

if (document.all) {
   ie4up=1;
   }
else if (document.layers) {
   ns4up = 1;
   }
else if (document.getElementById) {
   ie5ns6up = 1;
   }

/// Protect //////////////////////////////////////
var ver="X1.9";
var message="Trenoproblem Version "+ver;
function click(e) {
  if (ie4up) {
    if (event.button==2||event.button==3) {
      alert(message);
      return false;
      }
    }
 if (ie5ns6up) {
   if (e.which == 3) {
     alert(message);
     return false;
     }
   }
 }
 //if (ie5ns6up) {
 //  document.captureEvents(Event.MOUSEDOWN);
 //  }
 //document.onmousedown=click;

function menu_fondo() {
   //Menù testuale in fondo alle pagine
   document.write('<A HREF="http://www.trenoproblem.it/index.html" TARGET="_top">[Home</A> &nbsp;|');
   document.write('<A HREF="http://www.trenoproblem.it/scelt_rec.html" TARGET="Frame_Corpo">Invia segnalazioni</A> &nbsp;|');
   document.write('<A HREF="http://www.trenoproblem.it/cgi-bin/tr_leggi_linee.php" TARGET="Frame_Corpo">Leggi segnalazioni</A> &nbsp;|');
   document.write('<A HREF="http://www.trenoproblem.it/cgi-bin/tr_leggi_temi.php" TARGET="Frame_Corpo">Forum</A> &nbsp;|');
   document.write('<A HREF="http://www.trenoproblem.it/link_ferrovie.html" TARGET="Frame_Corpo">Ferrovie</A> &nbsp;|');
   document.write('<A HREF="http://www.trenoproblem.it/orari_treni.html" TARGET="Frame_Corpo">Orario FS</A> &nbsp;|');
   document.write('<A HREF="http://www.trenoproblem.it/utilinks.html" TARGET="Frame_Corpo">Link</A> &nbsp;|');
   document.write('<A HREF="http://www.trenoproblem.it/webmaster.html" TARGET="Frame_Corpo">webmaster]</A> ');
   }

function verifica_load() {
   if (!(top.Frame_Up)) {
	top.location="index.html";
	}
   }
