var scroll = new Fx.Scroll('main', {
  wait: false,
  duration: 1500,
  offset: {'x': 0, 'y': 0},
  transition: Fx.Transitions.Quad.easeInOut
});

$('link1').addEvent('click', function(event) {
  event = new Event(event).stop();
  scroll.toElement('aboutus');
});

$('link2').addEvent('click', function(event) {
  event = new Event(event).stop();
  scroll.toElement('presentation');
});

$('link3').addEvent('click', function(event) {
  event = new Event(event).stop();
  scroll.toElement('prestations');
});

$('plusdinfo').addEvent('click', function(event) {
  event = new Event(event).stop();
  scroll.toElement('prestations');
});


$('link4').addEvent('click', function(event) {
  event = new Event(event).stop();
  scroll.toElement('contact');
});

var prscroll = new Fx.Scroll('prestationsScroll', {
  wait: false,
  duration: 1500,
  offset: {'x': 0, 'y': 0},
  transition: Fx.Transitions.Cubic.easeInOut
});

$('bevaday').addEvent('click', function(event) {
  event = new Event(event).stop();
  prscroll.toElement('bevadayContainer');
  $('bevaday').className='active';
  $('creativite').className='';
  $('simplicite').className='';
  $('agilite').className='';
  $('bevaday').blur();
});

$('creativite').addEvent('click', function(event) {
  event = new Event(event).stop();
  prscroll.toElement('creativiteContainer');
  $('bevaday').className='';
  $('creativite').className='active';
  $('simplicite').className='';
  $('agilite').className='';
  $('creativite').blur();
});

$('simplicite').addEvent('click', function(event) {
  event = new Event(event).stop();
  prscroll.toElement('simpliciteContainer');
  $('bevaday').className='';
  $('creativite').className='';
  $('simplicite').className='active';
  $('agilite').className='';
  $('simplicite').blur();
});

$('agilite').addEvent('click', function(event) {
  event = new Event(event).stop();
  prscroll.toElement('agiliteContainer');
  $('bevaday').className='';
  $('creativite').className='';
  $('simplicite').className='';
  $('agilite').className='active';
  $('agilite').blur();

});

window.addEvent('domready', function(){
  prscroll.toElement('bevadayContainer');
  $('mbc').href='contact.php';
});
var box = {};
window.addEvent('domready', function(){
  box = new MultiBox('mbcontact', {useOverlay: true});
});
var cartes = {};
window.addEvent('domready', function(){
  cartes = new MultiBox('mbcartes', {useOverlay: true});
});

