Hel me Please! Knigt rider PWM

Hey,
I am new in arduino and for my project i need to make a knight rider LED with PWM. I know the problem in my code (the fading out of the first led is repeated until de second led is at ful 255PWM) but i dont know how to solve this. can sombody help me?

the code:

int led[4] = {3, 5, 6, 9};
int wait = 5;

void setup()
{
for (int i=0; i>=4; i++)
pinMode(i, OUTPUT);
}

void loop()
{
for(int x=0; x<256; x++)
{
analogWrite(led[0], x); Led A ON
delay (wait);
}
}
for(int x=0; x<256; x++)
for(int i=255; i>=0; i--)
{
analogWrite(led[1], x); //Led B ON
delay (wait);
analogWrite(led[0], i); //Led A OFF
delay (wait);
}
for(int x=0; x<256; x++)
for(int i=255; i>=0; i--)
{
analogWrite(led[2], x); //Led C ON
delay (wait);
analogWrite(led[1], i); //Led B OFF
delay (wait);
}
for(int x=0; x<256; x++)
for(int i=255; i>=0; i--)
{
analogWrite(led[3], x); //Led D ON
delay (wait);
analogWrite(led[2], i); //Led C OFF
delay (wait);
}
for(int i=255; i>=0; i--)
{
analogWrite(led[3], i); //Led D OFF
delay (wait);
}
}

See the tiny print? If you fix your post so that the code is inside code tags, it will be possible for people to read and maybe help you.

See Knight rider PWM