$(document).ready(function() {
	
	$("h2").append('<em></em>')
	$(".thumbs a").click(function(){
		var largePath = $(this).attr("href");
		var largeAlt = $(this).attr("title");
		$("#largeImg").attr({ src: largePath, alt: largeAlt });
		$("h2 em").html(" (" + largeAlt + ")"); return false;
	});
	
	$(".accordion h3:first").addClass("active");
	$(".accordion p:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});
	$('.ajax').ajaxify({
		target: '#sub_content',
        //loading_img:'_images/loading.gif',
		animateOut:{opacity:'0'},
        animateOutSpeed:1500,
        animateIn:{opacity:'1'},
        animateInSpeed:1500,
        loading_target:'#subcontent'
						  });
});

