window.onload = function() {

// MOO.FX OPACITY 
	aboutOpacity = new fx.Opacity('aboutContent', {duration: 500, onComplete: function()
 		  { codeOpacity.setOpacity(0); }
  	});
		
	codeOpacity = new fx.Opacity('codeContent', {duration: 500, onComplete: function()
 		  { aboutOpacity.setOpacity(0); }
 	});
	
		aboutOpacity.setOpacity(1);
		codeOpacity.setOpacity(0);
		
}

// HIDE/DISPLAY FUNCTIONS 
// (to combat moo.fx's weak "hide" function that doesn't truly hide elements...now links aren't clickable 
//	on elements that aren't shown)
function displayAbout() { document.getElementById('aboutContent').style.display = ''; }
function displayCode() { document.getElementById('codeContent').style.display = ''; }
			
function hideAll() {
		document.getElementById('aboutContent').style.display = 'none';
		document.getElementById('codeContent').style.display = 'none';
		}