

/*
<!--
============================================================
Capturing The Mouse Position in IE4-6 & NS4-6
(C) 2000 www.CodeLifter.com
Free for all users, but leave in this  header
//-->
*/


/* Detect if the browser is IE or not. If it is not IE, we assume that the browser is NS. */
var IE = document.all?true:false;/* If NS -- that is, !IE -- then set up for mouse capture*/
if (!IE) document.captureEvents(Event.MOUSEMOVE);
/* Set-up to use getMouseXY function onMouseMove */
document.onmousemove = getMouseXY;
/* Temporary variables to hold mouse x-y pos.s */
var tempX = 0;var tempY = 0;
/* Main function to retrieve mouse x-y pos.s */
function getMouseXY(e) { 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; }/* catch possible negative values in NS4 */if (tempX < 0){tempX = 0;}if (tempY < 0){tempY = 0;} 
/* show the position values in the form named Show *//* in the text fields named MouseX and MouseY */
//	if(getElementObject('xpos')) getElementObject('xpos').innerHTML = "X: " + tempX; //mod by jrh
//	if(getElementObject('ypos')) getElementObject('ypos').innerHTML = "Y: " + tempY; //mod by jrh
return true;}
function getElementObject(eid) { if (document.all) {  return document.all[eid]; } if (document.getElementById) { return document.getElementById(eid); } if(document.layers) {  return document.layers[div_id]; }}


var div_name = 'div_info_hidden';

function hideDeff(){ if( getElementObject( div_name ) ){ thisObj = getElementObject( div_name ); thisObj.className = 'div_info_hidden';thisObj.innerHTML = ''; } } 

