		$(document).ready(function() {
	//FOR PRINT
			$("a.other").fancybox({
				'autoScale'		: true,
				'titleShow'		: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition' : 'over'
			});
			
	//FOR GALLERY
			
	$("a[rel=gallery]").fancybox({
				'transitionIn'		: 'true',
				'transitionOut'		: 'none',
				'titleShow'		    : false,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

	//FOR WEBSITES
			$("a.web").fancybox({
				'width'				: '95%',
				'height'			: '100%',
				'autoScale'			: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'titlePosition' 	: 'over'
			});
			
			$.localScroll({
				onAfter: function(target){
					location = '#' + ( target.id || target.name );
					}
});
				//BOX SLIDER
				$('.boxgrid.slidedown').hover(function(){
					$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:500});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:500});
				});
				
				//MENU
				$('#navMenu li').append('<div class="hover"><\/div>');


	$('#navMenu li').hover(
		
		function() {
			
			$(this).children('div').fadeIn('900');	
		
		}, 
	
		function() {
		
			$(this).children('div').fadeOut('900');	
		
	}).click (function () {
	
		$(this).addClass('selected');
		
	});


		});
