Trouble running multible servos with servo.h

I am about to start a project where i need to be able to control 6 individual servos. I have had success with 2 servos using the servotimer1.h header. However using the servo.h header (so that i can control more then 2 servos) all i can get is jitters on all three servos.

Here is my code based off the arduino.cc servo.h example(http://www.arduino.cc/playground/ComponentLib/Servo)

#include <Servo.h>

Servo servo1;
Servo servo2;
Servo servo3;

void setup()
{
servo1.attach(8);
servo1.setMaximumPulse(2200);
servo2.attach(9);
servo3.attach(10);
Serial.begin(19200);
Serial.print(“Ready”);
}

void loop()
{
// test servo 1 on pin 8
servo1.write(0);
Servo::refresh();
servo1.write(180);
Servo::refresh();

// test servo 2 on pin 9
servo2.write(0);
Servo::refresh();
servo2.write(180);
Servo::refresh();

// test servo 3 on pin 10
servo3.write(0);
Servo::refresh();
servo3.write(180);
Servo::refresh();
}

And here is a picture of my setup:

Any help is much appreciated! Thanks!

long story short: the servos are too slow for your code !

void loop()
{
  // test servo 1 on pin 8
  servo1.write(0);
  Servo::refresh();
  servo1.write(180);
  Servo::refresh();
...

there’ s just no time for the servos to react to servoX.write(0) … servoX.write(180) !

try something like this:

long start_time = millis();

void setup (void) {
      # your code
}

void loop (void) {
      long current_time = millis();

      if ( current_time < start_time + 1000) {
            servo1.write(0);
      }
      else if ( (current_time > start_time + 1000) && (current_time < start_time + 2000) ) {
            servo1.write(180);
      }
      else {
            start_time = millis();
      }
      Servo::refresh();      
}

I hope I didn’t make any foolish mistakes.

@madworm : that's it thanks alot man!