it seems i can't use .tofront() (no capital f) option in my map using raphael js
the fiddle links to my working example, it's javascript code and a bit of css3 for animate the path http://jsfiddle.net/6CvXF/20/
i would like each path goes to front when i click it, unfortunately this piece of code doesn't work
$('path').click(function() {
(this).tofront();
});
there's a way better to retrieve the element to use in the click function? thanks