$(document).ready(function(){
	$('body').addClass('hasJS');
	
	
	$('.outer_links .year').each(function(){
		var $this = $(this);
		var $hd = $('.header', $this);
		var $bd = $('.links', $this);
		
		$hd.click(function(){
			if ($this.hasClass('opener')) {
				$bd.slideUp({ 
					duration: 1000,
					easing: 'easeOutExpo'});
			} else {
				$('#cat_links .year .links').slideUp();
				$('#cat_links .year').removeClass('opener');
				$bd.slideDown({ 
					duration: 1500,
					easing: 'easeOutBounce'});
			}
			$this.toggleClass('opener');
		});
		$bd.hide();
	});
	
	//if (jQuery.browser.msie && (parseInt(jQuery.browser.version) < 7)){
	//} else {
	
		$('#latest_links').show();
		$('#latest_header').addClass('opener');
		
		$('#popular_links').show();
		$('#popular_header').addClass('opener');
	//}
				   
});