		/*
		*	fade in the main content
		*   and scroll to the desired anchor
		*/
		function initContent(anch,donest,scrol) {
			
			for (var f=1; f<=fadeCols; f++) {
				$('fade_col'+f).setStyle({
					position: 'relative',
					left: '0px'
				});
				$('fade_col'+f).appear({
					duration: 0.5
				});
			}
			if (donest) scrol = false;
//alert('pageload.js:' + "\n\n" + 'about to doScroll for main if scroll and !donest' + "\n" + 'scroll: ' + scrol + "\n" + 'donest: ' + donest);
			if (scrol && !donest && anch !== null && typeof anch !== 'undefined')
				doScroll(anch); 
		}

		/*
		*   scroll to the desired anchor
		*/
		function doScroll(anch) {
			if (typeof anch !== 'undefined')
				new SoftDivScroll('scroll').go(anch);
		}

		/*
		*	Set up the accordions
		*/
		function loadAccordions(evt,index,anch,donest,scrol) {
//alert('pageload.js:' + "\n\n" + 'loadAccordions: evt.type = ' + evt.type + "\n" + 'index = ' + index + "\n" + 'anch = ' + anch + "\n" + 'donest = ' + donest + "\n" + 'scroll = ' + scrol);
			// main vertical
			var bottomAccordion = new accordion('vertical_container', {
				classnames : {
					toggle : 'accordion_toggle',
					toggleActive : 'accordion_toggle_active',
					content : 'accordion_content'
				}
			});
			bottomAccordion.activate($$('#vertical_container .accordion_toggle')[index],evt);
			initContent(anch,donest,scrol);
		}

		/*
		*	Set up the nested vertical accordions
		*/
		function loadNestedAccordions(evt,index,anch,donest,scrol) {
//alert('pageload.js:' + "\n\n" + 'loadNestedAccordions: evt.type = ' + evt.type + "\n" + 'index = ' + index + "\n" + 'anch = ' + anch + "\n" + 'donest = ' + donest + "\n" + 'scroll = ' + scrol);
			// nested vertical
			var nestedVerticalAccordion = new accordion('vertical_nested_container', {
			  classNames : {
					toggle : 'vertical_accordion_toggle',
					toggleActive : 'vertical_accordion_toggle_active',
					content : 'vertical_accordion_content'
				}
			});
//alert('pageload.js:' + "\n\n" + 'about to doScroll for nested if scroll AND donest' + "\n" + 'scroll: ' + scrol + "\n" + 'donest: ' + donest);
			if (donest) nestedVerticalAccordion.activate($$('#vertical_nested_container .vertical_accordion_toggle')[index],evt);
			if (scrol && donest && anch !== null && typeof anch !== 'undefined') {
				doScroll(anch);
			}
		}

		var debug = false;
		var firstLoad = true;
