Use Google. There is tons of info on this topic.
I did it on my 02 and used this writeup: http://www.powerstroke.org/forum/member-repair-write-ups/239122-wiring-2008-power-fold-telescope-mirrors-into-1999-2007-sd-trucks-oem-way.html
It wasn't fun and took all day, and I have so many wires...