RS Media – Control via Arduino + IR LED?

Hi all, I am very new to Arduino, so I'm hoping this problem is pretty routine for you guys. I have an RS Media and I'm trying to use the Arduino with an IR LED to send commands to it. I found some of the IR Codes online (see below) but I can't for the life of me find a way to convert these numbers into binary code that the RS Media understands.

Here's the script I'm starting with http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1198260041 Though, he taps directly into the Robosapien via wire. I'm trying to do it through IR. Any help would be appreciated. Even if it's just an explanation on converting these numbers to binary.

RS Media IR codes:

Norm L R L+R

A 583 555 55C 5f1 B 580 556 55d 5f0 C 581 557 55e 5f5 X 552 558 55f 5f6 Y 590 559 560 5f2 Z 582 55A 561 5f3 Play 550 554 551 569 Photo 515 516 545 546 M 517 514 547 544 D 513 512 543 542

LPU 500 508 5c0 5d0 LPD 501 509 5c1 5d1 LPL 502 50A 5c2 5d2 LPR 503 50b 5c3 5d3 LPUL 504 50c 5c4 5d4 LPUR 505 50d 5c5 5d5 LPDL 506 50e 5c6 5d6 LPDR 507 50f 5c7 5d7

RPU 520 528 530 538 RPD 521 529 531 539 RPL 522 52a 532 53A RPR 523 52b 533 53B RPUL 524 52c 534 53C RPUR 525 52d 535 53D RPDL 526 52e 536 53E RPDR 527 52f 537 53F