
var CollapseNode = true;
function Term(Name,Definition){
	this.Name = Name;
	this.Definition = Definition;
}

var Terms = new Array(
	new Term("Deductible","The amount you must pay for services before your plan starts paying expenses. An individual deductible is the amount you must pay for a single person. This person can be you or one other family member. The family deductible is the amount you must pay for the whole family. One family member must meet the individual deductible. You can combine the expenses for other family members to meet the rest of the family deductible. If your plan includes coinsurance, it does not apply until after the deductible is met. Also, not all services apply towards the deductible."),
	new Term("Co-pay","The charge you must pay for certain health services covered under your plan. You are responsible for paying the co-payment directly to the provider of the health service at the time of service or when billed by the provider. Co-payments can be a flat dollar amount or a percentage of eligible costs.  Your in-network co-payment is the charge you pay to providers who are in your health plan. Your out-of-network co-payment is the charge you pay to providers who are not in your health plan."),
	new Term("Coinsurance","A percentage of costs that you must pay after you meet your deductible. Your in-network coinsurance is the percentage you pay to providers who are in your health plan. Your out-of-network coinsurance is the percentage you pay to providers who are not in your health plan."),
	new Term("Cross Applies","If \"Cross Applies\" is Y, then any deductible expenses are applied to both your in-network deductible and your out-of-network deductible."),
	new Term("Last Quarter Accruals","If \"Y\", then deductibles paid in the last quarter of the year can be carried over to the next year."),
	new Term("Meet Deductible First","If \"Y\", then the deductible must be met before any coinsurance, limits or benefits are applied."),
	new Term("In-Network","The term \"In-Network\" refers to physicians and other health care professionals who are in your plan. In many plans, the amount you pay is less than if you go to an \"Out-of-Network\" doctor."),
	new Term("Out-of-Network","The term \"Out-of-Network\" refers to physicians and other health care professionals who are not in your plan. In many plans, the amount you pay is more than if you go to an \"In-Network\" doctor."),
	new Term("OOP","Your Out-of-Pocket Maximum is a limit on the health care costs that you pay. After you reach the limit, plans generally pay all covered costs for the rest of the year. Typically the amount you pay toward deductibles and coinsurance counts towards your out-of-pocket maximum. Most plans do not include copays or what you pay for prescription drugs in your out-of-pocket maximum. The individual out-of-pocket maximum is the limit on what you pay for one person in your family. With the family maximum, when one person meets the individual maximum, you can combine the costs for other family members to meet the rest of the family limit."),
	new Term("Out of Pocket","Your Out-of-Pocket Maximum is a limit on the health care costs that you pay. After you reach the limit, plans generally pay all covered costs for the rest of the year. Typically the amount you pay toward deductibles and coinsurance counts towards your out-of-pocket maximum. Most plans do not include copays or what you pay for prescription drugs in your out-of-pocket maximum. The individual out-of-pocket maximum is the limit on what you pay for one person in your family. With the family maximum, when one person meets the individual maximum, you can combine the costs for other family members to meet the rest of the family limit."),
	new Term("RAPL","Charges for Radiology, Anesthesiology, Pathology and Lab."),
	new Term("Revenue Codes","Revenue codes are used by hospitals to report services rendered."),
	new Term("Office Visits, Tests & Immunizations","Exams, common treatments and tests that are done at an office or clinic.<br><br><ul><li><b>Preventive</b> includes shots and common tests done as part of routine checkups, such as mammograms, immunizations, flu shots and colonoscopies.<br><br><li><b>Physician Office Services - Non-preventive</b> includes tests and treatments done as part of treating a condition. This also includes some chiropractic services</ul>."),
	new Term("Inpatient Hospital & Surgery","Medical services relating to surgeries, hospital stays and recovery after surgery. <br><br> <ul><li>Costs for surgeries are typically listed under \"<b>Professional Services</b>\" (physician services).</ul>"),
	new Term("Women's Health","Medical services relating to family planning, maternity, infertility and women’s health.<br><br><ul>Tests performed during routine \"well woman\" visits are listed under <b>Preventive – Physician Office Services</b>.</ul>"),
	new Term("Mouth & Teeth","Medical services for conditions relating to mouth and teeth<br><br><ul><li>Dental services include coverage for injuries (accidental dental) and surgeries.<br><li>Routine dental visits are usually covered under a separate Dental plan, and are not listed here.</ul>"),
	new Term("Ear, Nose, Throat & Eyes","Medical services relating to ear, nose, throat and eye conditions<br><br><ul><li>Vision Examination and related services are the routine vision visits, corrective “vision” surgeries, glasses and related supplies; these services may be covered under a separate Vision plan.<br><br><li>Coverage for vision injuries or surgeries are part of <b>Physician Services – Non-Preventive or Professional Fees for Surgical and Medical Services</b>.</ul>"),
	new Term("Pharmacy Services","Lists coverage for non-standard pharmacy treatments. Prescription pharmacy benefits are usually separate from your medical plan.</ul>"),
	new Term("Outpatient Services","Medical treatments and surgeries that don’t require a hospital stay.<br><br><ul><li>includes treatments and diagnostic tests such as chemotherapy, dialysis, laboratory, x-rays and MRIs.</ul>"),
	new Term("Mental health & Substance Abuse","Medical treatments related to mental health, substance abuse and smoking cessation.<br><br><ul><li>Mental health/Substance abuse benefits may also be covered under a separate Mental Health plan.</ul>"),
	new Term("Diabetes, Endocrine & Metabolism","Medical treatments related to Diabetes and metabolism disorders.</ul>"),
	new Term("Home Care","Coverage for services that take place outside medical facilities, such as home health care, hospice and private nursing.</ul>"),
	new Term("Transplant Services","Coverage for transplants</ul>"),
	new Term("Medical Equipment & Supplies","Coverage for medical equipment and supplies<br><br><ul><li><b>Durable medical Equipment</b> includes things such as wheelchairs, braces and monitoring devices<br><br><li><b>Medical Equipment – Non-durable</b> includes items that are disposable, or used a few times, such as bed pans and batteries<br><br><li><b>Medical Supplies and Appliances</b> includes items such as diapers, bandages, tape, Lymphedema garments (not post-mastectomy related) and catheters<br><br><li><b>Prosthetic – External</b> includes items such as artificial limbs, wigs and post-mastectomy items.</ul>"),
	new Term("Alternative & Chiropractic","Chiropractic visits and alternative and complementary medicine<br><br><ul><li>Chiropractic visits are listed under <b>Spinal Treatments and Physician Office Services – Non-Preventive</b>.</ul>"),
	new Term("Beginning Amount","Account balance at the beginning of the year."),
    new Term("Beginning Amount","Account balance at the beginning of the year."),
	new Term("Used Amount","Amount you have spent so far this plan year."),
	new Term("Remaining Amount","Amount left in your account."),
	new Term("Remaining Amount","Amount left in your account."),
	new Term("Minimum Check Amount","Lorem ipsum"),
	new Term("Applied Amount","Amount that has been applied to your deductibles and out of pocket maximums so far this plan year."),
	new Term(" Applied/Used","Amount that has been applied to your deductibles and out of pocket maximums so far this plan year."),
	new Term("Automatic Payment","Automatic Payment lets you cut down on paperwork.  If you turn on automatic payment, claims that are eligible to be paid from your FSA account will be automatically paid from your FSA account."),
	new Term("Direct Deposit","Direct Deposit lets you have your Flexible Spending Account reimbursement checks deposited into your checking or savings account automatically."),
		new Term("Purchase over-the-count drugs","link"),
		new Term("Group Coverage","Health coverage provided by a former employer is considered Group Coverage and needs to be reported."),
	new Term("Lifetime Maximum","the total benefit amount that your plan will pay out over your lifetime.")
	
);

