YUI 3.4.1, HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
Mootools 1.4.0, HTML, CSS, JavaScript
given an item and its parent, will return the index of the item with respect to the parent.