//<SCRIPT>
// Tips list
// use in client-side popups

var tipsList = new Object();
var tipPopup;

// function initTips
// initializes a PopupWindow Object and sets
// sets display properties for the popup
// also handles replacement text
function initTips()
{
	if ((window.is_ie4up && window.is_win32))
	{
		tipPopup = new PopupWindow();
		initTipsList();
		document.onmouseover = showPopup;
		document.onmouseout = hidePopup;
		if (window.is_nav4up) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
		
		
		tipPopup.color = "black";
		tipPopup.backgroundColor = "#FFFFAA";
		tipPopup.borderColor = "black";
		tipPopup.borderStyle = "solid";
		tipPopup.fontFamily = "Verdana";
		tipPopup.borderWidth = "1";
		tipPopup.padding = "3";

	}
}		
	
function showPopup(event)
{
	var evtHref = "";
	var x = 0;
	var y = 0;
	var loc;
	
	tipPopup.width = 250;
	
	if (window.is_nav4up) 
	{		
		if (event.target.href) evtHref = event.target.href;
		x = event.pageX;
		y = event.pageY; 
	}
	
	if (window.is_ie4up && window.is_win32) 
	{
		if (window.event.srcElement.href) evtHref = window.event.srcElement.href;
		x = window.event.x;
		y = window.event.y;
	}

	if (window.is_ie5up) 
	{   		//window.status = window.event.srcElement.tagName;

		if (window.event.srcElement.href) evtHref = window.event.srcElement.href;
			x = window.event.x + document.body.scrollLeft;
			y = window.event.y + document.body.scrollTop;
	}
	
	
	loc = evtHref.indexOf("tips.asp?item=");
	//alert(loc);
	if(loc >= 0 )
	{
		evtHref = evtHref.substr(loc + 14);
		//alert (evtHref);
		if (tipsList[evtHref])
		{
			tipPopup.text =  tipsList[evtHref];
			tipPopup.show(x, y);
			
			//Workaround to hide the combo box when the popup appears over it
			if (document.changeOptions && document.changeOptions.DROPMonths)
			{
				var ov = tipPopup.overlaps(document.changeOptions.DROPMonths);
				
				if (ov) document.changeOptions.DROPMonths.style.visibility ="hidden";	
			}
			
		}

	}
}		

function hidePopup()
{
	tipPopup.hide();
	if (document.changeOptions && document.changeOptions.DROPMonths)
	{
		document.changeOptions.DROPMonths.style.visibility ="inherit";			
	}

}


