﻿var pagehref = window.location;
var pageurl = pagehref.toString();
var url = pageurl.toLowerCase();

function setNav(){
	
//Set the active link in main nav
var objNav = document.getElementById("mainnav");
var navAnchor = objNav.getElementsByTagName("a");

for(i=0; i<navAnchor.length; i++)
        {
         var link = navAnchor[i].getAttribute("href").toString();
         var llink = link.toLowerCase()
         if (url.indexOf(llink) != -1){
			 var ulClass = navAnchor[i].parentNode.parentNode.className;
			  switch(ulClass){
				 case "level1":
					navAnchor[i].parentNode.className = "active";
				 break;
				 
				 case "level2":
				 if(navigator.appName == "Microsoft Internet Explorer")
				    {
				        navAnchor[i].parentNode.parentNode.parentNode.previousSibling.className = "active";
				    }
				 else
				    {
				 	    navAnchor[i].parentNode.parentNode.parentNode.previousSibling.previousSibling.className = "active";
				 	}
					navAnchor[i].parentNode.className += " active";
				 break;
				 
				 case "level3":
				 	navAnchor[i].parentNode.parentNode.parentNode.parentNode.parentNode.className = "active";
					navAnchor[i].parentNode.parentNode.parentNode.className = "active";
					navAnchor[i].parentNode.className = "active";
				 break;
			  }
            }
        }
    }
	
//Set the footer nav active
function setFnav(){
var objFnav = document.getElementById("footernav");
var navFanchor = objFnav.getElementsByTagName("a");	

for(i=0; i<navFanchor.length; i++)
        {
         var link = navFanchor[i].getAttribute("href").toString();
         var llink = link.toLowerCase();
         if (url.indexOf(llink) != -1){
			 navFanchor[i].className = "active";
		 }
}
}

//Set left nav active
function setLnav(){
	if(document.getElementById("leftnav")!=null){
		var objLnav = document.getElementById("leftnav");
		var navLanchor = objLnav.getElementsByTagName("a");	

		for(i=0; i<navLanchor.length; i++)
				{
				 var link = navLanchor[i].getAttribute("href").toString();
				 var llink = link.toLowerCase();
					if(url.indexOf(llink) != -1){
					 navLanchor[i].className = "active";
					}
					
		}
	}

}

var glossTerm = new Array();
	glossTerm[0] = "Archived Tumor Sample";
	glossTerm[1] = "Aromatase Inhibitor";
	glossTerm[2] = "Biopsy";
	glossTerm[3] = "BRCA1 and BRCA2";
	glossTerm[4] = "Cancer";
	glossTerm[5] = "Chemotherapy";
	glossTerm[6] = "Clinical Laboratory Services";
	glossTerm[7] = "Clinical Trial";
	glossTerm[8] = "Clinically Validated";
	glossTerm[9] = "Core Biopsy";
	glossTerm[10] = "Diagnosis";
	glossTerm[11] = "Distant Recurrence";
	glossTerm[12] = "Early-Stage Breast Cancer";
	glossTerm[13] = "EGFR Inhibitor Therapy";
	glossTerm[14] = "ER (Estrogen Receptor)";
	glossTerm[15] = "Gene";
	glossTerm[16] = "Gene Expression";
	glossTerm[17] = "Gene Expression Profile";
	glossTerm[18] = "Genetics";
	glossTerm[19] = "Genome";
	glossTerm[20] = "Genomics";
	glossTerm[21] = "Hormonal Treatment";
	glossTerm[22] = "Hormone Receptor";
	glossTerm[23] = "Human Genome Project";
	glossTerm[24] = "In Situ (carcinoma in situ)";
	glossTerm[25] = "Invasive Breast Cancer";
	glossTerm[26] = "Local Recurrence";
	glossTerm[27] = "Lumpectomy";
	glossTerm[28] = "Mastectomy";
	glossTerm[29] = "Metastasize";
	glossTerm[30] = "Metastatic Breast Cancer";
	glossTerm[31] = "Molecular Diagnostics";
	glossTerm[32] = "Newly Diagnosed";
	glossTerm[33] = "Node-Negative Breast Cancer";
	glossTerm[34] = "Node-Positive Breast Cancer";
	glossTerm[35] = "Oncology";
	glossTerm[36] = "Oncotype DX";
	glossTerm[37] = "Pathology Report";
	glossTerm[38] = "PR (Progesterone Receptor)";
	glossTerm[39] = "Radiation Therapy";
	glossTerm[40] = "Recurrence";
	glossTerm[41] = "Screening (for breast cancer)";
	glossTerm[42] = "Staging";
	glossTerm[43] = "Stage I Breast Cancer";
	glossTerm[44] = "Stage IIA Breast Cancer";
	glossTerm[45] = "Stage IIB Breast Cancer";
	glossTerm[46] = "Stage IIIA Breast Cancer";
	glossTerm[47] = "Stage IIIB Breast Cancer";
	glossTerm[48] = "Stage IV Breast Cancer";
	glossTerm[49] = "Surveillance/Follow-Up";
	glossTerm[50] = "TAILORx";
	glossTerm[51] = "Tamoxifen";
	glossTerm[52] = "Treatment Monitoring";
	glossTerm[53] = "Tumor";
	glossTerm[54] = "Tumor Grade";
	glossTerm[55] = "Tumor Stage";
	glossTerm[56] = "Wire Localization Biopsy";

