jQuery(function($) {
	$.footnoteLinks();
	// $('body').supersleight();
	if ( $('.section.main .figure:first img').length > 1 ) {
		$('.section.main .figure:first')
			.append( $('<a id="prev" href=""></a>').click(function(){return false;}) )
			.append( $('<a id="next" href=""></a>').click(function(){return false;}) )
			.cycle({
				timeout:       14000,  // milliseconds between slide transitions (0 to disable auto advance) 
			  speed:         1000,  // speed of the transition (any valid fx speed value) 
			  next:          '#next',  // id of element to use as click trigger for next slide 
			  prev:          '#prev',  // id of element to use as click trigger for previous slide 
			  height:       '448px', // container height 
			  sync:          1,     // true if in/out transitions should occur simultaneously 
			  pause:         true,     // true to enable "pause on hover" 
			  slideExpr:     'img'  // expression for selecting slides (if something other than all children is required)     
			});
	};
	if ( $('.section.sub dl').length > 0 ) {
		$('.section.sub dl dd').hide();
		$('.section.sub dl dd.'+$('.section.sub dl dd .article.active').parent().attr('class')).show();
		$('.section.sub dl dt').click(function(){
			$('.section.sub dl dd').hide();
			$(this).siblings('dd.' + $(this).attr('class') ).show();
		});
	};
});
