It sounds like you are infatuated. Take some time off and put a bit of distance between you and him, your feelings should die down. Sometimes they don't. If that happens you may need to make a choice of whether to continue being friends with him or continue holding your distance.
I was infatuated with a girl from work once before, I did the above and it helped me get a better perspective on our friendship. Stepping back a bit showed that she is actually not right for me, we are still friends but all feelings I had for her have disappeared.
Don't cry, don't regret and don't blame
Weak find the whip, willing find freedom
Towards the sun, carry your name
In warm hands you are given
Ask the wind for the way
Uncertainty's gone, your path will unravel
Accept all as it is and do not blame
God or the Devil
~Born to Live - Mavrik~