// Execute scripts when DOM is loaded
$(document).ready(function(){
	// Follow up page fix height of sidebar
	// check if function exists else dont run function
	if($(".submenu").length > 0)
	{
		var contentHeight;
		var sidebarHeight;
		sidebarHeight = $(".submenu").height();
		contentHeight = $(".content").height();
		if(sidebarHeight < contentHeight)
		{
			$(".submenu").height(contentHeight) ;
		}
	}

	// Photo show
	if($(".photo-show").length > 0)
	{
		var photoShow = $(".photo-show a")
		photoShow.each(function(){
			$(this).click(function(){
				var className = "."+$(this).attr('href').substring(1);
				if($(className).css("display") == 'none')
				{
					$(".photo").fadeOut("slow");
					$(className).fadeIn("slow");
				}
			})
		});
	}
 });