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

	
	//-vertical

	var exceptionSlide = new Fx.Slide('the_exception', {duration: 'long'});
	var ruleSlide = new Fx.Slide('the_rule', {duration: 'long'});
	var images = ['images/bottle_the_rule-off.jpg','images/bottle_the_rule-on.jpg','images/bottle_the_exception-off.jpg','images/bottle_the_exception-on.jpg'];
	
	var loader = new Asset.images(images);

	var testFx = new Fx({duration: 500, wait: false});
	// $('v_slidein').addEvent('click', function(e){
	// 	e.stop();
	// 	myVerticalSlide.slideIn();
	// });
	// 
	// $('v_slideout').addEvent('click', function(e){
	// 	e.stop();
	// 	myVerticalSlide.slideOut();
	// });

	exceptionSlide.hide();
	ruleSlide.hide();
	
	$('toggle_the_exception').addEvent('click', function(e){
		e.stop();
		exceptionSlide.toggle();
	});
	
	$('toggle_the_rule').addEvent('click', function(e){
		e.stop();
		ruleSlide.toggle();
	});
	
	

	$('toggle_the_exception').addEvent('mouseover', function(e){
		this.firstChild.src = this.firstChild.src.replace(/-off/g,'-on');
	});
	
	$('toggle_the_exception').addEvent('mouseout', function(e){
		this.firstChild.src = this.firstChild.src.replace(/-on/g,'-off');
	});
	
	$('toggle_the_rule').addEvent('mouseover', function(e){
		this.firstChild.src = this.firstChild.src.replace(/-off/g,'-on');
	});
	
	$('toggle_the_rule').addEvent('mouseout', function(e){
		this.firstChild.src = this.firstChild.src.replace(/-on/g,'-off');
	});
	

});