function debug(s) {
}
targetDiv = document.getElementById('peSiteTargetDiv337725715');
content = "
\n
\n
PETITION AGAINST PROPOSED ETHANOL PLANT\n\n
\n\n\n\n \n
\n\n
Newest 8 of 8 signatures
\n\n\n
\n \n | 8 | \n Anonymous | \n 1/23 | \n
\n \n | 7 | \n C. L Nelson | \n 1/20 | \n
\n \n | 6 | \n Carl Nelson | \n 1/17 | \n
\n \n | 5 | \n April McCormack | \n 1/14 | \n
\n \n | 4 | \n Jason Danford | \n 1/12 | \n
\n \n | 3 | \n Tammy Schrader | \n 1/9 | \n
\n \n | 2 | \n Norine Mejean | \n 12/19 | \n
\n \n | 1 | \n Travis Mejean | \n 12/12 | \n
\n \n
\n\n
";
error = "Couldn't load petition!
This is most likely because the code to show your petition was cut off or otherwise corrupted.
You can fix this by getting a fresh copy of the code. Go to your petition's Add this petition to your website page, and copy the code under the How do I add this petition to my website? heading. Then, paste this code, without modifying it, into the source of your web page.
";
already = ""
+ "
Couldn't load petition!
"
+ "
Please don't include any petition on your web page more than once.
You may include two different petitions on the same page, but not two copies of the same petition.
"
+ "
";
if (typeof(pesiteWidgetAlready) == 'undefined') {
pesiteWidgetAlready = new Array();
}
function chk_link(targetDiv) {
childNodes = targetDiv.getElementsByTagName("*")
if (! targetDiv) {
return false;
}
if (childNodes.length != 1) {
return false;
}
child = childNodes[0];
if ( (child.tagName != 'a') && (child.tagName != 'A') ) {
return chk_link_malformed(child);
}
if (child.href != "http://www.thepetitionsite.com/") {
return false;
}
var test_HTML = child.innerHTML.replace(/^\s+|\s+$/, '')
if (test_HTML != "Petition powered by ThePetitionSite.com") {
return false;
}
return true;
}
function chk_link_malformed(chkElt) {
while (chkElt) {
if ((chkElt.tagName == 'a') || (chkElt.tagName == 'A')) {
if (chkElt.href != "http://www.thepetitionsite.com/") {
return false;
}
if (chkElt.innerHTML != "Petition powered by ThePetitionSite.com") {
return false;
}
return true;
} else {
childNodes = chkElt.childNodes;
if (! childNodes) {
return false;
}
if (childNodes.length != 1) {
return false;
}
chkElt = childNodes[0];
}
}
return false;
}
if (pesiteWidgetAlready[337725715]) {
document.write(already);
} else {
pesiteWidgetAlready[337725715] = true;
if (targetDiv) {
if (chk_link(targetDiv)) {
targetDiv.innerHTML = content + targetDiv.innerHTML;
debug('targetDiv sets good content')
} else {
targetDiv.innerHTML = error;
debug('targetDiv sets error content')
}
} else {
document.write(error);
debug('Invalid embed -- targetDiv.id not found')
}
}