// JavaScript Document
window.addEvent('domready', function() {
	$$(".slideMO").each(function(el) {
		var aId = el.id;
		
		el.setStyle('visiblity', 'visible');
		el.setStyle('opacity', 0.01);

	el.addEvents({
				'mouseover': function() {
					//var newId = this.id;
					//document.getElementById(newId).style.visibility = 'visible';
					try { this.retrieve('curTween1').cancel() } catch(e) {};
					this.store('curTween1', new Fx.Tween(this, {
						duration: 400
					}).start('opacity', 0.9));
						},
				'mouseout': function() {
					var newId = this.id;
					try { this.retrieve('curTween1').cancel() } catch(e) {};
					this.store('curTween1', new Fx.Tween(this, {
						duration: 400
					}).start('opacity', 0.01));
				}
			});
	});
	
	$$(".goForward").each(function(el) {
		var aId = el.id;
		el.setStyle('opacity', 0.5);

	el.addEvents({
				'mouseover': function() {
					//var newId = this.id;
					//document.getElementById(newId).style.visibility = 'visible';
					try { this.retrieve('curTween1').cancel() } catch(e) {};
					this.store('curTween1', new Fx.Tween(this, {
						duration: 300
					}).start('opacity', 1));
						},
				'mouseout': function() {
					var newId = this.id;
					try { this.retrieve('curTween1').cancel() } catch(e) {};
					this.store('curTween1', new Fx.Tween(this, {
						duration: 300
					}).start('opacity', 0.5));
				}
			});
	});
	
	$$(".goBack").each(function(el) {
		var aId = el.id;
		
		el.setStyle('opacity', 0.5);

	el.addEvents({
				'mouseover': function() {
					//var newId = this.id;
					//document.getElementById(newId).style.visibility = 'visible';
					try { this.retrieve('curTween1').cancel() } catch(e) {};
					this.store('curTween1', new Fx.Tween(this, {
						duration: 300
					}).start('opacity', 1));
						},
				'mouseout': function() {
					var newId = this.id;
					try { this.retrieve('curTween1').cancel() } catch(e) {};
					this.store('curTween1', new Fx.Tween(this, {
						duration: 300
					}).start('opacity', 0.5));
				}
			});
	});
	
});


