window.onunload = function () {

	// execute unload routine of page, if present

	if (self.exit)
		exit();
	
	// execute unload routine for blog pages, if present

	if (self.exitBlogs)
		exitBlogs();
}

window.onload = function () {
	
	
	/* Initialise example scripts on content pages in all browsers */
	
	if (self.init)
		init();

	/* See if browser supports advanced interface */

	//if (!advancedJavaScriptSupport) return;
	
	/* Load advanced interface */
	
	//sendRequest('/header.txt',setHeader);
	//sendRequest('/nav.txt',setNavigation);
	//sendRequest('/footer.txt',setFooter);
	
	//zebraLists();
	
	/* Miscellaneous */
	
	//setScreenShots();
	//setCompTables();
	//sizePres();
	//redirectExternalLinks();
	//window.onresize = sizePres;

	/* Initialise blog and bilingual scripts, if they're there */

	if (self.initBlogs)
		initBlogs();
	
	if (self.initBilingual)
		initBilingual();
}