Taq writes:
the commands of a deity as written by men
As I pointed out in an earlier post, if no Gods or gods exist, some of the morality invented by religions is as valid as any non-religious morality, because it is still the morality of human beings.
To illustrate this point, if there were no religions, a great many people would still consider homosexuality to be immoral; likewise, many people would still consider abortion immoral.