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

// MOO.FX OPACITY 
	resumeOpacity = new fx.Opacity('resumeContent', {duration: 800, onComplete: function()
 		  { linksOpacity.setOpacity(0); 
		  	printOpacity.setOpacity(0); webOpacity.setOpacity(0); photographyOpacity.setOpacity(0); }
  	});
	
	linksOpacity = new fx.Opacity('linksContent', {duration: 800, onComplete: function()
 		  { resumeOpacity.setOpacity(0); 
		  	printOpacity.setOpacity(0); webOpacity.setOpacity(0); photographyOpacity.setOpacity(0); }
 	});
	
	printOpacity = new fx.Opacity('printContent', {duration: 800, onComplete: function()
 		  { resumeOpacity.setOpacity(0); linksOpacity.setOpacity(0);
		  	webOpacity.setOpacity(0); photographyOpacity.setOpacity(0); }
 	});
	
	webOpacity = new fx.Opacity('webContent', {duration: 800, onComplete: function()
 		  { resumeOpacity.setOpacity(0); linksOpacity.setOpacity(0);
		  	printOpacity.setOpacity(0); photographyOpacity.setOpacity(0); }
 	});
	
	photographyOpacity = new fx.Opacity('photographyContent', {duration: 800, onComplete: function()
 		  { resumeOpacity.setOpacity(0); linksOpacity.setOpacity(0);
		  	printOpacity.setOpacity(0); webOpacity.setOpacity(0); }
 	});
	
		resumeOpacity.setOpacity(0);
		linksOpacity.setOpacity(0);
		printOpacity.setOpacity(0);
		webOpacity.setOpacity(0);
		photographyOpacity.setOpacity(0);
		
// MOO.FX SIZE

$S('img.larger').action({			
				onmouseover: function(){
					largerHeight = new fx.Height(this, {duration: 200});
					largerWidth = new fx.Width(this, {duration: 200});
  					largerHeight.custom(40, 100); 
					largerWidth.custom(100, 150);
				},
				onmouseout: function(){
					largerHeight = new fx.Height(this, {duration: 400});
					largerWidth = new fx.Width(this, {duration: 400});
					largerHeight.custom(100, 40); 
					largerWidth.custom(150, 100);
				}
			});

		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 displayPrint() { document.getElementById('printContent').style.display = ''; }
function displayWeb() { document.getElementById('webContent').style.display = ''; }
function displayPhotography() { document.getElementById('photographyContent').style.display = ''; }
function displayLinks() { document.getElementById('linksContent').style.display = ''; }
function displayResume() { document.getElementById('resumeContent').style.display = ''; }
			
function hideAll() {
		document.getElementById('printContent').style.display = 'none';
		document.getElementById('webContent').style.display = 'none';
		document.getElementById('photographyContent').style.display = 'none';
				
		document.getElementById('linksContent').style.display = 'none';
    	document.getElementById('resumeContent').style.display = 'none'; 
		}