Try this
All doors unlocked, drivers door open
Insert key and remove(do not turn)
Lock and unlock doors with button on drivers door 5 times(1 sec
intervals)
Close drivers door, Open drivers door
Lock and unlock doors with button on drivers door 5 times
Take key insert and turn to On position then to lock Twice, remove key
Locks should cycle lock to unlock by themselves if you completed the
sequence properly and it is equipped with keyless entry
In the next 10 secs or so complete the next step :
Take the remote and hold lock and unlock buttons at the same time for
about a sec and then press either lock or unlock for a sec. If the
locks cycle the programming was a success.
*Copied and pasted from Silver Streak
This might be useful too
http://toyotasecurity.buypartsonline.biz/ake1.jpg
http://toyotasecurity.buypartsonline.biz/ake2.jpg
If that doesn't work try PM'ing Silver Streak he seems to be the go-to guy for programming keyless entry.