jQuery.fn.getPath=function(){if(1!=this.length)throw"Requires one element.";for(var e,t=this;t.length;){var a=t[0],n=a.localName||a.tagName||a.nodeName;if(!n||"#document"==n)break;if(n=n.toLowerCase(),a.id)return n+"#"+a.id+(e?">"+e:"");a.className&&(n+="."+a.className.split(/\s+/).join("."));var r=t.parent(),i=r.children(n);i.length>1&&(n+=":eq("+i.index(t)+")"),e=n+(e?">"+e:""),t=r}return e};