﻿/*	Edge Scripting Base
------------------------------------------------------------------------------------------------------
	Author: David Frey
	Owner: Edge Design - http://edgedesign.us/
*/


/*
Unobtrusive onload event function
Author: Simon Wilson - http://simonwillison.net/2004/May/26/addLoadEvent/
*/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(start_sIFR);
addLoadEvent(function() {
  /* more code to run on page load */ 
});

function start_sIFR() {
	if (typeof sIFR == "function") {
		sIFR();
	}
	sIFR.replaceElement(named({
		sSelector: "div.inner-wrapper h4",
		sFlashSrc: "/swf/ea_helveticaNeue.swf",
		sColor: "#3d3d3d",
		sStrongColor: "#000000",
		sWmode: "transparent"
	}));
	sIFR.replaceElement(named({
		sSelector: "div.inner-wrapper h3",
		sFlashSrc: "/swf/ea_helveticaNeue.swf",
		sColor: "#3d3d3d",
		sWmode: "transparent"
	}));
	sIFR.replaceElement(named({
		sSelector: "body.services h2.page-title",
		sFlashSrc: "/swf/ea_helveticaNeue.swf",
		sColor: "#f88c00",
		sWmode: "transparent"
	}));
	sIFR.replaceElement(named({
		sSelector: "body.portfolio h2.page-title",
		sFlashSrc: "/swf/ea_helveticaNeue.swf",
		sColor: "#ec008c",
		sWmode: "transparent"
	}));
	sIFR.replaceElement(named({
		sSelector: "body.about h2.page-title",
		sFlashSrc: "/swf/ea_helveticaNeue.swf",
		sColor: "#b7d30b",
		sWmode: "transparent"
	}));
}