
window.onload = function() {


                 /*** MENU' ***/
                 /*** 
				 Le tendine vengono aperte sia al click del mouse, sia navigando con la tastiera 
				 E' possibile chiudere il MENU' precedentemente aperto cliccando su una qualsiasi parte della pagina.
				 Tutto questo avviene perchè tramite la DIV "container", contenitore dell'intera pagina HTML
				 ***/
                 _as = document.getElementsByTagName( "A" );

                 for( var _count = 0; _count < _as.length; _count++ )
                  if( _as[_count].className === "actuator" )
                   _items[_items.length] = _as[_count].id;

                 for( var _index in _items )
                  _initializeMenu_( _items[_index] + "Menu", _items[_index] );

                 _divs = document.getElementsByTagName( "DIV" );

                 for( var _count = 0; _count < _divs.length; _count++ ) {
                  if( ( _divs[_count].id !== "mainMenu" ) && ( _divs[_count].id !== "container" ) )
                   _divs[_count].onclick = function() {
                                            if( _isTopAlign_() && ( null !== _currentMenu ) ) {
                                             _currentMenu.style.visibility = "hidden";
                                             _currentMenu.style.display = "none";
                                             _currentMenu = null;
                                            }

                                            return;
                                           }
                 }

                 _menuResize_();


                 /*** PULITORE ***/
                 _recParseTree_( document );


                 /*** MOTORE DI RICERCA ***/
                 if( document.getElementById( "go" ) ) {
                  document.getElementById( "go" ).onmouseover = function() {
                                                                 this.style.backgroundColor='#003399';
                                                                 this.style.color='#FFFFFF';
                                                                 return;
                                                                }
															   
                  document.getElementById( "go" ).onmouseout = function() {
                                                                this.style.backgroundColor='#ffffff';
                                                                this.style.color='#003399';
                                                                return;
                                                               }
                 }


                  /* [09-SETT-2008] Modifica per la chiusura menu su tabulazione per i menù che non hanno sottovoci */
                  if( document.getElementById( "Uffici" ) ) {
                   document.getElementById( "Uffici" ).onfocus = function() {
                                                                  if( null !== _currentMenu ) {
                                                                   _currentMenu.style.visibility = "hidden";
                                                                   _currentMenu.style.display = "none";
                                                                   _currentMenu = null;
                                                                  }
                                                            }
                  }
                  /* [09-SETT-2008] Fine modifica per la chiusura menu su tabulazione */

                 return;
                }

window.onresize = function() {


                   /*** MENU' ***/
                   if ( ( ! _isLeftAlign_() ) && ( null !== _currentMenu ) ) {
                    _currentMenu.style.visibility = "hidden";
                    _currentMenu.style.display = "none";
                    _currentMenu = null;
                   }

                   _menuResize_();


                   return;

                  }

