// Test to see if functions are supported
var W3CDOM = (document.getElementsByTagName && document.createElement);
if (W3CDOM)
// Write link to stylesheet to hide page elements
	document.write('<link rel="stylesheet" type="text/css" href="uploads/hide.css" />');
window.onload = function () {
	if (!W3CDOM) return;
}

window.addEvent('domready', function(){
// Show page title first
	var heading = document.getElementsByTagName('h1');
	var h1fade = $(heading[0]).effect('opacity', { duration: 1000})
	h1fade.hide();
	h1fade.start(0,1).chain(function() {
// Show page content
		var contentfade = new Fx.Style('content', 'opacity', { duration: 1000 })
		contentfade.hide();
		contentfade.start(0,1).chain(function() {
// Show navigation bar
			var navfade = new Fx.Style('navigation', 'opacity', { duration: 1000 })
			navfade.hide();
			navfade.start(0,1);
		});
	});
});	