function addLoadEvent(func)
{

	var oldonload = window.onload;
	if(typeof window.onload != 'function')
	{
		window.onload = func;
	}
	else
	{
		window.onload = function()
		{
			oldonload();
			func();
		}
	}
}

/**********************************************
Insert After Function
----------------------
Allows you to insert an element after another
element in the DOM.
**********************************************/
function insertAfter(newElement, targetElement)
{
	var parent = targetElement.parentNode;
	
	if(parent.lastChild == targetElement)
		parent.appendChild(newElement);
	else
		parent.insertBefore(newElement,targetElement.nextSibling);
}