Event.observe(window, 'load', function() {

	//this is how long you want the "loading" div to show in milliseconds
	var t=setTimeout(loadPage,3500);
	
	//after the timeout, then hide the "loading" div and show the accordion
	function loadPage() {
		loadAccordions();	
		$('loading').hide();
		$('container').show();
	}
});
	
function loadAccordions() {
	var topAccordion = new accordion('horizontal_container', {
		classNames : {
			toggle : 'horizontal_accordion_toggle',
			toggleActive : 'horizontal_accordion_toggle_active',
			content : 'horizontal_accordion_content'
		},
		defaultSize : {
			width : 700
		},
		direction : 'horizontal'
	});
	
	topAccordion.activate($$('#horizontal_container .horizontal_accordion_toggle')[4]);


}
