Sweet!
Be sure to check out our newest fansite:
= 0) {
contentNodes = document.getElementById('aContent').querySelectorAll('[id *= ListPage');
}
if (contentNodes.length > 2) {
var relAAfter = Math.ceil(contentNodes.length / 2);
contentNodes[relAAfter].insertAdjacentElement('beforebegin', document.getElementById('ctl00_ContentPlaceHolder1_m_relatedArtcleCNTRL_m_defaultPNL'));
}
else {
aBody.appendChild(document.getElementById('ctl00_ContentPlaceHolder1_m_relatedArtcleCNTRL_m_defaultPNL'));
}