jQuery(document).ready(function() {

		lastBlock = $("#a1");
		maxWidth = 480;
		minWidth = 140;	
		
		$("ul li div").click(function() {		
			
				$(lastBlock).animate({ width: minWidth+"px"}, { queue:false, duration:400 }).attr('class', 'closed');
				$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400}).attr('class', 'open');
				currentBlock = this;				
				lastBlock = this;			
		});

});
