﻿
var offsetx = 12;
var offsety = 8;

function newelement(newid) {
    if (document.createElement) {
        var el = document.createElement('div');
        el.id = newid;
        with (el.style) {
            display = 'none';
            position = 'absolute';
        }
        el.innerHTML = '&nbsp;';
        document.body.appendChild(el);
    }
}
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);
var ua = navigator.userAgent.toLowerCase();
var isapple = (ua.indexOf('applewebkit') != -1 ? 1 : 0);
function getmouseposition(e) {
    if (document.getElementById) {
        var iebody = (document.compatMode &&
        	document.compatMode != 'BackCompat') ?
        		document.documentElement : document.body;
        pagex = (isapple == 1 ? 0 : (ie5) ? iebody.scrollLeft : window.pageXOffset);
        pagey = (isapple == 1 ? 0 : (ie5) ? iebody.scrollTop : window.pageYOffset);
        mousex = (ie5) ? event.x : (ns6) ? clientX = e.clientX : false;
        mousey = (ie5) ? event.y : (ns6) ? clientY = e.clientY : false;

        var lixlpixel_tooltip = document.getElementById('tooltip');
        lixlpixel_tooltip.style.left = (mousex + pagex + offsetx) + 'px';
        lixlpixel_tooltip.style.top = (mousey + pagey + offsety) + 'px';
    }
}
function tooltips(tip) {
    if (!document.getElementById('tooltip')) newelement('tooltip');
    var lixlpixel_tooltip = document.getElementById('tooltip');
    lixlpixel_tooltip.innerHTML = tiptext(tip);
    lixlpixel_tooltip.style.display = 'block';
    document.onmousemove = getmouseposition;
}

function tooltip(tip) {
    if (!document.getElementById('tooltip')) newelement('tooltip');
    var lixlpixel_tooltip = document.getElementById('tooltip');
    lixlpixel_tooltip.innerHTML = tip;
    lixlpixel_tooltip.style.display = 'block';
    document.onmousemove = getmouseposition;
}
function exit() {
    document.getElementById('tooltip').style.display = 'none';
}

