Converted SVG-specific statement to raphael version to avoid problems with IE8 and VML.