// add a new function
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function')
	{
		window.onload = func;
	}
	else
	{
		window.onload = function()
		{
			oldonload();
			func();
		}
	}
}

// plug html markup into document
function insertAfter(newElement, targetElement)
{
	var parent = targetElement.parentNode;
	if(parent.lastChild == targetElement)
	{
		parent.appendChild(newElement);
	}
	else
	{
		parent.insertBefore(newElement,targetElement.nextSibling);
	}
}


function addClass(element,value) 
{
  if (!element.className) 
  {
    element.className = value;
  } 
  else 
  {
    newClassName = element.className;
    newClassName+= " ";
    newClassName+= value;
    element.className = newClassName;
  }
}

function sifrTitles()
{
	if(typeof sIFR == "function")
	{
		sIFR.replaceElement("h2.sifrMe", "styles/orator.swf", "#999999", null, null, null, 0, 0, 0, 0);
		sIFR.replaceElement("#infoContent h3", "styles/orator.swf", "#999999", null, null, null, 0, 0, 0, 0);
	}
}

addLoadEvent(sifrTitles);