function HighlightTerms(){
	var HtmlContent = document.getElementById("Content:Main").innerHTML;
	for(i=0;i<Terms.length;i++){
		var NewHtmlContent = "";
		NewHtmlContent += "<a id='info_clicked' href='javascript:ViewInfo(" + i + ");' onclick='CollapseNode=false' style='font-size:10px;color:00549A;border-bottom:1px dotted 00549A;text-decoration:none;'>";
		NewHtmlContent += Terms[i].Name;
		NewHtmlContent += "</a>";
		NewHtmlContent += "<a href='javascript:ViewInfo(" + i + ");' onclick='CollapseNode=false'>";
		NewHtmlContent += "<img src='assets/img/utility/icon_info.gif' border='0' style='margin-left:3px;' align='absmiddle'/>";
		NewHtmlContent += "</a>";
		HtmlContent = HtmlContent.replace(Terms[i].Name,NewHtmlContent);
	}
	document.getElementById("Content:Main").innerHTML = HtmlContent;
}

function HighlightTerms2(){
	var HtmlContent = document.getElementById("Content:Main").innerHTML;
	for(i=0;i<Terms.length;i++){
		var NewHtmlContent = "";
		NewHtmlContent += "<a id='info_clicked' href='javascript:ViewInfo(" + i + ");' onclick='CollapseNode=false' style='font-size:12px;color:00549A;border-bottom:1px dotted 00549A;text-decoration:none;'>";
		NewHtmlContent += Terms[i].Name;
		NewHtmlContent += "</a>";
		NewHtmlContent += "<a href='javascript:ViewInfo(" + i + ");' onclick='CollapseNode=false'>";
		NewHtmlContent += "<img src='assets/img/utility/icon_info.gif' border='0' style='margin-left:3px;' align='absmiddle'/>";
		NewHtmlContent += "</a>";
		HtmlContent = HtmlContent.replace(Terms[i].Name,NewHtmlContent);
	}
	document.getElementById("Content:Main").innerHTML = HtmlContent;
}

