﻿function init() {
	var autoDismissDelay = 120000;
	
	if (document.getElementById("infoChangePre")) {
		var ttChangePre = new YAHOO.widget.Tooltip("ttChangePre", {
			autodismissdelay: autoDismissDelay,
			context:"infoChangePre", 
			text:"Indicates the percentage increase (or decrease) in the number of prescriptions written for this drug during one month of this year as compared to the same month last year. For example, the percentage change could represent the increase (or decrease) in the number of prescriptions written for the drug in January of this year, compared to January of last year.<br /><br />The number of prescriptions written may decline when a competitive drug or an equivalent generic drug is released to the marketplace."
		});
		document.getElementById("infoChangePre").alt = "";
	}

	if (document.getElementById("infoCond")) {
		var ttCond = new YAHOO.widget.Tooltip("ttCond", {
			autodismissdelay: autoDismissDelay,
			context:"infoCond", 
			text:"The medical condition, disease or disorder for which the drug is used to treat. Conditions include injuries, disabilities, disorders, syndromes, infections, isolated symptoms, and abnormal behaviors.  For example, diabetes, heart failure, athlete's foot.  <ul><li>To sort the drug list by Condition, click the Condition sort icon (<img src=\"/drug-ratings/App_Themes/DRT/Images/DrugDetailSortArrowDownBlue.png\" width=\"10\" height=\"12\" alt=\"sort arrow\" />).</li></ul>"
		});
		document.getElementById("infoCond").alt = "";
	}

	if (document.getElementById("infoCondNoSort")) {
		var ttCondNoSort = new YAHOO.widget.Tooltip("ttCondNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoCondNoSort", 
			text:"The medical condition, disease or disorder for which the drug is used to treat. Conditions include injuries, disabilities, disorders, syndromes, infections, isolated symptoms, and abnormal behaviors.  For example, diabetes, heart failure, athlete's foot."
		});
		document.getElementById("infoCondNoSort").alt = "";
	}

	if (document.getElementById("infoDrug")) {
		var ttDrug = new YAHOO.widget.Tooltip("ttDrug", {
			autodismissdelay: autoDismissDelay,
			context:"infoDrug", 
			text:"Drug is the brand name or generic name of the drug.  <ul><li>To sort by Drug, click the Drug sort icon (<img src=\"/drug-ratings/App_Themes/DRT/Images/DrugDetailSortArrowDownBlue.png\" width=\"10\" height=\"12\" alt=\"sort arrow\" />).</li></ul>"
		});
		document.getElementById("infoDrug").alt = "";
	}

	if (document.getElementById("infoDrugNoSort")) {
		var ttDrugNoSort = new YAHOO.widget.Tooltip("ttDrugNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoDrugNoSort", 
			text:"Drug is the brand name or generic name of the drug."
		});
		document.getElementById("infoDrugNoSort").alt = "";
	}
	
	if (document.getElementById("infoEasyToUse")) {
		var ttEasyToUse = new YAHOO.widget.Tooltip("ttEasyToUse", {
			autodismissdelay: autoDismissDelay,
			context:"infoEasyToUse", 
			text:"How easy is it to use this drug? Easy to Use measures how easy it was for users who rated this drug to administer, measure, swallow the pill, open the bottle, and stay on a treatment schedule. <ul><li>To find the drug that is rated easiest to use, click the Easy to Use sort icon (<img src=\"/drug-ratings/App_Themes/DRT/Images/DrugDetailSortArrowDownBlue.png\" width=\"10\" height=\"12\" alt=\"sort arrow\" />).</li></ul>"
		});
		document.getElementById("infoEasyToUse").alt = "";
	}
		
	if (document.getElementById("infoEasyToUseNoSort")) {
		var ttEasyToUseNoSort = new YAHOO.widget.Tooltip("ttEasyToUseNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoEasyToUseNoSort", 
			text:"How easy is it to use this drug? Easy to Use measures how easy it was for users who rated this drug to administer, measure, swallow the pill, open the bottle, and stay on a treatment schedule."
		});
		document.getElementById("infoEasyToUseNoSort").alt = "";
	}

	if (document.getElementById("infoEffective")) {
		var ttEffective = new YAHOO.widget.Tooltip("ttEffective", {
			autodismissdelay: autoDismissDelay,
			context:"infoEffective", 
			text:"How well did this drug work? Effectiveness measures how well the drug is able to treat a condition. <ul><li>To find the drug that is rated the most effective in treating this condition, click the Effective sort icon  <br />(<img src=\"/drug-ratings/App_Themes/DRT/Images/DrugDetailSortArrowDownBlue.png\" width=\"10\" height=\"12\" alt=\"sort arrow\" />).</li></ul>"
		});
		document.getElementById("infoEffective").alt = "";
	}

	if (document.getElementById("infoEffectiveNoSort")) {
		var ttEffectiveNoSort = new YAHOO.widget.Tooltip("ttEffectiveNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoEffectiveNoSort", 
			text:"How well did this drug work? Effectiveness measures how well the drug is able to treat a condition."
		});
		document.getElementById("infoEffectiveNoSort").alt = "";
	}

	if (document.getElementById("infoGenEq")) {
		var ttGenEq = new YAHOO.widget.Tooltip("ttGenEq", {
			autodismissdelay: autoDismissDelay,
			context:"infoGenEq", 
			text:"The name of generic drugs which are equivalent to brand name medications in dosage, strength, route of administration, quality, performance and intended use. Generic drugs tend to be less expensive compared to brand name drugs."
		});
		document.getElementById("infoGenEq").alt = "";		
	}

	if (document.getElementById("infoNumRatings")) {
		var ttNumRatings = new YAHOO.widget.Tooltip("ttNumRatings", {
			autodismissdelay: autoDismissDelay,
			context:"infoNumRatings", 
			text:"The number of people who have shared their experience about this drug. <ul><li>To share your experience, click the Rate Drug button.</li></ul>"
		});
		document.getElementById("infoNumRatings").alt = "";
	}

	if (document.getElementById("infoNumRatingsNoRate")) {
		var ttNumRatingsNoRate = new YAHOO.widget.Tooltip("ttNumRatingsNoRate", {
			autodismissdelay: autoDismissDelay,
			context:"infoNumRatingsNoRate", 
			text:"The number of people who have shared their experience about this drug."
		});
		document.getElementById("infoNumRatingsNoRate").alt = "";
	}

	/*if (document.getElementById("infoNumRatingsNoSort")) {
		var ttNumRatings = new YAHOO.widget.Tooltip("ttNumRatings", {
			autodismissdelay: autoDismissDelay,
			context:"infoNumRatings", 
			text:"The number of people who have shared their experience about this drug."
		});
		document.getElementById("infoNumRatingsNoSort").alt = "";
	}*/

	if (document.getElementById("infoOverall")) {
		var ttOverall = new YAHOO.widget.Tooltip("ttOverall", {
			autodismissdelay: autoDismissDelay,
			context:"infoOverall", 
			text:"The average combined user rating of the five rating categories (Effectiveness, Easy to Tolerate, Easy to Use, Recommend to Others, and Value for Price) based on feedback from all people who rated this drug using this HealthGrades site. <ul><li>To sort by the Overall Rating, click the sort icon <br />(<img src=\"/drug-ratings/App_Themes/DRT/Images/DrugDetailSortArrowDownBlue.png\" width=\"10\" height=\"12\" alt=\"sort arrow\" />).</li></ul>"
		});
		document.getElementById("infoOverall").alt = "";
	}

	if (document.getElementById("infoOverallNoSort")) {
		var ttOverallNoSort = new YAHOO.widget.Tooltip("ttOverallNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoOverallNoSort", 
			text:"The average combined user rating of the five rating categories (Effectiveness, Easy to Tolerate, Easy to Use, Recommend to Others, and Value for Price) based on feedback from all people who rated this drug using this HealthGrades site."
		});
		document.getElementById("infoOverallNoSort").alt = "";
	}
		
	if (document.getElementById("infoPreRank")) {
		var ttPreRank = new YAHOO.widget.Tooltip("ttPreRank", {
			autodismissdelay: autoDismissDelay,
			context:"infoPreRank", 
			text:"Indicates how often this drug is prescribed in the United States relative to other drugs in its class. For example, 3 out of 11 means that a drug is the 3rd most prescribed drug in the U.S. out of the total number of 11 drugs in its class. Drugs are grouped by class based on their similar chemical makeup and effect."
		});
		document.getElementById("infoPreRank").alt = "";
	}

	if (document.getElementById("infoPriceLevel")) {
		var ttPriceLevel = new YAHOO.widget.Tooltip("ttPriceLevel", {
			autodismissdelay: autoDismissDelay,
			context:"infoPriceLevel", 
			text:"A gauge of the wholesale cost of this drug, compared to other drugs, on a scale of 1 to 5 with <br /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterFullDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterEmptyDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterEmptyDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterEmptyDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterEmptyDollar.gif\" /> being a lower cost drug to <br /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterFullDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterFullDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterFullDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterFullDollar.gif\" /><img src=\"/drug-ratings/App_Themes/DRT/Images/PriceMeterFullDollar.gif\" /> being a higher cost drug."
		});
		document.getElementById("infoPriceLevel").alt = "";
	}

	if (document.getElementById("infoRecommend")) {
		var ttRecommend = new YAHOO.widget.Tooltip("ttRecommend", {
			autodismissdelay: autoDismissDelay,
			context:"infoRecommend", 
			text:"Would you recommend this drug to others? Recommend to Others measures satisfaction by indicating if people who rated this drug would recommend the drug to others to treat this condition. <ul><li>To find the drug that is most recommended to others, click the Recommend to Others sort icon (<img src=\"/drug-ratings/App_Themes/DRT/Images/DrugDetailSortArrowDownBlue.png\" width=\"10\" height=\"12\" alt=\"sort arrow\" />).</li></ul>"
		});
		document.getElementById("infoRecommend").alt = "";
	}

	if (document.getElementById("infoRecommendNoSort")) {
		var ttRecommendNoSort = new YAHOO.widget.Tooltip("ttRecommendNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoRecommendNoSort", 
			text:"Would you recommend this drug to others? Recommend to Others measures satisfaction by indicating if people would recommend the drug to others to treat this condition."
		});
		document.getElementById("infoRecommendNoSort").alt = "";
	}

	if (document.getElementById("infoTolerability")) {
		var ttTolerability = new YAHOO.widget.Tooltip("ttTolerability", {
			autodismissdelay: autoDismissDelay,
			context:"infoTolerability", 
			text:"How easy is it to manage side effects, if any? Easy to Tolerate measures how well people who rated this drug have been able to manage side effects. <ul><li>To find the drug that is rated the easiest to tolerate, click the Easy to Tolerate sort icon (<img src=\"/drug-ratings/App_Themes/DRT/Images/DrugDetailSortArrowDownBlue.png\" width=\"10\" height=\"12\" alt=\"sort arrow\" />).</li></ul>"
		});
		document.getElementById("infoTolerability").alt = "";
	}

	if (document.getElementById("infoTolerabilityNoSort")) {
		var ttTolerabilityNoSort = new YAHOO.widget.Tooltip("ttTolerabilityNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoTolerabilityNoSort", 
			text:"How easy is it to manage side effects, if any? Easy to Tolerate measures how well people who rated this drug have been able to manage side effects."
		});
		document.getElementById("infoTolerabilityNoSort").alt = "";
	}

	if (document.getElementById("infoWorthPriceNoSort")) {
		var ttWorthPriceNoSort = new YAHOO.widget.Tooltip("ttWorthPriceNoSort", {
			autodismissdelay: autoDismissDelay,
			context:"infoWorthPriceNoSort", 
			text:"Was it Worth The Price? Considering everything, was this drug worth the price you paid?"
		});
		document.getElementById("infoWorthPriceNoSort").alt = "";
	}
}