/* Page Scroll Module */
$(document).ready(function(){
	$(".scroll").click(function(event){
		//prevent the default action for the click event
		event.preventDefault();
		
		//get the full url - like mysitecom/index.htm#home
		var full_url = this.href;
		
		//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
		var parts = full_url.split("#");
		var trgt = parts[1];
		
		//get the top offset of the target anchor
		var target_offset = $("#"+trgt).offset();
		var target_top = target_offset.top;
		
		//goto that anchor by setting the body scroll top to anchor top
		$('html, body').animate({scrollTop:target_top}, 1000);
	});
});
/* Show hide Bios */
$(document).ready(function(){
	// The height of the content block when it's not expanded
	var adjustheight = 340;
	// The "more" link text
	var moreText = "+  View More of this Bio";
	// The "less" link text
	var lessText = "- View Less of this Bio";
	 
	// Sets the .more-block div to the specified height and hides any content that overflows
	$(".more-less  .more-block").css('height', adjustheight).css('overflow', 'hidden');
	$(".more-less ").append('<p><a href="#" class="adjust"></a></p>');
	
	$("a.adjust").text(moreText);
	 
	$(".adjust").toggle(function() {
			$(this).parents("div:first").find(".more-block").css('height', 'auto').css('overflow', 'visible');
			$(this).text(lessText);
		}, function() {
			$(this).parents("div:first").find(".more-block").css('height', adjustheight).css('overflow', 'hidden');
			$(this).text(moreText);
	});
});
