jQuery.noConflict();

(function($) {
	$(function() {
		$('#s6').cycle({fx: 'scrollDown', pause: 1, timeout: 4000});
		
		$('body.search-form .search-options input').bind('click', function() {
			if (!$(this).parent().hasClass('selected')) {
				$('body.search-form .search-options li.selected').removeClass('selected');
				$(this).parent().addClass('selected');
			}
		});
		
		(function() {
			var max = 0;
			$('body.stats-page .narrow h3').each(function() {
				max = Math.max(max, $(this).outerHeight());
			});
			$('body.stats-page .narrow h3').each(function() {
				var h = $(this).outerHeight()
				if (h < max) {
					var p = parseInt($(this).css('padding-top'), 10);
					$(this).css('padding-top', (p + (max - h)) + 'px');
				}
			});
		})();
		
	});
})(jQuery);