// Start boilerplate
var insertionPoint = document.currentScript;
document.write = function(str) {
var nextSibling = insertionPoint.nextSibling;
insertionPoint.insertAdjacentHTML("afterend", str);
if (nextSibling) {
insertionPoint = nextSibling.previousSibling;
} else {
insertionPoint = insertionPoint.parentNode.lastChild;
}
}
// End boilerplate
// Crazy legacy ad script can be crazy as long as each write is a balanced
// subtree
document.write("baz");
document.write("qux");