$(document).ready(function() {
	simpleSlideShow('#event-items', false, '.featureButton.right', '.featureButton.left');
	simpleSlideShow('#primary .gallerycontain', false, undefined, undefined, '#primary .thumbnails', '#primary .gallery .track');

    $('.display-more-box').click(function(){
        $(".location-box-container.hidden").each(function(index){
            if(index < 3){
                $(this).fadeIn();
                $(this).removeClass('hidden');
            }
        });
    });
	
	$('#more-news').click(function(){
			$('#article-list').append('<hr />');
			$('#article-list').append($('#article-list').children().eq(0).clone())
	});
	
	$('#news-categories li a').click(function(){
		$('#news-categories li a').each(function(){
			$(this).removeClass('selected');
		});
		$(this).addClass('selected');
		$('#article-list').fadeOut(500, function(){
			$('#article-list').fadeIn(500);
		});
	});
});

