/**
 * Initialize the Plag object.
 */
Global = {
    init: function() {
		this.setMenuEvents();
		this.setNavEvents();
    },
	setNavEvents: function() {
		var nav = $('#image-navigation');

		nav.css('opacity', .2);

		$('.header-wrapper div:first').bind('mouseenter', function(e) {
			nav.animate({opacity: 1}, 200);
		}).bind('mouseleave', function(e) {
			nav.animate({opacity: .2}, 500);
		});
	},
	setMenuEvents: function() {
		$('#main-menu ul li a:not(.active)')
			.find('img').css('opacity', .3).parent()
			.bind('mouseenter', function(e) {
				$(this).find('img').animate({opacity: 1}, 100);
				return false;
			})
			.bind('mouseleave', function(e) {
				$(this).find('img').animate({opacity: .3}, 500);
				return false;
			}
		);
	}
}

// Run any/all init functions.
$(document).ready(function() {	
	Global.init();
});

$(window).load(function() { 
	
});

$(window).resize(function() {	
	
});