/**
 * @description		JavaScript file which displays a dialog when the user enters the homepage.
 * 					A cookie is set when the dialog is shown to prevent the dialog from showing when the user goes back to the homepage in the same 'session'
 * 					The cookie expires after 10 minutes so the popup shows again.
 * @author        	Niek Adam; niek [at] procurios [dot] nl;
*/

if (!GetCookie('shownPWPPoster')) {
	PbLib.module.load('dialog');
	PbLib.createDialog(PbLib.getNewURI('pwp-poster'), 394, 585, { enableMaximize: false, enableDragging: false });
	SetCookie('shownPWPPoster', true, .003);
}