$(document).ready(function(){
	
		// Replace HRs with Divs in IE
		// This is necessary becasue IE doesn't let you style the HR element, and we use it extensively on the site.
	  if (jQuery.browser.msie) {
			$("hr").each(function() {
				var hrClass = $(this).attr("class")
				$(this).wrap("<div class='hr " + hrClass +"'></div>");
			});
		}
		
		//Innerfade effect for the footer facts
		$('.facts').innerfade({
			animationtype: 'fade',
			speed: 750,
			timeout: 7000,
			type: 'random',
			containerheight: '40px'
		}); 

		// Add utility first/last/alt classes to LIs.
		$("ul li:first-child").addClass("first");
		$("ul li:last-child").addClass("last");
		$("ul li:nth-child(even), table tr:nth-child(even)").addClass("alt");
		
		//Input focus and blur
		$("input[type='text'], textarea").focus(function(){
			$(this).addClass("focus")
		});
		$("input[type='text'], textarea").blur(function(){
			$(this).removeClass("focus");
		});
		
	
});



