$(document).ready(function(){     
    //start menu
    $('ul.sf-menu').superfish(); 
    
    //highlight def terms        
    $('#inner div.w664, #inner div.w484').highlight(
        [
            "strategic\\s+asset\\s+allocation",
            "tactical\\s+asset\\s+allocation",
            "asset\\s+allocation",
            "assets",
            "baseline",
            "junk\\s+bond",
            "bond",
            "broker",
            "capital\\s+appreciation",
            "discretionary\\s+income",
            "diversification",
            "fiduciary",
            "fixed\\s+income",
            "individual\\s+retirement\\s+account",
            "inflation",
            "mutual fund",
            "portfolio returns",
            "portfolio",
            "risk-adjusted return",
            "return",
            "risk tolerance",
            "risk",
            "stock",
            "tax-deferred investment",
            "transparent"
        ]
        , { className: 'autodic' }
    );
    
    $('#inner span.autodic').tipTip({
        maxWidth:'300px',
        edgeOffset:5,
        content:function(){
            var key = this.text().toLowerCase().replace(/\s+/g,'');            
            return autodic[key];
        }
    });
    
}); 

var autodic = {
    'strategicassetallocation' : '<strong>Strategic Asset Allocation</strong> - A portfolio strategy that involves periodically rebalancing the portfolio in order to maintain a long-term goal for asset allocation.',
    'tacticalassetallocation' : '<strong>Tactical Asset Allocation</strong> - An active management portfolio strategy that rebalances the percentage of assets held in various categories to take advantage of market pricing anomalies or strong market sectors.',
    'assetallocation' : '<strong>Asset Allocation</strong> - An investment strategy that aims to balance risk and reward by apportioning a portfolio\'s assets according to an individual\'s goals, risk tolerance and investment horizon.',
    'assets' : '<strong>Assets</strong> - A resource with economic value that an individual, corporation or country owns or controls with the expectation that it will provide future benefit.',
    'baseline' : '<strong>Baseline</strong> - A benchmark used as a basis for comparison - typically for measuring something.',    
    'junkbond' : '<strong>Junk Bond</strong> - A bond rated \'BB\' or lower because of its high default risk; also known as a "high yield bond" or "speculative bond"',    
    'bond' : '<strong>Bond</strong> - A debt investment in which an investor loans money to an entity (corporate or governmental) that borrows the funds for a defined period of time at a fixed interest rate.',
    'broker' : '<strong>Broker</strong> - An individual or firm that charges a fee or commission for executing buy and sell orders submitted by an investor.',
    'capitalappreciation' : '<strong>Capital Appreciation</strong> - A rise in the value of an asset based on a rise in market price.',
    'discretionaryincome' : '<strong>Discretionary Income</strong> - The amount of an individual\'s income that is left for spending, investing or saving after taxes and personal necessities have been paid.',
    'diversification' : '<strong>Diversification</strong> - A risk management technique that mixes a wide variety of investments within a portfolio in effort to yield higher returns and pose a lower risk than any individual investment found within the portfolio.',
    'fiduciary' : '<strong>Fiduciary</strong> - A person legally appointed and authorized to hold assets in trust for another person. The fiduciary manages the assets for the benefit of the other person rather than for his or her own profit.',
    'fixedincome' : '<strong>Fixed Income</strong> - A type of investing or budgeting style for which real return rates or periodic income is received at regular intervals at reasonably predictable levels.',
    'individualretirementaccount' : '<strong>Individual Retirement Account</strong> - An investment tool used by individuals to earn and earmark funds for retirement savings. Types include Traditional IRAs, Roth IRAs, SIMPLE IRAs and SEP IRAs.',
    'inflation' : '<strong>Inflation</strong> - The rate at which the general level of prices for goods and services is rising, and, subsequently, purchasing power is falling.',
    'mutualfund' : '<strong>Mutual Fund</strong> - An investment vehicle made up of a pool of funds collected from many investors for the purpose of investing in securities such as stocks, bonds, money market instruments and similar assets.',    
    'portfolio' : '<strong>Portfolio</strong> - A grouping of financial assets such as stocks, bonds and cash equivalents, as well as their mutual, exchange-traded and closed-fund counterparts.',
    'portfolioreturns' : '<strong>Portfolio Returns</strong> - The monetary return experienced by a holder of a portfolio.',
    'risk-adjustedreturn' : '<strong>Risk-adjusted Return</strong> - The monetary return experienced by a holder of a portfolio.',
    'return' : '<strong>Return</strong> - The gain or loss of a security in a particular period.',
    'risktolerance' : '<strong>Risk Tolerance</strong> - The degree of uncertainty that an investor can handle in regard to a negative change in the value of his or her portfolio.',
    'risk' : '<strong>Risk</strong> - The chance that an investment\'s actual return will be different than expected. This includes the possibility of losing some or all of the original investment.',
    'stock' : '<strong>Stock</strong> - A type of security that signifies ownership in a corporation and represents a claim on part of the corporation\'s assets and earnings.',
    'tax-deferredinvestment' : '<strong>Tax-deferred Investment</strong> - Investment earnings such as interest, dividends or capital gains that accumulate tax free until the investor withdraws and takes possession of them.',
    'transparent' : '<strong>Transparent</strong> - The extent to which investors have ready access to any required financial information about a company such as price levels, market depth and audited financial reports.'
}