var glossDef = new Array();
	glossDef[0] = "A tumor sample that has been routinely preserved and stored. Tumor tissue is commonly preserved for storage by being treated with a preservative called formalin and then embedded in paraffin (wax).";
	glossDef[1] = "A medication that reduces the amount of estrogen in the body. Aromatase inhibitors may be used to treat women with estrogen receptor-positive breast cancer.";
	glossDef[2] = "A procedure where tumor tissue is removed from the body for laboratory examination to determine whether or not cancer is present. A biopsy can be performed using a needle to extract a small piece of tissue or as a surgical procedure to remove a larger piece of tissue.";
	glossDef[3] = "Genes that normally help control cell growth. A person who inherits an altered version of the BRCA1 and/or BRCA2 gene(s) has a higher risk of developing breast and ovarian cancer.";
	glossDef[4] = "A condition in which abnormal cells divide without control or fail to die as part of a normal cell’s lifecycle. Cancer cells can also invade nearby tissues and can spread through the bloodstream and lymphatic system to other parts of the body.";
	glossDef[5] = "Treatment with cytotoxic drugs that destroy cancer cells (fast-growing cells). Chemotherapy may be used in addition to surgery, and is sometimes used in combination with other therapies such as radiation therapy or hormonal therapy.";
	glossDef[6] = "The biological, microbiological, serological, chemical, immuno-hematological, hematological, biophysical, cytological, pathological or other examination of materials derived from the human body for the purpose of providing information for the diagnosis, prevention or treatment of any disease or impairment of—or the assessment of the health of—human beings.";
	glossDef[7] = "A research study to test drugs, procedures or testing technologies to determine whether these are effective and/or safe.";
	glossDef[8] = "Determination that a test is accurate in determining the presence of, or predicting the risk for, a health condition or phenotype, including determination of sensitivity, specificity and positive and negative predictive values.";
	glossDef[9] = "A procedure in which a needle is used to remove a small, intact sample of tissue from an identified breast mass in order to examine it and obtain a preliminary diagnosis.";
	glossDef[10] = "Identification of a condition, such as breast cancer, by its signs and symptoms, and the results of laboratory tests or other examinations.";
	glossDef[11] = "The spread of cancer to parts of the body other than the place where the cancer first occurred. In breast cancer, the cancer can spread to the lungs, liver, brain or bones or to other tissues.";
	glossDef[12] = "A term that can be used to describe stage I and II, lymph node-negative breast cancer.";
	glossDef[13] = "EGFR stands for “epidermal growth factor receptor.” EGFR inhibitor therapy is a therapy sometimes used to treat cancer. As the name implies, it inhibits EGFR activity.";
	glossDef[14] = "A feature (protein) that may be present on certain cells to which estrogen molecules can attach. The term \"ER positive\" refers to tumor cells that contain the estrogen-receptor protein. These cells are generally sensitive to hormone therapy.";
	glossDef[15] = "The functional and physical units of inheritance that are passed from parents to their offspring. The genes found in normal breast tissue can change their “expression”, which can give rise to breast cancer.";
	glossDef[16] = "The level of activity of a gene or group of genes.";
	glossDef[17] = "A picture of the activity or expression of multiple genes from a single specimen, such as a tumor sample.";
	glossDef[18] = "The study of genes and heredity. Heredity is the passing of genetic information and traits, such as eye color or an increased chance of getting a certain disease, from parents to offspring.";
	glossDef[19] = "The complete genetic material of a living thing.";
	glossDef[20] = "The study of complex sets of genes, their interactions and effects on biology.";
	glossDef[21] = "Medications used to reduce the effect of hormones in the body. In many cases of breast cancer, hormones can fuel the growth of breast cancer. Common hormonal therapies include tamoxifen and a newer class of drugs called aromatase inhibitors. Hormonal therapies are used to treat women with estrogen receptor-positive breast cancer.";
	glossDef[22] = "A protein on the surface of a tumor cell that binds to a certain hormone, activating tumor growth.";
	glossDef[23] = "An international research and technology-development effort aimed at mapping and sequencing the entire genome of human beings.";
	glossDef[24] = "Non-invasive cancer in which abnormal cells are isolated within the lobes or milk ducts of the breast and have not spread to nearby tissue.";
	glossDef[25] = "Cancer that has spread from where it started in the breast into surrounding, healthy tissue. Most invasive breast cancers start in the ducts (tubes that carry milk from the lobules to the nipple). Invasive breast cancer can spread to other parts of the body through the blood and lymph systems. Invasive breast cancer is also called infiltrating breast cancer.";
	glossDef[26] = "The reappearance of cancer in the part of the body where it first occurred.";
	glossDef[27] = "A surgical procedure that removes a localized mass of tissue, including the breast cancer tumor and a small amount of normal, non-cancerous tissue surrounding the tumor.";
	glossDef[28] = "A surgical procedure to remove all or a large part of the breast.";
	glossDef[29] = "A term that is used to refer to cancer spreading from its site of origin to other sites in the body.";
	glossDef[30] = "Breast cancer that has spread beyond the breast and local lymph nodes to other parts of the body such as the lungs, liver, brain or bones or other tissues.";
	glossDef[31] = "The measurement of DNA, RNA, proteins or metabolites to detect genotypes, mutations or biochemical changes. ";
	glossDef[32] = "A term used to describe breast cancer that has recently been identified.";
	glossDef[33] = "Breast cancer that has not spread to the lymph nodes.";
	glossDef[34] = "Breast cancer that has spread to the lymph nodes (most commonly the axillary lymph nodes under the arms).";
	glossDef[35] = "The study and treatment of cancer.";
	glossDef[36] = "A unique diagnostic test that looks at the genomic profile of a breast tumor to predict the likelihood that early-stage, estrogen receptor-positive, lymph node-negative breast cancer will return, or recur (distant recurrence). This test also provides information about a woman's likelihood of benefiting from adding chemotherapy to hormonal treatment. New research from the 2007 San Antonio Breast Cancer Symposium shows that Onco<em>type</em> DX may also be informative for postmenopausal women with ER+, node-positive stage II to III breast cancer.";
	glossDef[37] = "A report ordered by authorized healthcare professionals that describes what was found in tissue removed from the patient’s body. The report is generated after the tumor and surrounding tissue are checked by a pathologist. It usually includes information on the tumor’s grade and stage.";
	glossDef[38] = "A feature (protein) that may be present on certain cells to which progesterone molecules can attach. The term “PR positive” refers to tumor cells that contain the progesterone receptor protein. These cells are generally sensitive to hormone therapy.";
	glossDef[39] = "The use of radiation to destroy cancer cells. Radiation therapy may be used before or after surgery, and is sometimes used in combination with chemotherapy. Radiation is used for local control of the cancer at the site of the tumor.";
	glossDef[40] = "The return of cancer after treatment. This can be either local (at the site of the original tumor) or distant (beyond the original site).";
	glossDef[41] = "Looking for masses or suspicious areas in breast tissue on a periodic basis.";
	glossDef[42] = "A classification system for breast cancer based on the size of the tumor, whether the cancer has spread to the lymph nodes, and whether the cancer has spread to other sites in the body (metastasis).";
	glossDef[43] = "The tumor is up to 2 centimeters in diameter and has not spread beyond the breast.";
	glossDef[44] = "The tumor is up to 2 centimeters and has spread to the axillary lymph nodes under the arm, or the tumor is between 2 and 5 centimeters and has not spread to the lymph nodes.";
	glossDef[45] = "The tumor is between 2 and 5 centimeters and has spread to the lymph nodes under the arm, or the tumor is larger than 5 centimeters in diameter and has not spread to the lymph nodes.";
	glossDef[46] = "The tumor is larger than 5 centimeters in diameter and has spread to the lymph nodes under the arm, or the tumor is any size and has spread more extensively in the lymph nodes.";
	glossDef[47] = "The tumor is any size and has extended to other tissues near the breast; the tumor may or may not have spread to the lymph nodes.";
	glossDef[48] = "Cancer that has spread (metastasized) to other locations in the body, such as the lungs, liver, bones or brain.";
	glossDef[49] = "An ongoing assessment by a patient’s medical team, once treatment has been completed, to assess the cancer's remission and to look for any evidence of a cancer’s return.";
	glossDef[50] = "The Oncotype DX test has been clinically validated and is being used in clinical practice. At the same time, research involving the test is ongoing to learn more about the use of the test in clinical practice. Oncotype DX plays a key role in a current clinical trial, the Trial Assigning IndividuaLized Options for Treatment (Rx), known as TAILORx. Participants are being divided into different treatment groups depending on their Recurrence Score® results. Patients with Recurrence Scores less than 11, who are at low risk for recurrence and for whom chemotherapy is expected to provide little benefit, will receive hormone therapy alone. Patients with Recurrence Scores greater than 25, who are at higher risk for recurrence and for whom chemotherapy is expected to provide substantial benefit, will receive hormonal therapy and chemotherapy. Patients with recurrence scores between 11 and 25, whose risk for recurrence is intermediate and for whom the benefit of chemotherapy is unclear, will be randomized to treatment with hormonal therapy plus chemotherapy versus hormonal therapy alone. The primary objective of the trial is to determine whether hormonal therapy alone offers no less benefit than chemotherapy plus hormonal therapy in women whose Recurrence Score results range from 11 to 25.";
	glossDef[51] = "A medication that interferes with the activity of the hormone estrogen to prevent it from fueling the growth of breast cancer. Tamoxifen is used to treat women with estrogen receptor-positive breast cancer.";
	glossDef[52] = "An ongoing and frequent assessment by the medical team, during the time of treatment, to monitor how the patient is tolerating the treatment and how the cancer is responding.";
	glossDef[53] = "Tissue growth where the cells that make up the tissue have multiplied uncontrollably. A tumor can be benign (non-cancerous) or malignant (cancerous).";
	glossDef[54] = "The characterization of a tumor based on how similar in appearance the cancer cells are to normal cells, and on how many of those tumor cells are dividing. Tumor grade is one of many factors that, when used in combination, can indicate how aggressive a patient’s cancer is.";
	glossDef[55] = "The status of cancer based on the size of the tumor, whether it has spread to the lymph nodes and whether it has spread to other sites in the body (metastasis).";
	glossDef[56] = "A type of biopsy performed when an abnormality can be seen on a mammogram but cannot be felt. A wire localization biopsy utilizes a mammogram to locate and identify the breast abnormality, after which a biopsy is performed.";

function showDef(obj, val){
	
		try{
			tag = document.createElement("<span class='glossary'>");
			tag.innerHTML = glossDef[val];
			obj.appendChild(tag);
		}
		catch(e){
		var tag = document.createElement("span");
		tag.setAttribute("class", "glossary");
		txt = document.createTextNode(glossDef[val]);
		tag.appendChild(txt);
		obj.appendChild(tag);
		var nSpan = obj.getElementsByTagName("span")
		nSpan[0].innerHTML = glossDef[val];
		}

}

function hideDef(obj){
	var tagSpan = obj.getElementsByTagName("span")
	obj.removeChild(tagSpan[0]);
}


function disable_hash(){
var linkDiv = document.getElementById("midcol");	
var hashLink = document.getElementsByTagName("a");

for(i=0; i<hashLink.length; i++){
		if(hashLink[i].getAttribute("href") == "#"){
			hashLink[i].removeAttribute("href");
			}
	}
}

function eventHandler(){
	setNav();
	setFnav();
	setLnav();
	disable_hash();
}

window.onload = eventHandler;