<!--
////////////////////////////////////////////////////////////////////////
// GESTIONE DELLA VISUALIZZAZIONE MENU' TASTO DESTRO MOUSE            //
////////////////////////////////////////////////////////////////////////

function Menu_Tasto_Destro(){
  document.write(
     '<!--[if IE]>'
    +'<DIV id=ie5menu onmouseover=highlightie5() onclick=jumptoie5() onmouseout=lowlightie5()>'
    +' <HR>'
    +'  <DIV class=menuitems url="index.asp" desc=" Vai alla Pagina Iniziale ...">'
    +'    <img border="0" src="images/menu_mouse/img_home.gif">Home Page'
    +'  </DIV>'
    +'  <DIV class=menuitems url="javascript:window.external.AddFavorite(\'http://www.ZampieriDavide.com\',\'Impresa Edile Zampieri Davide\')" desc=" Aggiungi www.ZampieriDavide.com alla Lista dei tuoi Preferiti ...">'
    +'    <img border="0" src="images/menu_mouse/img_preferiti.gif">Aggiungi ai Preferiti'
    +'  </DIV>'
    +'  <DIV class=menuitems onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.ZampieriDavide.com\');" desc=" Imposta www.ZampieriDavide.com come Pagina Iniziale del tuo browser ...">'
    +'    <img border="0" src="images/menu_mouse/img_set_home.gif">Imposta Home Page'
    +'  </DIV>'
    +'  <HR>'
    +'  <DIV class=menuitems url="javascript:history.go(0);" desc=" Aggiorna Pagina ...">'
    +'    <img border="0" src="images/menu_mouse/img_aggiorna.gif"> Aggiorna'
    +'  </DIV>'
    +'  <DIV class=menuitems url="javascript:history.go(+1);" desc=" Vai Avanti di una Pagina ...">'
    +'    <img border="0" src="images/menu_mouse/img_avanti.gif"> Pagina Avanti'
    +'  </DIV>'
    +'  <DIV class=menuitems url="javascript:history.back();" desc=" Vai Indietro di una Pagina ...">'
    +'    <img border="0" src="images/menu_mouse/img_indietro.gif"> Pagina Indietro'
    +'  </DIV>'
    +'  <HR>'
    +'  <DIV class=menuitems url="javascript:Print_Page()" desc=" Stampa Pagina ...">'
    +'    <img border="0" src="images/menu_mouse/img_stampa.gif"> Stampa Pagina'
    +'  </DIV>'
    +'  <DIV class=menuitems url="scrivici.asp" desc=" Scrivici attraverso di Servizio Posta o direttamente agli indirizzi email ...">'
    +'    <img border="0" src="images/menu_mouse/img_email.gif"> Scrivici'
    +'  </DIV>'
    +' <HR>'
    +'</DIV>'
    +'<![endif]-->'
  )
  document.oncontextmenu=showmenuie5
  if (document.all&&window.print)
    document.body.onclick=hidemenuie5;
}

////////////////////////////////////////////////////////////////////////
// GESTIONE DELLA VISUALIZZAZIONE MENU' TASTO DESTRO MOUSE LIMITATO   //
////////////////////////////////////////////////////////////////////////

function Menu_Tasto_Destro_Lim(lib){
  document.write(
     '<!--[if IE]>'
    +'<DIV id=ie5menu onmouseover=highlightie5() onclick=jumptoie5() onmouseout=lowlightie5()>'
    +' <HR>'
    +'  <DIV class=menuitems url="javascript:window.external.AddFavorite(\'http://www.ZampieriDavide.com\',\'Impresa Edile Zampieri Davide\')" desc=" Aggiungi www.ZampieriDavide.com alla Lista dei tuoi Preferiti ...">'
    +'    <img border="0" src="'+lib+'images/menu_mouse/img_preferiti.gif">Aggiungi ai Preferiti'
    +'  </DIV>'
    +'  <DIV class=menuitems onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.ZampieriDavide.com\');" desc=" Imposta www.ZampieriDavide.com come Pagina Iniziale del tuo browser ...">'
    +'    <img border="0" src="'+lib+'images/menu_mouse/img_set_home.gif">Imposta Home Page'
    +'  </DIV>'
    +'  <HR>'
    +'  <DIV class=menuitems url="javascript:history.go(0);" desc=" Aggiorna Pagina ...">'
    +'    <img border="0" src="'+lib+'images/menu_mouse/img_aggiorna.gif"> Aggiorna'
    +'  </DIV>'
    +'  <DIV class=menuitems url="javascript:history.go(+1);" desc=" Vai Avanti di una Pagina ...">'
    +'    <img border="0" src="'+lib+'images/menu_mouse/img_avanti.gif"> Pagina Avanti'
    +'  </DIV>'
    +'  <DIV class=menuitems url="javascript:history.back();" desc=" Vai Indietro di una Pagina ...">'
    +'    <img border="0" src="'+lib+'images/menu_mouse/img_indietro.gif"> Pagina Indietro'
    +'  </DIV>'
    +'  <HR>'
    +'  <DIV class=menuitems url="javascript:Print_Page()" desc=" Stampa Pagina ...">'
    +'    <img border="0" src="'+lib+'images/menu_mouse/img_stampa.gif"> Stampa Pagina'
    +'  </DIV>'
    +' <HR>'
    +'</DIV>'
    +'<![endif]-->'
  )
  document.oncontextmenu=showmenuie5
  if (document.all&&window.print)
    document.body.onclick=hidemenuie5;
}

