
$(document).ready(function() { 


//
	$(".menu ul a").not(".children a").contents().unwrap();


//ipad and iphone fix for top level navigation rollovers
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
    $(".menu ul li").click(function(){
        //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
        //strange
    });
}







	


	//add pipes to 2nd and 3rd level navigation
	$("#second_menu ul li:not(:last)").append('<span class="pipe"> | </span>');
	$("#third_menu ul li:not(:last)").append('<span class="pipe"> | </span>');

	//make first cell bold in tables
	$("tr td:nth-child(1)").addClass("tc_bold");


	// styling for PRT Characteristics page
	
	//stripe table
	$("#post-202 tr:nth-child(odd)").addClass("stripe_1");
	$("#post-202 tr:nth-child(even)").addClass("stripe_2");
	

	
	// add grey style for titles
	$("#post-202 td[colspan='5']").parent().addClass("grey");
	
	
	
	//comparison page
	//add two column styling
	$("#post-19 td").addClass("td_no_border");
	$("#post-19 td").addClass("td_none");
	
	
	//styling for history table
	// 1st table cell that contains text enlarge years
	$("#post-15 tr td:nth-child(1)").addClass("tc_bold_large");
	
	$("#post-15 tr td:nth-child(1):empty").addClass("td_no_border");
	
	//add paragraph formatting to blog
	//$(".blog .entry p").next().addClass("blog_column");
	
	$(".archive .entry p").next().addClass("blog_column");
	
	
	//$("#post-202 td[colspan='5']").addClass("grey");
	
	//hide image in news listing
	$(".blog .entry img").hide();
	
	
	
	
	
	// homepage slides
	 $("#slides").slides({
			preload: true,
			//preloadImage: 'img/loading.gif',
			play: 6000,
			pause: 2500,
			effect: 'fade',
			crossfade: true,
			fadeSpeed: 2000,
			generatePagination: false,
			hoverPause: true
		});

		
	
		
	
}); 
