window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	
	//-we declare the sections
	var elementHome = new Fx.Slide('element_home');
	var elementAbout = new Fx.Slide('element_about');
	var elementWhySoqus = new Fx.Slide('element_why_soqus');
	var elementServices = new Fx.Slide('element_services');
	var elementContact = new Fx.Slide('element_contact');
	var elementRegistration = new Fx.Slide('element_registration');
	
	//when the page is loaded we hide all sections but the Home
	elementAbout.hide();
	elementWhySoqus.hide();
	elementServices.hide();
	elementContact.hide();
	elementRegistration.hide();


	$('button_home').addEvent('click', function(e){
		e.stop();
		elementHome.slideIn();
		elementAbout.slideOut();
		elementWhySoqus.slideOut();
		elementServices.slideOut();
		elementContact.slideOut();
		elementRegistration.slideOut();
	});

	$('button_about').addEvent('click', function(e){
		e.stop();
		elementHome.slideOut();
		elementAbout.slideIn();
		elementWhySoqus.slideOut();
		elementServices.slideOut();
		elementContact.slideOut();
		elementRegistration.slideOut();
	});

	$('button_why_soqus').addEvent('click', function(e){
		e.stop();
		elementHome.slideOut();
		elementAbout.slideOut();
		elementWhySoqus.slideIn();
		elementServices.slideOut();
		elementContact.slideOut();
		elementRegistration.slideOut();
	});

	$('button_services').addEvent('click', function(e){
		e.stop();
		elementHome.slideOut();
		elementAbout.slideOut();
		elementWhySoqus.slideOut();
		elementServices.slideIn();
		elementContact.slideOut();
		elementRegistration.slideOut();
	});

	$('button_contact').addEvent('click', function(e){
		e.stop();
		elementHome.slideOut();
		elementAbout.slideOut();
		elementWhySoqus.slideOut();
		elementServices.slideOut();
		elementContact.slideIn();
		elementRegistration.slideOut();
	});
	
	$('button_registration').addEvent('click', function(e){
		e.stop();
		elementHome.slideOut();
		elementAbout.slideOut();
		elementWhySoqus.slideOut();
		elementServices.slideOut();
		elementContact.slideOut();
		elementRegistration.slideIn();
	});

	$('button_about_contact').addEvent('click', function(e){
		e.stop();
		elementHome.slideOut();
		elementAbout.slideOut();
		elementWhySoqus.slideOut();
		elementServices.slideOut();
		elementContact.slideIn();
	});

	$('button_services_contact').addEvent('click', function(e){
		e.stop();
		elementHome.slideOut();
		elementAbout.slideOut();
		elementWhySoqus.slideOut();
		elementServices.slideOut();
		elementContact.slideIn();
	});


//services section
//	var services2 = new Fx.Slide('services2');
//	var services3 = new Fx.Slide('services3');
//	var services7 = new Fx.Slide('services7');
//	
//	//when the page is loaded we hide all services sections 
//		services2.hide();
//		services3.hide();
//		services7.hide();
//
//	$('button_services2').addEvent('click', function(e){
//		e.stop();
//		services2.toggle();
//		services3.slideOut();
//		services7.slideOut();
//	});
//
//	$('button_services3').addEvent('click', function(e){
//		e.stop();
//		services2.slideOut();
//		services3.toggle();
//		services7.slideOut();
//	});
//
//	$('button_services7').addEvent('click', function(e){
//		e.stop();
//		services2.slideOut();
//		services3.slideOut();
//		services7.toggle();
//	});


});
