function init() {
	//==========================================================================================
	// if supported, initialize TransMenus
	//==========================================================================================
	// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
	// This is better than server-side checking because it will also catch browsers which would
	// normally support the menus but have javascript disabled.
	//
	// If supported, call initialize() and then hook whatever image rollover code you need to do
	// to the .onactivate and .ondeactivate events for each menu.
	//==========================================================================================
	if (TransMenu.isSupported()) {
		TransMenu.initialize();

		// hook all the highlight swapping of the main toolbar to menu activation/deactivation
		// instead of simple rollover to get the effect where the button stays hightlit until
		// the menu is closed.

		menu0.onactivate = function() { //  hightlights
			//document.getElementById("liguria").className = "hover";
			MM_swapImage('home','','imatges/c-inicio-on.jpg',1);
		};
		menu0.ondeactivate = function() {
			//document.getElementById("liguria").className = "";
        MM_swapImgRestore();
		};
		menu1.onactivate = function() { //  hightlights
			//document.getElementById("liguria").className = "hover";
			MM_swapImage('highlights','','imatges/c-ven-on.jpg',1);
		};
		menu1.ondeactivate = function() {
			//document.getElementById("liguria").className = "";
        MM_swapImgRestore();
		};
		menu2.onactivate = function() { // newsroom
			//document.getElementById("lombardia").className = "hover";
			MM_swapImage('newsroom','','imatges/c-news-on.jpg',1);
		};
		menu2.ondeactivate = function() {
			//document.getElementById("lombardia").className = "";
        MM_swapImgRestore();
		};

		menu3.onactivate = function() { // mastercontrolroom
			//document.getElementById("veneto").className = "hover";
        MM_swapImage('mastercontrolroom','','imatges/c-master-on.jpg',1);
		};
		menu3.ondeactivate = function() {
			//document.getElementById("veneto").className = "";
        MM_swapImgRestore();
		};

		menu4.onactivate = function() { // smartsolutions
			//document.getElementById("toscana").className = "hover";
        MM_swapImage('smartsolutions','','imatges/c-soluci-on.jpg',1);
		};
		menu4.ondeactivate = function() {
			//document.getElementById("toscana").className = "";
        MM_swapImgRestore();
		};

		// al boto home no tenim menu, per tant fem referencia a ell mateix directament
		//document.getElementById("home").onmouseover = function() {
		//	ms.hideCurrent();
		//	//this.className = "hover";
		//	MM_swapImage('home','','imatges/c-inicio-on.jpg',1);
		//}
    //
		//document.getElementById("home").onmouseout = function() {
		//	//this.className = "";
    //    MM_swapImgRestore();
		//}
	}

}

