	function showAll()
	{
		$(".contentShow:visible").slideUp(600);
		$(".contentActive").animate({ 
         opacity: 1
           }, 600 );
	}
	
	function hideAll()
	{
		function checkMenu(strAddress){
			var objString = new String(strAddress)
			
			if (objString.indexOf("/nutrition-and-pregnancy.htm#1") >0){
				showContent(1)		 	
			} else if (objString.indexOf("/nutrition-and-pregnancy.htm#2") >0){
				showContent(2)		 	
			} else if (objString.indexOf("/nutrition-and-pregnancy.htm#3") >0){
				showContent(3)		 	
			} else {
				$(".contentShow:visible").slideUp(600);	
			}
		}

		checkMenu(window.location);	
	
		
	}
	
	function hideAllBack()
	{
		$(".contentShow:visible").slideUp(600);	
	
	}
	
	function showContent(id){

		$(".contentShow:visible").slideUp(600);
		
		//$(".contentActive #contentShow_" + id).hover(function(){},function(){});
		$(".contentActive").animate({ 
         opacity: 0.4
           }, 600 );
		$("#contentShow_" + id).slideDown(600, function(){     $.scrollTo($("#content_" + id),{duration:600});$("#content_" + id).animate({ 
         opacity: 1
           }, 600 );      })
		//$(".contentActive").click(function(){
		//	alert("HERE");
		//	showContent($(this).attr("id"));
		//});
		//$("#content_" + id).click(function(){
			//alert("HERE");
			//showAll();
		//}
		//);
		return false;
	}
	
	function showContentFlash(id){

		$(".contentShow:visible").slideUp(600);
		
		//$(".contentActive #contentShow_" + id).hover(function(){},function(){});
		$(".contentActive").animate({ 
         opacity: 0.4
           }, 600 );
		$("#contentShow_" + id).slideDown(600, function(){     $.scrollTo($("#content_" + id),{duration:600});$("#content_" + id).animate({ 
         opacity: 1
           }, 600 );      })
		//$(".contentActive").click(function(){
		//	alert("HERE");
		//	showContent($(this).attr("id"));
		//});
		//$("#content_" + id).click(function(){
			//alert("HERE");
			//showAll();
		//}
		//);
	}
	
	
	$(document).ready(function() {
		$.localScroll({target:'#page-content', duration:600});
		$.scrollTo(0,0);		
		hideAll();
	})
	
	function backtotop() {
		$.localScroll({target:'#page-content', duration:600});
		$.scrollTo(0,0);
		$(".contentActive").animate({opacity: 1}, 600 );
		hideAllBack();
	}
	
	