	$(document).ready(function(){
		$('.bwWrapper').BlackAndWhite();
	});
	$(document).ready(function() {
        $('body').hide();
		
        $(document).ready(function() {
		$( 'body' ).fadeIn("slow");		
});
    });
	
	$(document).ready(function() {
			$("a[rel=lab]").fancybox({
			
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
		
					'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Lab ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
		
			});
			});
		
	
	

     	  
	var username='marcopoderi';
		var format='json';
		var url='http://api.twitter.com/1/statuses/user_timeline/'+username+'.'+format+'?callback=?';
		$.getJSON(url,function(tweet){
			$("#last_tweet span").html(tweet[0].text);
		});
	/*	
		$(function(){
				
				$("#btnVideo a:not(.revert)").bind("click",function(){
					var $this = $(this);
					$("#flipVideo").flip({
						direction: $this.attr("rel"),
					    content:$("#infoVideo"),
						onBefore: function(){$(".revert").show()}
					})
					return false;
				});
				
				$(".revert").bind("click",function(){
					$("#flipVideo").revertFlip();
					return false;
				});
								
				});
				
				*/
