Look, it�s perfectly simple. I don�t know why you�re all confused. Now follow this carefully:
God decides to come to earth in the form of a chap called Jesus. He reckons it would be a good idea if Jesus (i.e. himself) were to be crucified as part of a deal with God (i.e. himself) to atone for the sins of mankind. OK so far?
So he fixes his crucifixion, yelling out to God (i.e himself) when it gets a bit painful.
Now there have got to be a few perks in being God and one of them is that you don�t have to suffer on the cross for two or three days like those thousands of ordinary people crucified by the Romans. So you let yourself die after only a few hours before the real torture has started.
Satisfied with the deal he has made with God (i.e himself) he has himself resurrected so as to say goodbye to his mates before going back home to heaven.
Meanwhile rational human beings look on in astonishment, thankful that they do not move in such mysterious ways.
All clear now?