var Rapture = new Class({
	Implements: [Events, Options],
	options: {
		'container': document.body
	},
	initialize: function(options) {
		var that = this;		
		this.setOptions(options);	
		
		this.rail = new Element('div', {
			'class': 'rapture-rail'
		});
		this.pin = new Element('div', {
			'class': 'rapture-pin'
		});
		
		/*this.links = new Element('div', {
			'class': 'rapture-links'
		});
		
		this.reset_link = new Element('a', {
			'class': 'rapture-link',
			'href': '#reset',
			'events': {
				'click': function() {
					
				}
			},
			'text': 'reset'
		});
		
		this.about_link = new Element('a', {
			'class': 'rapture-link',
			'href': '#instructions',
			'text': 'instructions'
		});
		
		this.mused_link = new Element('a', {
			'class': 'rapture-link',
			'href': '#mused',
			'text': 'mused'
		});*/
		
		$(this.options.container).adopt(this.rail.adopt(this.pin)/*, this.links.adopt(this.reset_link, this.about_link, this.mused_link)*/);
		this.slider = new Slider(this.rail, this.pin);
		$(that.options.hidden).set('value', 0);
		
		this.slider.addEvent('onComplete', function(step) {
			if ($(that.options.hidden)) {
				var position = Math.floor((step / 100) * 250);
				$(that.options.hidden).set('value', position);
			}
		});
	}
});