// JavaScript Document

var stretchers = $$('div.stretch');
		stretchers.each(function(item){
			item.setStyles({'height': '0', 'overflow': 'hidden'});
		});

var togglers = $$('h4.toggle');
	
window.onload = function(){
	
var myAccordion = new Fx.Accordion(togglers, stretchers, { duration: 1000, opacity:true, display: 0, fixedHeight: 200, transition: Fx.Transitions.expoOut,
			onActive: function(toggler, i){
				toggler.addClass('current');
			},
		
			onBackground: function(toggler, i){
				toggler.removeClass('current');
			}
		});
		
		if ($('slideshow')){
		var myShow = new Slideshow('sd', {hu: 'images/slideshow/', duration: [2000, 4000], width:291, height:200, type: 'fade', images: ['2.jpg','3.jpg','4.jpg','5.jpg','6.jpg','1.jpg']});
		}
};

