$(document).ready(function() {	
	/* For Nav items that are only Dropdown headers (but don't lead to actual pages) */
	$("#wrapper > nav a[href='#']").click(function() { return false; });

	/* If you click anywhere on the aside callouts, it'll take you to the specified link */
	$("#main-content > aside .callout").click(function(){
		window.location=$(this).find("a").attr("href"); return false;
	});

	/* Start Slideshow */
	StartSlideShow();

	/* Pulldown Contact Form function and animation */
	$("#wrapper > form h3")
		.click(function() {
			if ($(this).hasClass("opened")) {
				$("#wrapper > form")
				.animate({
					top: "-=265"
				}, 250);
				$("#wrapper > form h3").removeClass("opened");
			} else {
				$(this).addClass("opened");
				$("#wrapper > form")
				.animate({
					top: "+=265"
				}, 250);
			}
		});

	/* Form Placeholder Texts */
	H5F.listen(window,"load",function () {
		H5F.setup(document.getElementById("aside-form"));
	},false);
});
