// JavaScript Document

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}
function getObj(obj) {
	if(document.all) return document.all[obj];
	if(document.getElementById) return document.getElementById(obj);
}

function sm_hide() {
	for(i in submenus) {
		hide(submenus[i]);
	}
}

function tm_out(id) {
	act='hide("'+id+'")';
	eval("to_"+id+"=setTimeout('"+act+"',100);");
}

function hide(id) {
	obj=getObj("sm_"+id);
	if(obj) obj.style.visibility='hidden';
}

function tm_over(id) {
	sm_hide();
	sm=getObj('sm_'+id);
	if(sm) { sm.style.visibility='visible';
		pos=findPos(getObj('tm_'+id));
		sm.style.left=(pos[0]-23)+'px';
		sm.style.top=(pos[1]+23)+'px';
	}
	sm_over(id);
}

function sm_over(id) {
	clearTimeout(eval('to_'+id));
}

function sm_out(id) {
	tm_out(id);
}

function disclaimer() 
{
	var answer = confirm('The health-related information, tools and resources in this newsletter are provided for general information purposes only. They are not intended to be a substitute for professional medical advice, diagnosis or treatment and may not be applicable to any particular situation. \n\nAlways consult a qualified medical professional for the diagnosis or treatment of any disease or other health concern or before starting a fitness regimen. Some of the content and health resources found on this site are provided and maintained by other parties. Though we strive to obtain such materials from reliable sources, they may contain inaccuracies or outdated information. We do not endorse or guarantee any of these materials. Please use these materials only in conjunction with the advice of a qualified medical professional.\n\n Click OK if you agree to the conditions or CANCEL if you do not.');
	return answer;
}
