
/* ============================================================================================================================= MULTIPLE ONLOAD HANDLER */

var onLoadFunctions = new Array();
var iloadFunction = 0;

// Pass each function that needs to load
function addOnLoad(func) {
    onLoadFunctions[iloadFunction] = func;
    iloadFunction++;
}
// Loops through all of the functions that were added
function loadAllFunctions() {
    for(i=0; i < onLoadFunctions.length; i++) {
        eval(onLoadFunctions[i]+"()");
    }
}
// Load all of the functions that you've set
window.onload = loadAllFunctions;

/* ===================================== CALL FUNCTIONS TO BE LOADED */

addOnLoad("load_flash");

/* ===================================== LOAD FLASH FILES */

function load_flash() {
	if (document.getElementById('homepageFlash') != null) {
        var flashvars = {};
        var params = {};
        var attributes = {};
		swfobject.embedSWF("/lib/swf/HomeSlides.swf", "homepageFlash", "690", "296", "9.0.0", "/lib/swf/expressInstall.swf", flashvars, params, attributes);
		if (document.getElementById('homepageFlash-alt') != null) document.getElementById('homepageFlash-alt').style.visibility = "visible";
	}
}

