$(document).ready(function() 
{
	$('#menu a:not(#menu .current a),#header .contactos') .css({ opacity: 1.0 })
	.mouseover(function() { $(this).css({ opacity: 0.2 }).stop().animate( {opacity: 1 }, 300); })
	.mouseout(function() { $(this).css({ opacity: 0.2 }).stop().animate( {opacity: 1}, 300); })		

	$(".portfolio a").fancybox({			
		'hideOnOverlayClick' : true,
		'hideOnContentClick' : true,
		'overlayOpacity' : 1,			
		'overlayShow'	: true,
		'overlayColor' : '#000',
		'titleShow' : true,
		'titlePosition' : 'over',
		'centerOnScroll' : true,
		'showCloseButton' : false,
		'showNavArrows' : false
	});	

	$("#subheader a.button").click(function() { $("#subheader a.button").removeClass("selected"); $(this).addClass("selected"); });
	$('#subheader a.button').click(function(e) {
	$.get( $(this).attr('href'), function(data) {
	$('.pall').quicksand( $(data).find('li'), { adjustHeight: 'dynamic',
	enhancement: function() {
		$('.captivy').captify({});
		$(".portfolio a").fancybox({			
		'hideOnOverlayClick' : true,
		'hideOnContentClick' : true,
		'overlayOpacity' : 1,			
		'overlayShow'	: true,
		'overlayColor' : '#000',
		'titleShow' : true,
		'titlePosition' : 'over',
		'centerOnScroll' : true,
		'showCloseButton' : false,
		'showNavArrows' : false
		});	
		}
	});
	});  
	e.preventDefault();
	});
});