Mourning and grieving is important. You can't let your loss fester without letting those emotions out.
After its out, you've just got to soldier on. get everything as close to normal as you can.
You're going to have times, a little later on, when you think of them, or want to tell them about something they'd enjoy, and everything is going to come rushing back to you. And you do the same thing. Let it out, cry if you need to, talk to the people that you know care, and move along again.
The most important thing is that you don't let it consume you. I lost a loved one and suddenly my los became the most important thing in my life. I had a terrible bout of depression, and I basically didn't leave my house for a few weeks. I lost my job. Don't go down that same road. Find the people that are going to help you and make sure you know that they're there.
As Bubbles says in The Wire: "Ain't no shame in holding on to grief, as long as you make room for other things too."