var tip;
window.addEvent("domready", function() {
	(function() {
		$$("a[class=menutop]", "a[class=menuleft]").each(function(item) {
			var loc = item.getCoordinates();
			
			var imgHover = item.getElement("img");
			imgHover.setStyles({
				opacity: 0.01,
				position: 'absolute',
				left: loc.left,
				top: loc.top,
				display: 'block',
				border: 'none',
				'z-index': 1
			});
			var fxHover = new Fx.Styles(imgHover, {duration: 300, wait: false});
		
			imgHover.addEvent("mouseenter", function() {
				fxHover.start({opacity: 1});
			});
			imgHover.addEvent("mouseout", function() {
				fxHover.start({opacity: 0.01});
			});
		});

		var oTips = new Tips('.menuleft', {
			className: 'tips',
			showDelay: 0,
			hideDelay: 0,
			initialize: function() {
				this.toolTip.setStyle('width', '250px');
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
			},
			onShow: function(tip) {
				this.fx.start(0.90);
			},
			onHide: function(tip) {
				this.fx.start(0);
			}
		});
	}).delay(100);
});