var toto = 0;
window.addEvent('domready', function() {
  var scroll = new Fx.Scroll('tile-wrap', {
    wait: false,
    duration: 100,
    offset: {'x': -250, 'y': 0},
    transition: Fx.Transitions.Quad.easeInOut
  });

  $('up').addEvent('click', function(e) {
    new Event(e).stop();
    toto = (toto < 100) ? 0 : toto - 100;
    scroll.scrollTo(0, toto);
    mySlide3.set(toto);
  });

  $('down').addEvent('click', function(e) {
    new Event(e).stop();
    toto = (toto > 200) ? 300 : toto + 100;
    scroll.scrollTo(0, toto);
    mySlide3.set(toto);
  });

  var mySlide3 = new Slider($('area3'), $('knob3'), {
    steps: 250,
    mode: 'vertical',

    onChange: function(step){
      scroll.scrollTo(0, step);
    }
  }).set(0);
});

function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  fenetre=window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
  fenetre.focus();
}