var theInt = null;
		var $crosslink, $navthumb;
		var curclicked = 0;
		
		theInterval = function(cur){
			clearInterval(theInt);
			
			if( typeof cur != 'undefined' )
				curclicked = cur;
			
			$crosslink.removeClass("active-thumb");
			$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
			
			theInt = setInterval(function(){
				$crosslink.removeClass("active-thumb");
				$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
				curclicked++;
				if( 6 == curclicked )
					curclicked = 0;
				
			}, 3000);
		};
		
		$(function(){
			
			$("#slider").codaSlider();
			
			$navthumb = $(".nav-thumb");
			$crosslink = $(".cross-link");
			
			$navthumb
			.click(function() {
				var $this = $(this);
				theInterval($this.parent().attr('href').slice(1) - 1);
				return false;
			});
			
			theInterval();
		});
		
animatedcollapse.addDiv('elementary', 'fade=0,speed=400,group=schoollist,hide=1')
animatedcollapse.addDiv('middle', 'fade=0,speed=400,group=schoollist,hide=1')
animatedcollapse.addDiv('high', 'fade=0,speed=400,group=schoollist,hide=1')
animatedcollapse.addDiv('post', 'fade=0,speed=400,,hide=1')
animatedcollapse.init();
$(document).ready(function(){
	$('a.togglePost').bind('click',function(event){
		event.preventDefault();
		$(this).parent().find('.entry').slideToggle('fast');
		$(this).parent().find('.summary').slideToggle('fast');
	});
	$('a.head').each(function(){$($(this).attr('href')).stop().slideUp('fast')});
	$('a.head').bind('click',function(event){
		event.preventDefault();
		var isopen=true;
		if($($(this).attr('href')).css('display')=="none"){
			isopen=false;
		}
		$('a.head').each(function(){$($(this).attr('href')).slideUp('fast')});
		if(!isopen){
			$($(this).attr('href')).slideDown('fast');
		}
	})
});