////////////////////////////////////////////////////////////////////////
// FUNZIONI PER LA GESTIONE DEL MENU' TASTO DESTRO MOUSE              //
////////////////////////////////////////////////////////////////////////

//var display_url=1
  var display_desc=0

  function showmenuie5(){
    ie5menu.style.left=document.body.scrollLeft+event.clientX
    ie5menu.style.top=document.body.scrollTop+event.clientY
    ie5menu.style.visibility="visible"
    return false
  }

  function hidemenuie5(){
    ie5menu.style.visibility="hidden"
  }

  function highlightie5(){
    if (event.srcElement.className=="menuitems"){
      event.srcElement.style.backgroundColor="#F8F8F5"
      event.srcElement.style.color="#4A4A90"
//    if (display_url==1)
      if (display_desc==1)
//      window.status=event.srcElement.url
        window.status=event.srcElement.desc
    }
  }

  function lowlightie5(){
    if (event.srcElement.className=="menuitems"){
      event.srcElement.style.backgroundColor=""
      event.srcElement.style.color="#666699"
      window.status='Operazione completata'
    }
  }

  function jumptoie5(){
    if (event.srcElement.className=="menuitems")
      if (event.srcElement.url>" ")
        window.location=event.srcElement.url
  }

////////////////////////////////////////////////////////////////////////
// GESTIONE FUNZIONE PRINT                                            //
////////////////////////////////////////////////////////////////////////
function printit(){  
  if (NS) {
     window.print() ;  
  } else {
     var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
     document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
     WebBrowser1.ExecWB(6, 2);
  }
}

var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);

function Print_Page(){  
  if (VERSION > 3) {
    printit()
  }
}

function Print_Page_Bottom(){  
  if (VERSION > 3) {
    document.write('<form><input type=button value="Stampa Pagina" name="Print" onClick="printit()"></form>');
  }
}

///////////////////////////////////////////////////////////////////////
// GESTIONE FUNZIONE STATUS BAR                                       //
////////////////////////////////////////////////////////////////////////

//--Status Bar
var scrtxt="www.ZampieriDavide.com - Soluzioni per l'imprenditoria edile";
statusbar();

function statusbar(){
  window.status = scrtxt;
  setTimeout("statusbar()",150);
  return true;
}

////////////////////////////////////////////////////////////////////////
// GESTIONE FUNZIONE DATA / ORA                                       //
////////////////////////////////////////////////////////////////////////

//--Funzioni orario
  var dayarray=new 
    Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato")
           
  var montharray=new 
    Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre")

  function getthedate()
  {
    var mydate=new Date()
    var year=mydate.getYear()
        
    if (year < 1000)
      year+=1900

    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()

    if (daym<10)
      daym="0"+daym

    var hours=mydate.getHours()
    var minutes=mydate.getMinutes()
    var seconds=mydate.getSeconds()

    if (hours<=9)
      hours="0"+hours

    if (minutes<=9)
      minutes="0"+minutes

    if (seconds<=9)
      seconds="0"+seconds

    var cdate=""
    var cdate=cdate+dayarray[day]+", "+daym+" "+montharray[month]+" "+year+", ore "
    var cdate=cdate+hours+":"+minutes+":"+seconds+""
    if (document.all)
      document.all.clock.innerHTML=cdate
    else
      document.write(cdate)
  }
           
  if (!document.all)
    getthedate()
              
  function RestituisciDataOra()
  {
    if (document.all)
      setInterval("getthedate()",1000)
  }
  
  //Calls the init function onload
  //onload=goforit;

//-->