/**
 * Makes up for the missing insertAfter DOM method.
 *
 * @param			new_element				The Element to insert.
 * @param			target_element		The Element after which to insert.
 */
function insertAfter(new_element, target_element) {
	var parent;
	
	parent = target_element.parentNode;
	if (parent.lastChild == target_element) {
		parent.appendChild(new_element);
	} else {
		parent.insertBefore(new_element, target_element.nextSibling);
	} // if - else
} // insertAfter