Added filtering of trains for temporary raphael graphics.