Infra Red Emitting of Bit Pulse Codes for a Remote

Hey,

I'm developing an remote control using the Arduino. The basic concept of the project is to make a simple remote with only (2 pressure switches, 1 pot with switch, 1 toggle switch). The code for the switches is rather simple. The problem I am running into is dealing with the protocols of the remote control (currently using RC5). I'm wondering what is the best way to create the bit pulses with the IR LED. The two options that I know of right now is "analogWrite" or making a set of instructions that contain switching of the LED on and off with a delay in them.

I have attached a image which contains all the background information on RC5.

cheers.
josh