Event.observe(document, 'dom:loaded', function() {
	$$('#nav ul li').each(function(x) {
		if (x.down('ul')) {
			x.onmouseover = function() {
				$(this).down('ul').show();
				$(this).addClassName('selected');
			}
			x.onmouseout = function() {
				$(this).down('ul').hide();
				$(this).removeClassName('selected');
			}
		}
	});
});


