// as copied from DEK from http://www.sitepoint.com/forums/showthread.php?p=2372494

// collection for functions which will be executed onLoad.
var LOADER = new function() {
	var _self = this;
	this.fns = [ ];
	
	this.add = function(fn) { this.fns.push(fn); }
	this.exec = function() { var fn; while (fn = this.fns.shift()) fn(); }
	window.onload = function() { LOADER.exec(); }
}

// This is a javascript handler for the player and is always needed.
function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
};
