

window.onload = function() {





                 /*** MENU' ***/

                 _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 !== "menuSuperiore" ) && ( _divs[_count].id !== "template" ) && ( _divs[_count].id !== "header" ) )
                   _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;

                                                               }

                 }





/*  patch 10-SET-08 [chiusura menu' su apertura da tastiera] */
if( document.getElementById( "x00000000000000001" ) ) {
 document.getElementById( "x00000000000000001" ).onfocus = function() {
                                                            if( null !== _currentMenu ) {
                                                             _currentMenu.style.visibility = "hidden";
                                                             _currentMenu.style.display = "none";
                                                             _currentMenu = null;
                                                            }
                                                           }
}

if( document.getElementById( "x00000000000000007" ) ) {
 document.getElementById( "x00000000000000007" ).onfocus = function() {
                                                            if( null !== _currentMenu ) {
                                                             _currentMenu.style.visibility = "hidden";
                                                             _currentMenu.style.display = "none";
                                                             _currentMenu = null;
                                                            }
                                                           }
}
/*  fine patch */



                 return;
                }



window.onresize = function() {





                   /*** MENU' ***/

                   if ( ( ! _isLeftAlign_() ) && ( null !== _currentMenu ) ) {

                    _currentMenu.style.visibility = "hidden";

                    _currentMenu.style.display = "none";

                    _currentMenu = null;

                   }



                   _menuResize_();





                   return;



                  }

