$(document).ready(function() {
    
//twitter pop-up
    $('.popup').click(function(event) {
    	var width  = 575,
    	    height = 400,
    	    left   = ($(window).width()  - width)  / 2,
    	    top    = ($(window).height() - height) / 2,
    	    url    = this.href,
    	    opts   = 'status=1' +
    	             ',width='  + width  +
    	             ',height=' + height +
    	             ',top='    + top    +
    	             ',left='   + left;
    	
    	window.open(url, 'twitter', opts);
    	
    	return false;
    });
    
//opacity!

//	//function to be called whenever the window is scrolled or resized
//	function Move(){ 
//    	$('article.post').each(function() {
//    		var thisposition = $(this).offset().top - $(window).scrollTop();
//    		var opacity = 1 - (thisposition / $(window).height());
//    		var rounded = Math.round(opacity * 10) / 10;
//    		var color = rounded;
//    	
//    		$(this).css({
//    			'opacity': rounded
//    		});
//    		/* $(this).html(rounded); */
//    	});	
//	}
//    
//    //on document ready 
//    Move();
//    
//    //on resize
//	$(window).resize(function(){
//    	Move();
//	});		
//
//	//on scroll
//	$(window).bind('scroll', function(){
//   		Move();
//	});



});
