var thomasfx = {

	initialize: function() {
		thomasfx.menus = GSSI.DOM.getElementsByClassName('topmenu');
		var m;
		for ( var i=0; i<thomasfx.menus.length; i++ ) {
			m = thomasfx.menus[i];
			if (m.className.indexOf('active') != -1) {
				m._jpcurrent = true;
			}
		}
		GSSI.Events.Add(thomasfx.menus,'mouseover', thomasfx.showMenu);
		GSSI.Events.Add(thomasfx.menus,'mouseout', thomasfx.hideMenu);
	},
	
	showMenu: function () {
		mainmenu.show(this.id, this);
	},
	
	hideMenu: function () {
		mainmenu.hide();
	}
	
};

GSSI.Events.onDOMReady(function() {
	thomasfx.initialize();
});// JavaScript Document