function initTipsList()
{
	tipsList.DOB = 
			"<em><strong>Birth Date</strong></em> -- The day, month and year you " +
			"were born.&nbsp; This date is important since eligibility and&nbsp; " +
			"the amount of some payment options depend on your age at retirement.";
	tipsList.hireDate =
			"<em><strong>Hire Date</strong></em> -- This is the date you began " + 
			"employment in an eligible position covered by LASERS."; 
	tipsList.estimatedRetireDate =
			"<em><strong>Retirement Date</strong></em> -- You are asking for a " +
			"benefit estimate assuming you retire at this <em>future</em> date.";
	tipsList.RegRetireDt =
			"<em><strong>First Regular Retirement Date</strong></em> -- This is the first date " +
			"that you can retire without an actuarially reduced benefit.  You are eligible for " +
			"regular retirement when one of the following conditions is met: 1) 30 years of service credit " +
			"at any age, 2) 25 years of service credit at age 55, or 3) 10 years of service credit at age " +
			"60. ";
	tipsList.beneficiary =
			"<em><strong>Beneficiary</strong></em> -- The person you have " +
			"selected to receive any benefits at your death.&nbsp; " +
			"Some payment options require that " +
			"your beneficiary be your spouse.";
	tipsList.beneficiaryDOB =
			"<em><strong>Beneficiary date of birth</strong></em> -- For some payment options, the amount " +
			"of the monthly benefit for you and your beneficiary is based on your age and your beneficiary's " +
			"age at the time you retire.";
	tipsList.currService =
			"<em><strong>Service credit</strong></em> -- The number of years that you have been an eligible, active " +
			"member of LASERS' retirement plan.  You should enter your current service credit to the nearest " +
			"tenth of a year.  If you do not know your current service credit, you should refer to your most " +
			"current Annual Statement from LASERS, then project your service to the current date. Note: when " +
			"projecting service credit, use .083 years per month."; 
	tipsList.currMonthlySalary =
			"<em><strong>Base monthly salary</strong></em> -- Your base rate of " +
			"pay, before taxes or other deductions.";
	tipsList.sickLeaveBalance =
			"<em><strong>Sick leave balance</strong></em> -- This may be found on your " +
			"most recent pay stub.  At retirement, you may either convert eligible unused sick " +
			"and annual leave to retirement credit and increase your monthly benefit, or be paid " +
			"the actuarial value (not the hourly salary rate) in a lump sum.";
	tipsList.annualLeaveBalance =
			"<em><strong>Annual leave balance</strong></em> -- This may be found on your " +
			"most recent pay stub.  At retirement, you may either convert eligible unused sick " +
			"and annual leave to retirement credit and increase your monthly benefit, or be paid " +
			"the actuarial value (not the hourly salary rate) in a lump sum.";
	tipsList.ConvertibleLeave =
			"<em><strong>Hours of Convertible Leave</strong></em> -- 300 hours of annual leave " +
			"has already been deducted by this program.  If your agency pays more than 300 hours, you " + 
			"should adjust your leave balance amounts to take out extra leave paid by your agency. " ;
	tipsList.maximumPlan =
			"<em><strong>Maximum Plan</strong></em> -- Pays the highest lifetime " +
			"monthly benefit to the retiree and pays a lump-sum refund of any unused portion of the " +
			"retiree's accumulated contributions to the named beneficiary(ies) upon the retiree's death. " +
			"<strong>(Contributions are exhausted in approximately 2 years) </strong>";
	tipsList.option1 =	
			"<em><strong>Option I </strong></em>-- Pays a slightly reduced lifetime monthly benefit to the " +
			"retiree and pays a lump-sum of any unused portion of the retiree's accumulated contributions to " +
			"the named beneficiary(ies) upon the retiree's death.  This option is not available if you chose " +
			"the Initial Benefit Option.  <strong>(Contributions are exhausted in approximately 8 to 10 " +
			"years) </strong>";
	tipsList.option2 =
			"<em><strong>Option II</strong></em> -- Pays less than the Maximum Plan, but the same monthly " +
			"benefit is paid for the life of the retiree and then to the named beneficiary after the " +
			"retiree's death for the lifetime of the beneficiary. Only one beneficiary may be named " +
			"and cannot be changed after retirement.";
	tipsList.option3 =
			"<em><strong>Option III</strong></em> -- Pays less than the Maximum Plan for the life of the " +
			"retiree and pays 50% of the retiree's monthly benefit to the named beneficiary after the " +
			"retiree's death for the lifetime of the beneficiary.  Only one beneficiary may be named and " +
			"cannot be changed after retirement.";
	tipsList.option4a =	
			"<em><strong>Option IV-A</strong></em> -- Pays 90% of the Maximum Plan for the life of " +
			"the retiree and pays 55% of the Maximum Plan to the spouse after the retiree's death " +
			"for the lifetime of the beneficiary.  The retiree and spouse must be married at least " +
			"two years at the time of retirement.  Only one beneficiary may be named and cannot " +
			"be changed after retirement.";
	tipsList.option4b =
			"<em><strong>Option IV-B</strong></em> -- Pays the retiree a benefit that is reduced from " +
			"the Maximum Plan according to the age difference between the member and the named " +
			"beneficiary and pays 55% of the monthly benefit of the retiree to the named beneficiary " +
			"after the retiree's death for the lifetime of the beneficiary.  Only one beneficiary " +
			"may be named and cannot be changed after retirement.";
	tipsList.regular =
			"<STRONG><EM>Regular Benefit</EM></STRONG> -- Unlike the DROP and IBO plans, the Regular " +
			"benefit plan does not direct a portion of your retirement benefit to a separate account, " +
			"which is then under your management.  The advantage of the Regular benefit plan is that " +
			"it provides the <strong>highest monthly benefit</strong>.";
	tipsList.drop =
			"<em><strong>DROP </strong></em>-- The Deferred Retirement Option " +
			"Plan allows you to continue working while your monthly benefit payments (based on the " +
			"payment option you choose when you enter DROP) are deposited in an account. You receive " +
			"the lump sum (up to 36 months of payments) when you leave active state service.";
	tipsList.afterdrop =
			"<em><strong>AFTER DROP </strong></em>-- The Retirement Benefit After DROP Participation " +
            "is an estimate of the monthly retirement benefit payable to you at the time you leave " +
            "active state service, including an additional benefit for converted unused leave.";
	tipsList.ibo =
			"<em><strong>IBO</strong></em> -- The Initial Benefit Option provides " +
			"a lump sum payment at the time you retire.&nbsp; You select the amount of the lump sum (up " +
			"to an amount equal to 36 months of Maximum Plan benefit payments) and your monthly " +
			"retirement benefit is reduced accordingly for your lifetime.";
	tipsList.iboLumpSum =
			"<em><strong>IBO Lump Sum</strong></em> -- You can modify the lump sum amount to see how " +
			"your lifetime monthly benefit changes.  Your lifetime " +
			"monthly benefit will go down as you increase the lump sum amount.  The lump sum amount " +
			"cannot exceed the total of 36 months of Maximum Plan benefit payments.";
	tipsList.early =
			"<em><strong>Early Retirement</strong></em> -- You can retire with an actuarially " + 
			"reduced benefit if you have at least 20 years of service credit at any age.  The " +
			"amount of the reduction is calculated based on the number of months you retire " +
			"before your regular eligibility date.";
	tipsList.leave =
			"<strong><em>Convert Leave</em></strong> -- Unused sick and annual " +
			"leave certified by your agency can be converted to service credit (or paid as a lump sum " +
			"value). Converting your leave to service credit will increase your monthly retirement benefit.";
	tipsList.estFinalComp =
			"<STRONG><EM>Estimated Final Average Annual Salary</EM></STRONG> -- This is your average " +
			"annual earned conpensation received during your 36 highest months of successive " +
			"employment.";
	tipsList.employeeContributions =
			"<STRONG><EM>Employee Contributions to Date</EM></STRONG> -- This is your total " +
			"contributions based on a percentage of your earned compensation.  For example, " +
			"regular employees currently contribute 7.5% of their earned compensation to LASERS " +
			"retirement fund. Employee Contributions are only used by this calculator to compute " +
			"the Option I benefit reduction. Note: You can find your contribution balance at " +
			"calendar year end on your last Member Annual Statement.";
	tipsList.refundDate =
			"<STRONG><EM>Refund Date</EM></STRONG> -- The date that the refund check was " +
			"issued by LASERS.";
	tipsList.refundAmount =
			"<STRONG><EM>Refund Amount</EM></STRONG> -- The gross amount of contributions that " +
			"was refunded.  This is the <strong>gross</strong> amount shown on the refund check.";
	tipsList.refundRepay =
			"<STRONG><EM>Expected Payment Date</EM></STRONG> -- The date " +
			"that you apply, in writing, to request an invoice for repayment of a refund.  " +
			"Interest will be calculated from the date refunded to the expected payment date.  " +
			"<strong>Note:</strong> this is also called the <strong>Interest To</strong> date.";
	tipsList.repayCost =
			"<STRONG><EM>Cost to Repay</EM></STRONG> -- The cost to repay your refund " +
			"includes your original refund amount plus interest at 8.25%, compounded annually from " +
			"the date of the refund until the date that the refund is repaid.";
	tipsList.repayQualified =
	"<STRONG><EM>Qualify to Repay</EM></STRONG> -- LASERS members are eligible to repay " +
    "a prior refund of contributions once they return to state service with a LASERS agency " +
    "and earn a minimum of 18 months of service credit.  Members of another Louisiana qualified " +
    "retirement system may repay prior LASERS refunded service credit in order to transfer to or " +
    "reciprocate with their current system, provided the transfer/reciprocal is allowed by that system.";
}		

