// JavaScript Document
$(document).ready(function() { 	
	$('.contentTable table').each(function() {
		$(this).bind('stripe', function() {
		var rowIndex = 0
		$('tbody tr:not(.filtered)', this).each(function(index) {
			if ($('th',this).length) {
				$(this).addClass('subhead')
				rowIndex = -1
			} else {
			if (rowIndex % 2 < 1) {
				$(this).removeClass('odd').addClass('even')
			}
			else {
				$(this).removeClass('even').addClass('odd')
			}
		}
		rowIndex++
		})
	})
	$(this).trigger('stripe')
	}) 
	
	/*accordion*/
	 //hide the all of the element with class accordion_body
	$(".accordion_body").hide();
	
	//slides the element with class "accordion_body" when paragraph with class "accordion_header" is clicked 
	$("div.accordion_header").click(function() {
	
	 	$(this).toggleClass('active');
		$(this).next("div.accordion_body").slideToggle("normal").siblings("div.accordion_body").slideUp("normal");
			
		$(this).siblings("div.accordion_header").removeClass("active");
	}); 

	
	
	
});

