
window.addEvent('domready', function(){
	
	document.objeclist = new Array();

	var accordion = new Accordion('h3.atStart', 'div.atStart', {
		opacity: false,
		fixedHeight: 325,
		duration: 600,
		transition: Fx.Transitions.Cubic.easeOut,
		
		onActive: function(toggler, element){
			toggler.setStyle('color', '#000000');
		},
		
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#FFFFFF');
		}
	}, $('accordion'));
	

	<!-- Horizontal Accordion Script -->
	var moveAmount = 880, interval = 20; 
 	
	var pleahs = $$("#pleah .acContent");
	var oo = 0;
	var pleahs2 = new Array();
	 
	pleahs.each(function(pleah, i){
		if(pleah.id != 'spare'){
			pleahs2[oo] = pleah;
			oo++;
			moveAmount = moveAmount-interval;
		}
	});
 	
	pleahs = pleahs2;
	
	var pleahFx = new Fx.Elements(pleahs, {wait: false, duration: 600, transition: Fx.Transitions.Quart.easeOut});
	
	var cooo = 0;
	pleahs.each(function(pleah, i) {
		cooo++;
	});
		
	pleahs.each(function(pleah, i) {
		pleah.setStyle("left", i * interval);
		
		if(document.blockslider != 111){
		
			pleah.addEvent("mouseenter", function(event) {
				var o = {};
				var l = pleah.getStyle("left").toInt()
				o[i] = {left: [l, i * interval]}			
				pleahs.each(function(other, j) {
					var l2 = other.getStyle("left").toInt();
					if(i > j) {
						o[j] = {left: [l2, j * interval]};
					}
					if(i < j) {
						var ammouter = (document.blockslider != 111)? moveAmount:0; 
						//document.objeclist[] = o[j];
						o[j] = {left: [l2, (j * interval) + ammouter]};
					}
				});
				pleahFx.start(o);
			});
		
		}
		
		});


}); 
		
	
function openup(nr){
	
	var moveAmount = 880, interval = 20; 

	var pleahs = $$("#pleah .acContent");
	
	pleahs.each(function(pleah, i){
		moveAmount = moveAmount-interval;
	});
	addy = 0;
	pleahs.each(function(pleah, i) {
		pleah.setStyle("left", (i * interval)+addy);
		if(i == nr){
			addy = moveAmount;
		}
	});

}
function slideup(nr){
	
	var moveAmount = 880, interval = 20; 

	var pleahs = $$("#pleah .acContent");
	
	var oo = 0;
	var pleahs2 = new Array();

	pleahs.each(function(pleah, i){
		if(pleah.id != 'spare'){
			pleahs2[oo] = pleah;
			oo++;
			moveAmount = moveAmount-interval;
		}
	});
	pleahs = pleahs2;

	addy = 0;

	pleahs.each(function(pleah, i) {
											 
		fx2 = new Fx.Styles(pleah, {duration: 600, wait: false, transition : Fx.Transitions.Quint.easeOut });
		fx2.start({
			'left':  ((i * interval)+moveAmount)
		});

	});

}