Ah, there has been a miscommunication here, I wasn't trying to solve his entire problem, only the part of converting a signal going from -5v to ground in to one that can be fed to a logic input expecting 0 to 5v as that is the only unusual part of the problem.
Peter Van Epp