function getDeff( lookupReq ){ 
		var thisObj; 
		var div_copy = ''; 
		var div_ex_copy = '<br /><br /><div align="right"><a href="javascript:hideDeff();"> - Close Box - </a></div>'; 
		
		
		if( getElementObject( div_name ) ){ 
				thisObj = getElementObject( div_name ); 
				switch( lookupReq ){
					 case 'measles':
					 	div_copy = '<p><b>Measles</b>, also known as <b>rubeola</b>, is a disease caused by a virus of the genus Morbillivirus.</p><p>Reports of measles go back to at least 600 BCE, however, the first scientific description of the disease and its distinction from smallpox is attributed to the Persian physician Ibn Razi (Rhazes) 860-932 who published a book entitled "Smallpox and Measles" (in Arabic: Kitab fi al-jadari wa-al-hasbah). In 1954, the virus causing the disease was isolated, and licensed vaccines to prevent the disease became available in 1963.</p><p>Measles is spread through respiration (contact with fluids from an infected person\'s nose and mouth, either directly or through aerosol transmission), and is highly contagious—90% of people without immunity sharing a house with an infected person will catch it. Airborne precautions should be taken for all suspected cases of measles.</p><p>The incubation period usually lasts for 10-12 days (during which there are no symptoms).</p><p>Infected people remain contagious from the appearance of the first symptoms until 3-5 days after the rash appears</p><div align="left"><a href="http://en.wikipedia.org/wiki/Measles" target="_blank">© Wikipedia</a></div>';
					 break;
					 case 'polio':
					 	div_copy = '<p><b>Poliomyelitis</b>, often called <b>polio</b> or <b>infantile paralysis</b>, is a viral paralytic disease. The causative agent, a virus called poliovirus (PV), enters the body orally, infecting the intestinal wall. It may proceed to the blood stream and into the central nervous system causing muscle weakness and often paralysis. An ancient disease, it was first recognized as a medical entity by Jakob Heine in 1840. Eradication efforts led by the World Health Organization and The Rotary Foundation of Rotary International have reduced the number of annual diagnosed cases from the hundreds of thousands to around a thousand.</p><div align="left"><a href="http://en.wikipedia.org/wiki/polio" target="_blank">© Wikipedia</a></div>';
					 break;
					 case 'pertussis':
					 	div_copy = '<p><b>Pertussis</b>, also known as <b>whooping cough</b>, is a highly contagious disease that is one of the leading causes of vaccine-preventable deaths. There are 30–50 million cases per year, and about 300,000 deaths per year (World Health Organization data). Most deaths occur in children under one year of age. Ninety percent of all cases occur in developing countries.</p><div align="left"><a href="http://en.wikipedia.org/wiki/Pertussis" target="_blank">© Wikipedia</a></div>';
					 break;
					 case 'diphtheria':
					 	div_copy = '<p><b>Diphtheria</b> is an upper respiratory tract illness characterized by sore throat, low-grade fever, and an adherent membrane (a pseudomembrane) on the tonsil(s), pharynx, and/or nose. A milder form of diphtheria can be limited to the skin. It is caused by Corynebacterium diphtheriae, an aerobic Gram-positive bacterium.</p><p>Diphtheria is a highly contagious disease spread by direct physical contact or breathing the secretions of those infected. Diphtheria was once quite common, but has now largely been eradicated in developed nations. In the United States for instance, there have been fewer than 5 cases a year reported since 1980, as the DPT (Diphtheria-Tetanus-Pertussis) vaccine is given to all school children. Boosters of the vaccine are recommended for adults because the benefits of the vaccine decrease with age; they are particularly recommended for those travelling to areas where the disease has not been eradicated yet.</p><div align="left"><a href="http://en.wikipedia.org/wiki/Measles" target="_blank">© Wikipedia</a></div>';
					 break;
					 case 'tetanus':
					 	div_copy = '<p><b>Tetanus</b> is a serious and often fatal disease caused by the neurotoxin tetanospasmin which is produced by the Gram-positive, obligate anaerobic bacterium Clostridium tetani. Infection usually originates from a contaminated wound, often a cut or deep puncture wound. Common symptoms are muscle spasms in the jaw (hence the common name lockjaw), followed by difficulty swallowing and general muscle stiffness in other parts of the body. Infection can be prevented by proper immunization, as well as by post-exposure prophylaxis.</p><p>Tetany refers to a state of muscle tension.</p><div align="left"><a href="http://en.wikipedia.org/wiki/Measles" target="_blank">© Wikipedia</a></div>';
					 break;
					 case 'tuberculosis':
					 	div_copy = '<p><b>Tuberculosis</b> (commonly abbreviated as TB) is an infection caused by the bacterium Mycobacterium tuberculosis, which most commonly affects the lungs (pulmonary TB) but can also affect the central nervous system (meningitis), lymphatic system, circulatory system (Miliary tuberculosis), genitourinary system, bones and joints.</p><p>Tuberculosis is one of the deadliest and common major infectious diseases today. As of 2004, 14.6 million people have active TB disease with nine million new cases of the disease and nearly two million deaths, [1] mostly in developing countries. However, developing countries are not the only places with tuberculosis. There is a rising number of people in the developed world who contract tuberculosis because they have compromised immune systems, typically as a result of immunosupressive drugs or HIV/AIDS. These people are at particular risk of tuberculosis infection and active tuberculosis disease.</p><div align="left"><a href="http://en.wikipedia.org/wiki/Measles" target="_blank">© Wikipedia</a></div>';
					 break;
					 default: 
					 	div_copy = 'Definition Unavailable'; 
					break; 
				} 
				
				if( div_copy != '' ){ 
					thisObj.innerHTML = div_copy + div_ex_copy; 
					thisObj.className = 'cs_info_holder_am'; 
					/* MOVE DIV */ 
					var pgWH = getWindowSize();
					/* prevent box from going off of the page */
					var tX = tempX;
					var tY = tempY;
					if( tempX > ( pgWH["w"] - 350 ) ){
						tX =  ( pgWH["w"] - 500 )
					}
					thisObj.style.top = tY - 50; 
					thisObj.style.left = tX + 35; 
					
				} 
		} 
}
function getWindowSize() {
	 /* http://www.howtocreate.co.uk/tutorials/javascript/browserwindow */
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
     /* Non-IE */
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
     /* IE 6+ in 'standards compliant mode' */
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    /* IE 4 compatible */
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

  var ar = new Array( );
  ar["w"] = myWidth;
  ar["h"] = myHeight;
  return ar;
}

function toggleDiv(div_id,iState) // 1 visible, 0 hidden
{
//alert(div_id)
		if(document.layers)	 //NN4+
		{
		 document.layers[div_id].visibility = iState ? "show" : "hide";
		 document.layers[div_id].position = iState ? "relative" : "absolute";
		 
		}
		else if(document.getElementById)	 //gecko(NN6) + IE 5+
		{
			var obj = document.getElementById(div_id);
			obj.style.visibility = iState ? "visible" : "hidden";
			obj.style.position = iState ? "relative" : "absolute";
		}
		else if(document.all)	// IE 4
		{
			document.all[div_id].style.visibility = iState ? "visible" : "hidden";
			document.all[div_id].style.position = iState ? "relative" : "absolute";
			
		}

}