var OM_mooQuickSlider = new Class({
	Implements: [Options, Events],
	options: {
		duration: 500,
		transition: Fx.Transitions.Quad.easeInOut,
		trigger: null,
		slider: null,
		cancel: null
	},
	initialize: function(options){
		this.setOptions(options);
		this.trigger = this.options.trigger;
		this.slider = this.options.slider;
		this.cancel = this.options.cancel;
		this.domReady();
	},
	domReady: function(){
		this.trigger = $(this.trigger);
		this.slider = $(this.slider);
		this.cancel = $(this.cancel);
		
		if($defined(this.trigger)&&$defined(this.slider)){
			this.slider.set('slide', {
				duration: this.options.duration,
				transition: this.options.transition
			});
			this.slider.slide('hide');
			
			this.trigger.addEvent('click', function(event){
				event.stop();
				var slide = this.slider.get('slide');
				slide.toggle();
			}.bind(this));
			
			if($defined(this.cancel)){
				this.cancel.addEvent('click', function(event){
					event.stop();
					var slide = this.slider.get('slide');
					slide.slideOut();
				}.bind(this));
			};
		};
	}
});
