/* all actions to be initiated on document load - should be the last script file included */

$(function() {
	
	/* run a function that can be redefined in different scripts
	 * (allows different things to happen according to the browser)
	 */
	for(func in initFunctions) {
		initFunctions[func].apply(this);
	}
	
	/* change the CSS classes of navigation menus to allow Javascript
	 * expansion/closing rather than pure CSS (means that non Javascript
	 * enabled views keep the CSS version)
	 
	$(".unselected").removeClass("unselected").addClass("junselected");
	$('.junselected').mouseenter(function() {
		$(this).children("ul").show("slow");
	});
	$('.junselected').mouseleave(function() {
		$(this).children("ul").hide();
	}); */
	
	/* hide the caption on main page photo to allow Javascript fade-in */
	$("#outer-caption").css("display", "none");
	$('.img-container').mouseenter(function() {
		$("#outer-caption").fadeIn("slow");
	});
	$('.img-container').mouseleave(function() {
		$("#outer-caption").fadeOut("slow");
	});
});