function HighlightTerms3(){
	var HtmlContent = document.getElementById("Content:SubHead").innerHTML;
	for(i=0;i<Terms.length;i++){
		var NewHtmlContent = "";
		NewHtmlContent += "<a id='info_clicked' href='javascript:ViewInfo(" + i + ");' onclick='CollapseNode=false' style='font-size:12px;color:00549A;font-weight: bold;border-bottom:1px dotted 00549A;text-decoration:none;'>";
		NewHtmlContent += Terms[i].Name;
		NewHtmlContent += "</a>";
		NewHtmlContent += "<a href='javascript:ViewInfo(" + i + ");' onclick='CollapseNode=false'>";
		NewHtmlContent += "</a>";
		HtmlContent = HtmlContent.replace(Terms[i].Name,NewHtmlContent);
	}
	document.getElementById("Content:SubHead").innerHTML = HtmlContent;
}

var InfoWin = null;
function ViewInfo(idx) {
	var width = 650;
	var height = 375;
	var win_toolbar = "toolbar=" + "no";
	var win_width = "width=" + width;
	var win_height = "height=" + height;
	var win_left = "left=" + (screen.width - width) / 2;
	var win_top = "top=" + (screen.height - height) / 2;
	var win_status = "status=" + "no";
	var win_location = "location=" + "no";
	var win_menubar = "menubar=" + "no";
	var win_scrollbars = "scrollbars=" + "auto";
	var win_resizable = "resizable=" + "yes";
	var win_parameters = win_toolbar + "," + win_width + "," + win_height + "," + win_left + "," + win_top + "," + win_status + "," + win_location + "," + win_menubar + "," + win_scrollbars + "," + win_resizable;
	InfoWin = window.open('','ThisPage', win_parameters);
	InfoWin.document.open();
	InfoWin.document.write('<html><head><title>' + Terms[idx].Name + '</title><link href="../css/main.css" rel="stylesheet"type="text/css"></SCRIPT><style type="text/css"><!--body {background-color: E7E3D9;}--></style></head>');
	InfoWin.document.write('<center><img src="assets/img/utility/popup_top.jpg" width="600" height="62"><img src="assets/img/utility/spacer.gif" width="10" height="10">');
	InfoWin.document.write('<table width="600" border="0" cellpadding="0" cellspacing="0"><tr><td width="8" valign="top" background="../../img/default_l.gif"><img src="" width="8" height="35"</td><td style=padding:20px;  background="../../img/default_t.gif">');
	InfoWin.document.write('<b>' + Terms[idx].Name + '</b><br/><br/>');
	InfoWin.document.write(Terms[idx].Definition + '<br/><br/>');
	InfoWin.document.write('</td><td width="8" height="35" valign="top" background="../../img/default_r.gif"><img src="../../img/defaultP_tr.gif" width="8" height="35"></td><tr><td width="8" height="12" valign="bottom"><img src="" width="8" height="12"></td><td height="12" valign="bottom" background="../../img/default_bot.gif"><img src="assets/img/utility/spacer.gif" width="1" height="1"></td><td valign="bottom"><img src="../../img/defaultP_lr.gif" width="8" height="12"></td></tr><tr><td width="8" height="5" colspan="3" valign="bottom"><img src="assets/img/utility/spacer.gif" width="5" height="5"></td></tr></table>');
	InfoWin.document.write('<center><table width="600" border="0"><tr><td><table height="18" border="0" align="right" cellpadding="0" cellspacing="0"><tr><td><img src="assets/img/buttons/btn_blue_l.gif" width="6" height="18"></td><td "style=padding-bottom:2px;" height="18" background="assets/img/buttons/btn_blue_back.gif"><a href="javascript:window.close();" class="link_btnPrimary">Close Window</a></td><td><img src="assets/img/buttons/btn_blue_r.gif" width="6" height="18"></td></tr></table></td></tr></table>');
	InfoAllWin.document.write('</body></html>');
	InfoWin.document.write('</body></html>');
	InfoWin.document.close();
	if (!InfoWin.closed){InfoWin.focus();}
}

