XML menu crossed with Mac OS X dock


I’m trying to make an xml menu, where the items enlarge very much like the Mac dock, exactly like jrgraphix dock:


I’ve been using the code from this and from the Kirupa xml menu tutorial and am trying to combine the two, so that my menu will be editable with the xml. I just want plain text labels, rather than any graphics.

I’ve attached what I have so far, it doesn’t work at all at the moment! I also have an image attached of what I want it to look like when finished. If this has been done already I would be really grateful for being pointed in the right direction, I couldn’t find anything in the forum.

My code so far