public void doLink(SVGNode linkNode)
{
SVGEvent event;
String url;
TinyString xlink_href = ((SVGGroupElem)linkNode).xlink_href;
if(xlink_href == null) return;
// System.out.println("linkEvent: " + xlink_href);
// If its a local link
int hashIndex = xlink_href.indexOf('#',0);
if(hashIndex != -1)
{
//local link
// Go thru all animations. For each anim with id equals
// the local_link and which begin equals 'indefinite':
// change the begin onto the current time an fire event.
TinyString id = xlink_href.substring(hashIndex + 1);
SVGDocument document = canvas.raster.document;
if(document.resolveLinkBased(id))
{
event = new SVGEvent(SVGEvent.EVENT_ANIMATE,null);
canvas.postEvent(event);