// Namespace object
telac = {};

telac.startUp = function () {
	$$('#navigationTop ul li a').each(function(item, index){
		item.addEvent('mouseover', function() {
			if(item.getNext() != null)
			{
				if(item.getNext().tagName == 'UL')
				{
					item.getNext().addClass('show')
					item.getParent().addEvent('mouseleave', function() {
						hideUL();
					});
				}
			}
		});
	});
	
	var hideUL = function() {
		$$('#navigationTop ul ul').each(function(item, index){
			item.removeClass('show')
		});
	}
}

window.addEvent('domready', function() {
	telac.startUp();
});