function GetDefinition(wrd) {
	wrd2 = wrd.toLowerCase();
	ret = new Array(2);

	switch (wrd2) {
		case "angina":
			ret[0] = "Angina";
			ret[1] = "A type of chest pain or discomfort caused by reduced blood flow to the heart muscle."
			break;

		case "angiogram":
			ret[0] = "Angiogram";
			ret[1] = "An x-ray picture of blood vessels that’s taken after a dye is injected into blood vessels to make the vessels more visible.";
			break;

		case "anticoagulants":
			ret[0] = "Anticoagulants";
			ret[1] = "A class of medications used to prevent blood clotting in the body, particularly in the lungs of patients with PAH.";
			break;

		case "Breathlessness":
		case "breathlessness":
			ret[0] = "Breathlessness";
			ret[1] = "Short of breath. Also called dyspnea. This is the most common symptom of PAH.";
			break;

		case "cardiac output":
			ret[0] = "Cardiac Output";
			ret[1] = "The amount of blood pumped by the heart over a particular period of time, measured in liters per minute (l/min).";
			break;

		case "connective tissue disease":
			ret[0] = "Connective tissue disease";
			ret[1] = "Disorders affecting joints (muscles, bones, tendons, cartilage). There is often an autoimmune component. Types associated with PAH include SLE (lupus), scleroderma, and mixed connective tissue disease. Those with connective tissue disease have an increased risk of developing PAH.";
			break;

		case "congenital heart disease":
			ret[0] = "Congenital Heart Disease";
			ret[1] = "A problem with the heart's structure and function that a person is born with. One of the most common congenital heart defects is a hole in the wall between the right and left ventricles of the heart. Those with congenital heart disease have an increased risk of developing PAH.";
			break;
			
		case "digoxin":
			ret[0] = "Digoxin";
			ret[1] = "A drug that helps the heart pump more effectively and is often prescribed along with PAH medication (it's important to note that this drug has no effect on constricted blood vessels).";
			break;

		case "diuretics":
			ret[0] = "Diuretics";
			ret[1] = "A class of medications that can help reduce fluid in the body and reduce swelling in the feet and legs. Diuretics are often prescribed along with PAH medication.";
			break;

		case "dyspnea":
			ret[0] = "Dyspnea";
			ret[1] = "Shortness of breath or breathlessness; labored breathing. This is the most common symptom of PAH.";
			break;

		case "doppler echocardiogram":
		case "echocardiogram":
		case "echocardiogram with doppler":
			ret[0] = "Doppler echocardiogram";
			ret[1] = "A test in which ultrasound (sound waves) is used to examine the heart; Doppler is a special part of the ultrasound examination that assesses the direction and velocity of blood flow as it makes its way through and out of the heart.";
			break;

		case "edema":
			ret[0] = "Edema";
			ret[1] = "Swelling caused by fluid retention. For PAH patients, edema is often present in the ankles and lower legs.";
			break;

		case "electrocardiogram (ecg)":
			ret[0] = "Electrocardiogram (ECG)";
			ret[1] = "A test in which electrodes are placed on the body to record the electrical activity of the heart. ECGs are used to learn the condition of the heart and to diagnose heart disease.";
			break;
		
		case "embolism":
			ret[0] = "Embolism";
			ret[1] = "A blood clot or foreign substance that can block or obstruct a blood vessel, restricting vital blood flow.";
			break;

		case "endothelin":
			ret[0] = "Endothelin";
			ret[1] = "A chemical made by the body which may cause the smooth muscles in blood vessel walls to tighten up. Excess amounts of endothelin have been found in the blood of PAH patients.";
			break;

		case "endothelin receptor antagonist":
			ret[0] = "Endothelin Receptor Antagonist (ERA)";
			ret[1] = "A medication that may help people with PAH by blocking the effects of the extra endothelin their bodies produce. Tracleer is the first oral endothelin receptor antagonist approved for FC II, III, IV PAH.";
			break;

		case "functional class":
		case "functional classifications for pah":
		case "world health organization (who) class iii or iv symptoms":
			ret[0] = "Functional classifications for PAH";
			ret[1] = "PAH patients are put into one of four possible classes; which class you are in depends on the severity of your symptoms and may affect your choice of treatments.";
			break;

		case "hypertension":
			ret[0] = "Hypertension";
			ret[1] = "Abnormally high blood pressure";
			break;

		case "idiopathic pah":
			ret[0] = "Idiopathic PAH";
			ret[1] = "This refers to pulmonary hypertension that cannot be attributed to any other cause (see secondary pulmonary hypertension)."
			break;

		case "lung scan":
			ret[0] = "Lung Scan";
			ret[1] = "A diagnostic test that measures air and blood flow in the lungs and is used to rule out the presence of other lung diseases.";
			break;

		case "pah pathways":
			ret[0] = "PAH Pathways&tm;";
			ret[1] = "A patient service and support program that provides patients with access to Actelion's PAH medications, insurance coverage information, financial assistance for eligible patients and Sure Steps&#8482;.";
			break;

		case "patient essentials guide":
			ret[0] = "Patient Essentials Guide"
			ret[1] = "A guide for patients starting, taking, and renewing Tracleer.";
			break;

		case "patient-to-patient connected community":
			ret[0] = "Patient-to-Patient Connected Community";
			ret[1] = "An online community for patients who are on Tracleer. Sure Steps members can join the community and connect with other patients at Sure Steps Online.";
			break;

		case "portal hypertension":
			ret[0] = "Portal hypertension";
			ret[1] = "An increase in the pressure within the portal vein (the vein that carries blood from the digestive organs to the liver). Those with portal hypertension have an increased risk of developing PAH.";
			break;
			
		case "pulmonary arterial hypertension":
			ret[0] = "Pulmonary arterial hypertension";
			ret[1] = "A disease of the vessels that carry blood from the heart to the lungs. PAH is caused by changes in the small blood vessels in the lungs that make it harder for blood to flow through these vessels.";
			break;

		case "pulmonary arteries":
		case "pulmonary artery":
			ret[0] = "Pulmonary artery";
			ret[1] = "The large blood vessel that carries blood from the heart to the lungs.";
			break;

		case "pulmonary function tests":
			ret[0] = "Pulmonary Function Tests";
			ret[1] = "A group of tests that measure how well your lungs work. Your healthcare provider might order this test to learn more about your condition or to rule out other lung diseases.";
			break;

		case "pulmonary hypertension (ph)":
			ret[0] = "Pulmonary Hypertension (PH)";
			ret[1] = "Broad term used for any condition in which the blood vessels of the lungs have high pressure. PH comes in many types with many different causes. Pulmonary Arterial Hypertension (PAH) is one such type.";
			break;

		case "right-heart catheterization":
		case "right heart catheterization":
			ret[0] = "Right heart catheterization";
			ret[1] = "A thin tube with a special tip is inserted into a vein in the neck or groin and threaded into the heart and the pulmonary artery, where it measures pressure. This is the only diagnostic test to confirm PAH.";
			break;

		case "secondary pah":
		case "secondary pulmonary hypertension":
			ret[0] = "Secondary Pulmonary Hypertension";
			ret[1] = "Now generally called \"pulmonary hypertension associated with other diseases or conditions,\" this refers to pulmonary hypertension that is caused by a pre-existing disease.";
			break;

		case "6-minute walk test":
		case "six-minute walk test":
			ret[0] = "Six-minute walk test";
			ret[1] = "How far a patient can walk in 6 minutes is a measure of exercise capacity that is usually a part of the diagnostic process for PAH. It is also used during follow-up doctor visits to determine progress.";
			break;

		case "Sure Steps":
			ret[0] = "Sure Steps";
			ret[1] = "An education and support program provided by PAH Pathways for Tracleer patients and caregivers. Patients will receive educational materials, one-on-one phone support from Nurse Counselors and online access.";
			break;

		case "sure steps connect":
			ret[0] = "Sure Steps Connect";
			ret[1] = "An online conference series where Tracleer Sure Steps members can watch PAH experts discuss a variety of PAH- and Tracleer-related topics.";
			break;

		case "sure steps online":
			ret[0] = "Sure Steps Online";
			ret[1] = "A website for patients who are on Tracleer and enrolled in the Sure Steps program. At Sure Steps Online, patients can learn about PAH and treatment with Tracleer, and gain access to tools, videos, interactive activities and the Patient-to-Patient Connected Community.";
			break;

		case "syncope":
			ret[0] = "Syncope";
			ret[1] = "Fainting. This can be a symptom of PAH, and is often the symptom that gets people to see their healthcare team.";
			break;

		case "v/q lung scan":
			ret[0] = "V/Q lung scan";
			ret[1] = "A diagnostic test that is used to rule out the presence of lung disease related to clots.";
			break;

		case "warfarin":
			ret[0] = "Warfarin";
			ret[1] = "A medication that makes the blood less likely to clot. Warfarin is more commonly known by the brand name Coumadin (see anticoagularnts for clarification).";
			break;

		case "who functional class":
			ret[0] = "WHO Functional Class";
			ret[1] = "A measurement of a patient's ability to perform ordinary physical activities, such as walking, without feeling shortness of breath.  PAH patients are put into one of four possible classes depending on the severity of their symptoms (the lower the WHO Functional Class, the less severe the PAH). WHO stands for World Health Organization.";
			break;
			
		default:
			ret[0] = wrd;
			ret[1] = "Definition Not Found";
	}

	return ret;
}

