A document.write shouldn’t be used unless it occurs while the document is loading. I’m not 100% if what I’m about to say is true, but it appears to be… When the slider is being built, jQuery wraps several divs around the slider content, this is when, I believe, the document.write is removed and reapplied to the document causing it to run and thus over-writing the entire page.
Long story short, don’t use document.write inside of the slider.
Since the slider is already using jQuery, why not add extra information using the “.append()” function
$('.panel2 div').append('I watched the waxing new moon
');