this._srcIndex = 0; this._srcParent = s.parentNode; var ts = s; while(ts.previousSibling){ this._srcIndex++; ts = ts.previousSibling; };