function showDropdown(menu)
{
	if ($(menu)) {
		if ($(menu).hasClassName('menuOff'))
		{
			$(menu).removeClassName('menuOff');
		}
	}
	hideOthers(menu);
}

function hideDropdown(menu)
{
	if ($(menu)){
		if ($(menu).hasClassName('menuOff') == false)
		{
			$(menu).addClassName('menuOff');
		}
	}
}

function hideOthers(menu)
{
	if (menu != 'mens-health') { hideDropdown('mens-health'); }
	if (menu != 'womens-health') { hideDropdown('womens-health'); }
	if (menu != 'family-health') { hideDropdown('family-health'); }
	if (menu != 'health-professionals') { hideDropdown('health-professionals'); }
	if (menu != 'health-topics') { hideDropdown('health-topics'); }
	if (menu != 'wellness') { hideDropdown('wellness'); }
}

function hidelogin()
{
	$('loginbox').hide();
	Event.stop();
}

function showlogin()
{
	$('loginbox').show();
}

function closeSurveyBox() {
	document.getElementById('pupbox').style.display = 'none';
	Set_Cookie( 'pupcookie', 'true', 7, '/', '', '' );
}

function Set_Cookie( name, value, expires, path, domain, secure )
{
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );

	if ( expires )
	{
		expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );

	document.cookie = name + "=" +escape( value ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
	( ( path ) ? ";path=" + path : "" ) +
	( ( domain ) ? ";domain=" + domain : "" ) +
	( ( secure ) ? ";secure" : "" );
}