var objSpan = null;
var strDefinedWord = "";
var blnClosing = true;

function overDef(obj) {
	blnClosing = false;
	showDef(obj);
	if (!blnClosing) {

		var pos = $('#definitiondiv').position();
		//alert(pos.left + " " + pos.top);
		var leftpx = -200;

		if (pos.left < 200)
			leftpx = -200 + ( 210 - pos.left);
	
		$('#definitiondiv').animate({
			'marginLeft': leftpx,
			'marginTop' : "20px"
		}, 0);

	}

}

function outDef() {
	blnClosing = true;
	setTimeout("hideDef()", 800);
	
	
}

function showDef(obj) {

	if (objSpan != null) return;

	objSpan = obj;
	strDefinedWord = obj.innerHTML;
	strDefinedWord = strDefinedWord.replace(/^\s*|\s*$/g, "");
	strDefinedWord2 = strDefinedWord;
	strDefinedWord2 = strDefinedWord2.replace("<I>", "");
	strDefinedWord2 = strDefinedWord2.replace("</I>", "");
	strDefinedWord2 = strDefinedWord2.replace("<i>", "");
	strDefinedWord2 = strDefinedWord2.replace("</i>", "");

	var glossary = GetDefinition(strDefinedWord2);

	var html = "";
	html += "" + strDefinedWord + "";
	html += "<span id=\"definitiondiv\" class=\"definition\" onmouseover=\"overDef();\" onmouseout=\"outDef();\">";
	html += "<b><u>";
	html += glossary[0];
	html += "</u></b>";
	html += ":<br>";
	html += glossary[1];
	html += "<br>";
	html += "<br>";
	html += "<a href=\"/Glossary#" + strDefinedWord2.substring(0, 1).toUpperCase() + "\" title=\"View Glossary\">View Glossary</a>";
	html += "</span>";

	obj.innerHTML = html;

	
	isOver = true;
}

function hideDef() {
	if (!blnClosing) return;
	if (objSpan == null) return;
	objSpan.className = "glWord";
	objSpan.innerHTML = strDefinedWord;
	objSpan = null;
}
