/**
 * This file contains the main javascripts. Also the main onload handler is defined here.
 * 
 * @version 21-01-2010
 * @author <a href="mailto:r.tennapel@griponservice.nl?SUBJECT=Amasus mainscript.js">R. ten Napel, ing.</a>
 **/

// Create the array with onload handlers:
var onloadHandlers = new Array();

/**
 * The onload handler function.
 **/
function onloadHandler() {
	// Run each onload handler:
	for (var i = 0; i < onloadHandlers.length; i++) {
		onloadHandlers[i]();
	}
}

// Set the main onload handler:
window.onload = onloadHandler;

// Add the popup window:
onloadHandlers[onloadHandlers.length] = function() {
	// Create mail window:
	new PopupWindow("mail", "20%", "10%", "60%", "80%", "Mail versturen").hide();
	
	// Create invoice window:
	new PopupWindow("invoice", "20%", "10%", "60%", "80%", "Bijeenkomsten & facturen").hide();
	
	// Create popup window:
	new PopupWindow("popup", "20%", "10%", "60%", "80%", "A Popup").hide();
	
	// Create debugger window:
	Debugger.setTarget(new PopupWindow("debug", "50%", "50%", "40%", "40%", "The debugger").body).hide();
}