var Tips=new Class({
	initialize: function() {
		this.addEvents();
	},

	addEvents: function() {
		$$('#menu > ul ul > li').each(function(el) {
			var tip=el.getElements('.tip');
			
			tip.fade('hide');
			tip.set('tween', { duration: 150 });
			
			el.addEvent('mouseover', function() {
				tip.fade(1);
				tip.setStyle('display', 'block');
			}.bindWithEvent(this));
			
			el.addEvent('mouseout', function() {
				tip.fade(0);
				tip.setStyle('display', 'none');
			}.bindWithEvent(this));
		}.bind(this));
	}
});

window.addEvent('domready', function() {
	var tips=new Tips();
});
