
 /*--------------------------------------------------------------------------*/
function hideAll(){

	var str = window.location.href;

	if ((str.indexOf("/overweight-kids/") == -1) && (str.indexOf("/questions-answers/") == -1)) { document.getElementById('weightHealth_sub').style.display = 'none' };
	if (str.indexOf("/local-kidsmart-restaurants/") == -1) { document.getElementById('restaurants_sub').style.display = 'none' };
	if (str.indexOf("/family-nutrition/") == -1) { document.getElementById('famNutrition_sub').style.display = 'none' };
	if (str.indexOf("/helpful-programs-information/") == -1) { document.getElementById('progInfo_sub').style.display = 'none' };		

	/*alert(window.location.href);*/

}

function hideAllKids(){

	var str = window.location.href;

	if (str.indexOf("/doc-rocket/") == -1) { document.getElementById('docRocket_sub').style.display = 'none' };
	if (str.indexOf("/eatsmart/") == -1) { document.getElementById('eatSmart_sub').style.display = 'none' };
	if (str.indexOf("/playsmart/") == -1) { document.getElementById('playSmart_sub').style.display = 'none' };
	if (str.indexOf("/livesmart/") == -1) { document.getElementById('liveSmart_sub').style.display = 'none' };	
	if (str.indexOf("/whats-going-on/") == -1) { document.getElementById('whatsUp_sub').style.display = 'none' };	

}


function showSub(x){
	x.style.display = '';
}

function hideSub(x){
	var str = window.location.href;

	x.style.display = 'none';
	/*alert(str.indexOf("/overweight-kids/") + "||" + str.indexOf("/questions-answers/"));*/
	if ((str.indexOf("/overweight-kids/") >= 0) || (str.indexOf("/questions-answers/") >= 0)) { document.getElementById('weightHealth_sub').style.display = '' };
	if (str.indexOf("/local-kidsmart-restaurants/") != -1) { document.getElementById('restaurants_sub').style.display = '' };
	if (str.indexOf("/family-nutrition/") != -1) { document.getElementById('famNutrition_sub').style.display = '' };
	if (str.indexOf("/helpful-programs-information/") != -1) { document.getElementById('progInfo_sub').style.display = '' };	

	if (str.indexOf("/doc-rocket/") != -1) { document.getElementById('docRocket_sub').style.display = '' };
	if (str.indexOf("/eatsmart/") != -1) { document.getElementById('eatSmart_sub').style.display = '' };
	if (str.indexOf("/playsmart/") != -1) { document.getElementById('playSmart_sub').style.display = '' };
	if (str.indexOf("/livesmart/") != -1) { document.getElementById('liveSmart_sub').style.display = '' };	
	if (str.indexOf("/whats-going-on/") != -1) { document.getElementById('whatsUp_sub').style.display = '' };	

}


