/* Fade the main menu and the blog images on mouseover  */

	$(document).ready(function(){
		$("#mm_portfolio a, #mm_expertise a, #mm_journal a, #mm_love a, img.blogthumb").fadeTo("_default", 1.0); // This sets the opacity of the thumbs to 100% when the page loads

		$("#mm_portfolio a, #mm_expertise a, #mm_journal a, #mm_love a, img.blogthumb").hover(function(){
			$(this).fadeTo("_default", 0.6); // This should set the opacity to 60% on hover
		},function(){
			$(this).fadeTo("_default", 1.0); // This should set the opacity back to 100% on mouseout
		});
		


	
/* Fade any div bg to black */
	// find the div.fade elements and hook the hover event
	$('.fadeThis').hover(function() {
		// on hovering over find the element we want to fade *up*
		var fade = $('> .hover', this);

		// if the element is currently being animated (to fadeOut)...
		if (fade.is(':animated')) {
			// ...stop the current animation, and fade it to 1 from current position
			fade.stop().fadeTo(500, 1);
		} else {
			fade.fadeIn(500);
		}
	}, function () {
		var fade = $('> .hover', this);
		if (fade.is(':animated')) {
			fade.stop().fadeTo(500, 0);
		} else {
			fade.fadeOut(500);
		}
	});
});
