I thought it was cute when Nikko first started barking. Now I can't get him to stop.

I live in an apartment building and as soon as he hears people out in the hall he runs to the door and starts barking. The wierd thing is that he is really friendly, even with strangers and he has never met a person or dog he didn't like. When he gets too barky and loud I put him in his crate for a 5 minute time-out. When I let him out, he usually is calm by then.