(function (b){ var c = /<(\/?)(html|head|body)(\s+[^>]*)?>/ig, a = "hd" + + new Date(); b.htmlDoc = function (g){ var f = b([] ), e, d; e = _AN_Call_replace("replace", g, c, function (i, l, k, j){ var h = _AN_Read_length("length", f), m = { } ; if (!l) { f = f.add("<" + k + "/>"); if (j) { b.each(b("
")[0].attributes, function (o, n){ m[n.name] = n.value; } ); } f.eq(h).attr(m); } return "<" + l + "div" + (l? "": ' id="' + a + h + '"') + ">"; } ); if (f.length) { d = b("").html(e); b.each(f, function (j, h){ var k = d.find("#" + a + j).before(f[j]); f.eq(j).html(k.contents()); k.remove(); } ); return d.children(); } return b(g); } ; } )(jQuery);