// Search

jQuery.noConflict();
var j$ = jQuery;

j$(function(){
	j$('.secList li').each(function(i){
		j$('.secList li:nth-child(4n+1)').addClass('odd');
		j$('.secList li:nth-child(4n+1)').next().addClass('odd');
	});
	j$('.sectionList li').each(function(i){
		j$('.sectionList li:nth-child(6n+1)').addClass('odd');
		j$('.sectionList li:nth-child(6n+1)').next().addClass('odd');
		j$('.sectionList li:nth-child(6n+1)').next().next().addClass('odd');
	});
	j$('.award .section table').each(function(i){
		addId = 'a'+i;
		j$(this).attr('id',addId);
		j$('.award .section table#'+addId).children('tbody').children('tr:eq(1)').addClass('highest');
	});
	j$('.award .sectionTbl .year').next().addClass('highest');

var sets = [], temp = [];
	j$('.sectionList').each(function(i){
		addId = 'a'+i;
		j$(this).attr('id',addId);
		
		j$('.sectionList#'+addId+' li p').each(function(i){
			temp.push(this);
			if(i % 3 == 2){
				sets.push(temp);
				temp = [];
			}
		});
		
		if(temp.length) sets.push(temp);

		j$.each(sets, function(){
			j$(this).flatHeights();
		});
	});
var sets2 = [], temp2 = [];
	j$('.caseList li').each(function(i){

		temp2.push(this);
		if(i % 2 == 1){
			sets2.push(temp2);
			temp2 = [];
		}
	});
	
	if(temp2.length) sets2.push(temp2);
	
	j$.each(sets2, function(){
		j$(this).flatHeights();
	});
});