function tiptext(ele) 
{
    var str = "";
    switch (ele.toString().toLowerCase()) 
    {
        case "premium": // Premium 
            str = "Periodic installment amount payable  towards the policy";
            break;  
        case "policyterm": // Policy Term 
            str="Period for which your  life insurance policy continues";
            break;
        case "ppt": // Premium payment term 
            str="Period during which premiums  are to be paid  towards  the policy";
            break;
        case "paidup": // Premium Discontinuous Specification
            str="Full Term &#8211; If you plan to pay premium through out the term <br/>User Defined &#8211; If you wish to view the values on  discontinuance   of premium";
            break;     
        case "covers": // Cover Specification
            str="Minimum – Higher priority to investment with life cover<br/>Maximum – Higher priority to life cover with investment<br/>User Defined – If you want to define your Sum Assured between minimum and maximum";
            break; 
        case "coverl": // Cover Level
            str=" This defines the multiplier of premium to insurance cover (Sum Assured)";
            break;
        case "adbr": // Accidental Death Benefit Rider 
            str = "This rider pays an additional sum assured in event of death due to an accident.";
            break; 
        case "addr": // Accidental Death & Dismemberment Rider 
            str="This rider pays an additional sum assured in event of death due to an accident or a part of Sum Assured in the event of dismemberment.";
            break;
        case "chbr": // Comprehensive Health Benefit Rider
            str = "This rider pays sum assured on diagnosis of  18 critical illnesses defined  or permanent total disability";
            break;  
        case "ciptdr": // Critical Illness & Permanent Total disability rider 
            str="This rider pays sum assured on diagnosis of  10 critical illnesses defined  or permanent total disability";
            break;  
        case "hcbr": // Hospital Cash Benefit Rider
            str="This rider pays a fixed amount in the event of   hospitalization irrespective of your actual expenses";
            break; 
        case "ibr": // Income Benefit Rider 
            str="This rider provides  annual income to the family in case of death of life  insured";
            break;
        case "fibr": // Family Income Benefit Rider 
            str = "This rider provides  annual income to the insured in case of critical illness";
            break;
        case "termr": // Term Rider 
            str="This rider pays an additional Sum Assured in case of death of life insured";
            break; 
        case "payorr": // Payor Rider
            str="This rider pays future premiums, due upto age 21 of minor child insured, as a lump sum into the policy fund in case of death of the policyholder (parent)";
            break;   
        case "payorpr": // Payor Plus Rider
            str="This rider pays 75% of future premiums due, as a lump sum into the policy fund in case of death of the policyholder and balance 25% along with maturity benefit.";
            break;
        case "apayorpr": // Aviva Payor Plus Rider
            str = "This rider pays 100% of future premiums due, as a lump sum into the policy fund in case of death of proposer.";
            break;
        case "ddr": // Dread Disease Rider
            str="This rider pays sum assured on diagnosis of  19 critical illnesses defined  or permanent total disability.";
            break;  
        case "atpr": // Aviva Term Plus Rider
            str="Pays the Aviva Term Plus rider Sum Assured along with death benefit.";
            break;  
        case "acer": // Aviva Child Education Rider
            str="Pays a guaranteed monthly payout to the Nominee till the end of the Policy Term in case of death of Life Insured.";
            break;
        case "ahgr": // Aviva Health Guard Rider
            str="future premiums payable are waived (under the base plan and death related riders, if any) on diagnosis of 19 critical illnesses defined or permanent total disability.";
            break;      
        case "roi": // Rate of Indexation 
            str="Facility to  increase your premium and insurance cover without any additional process / medical examination inline with inflation  to protect the future value of your investment";
            break;
        case "disful": //	Distribution in each unit linked fund
            str="Provide desired distribution pattern for your premium under the listed funds subject to a minimum of 10% for a selected fund";
            break;
        case "balanced": // Balanced Fund
            str = "Debt &amp; Money Market: (0 - 100%)<br/>Equity: (0 - 45%)";
            break;           
        case "bond": // Bond Fund
            str = "Debt &amp; Money Market: (100%)<br/>Equity: (0%)";
            break;
        case "enhancer": // Enhancer Fund
            str = "Debt &amp; Money Market: (0 - 40%)<br/>Equity: (60 - 100%)";
            break;
        case "growth": // Growth Fund
            str = "Debt &amp; Money Market: (0 - 70%)<br/>Equity: (30 - 85%)";
            break;
        case "index": // Index fund
            str = "Debt &amp; Money Market: (0 - 20%)<br/>Equity: (80 - 100%)";
            break;
        case "infra": // Infrastructure Fund
            str = "Debt &amp; Money Market: (0 - 40%)<br/>Equity: (60 - 100%)";
            break;
       case "protector": // Protector Fund
           str = "Debt &amp; Money Market: (0 - 100%)<br/>Equity: (0 - 20%)";
            break;
        case "psu": // PSU Fund
            str = "Debt &amp; Money Market: (0 - 40%)<br/>Equity: (60 - 100%)";
            break;
        case "secure": // Secure Fund
            str = "Government &amp; other Debt Securities: 60 - 100%<br/>Equity: 0 - 20%<br/> Cash &amp; Money Market: 0 - 40%";
            break;
        case "p_balanced": // Pension Balanced Fund
            str = "Debt &amp; Money Market: (0 - 100%)<br/>Equity: (0 - 45%)";
            break;
        case "p_growth": // Pension Growth Fund
            str = "Debt &amp; Money Market: (0 - 80%)<br/>Equity: (20 - 60%)";
            break;
        case "p_index":  // Pension Index Fund
            str = "Debt &amp; Money Market: (0 - 20%)<br/>Equity: (80 - 100%)";
            break;
        case "p_infra": // Pension Infrastructure Fund
            str = "Debt &amp; Money Market: (0 - 40%)<br/>Equity: (60 - 100%)";
            break;
        case "p_protector": // Pension Protector Fund
            str = "Debt &amp; Money Market: (0 - 100%)<br/>Equity: (0 - 20%)";
            break;
        case "p_psu": // Pension PSU Fund
            str = "Debt &amp; Money Market: (0 - 40%)<br/>Equity: (60 - 100%)";
            break;    
        case "p_secure": // Pension Secure Fund
            str = "Government &amp; other Debt Securities: 60 - 100%<br/>Equity: 0 - 20%<br/> Cash &amp; Money Market: 0 - 40%";
            break;
        
       
        
//        case "p_profit": // Pension Profit Fund
//            str = "Corporate Bonds : 21%<br/>Equities: 1%<br/>Gilts: 57%<br/>Money Market: 21%";
//            break;
        case "opt_drp": //	Option to decrease Regular Premium
            str = "Select decrease if you want to change your regular premium amount at a later date.";
            break;
        case "opt_drpd": //	Option to decrease Regular Premium Duration
            str = "Duration- Enter the year from which you want to reduce premium.";
            break;
        case "opt_drpa": //	Option to decrease Regular Premium Amount
            str = "Amount- Enter the amount by which you want to reduce your premium.";
            break;                    
        case "opt_idrp": //	Option to Increase / decrease Regular Premium
            str="Select increase or decrease if you want to change your regular premium amount at a later date.";
            break;
            case "opt_irp": //	Option to Increase / decrease Regular Premium
            str="Select increase if you want to change your regular premium amount at a later date.";
            break;
        case "opt_idrpd": //	Option to Increase / decrease Regular Premium duration
            str = "Duration- Enter the year from which you want to increase/reduce premium.";
            break;
        case "opt_idrpa": //	Option to Increase / decrease Regular Premium amount
            str = "Amount- Enter the amount by which you want to increase / reduce your premium.";
            break; 
            
        case "epr": //	Extra Premium Rating 
            str="An additional charge, if applicable, basis assessment of risk profile of the customer.";
            break;  
        case "stp": // Systematic / Non-systematic Top up Premium
            str="Option to put an extra lump sum amount regularly / irregularly to enhance the benefits.";
            break; 
        case "stp_sy": // Systematic Top up Premium Start Year
            str="Enter the year from which you want to invest lump sum money.";
            break;
        case "stp_d": // Systematic Top up Premium Duration
            str="Enter the no. of years for which you want to invest  regularly.";
            break;
        case "stp_a": //  Systematic Top up Premium Amount
            str="Enter the amount you want to invest.";
            break;
        case "nstp_y": // Non-Systematic Top-up Premium Year 
            str="Top up Year  - Enter the year in which you want to put lump sum money.";
            break;
        case "nstp_a": // Non-Systematic Top-up Premium Amount
            str = "Top up Amount - Enter the amount you want to invest";
            break;      
        case "spw": //	Systematic / Non- systematic Partial Withdrawal 
            str="Option to partially withdraw money regularly / irregularly from your policy fund  for specified no. of years.";
            break;  
        case "spw_sy": // Systematic  Partial Withdrawal Start year
            str="Enter the year from which you want to withdraw money.";
            break;
        case "spw_d": // Systematic  Partial Withdrawal Duration
            str = "Enter the no. of years for which you want to withdraw money.";
            break;
        case "spw_a": // Systematic  Partial Withdrawal Amount
            str = "Enter the amount you want to withdraw from your policy fund.";
            break;
        case "nspw_y": // Non Systematic  Partial Withdrawal Year 
            str = "PW year - Enter the year in which you want to withdraw the money.";
            break;
        case "nspw_a": // Non-Systematic  Partial Withdrawal Amount
            str = "PW Amount -Enter the amount that you want to withdraw from your policy fund.";
            break;
        case "premium_t": // Premium Type
            str = "Select Single (as a lump sum) or regular (every year) based on your choice to pay premiums";
            break;
        case "prem_ann": // Premium/Annuity
            str = "Select Annuity for reverse calculation of indicative premium required to get a specific  Annuity<br/>";
            str = str + "Select premium if you want to know  indicative amount of Annuity  you get  at the vesting age<br/>";
            str = str + "Select Fund Value for reverse calculation of Indicative Premium required to get a specific corpus at maturity.";
            break;
        case "annu_pay": //	Annuity Payable
            str = "Enter the amount you want as  regular income after your retirement.";
            break;
        case "annu_opt": // Annuity Option
            str = "Guaranteed for 10 years - Pension is paid for the first 10 years irrespective of surrival of the annuitant, thereafter pension continues  as long as annuitant is alive.<br/>";
            str = str + "Life annuity – Regular  amount is paid till  annuitant survives.";
            break;
        case "ann_rate": //  Annuity based on fund value at gross investment return p.a of
            str = "Which figure on maturity should be used to calculate the indicative annuity payable";
            break;
        case "arp": // Additional Regular Premium
            str = "Select Yes if you want to increase your regular premium every year by a specific amount.";
            break;
        case "arp_d": // ARP Duration
            str = "Enter the year from which you want to increase your premium.";
            break;
        case "arp_a": // ARP Amount
            str = "Enter the extra amount that you will pay every year in addition to  your regular premium.";
            break;
        case "dbo_lbp": // Death benefit Option- (Applicable for Aviva New LifeBond Plus only)
            str = "Option A: 1.25*Single Premium<br/>Option B: 5*Single Premium.";
            break;
        case "sa_t": // Sum Assured For Traditional policies
            str = "Minimum guaranteed amount payable to the  nominee upon death of the life insured or to the policyholder on policy maturity";
            break;
        case "sa_u": // Sum Assured For Unit Linked policies
            str = "Minimum guaranteed amount payable to the  nominee upon death of the life insured";
            break;
        case "sa_s": // Sum Assured For Term policies
            str = "Minimum guaranteed amount payable to the  nominee upon death of the life insured";
            break;
    
    }
    return str;
}