var InfoAllWin = null;



function ViewAllInfo(){
	var width = 650;
	var height = 300;
	var win_toolbar = "toolbar=" + "no";
	var win_width = "width=" + width;
	var win_height = "height=" + height;
	var win_left = "left=" + (screen.width - width) / 2;
	var win_top = "top=" + (screen.height - height) / 2;
	var win_status = "status=" + "no";
	var win_location = "location=" + "no";
	var win_menubar = "menubar=" + "no";
	var win_scrollbars = "scrollbars=" + "yes";
	var win_resizable = "resizable=" + "no";
	var win_parameters = win_toolbar + "," + win_width + "," + win_height + "," + win_left + "," + win_top + "," + win_status + "," + win_location + "," + win_menubar + "," + win_scrollbars + "," + win_resizable;

	InfoWin = window.open('','ThisPage', win_parameters);
	InfoWin.document.open();
	InfoWin.document.write('<html><head><title>Plan Coverages</title><link href="../css/main.css" rel="stylesheet"type="text/css"><style type="text/css"><!--body {background-color: E7E3D9;}--></style></head>');
	InfoWin.document.write('<center><img src="assets/img/utility/popup_top.jpg" width="600" height="62"><img src="assets/img/utility/spacer.gif" width="10" height="10">');
	InfoWin.document.write('<table width="600" border="0" cellpadding="0" cellspacing="0"><tr><td width="8" valign="top" background="../../img/default_l.gif"><img src="" width="8" height="35"</td><td style=padding:20px;  background="../../img/default_t.gif">');
	for(i=0;i<Terms.length;i++){
	InfoWin.document.write('<b>' + Terms[i].Name + '</b><br/><br/>');
	InfoWin.document.write(Terms[i].Definition + '<br/><br/>');
	}
	InfoWin.document.write('<td width="8" height="35" valign="top" background="../../img/default_r.gif"><img src="../../img/defaultP_tr.gif" width="8" height="35"></td></tr><tr><td width="8" height="12" valign="bottom"><img src="" width="8" height="12"></td><td height="12" valign="bottom" background="../../img/default_bot.gif"><img src="assets/img/utility/spacer.gif" width="1" height="1"></td><td valign="bottom"><img src="../../img/defaultP_lr.gif" width="8" height="12"></td></tr><tr><td width="8" height="5" colspan="3" valign="bottom"><img src="assets/img/utility/spacer.gif" width="5" height="5"></td></tr></table>');
	
	
	InfoWin.document.write('<center><table width="600" border="0"><tr><td><table height="18" border="0" align="right" cellpadding="0" cellspacing="0"><tr><td><img src="assets/img/buttons/btn_blue_l.gif" width="6" height="18"></td><td "style=padding-bottom:2px;" height="18" background="assets/img/buttons/btn_blue_back.gif"><a href="javascript:window.close();" class="link_btnPrimary">Close Window</a></td><td><img src="assets/img/buttons/btn_blue_r.gif" width="6" height="18"></td></tr></table></td></tr></table>');
	InfoAllWin.document.write('</body></html>');
	InfoWin.document.write('</body></html>');
	InfoWin.document.close();
	if (!InfoWin.closed){InfoWin.focus();}
}
