Greetings all,

first of all, thank you so much for all your help.

I tried moving the port settings before the Tris statement like you recommended and it worked!

Code:
PORTA=%00000000PORTB=%00000000
PORTC=%00000000


TRISA = %00000000				
TRISB = %00100000
TRISC = %00000000
With this change, the LEDs don't flash anymore during startup.
You guys nailed it!

Thanks