﻿
    function infoTips() {
        var $tt = $('a.infoTip');
        if ($tt.size() > 0) {
            var ttCnt = '<span class="toolTip_content"><span class="toolTip_span"></span><span class="toolTip_bottom">&nbsp;</span></span>';

            $tt.each(function () {
                $this = $(this);
                $this.append(ttCnt);
                if ($this.attr('href') != '#') {
                    $('.toolTip_span', $this).load($this.attr('href') + ' .tooltip-source');
                } else {

                    $('.toolTip_span', $this).html($('.infoTipContent').eq($this.index('a.infoTip')).text());
                }
            });

            $tt.click(function () {
                return false;
            });

            $tt.hover(function () {
                if ($(this).parents('li').size() > 0) {
                    $(this).parents('li').css('zIndex', '9999');
                }
                $('.toolTip_content', this).stop().fadeIn(0);

            }, function () {
                if ($(this).parents('li').size() > 0) {
                    $(this).parents('li').css('zIndex', '100');
                }
                $('.toolTip_content', this).stop().fadeOut(0);
            });
        }

        var $filterGrp = $('.filterGroup');
        if ($filterGrp.size() > 0) {
            $filterGrp.eq($filterGrp.size() - 1).find('.infoTip').attr('style', 'display:inline-block').eq(0).attr('style', 'display:none') ;   
        }
    }

