// Global JavaScripts

function PhotoGallery(){
	if ($("#slider").length > 0) {

		// Remove elements with no image
		$('#slider li div:empty').each(function() {
			$(this).parent().remove();
		});

		// Remove unnecessary BC links
		$('#slider li div a').each(function() {
			$(this).removeAttr('href');
		});
		
		$("#PhotoGalleryDisplay").jcarousel({
				wrap: 'circular'
		});
				
		//Center Previous and Next Buttons
		var workContainer = $("#slider").height();
		var halfHeight = (workContainer / 2 - 11);
		$(".jcarousel-prev-horizontal, .jcarousel-next-horizontal").css("top", halfHeight + "px");
		

}
}

function inquiriesForms() {

	$("#toggle1").show(); 
	$("#toggle2").hide(); 

	$("a.work-screenshots").click(function(){
			$("#toggle1").show(); 
			$("#toggle2").hide();
			$("#prev2").show();
			$("#next2").show();			
			$(this).addClass("subNav-active");
			$("a.work-projectOverview").removeClass("subNav-active");
			
	});
	$("a.work-projectOverview").click(function(){
			$("#toggle1").hide(); 
			$("#toggle2").show();
			$("#prev2").hide();
			$("#next2").hide();			
			$(this).addClass("subNav-active");
			$("a.work-screenshots").removeClass("subNav-active");
	

		});

}
$("a.work-screenshots").addClass("subNav-active");
