I'm sorry...I have read your post again and realized you are specifically talking about the rail itself.
In short, do not put expansion joints in the rail. Although many have tried to do this with some success, there simply is no good system for it. The rails will wind up cracking at the joints and you will cause undue wear on the crane wheels. The common practice now is to thermite weld the rail joints and allow the rail to grow longitudinally towards the crane stops. The space required for the rail to grow can be a difficult thing to calculate since, along with the crane rail itself expanding, the building does as well.
I believe the subjectt is covered in the attached paper...by one of the foremost industrial building designers.