/** $Id:$ **/

Element.extend({
	show: function() {
		this.setStyle('display', '');
	},
	hide: function() {
		this.setStyle('display', 'none');
	}
});
var LocationsMenu = new Class({
	initialize: function (navigation) {
		$A($(navigation).childNodes).each(function(navItem) {
			if (navItem.nodeName.toLowerCase() == 'li') {
				$A($(navItem).childNodes).each(function(subNav) {
					if(subNav.nodeName.toLowerCase() == 'ul') {
						navItem.addEvent('mouseover',function() {
							subNav.show();
							return false;
						});
						navItem.addEvent('mouseout',function() {
							subNav.hide();
						});
						new LocationsMenu(subNav);
					}
				});
			}
		});
		return this;
	}
});
LocationsMenu.implement(new Events);
