 		$('#filters a').click(function(){
  		var selector = $(this).attr('data-filter');
  		$('#main').isotope({ filter: selector });
  		return false;
	});


	

		$('#main').isotope({

 			// options
  			
 			animationEngine: 'bestAvailable',
 			layoutMode : 'masonry',
      transformsEnabled: false,
 			itemSelector : '.item',
 			masonry : {
    					columnWidth : 240
 					   }

		});

		
			$(document).ready(function() {
				$("#twitter").getTwitter({
					userName: "afs35mm",
					numTweets: 3,
					loaderText: "#TWITTERFAIL",
					slideIn: true,
					showHeading: false,
					headingText: "Latest Tweets",
					showProfileLink: false
				});
			});
		

	$(".slick-show").click(function () {
  	$("#cover").css("height","100%");
  	$("#top").css("height","auto");
  	$( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
	});
	
	$("#cover").click(function () {
  	$("#cover").css("height","0px");

	});
	
	$("#ex").click(function () {
  	$("#cover").css("height","0px");

	});

	    $(document).ready(function() {
     // hides the slickbox as soon as the DOM is ready
      $('#slickbox').hide();
     // shows the slickbox on clicking the noted link  
      $('.slick-show').click(function() {
        $('#slickbox').slideDown('slow');
        return false;
      });
      // shows the slickbox on clicking the noted link  
      $('#cover').click(function() {
        $('#slickbox').slideUp('fast');
        return false;
        
      });
      $('#ex').click(function() {
        $('#slickbox').slideUp('fast');
        return false;
        
        
      });
      
         });

