


$(function() {

	 $("html").removeClass("no-js");


	// enable circular scrollables with a click handler
	$(".scroll").scrollable({ circular: false }).click(function() {

	});

		    var 
		      speed = 1000,   // animation speed
		      $wall = $('#wrapper').find('.wrap')
		    ;

		    $wall.masonry({
		      columnWidth: 70, 
		      // only apply masonry layout to visible elements
		      itemSelector: '.box:not(.invis)',
		      animate: true,
		      animationOptions: {
			    duration: 750,			
			    easing: 'linear',
			    queue: false
			  }
		    });

		    $('.filtering-nav a').click(function(){
		      var colorClass = '.' + $(this).attr('class');

		      if(colorClass=='.all') {
		        // show all hidden boxes
		        $wall.children('.invis')
		          .toggleClass('invis').fadeIn(speed);
		      } else {  
		        // hide visible boxes 
		        $wall.children().not(colorClass).not('.invis')
		          .toggleClass('invis').fadeOut(speed);
		        // show hidden boxes
		        $wall.children(colorClass+'.invis')
		          .toggleClass('invis').fadeIn(speed);
		      }
		      $wall.masonry();

		      return false;
		    });
		

				
			
				var $elem = $('.home');


				    $('#none-filtering').click(
				        function (e) {
				            $('html, body').animate({scrollTop: $elem.height()}, 800);
				        }
				    );
				    
				    
				    
				    

			

					$("#twitter").getTwitter({
						userName: "danceareageneva",
						numTweets: 3,
						loaderText: "CONNEXION AVEC TWITTER...",
						slideIn: true,
						showHeading: true,
						headingText: "DERNIERS TWEETS",
						showProfileLink: true
					});


});


