they're called 'crossover cables', and they're used to connect specific devices to each other. You'll need them if you're going to connect...
PC to PC
Hub to Hub
Switch to Switch
A straight through cable should be used to connect...
Switch to Router
PC to Switch
PC to Hub
Router to Router