﻿var tooltips = new Array();
tooltips[0] = "Meningococcal disease, while rare, can potentially kill an otherwise healthy teen in 48 hours or less.<sup><a href='references.html#2' target='_blank' class='references' title='Link opens in new window'>2</a>,<a href='references.html#8' target='_blank' class='references' title='Link opens in new window'>8</a>,<a href='references.html#9' target='_blank' class='references' title='Link opens in new window'>9</a></sup> <a href=meningitis-meningococcal-effects-detect.html>Learn how meningitis can affect the body</a>.";
tooltips[1] = "Make sure your child is protected. <a href=preventing-meningitis-meningococcal.html>Get tips on talking to your child’s doctor</a>.";
tooltips[2] = "Vaccination can protect against 4 of the 5 common strains of meningococcal bacteria in the US.<sup><a href='references.html#3' target='_blank' class='references' title='Link opens in new window'>3</a></sup> <a href=protecting-meningitis-meningococcal.html>Learn more about vaccination</a>.";
tooltips[3] = "There are ways to help reduce the risk for teens and young adults. <a href=meningitis-meningococcal-education.html>Get tips on talking to kids about meningitis</a>.";
tooltips[4] = "As many as 1 in 3 people may carry meningococcal bacteria without getting sick.<sup><a href='references.html#16' target='_blank' class='references' title='Link opens in new window'>16</a></sup>";
tooltips[5] = "Meningococcal disease is often mistaken for the flu or another common viral illness.<sup><a href='references.html#2' target='_blank' class='references' title='Link opens in new window'>2</a></sup> <a href=meningitis-meningococcal-symptoms-detect.html>Know the symptoms to watch for</a>.";
tooltips[6] = "A person, in apparently good health, who has been infected with a pathogen and is capable of infecting others in whom the disease may then develop.";
tooltips[7] = "The vaccine will help protect against the common forms of the bacteria (<i>N meningitidis</i> strains A, C,Y, and W-135).<sup><a href='references.html#3' target='_blank' class='references' title='Link opens in new window'>3</a></sup> <a href=protecting-meningitis-meningococcal.html>Learn more about vaccination</a>."; 
tooltips[8] = "Find out whether your state has taken action against meningitis. <a href=http://nmaus.org/legislation/index.htm target=_blank>See a list of states with meningitis laws</a>."; 
tooltips[9] = "Meningitis is a common name for infections that take place in the membranes (called meninges) surrounding the brain and spinal cord. <a href=understanding-meningitis.html>Get the Fast Facts about meningitis</a>."; 
tooltips[10] = "Make sure your family, friends and community know about meningitis. <a href=meningitis-meningococcal-spread.html>Spread the word</a>."; 

var tempX = 0
var tempY = 0

function tooltip(e,state,num) {
	if (state) {
		document.getElementById("tooltip").style.visibility='visible';
		document.getElementById("tooltipContent").innerHTML = tooltips[num];
  		if (IE) { // grab the x-y pos.s if browser is IE
    			tempX = event.clientX + document.body.scrollLeft
    			tempY = event.clientY + document.body.scrollTop
  		}
		else {  // grab the x-y pos.s if browser is NS
    			tempX = e.pageX
    			tempY = e.pageY
  		}  
		tempX = tempX - 35;
		tempY = tempY - 35;

		document.getElementById("tooltip").style.left=tempX;
		document.getElementById("tooltip").style.top=tempY;
	}
}

function tooltipRoll(which,state) {
	if (state) {
		which.style.visibility="visible";
	}
	else {
		which.style.visibility="hidden";
	}
}