code: function getNthIndex(node)
  {
  	var child,i;
  	var count = 0;
  	var parentsChildren = node.parentNode.childNodes;
  	var numParentsChildren = parentsChildren.length;
  	
  	for (i=0; i<numParentsChildren; i++)
  	{
  		child = parentsChildren[i];
  		
  		if (child !== node)
  		{
  			// Exclude text and comments nodes
  			if (child.nodeName[0] !== "#")
  			{
  				count++;
  			}
  		}
  		else
  		{
  			break;
  		}
  	}
  	
  	// `:nth-child()` indices don't start at 0
  	return count+1;
  }
docs: /*
  Find a node's `:nth-child()` index among its siblings.