/*
 * Array waarin we onload functies gaan registreren.
 */
var onloadFunctions = new Array( );


/**
 * Onload functie gaat door onloadFunctions array om die functies uit te voeren.
 */
window.onload = function( )
{
	for( myIndex = 0; myIndex < onloadFunctions.length; myIndex++ )
	{
		onloadFunctions[myIndex]( );
	}
}

/*
 * Functie om een onloadfunctie toe te voegen aan de onloadFunctions array
 */
window.addOnloadFunction = function( func )
{
	onloadFunctions[onloadFunctions.length] = func;
}

/**
*	This function is triggered when onMouseover the link "Highlights"
*	in the homepage. It triggerts the showing of a popup.
*	
*	@param string sID ID of the html DOM object rapresenting the popup to show.
*/
function toggleHomePopup(sID)
{
	if($(sID+'_window'))
	{
		if($(sID+'_window').hasClassName('hide'))
		{
			$(sID+'_window').removeClassName('hide');
			if(document.all)
			{
				// IE
				$(sID+'_window').style.marginTop = -($(sID+'_window').getHeight()-66)+'px';
			}
			else
			{
				// FF
				$(sID+'_window').style.marginTop = -($(sID+'_window').getHeight()-60)+'px';
			}
		}
		else
		{
			$(sID+'_window').addClassName('hide');
		}
	}
}
