window.addEvent('domready', function(){

	if ( $('article') ) {
		var el = $('slider'), article = $('article');
		var articleHeight = $('article').getSize().y - 400;
	
		// Create the new slider instance
		new Slider(el, el.getElement('.knob'), {
			range: [0, articleHeight],
			mode: 'vertical',
			wheel: true,
			onChange: function(value){
			// Everytime the value changes, we change the "margin-top" of an element
			value = "-" + value + "px";
			article.setStyle('margin-top', value);
			}
		}).set(article.getStyle('margin-top').toInt());
	}

	if( $('bottle-fc') ) {
		var bottle = new Swiff('/flash/bottle.swf', {
			id: 'bottle-fc-fo',
			width: '424',
			height: '682',
			container: $('bottle-fc'),
			params: {
				wmode: 'transparent'
			}
		});
	}
	
	if( $('bubble-fc') ) {
		var bottle = new Swiff('/flash/bubble.swf', {
			id: 'bubble-fc-fo',
			width: '506',
			height: '469',
			container: $('bubble-fc'),
			params: {
				wmode: 'transparent'
			}
		});
	}
	
	if( $('bottle-ic') ) {
		var bottle = new Swiff('/flash/bottle.swf', {
			id: 'bottle-ic-fo',
			width: '358',
			height: '704',
			container: $('bottle-ic'),
			params: {
				wmode: 'transparent'
			}
		});
	}
	
	if( $('bubble-ic') ) {
		var bottle = new Swiff('/flash/bubble.swf', {
			id: 'bubble-ic-fo',
			width: '650',
			height: '510',
			container: $('bubble-ic'),
			params: {
				wmode: 'transparent'
			}
		});
	}

});