window.onload = function() {
	initLightbox();

// MOO.FX OPACITY 
		
	workOpacity = new fx.Opacity('selectedWorks', {duration: 800, onComplete: function()
 		  { lifestyleWebOpacity.setOpacity(0); applicationOpacity.setOpacity(0); }
 	});
	
	lifestyleWebOpacity = new fx.Opacity('lifestyleWeb', {duration: 800, onComplete: function()
 		  { workOpacity.setOpacity(0); applicationOpacity.setOpacity(0); }
 	});
	
	applicationOpacity = new fx.Opacity('applications', {duration: 800, onComplete: function()
 		  { lifestyleWebOpacity.setOpacity(0); workOpacity.setOpacity(0); }
 	});
				
		workOpacity.setOpacity(0);
		lifestyleWebOpacity.setOpacity(0);
		applicationOpacity.setOpacity(0);
		
		new ParseClassNames({duration: 300});	
		}

// 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 displaySelectedWorks() { document.getElementById('selectedWorks').style.display = ''; }
function displayLifestyleWeb() { document.getElementById('lifestyleWeb').style.display = ''; }
function displayApplications() { document.getElementById('applications').style.display = ''; }
		
function hideAll() {
		document.getElementById('selectedWorks').style.display = 'none';
		document.getElementById('lifestyleWeb').style.display = 'none';
		document.getElementById('applications').style.display = 'none';
		}