var FISHCREEK = {};

FISHCREEK.setCurrentParentPage = function(){
	// TODO: set proper array number for parent when deploying to production server
	var currentParent = location.pathname.split('/')[1];
	var currentChildParent = location.pathname.split('/')[2];
	var parentNavLinks = $("#parent-nav>div>a");
	parentNavLinks.each(function(){
		if( this.href.split('/')[3] === currentParent ){
			$(this).addClass('current-parent');
		}
	});
	var childNavLinks = $("#child-nav>div>a");
	childNavLinks.each(function(){
		if( this.href.split('/')[4] === currentChildParent ){
			$(this).addClass('current-page');
		}
	});
}

FISHCREEK.setChildNavMouseOverEvent = function(){
	$("#child-nav>div>.item").bind('mouseover', function(){
		$(this).children('.icon').css("visibility","visible");
	});
	$("#child-nav>div>.item").bind('mouseout', function(){
		$(this).children('.icon').css("visibility","hidden");
	});
}

FISHCREEK.setMemberDropShadow = function(){
	$(".member#splash-container>#member-image-container").dropShadow( { color:'black' } );
}





$(document).ready(function(){
	FISHCREEK.setCurrentParentPage();
	FISHCREEK.setChildNavMouseOverEvent();
});
