function insertMPU(parent) {
	if (document.getElementById) {
		var e = document.getElementById(parent);
		if (e == null) return;
		// Get the MPU div ready to insert
		var mpu = document.createElement("DIV");
		mpu.setAttribute("class", "mpuWrapper");
		mpu.innerHTML = "<br class='clear' />&nbsp;<div id='c4ad-Middle1' align='center'></div>&nbsp;<br class='clear' />";
		// check nodes for something resembling the end of a paragraph.
		// We'll assume that a <p> tag which is neither .pullLeft or .pullRight (images)
		// is a para, also two consecutive <br>s too
		var brPrev = false;
		for (var i = 0; i < e.childNodes.length; i++) {
			var c = e.childNodes[i];
			if (c.nodeType == 1) { // nodeType 1 == it's an Element
				if ((c.nodeName == 'P' && !c.className.match(/pull[Left\Right]/))
							|| (c.nodeName == 'BR' && brPrev == true)) {
					// We have a para end, now look for next element and insert MPU before
					// If no next element, append MPU
					if (++i < e.childNodes.length) {
						e.insertBefore(mpu, e.childNodes[i]);
					} else {
						e.appendChild(mpu);
					}
					return; // all done
				} else {
					brPrev = c.nodeName == 'BR';
				}
			}
		}
		// never got inserted - tack on end of article
		e.appendChild(mpu);
	}
}