var events = [];
if(showing_mini_calendar)
{
	minicalendarSetup();
}
else
{
	var events = [
		pulldownAutoSubmits,

		fixBrowserIssues,
		focusFirstFormField,
		validateForms,
		topicNavigationPulldown,
		attachRMLToolbar,
		attachCalendarSelector,
		rewriteQuoteLinks,
		privateMessagingCopyContact,		,
		doclibInteraction,
		toggleChangeCheckboxTopicAdmin,
		makeSmileysClickable,
		minicalendarCreate,
		minicalendarSetup,
		easyTimeInputConverter,
		toggleRepeatDetails,
		scaleImages,

		pp_attachLoginEvents,
		pp_fixSmallPages,
		pp_fixBrowserIssues

	];

	window.onresize = pp_fixSmallPages;
	makeBlocksEditable();
	/* extra extra... read all about it */
		toggleVisibility();

	/*
		setupToggleFolders();
		localAnchors();
		slashdotLinks();
		selectAllRows();
		localAnchors();
		searchPopup();
		indicateAccesskey();
		closeAndSubmit();
		logoutSessions()
	*/
}

function cmspageLinkAddProperties(link)
{
	var l = document.getElementById('page_admin_language');
	var p = document.getElementById('page_admin_profile');
	if (typeof link.base_href == 'undefined')
		link.base_href = link.href;

	link.href = link.base_href +'?language='+ l.options[l.selectedIndex].value +'&profile='+ p.options[p.selectedIndex].value;
}
