$(document).ready(function() {
    // do stuff when DOM is ready

    // Below JS for tooltips
    $('#tooltip-included-content').hide();
    $('#tooltipincluded').bt({
        closeWhenOthersOpen: true,
        trigger: 'click',
        contentSelector: "$('#tooltip-included-content').html()", /*get text of inner content of hidden div*/
        width: 495,
        fill: '#ffffcc',
        strokeWidth: 1,
        strokeStyle: '#ccc',
        spikeLength: 60,
        spikeGirth: 40,
        padding: 0,
        position:'left',
        cornerRadius: 2,
        cssStyles: {background: '#ffffcc'},
        shadow: true,
        shadowOffsetX: 5,
        shadowOffsetY: 5,
        shadowBlur: 8,
        shadowColor: '#ccc',
        shadowOverlap: false,
        noShadowOpts: {strokeStyle: '#ccc', strokeWidth: 2}
    });

    $('#tooltip-hiddenfees-content').hide();
    $('#tooltiphiddenfees').bt({
        closeWhenOthersOpen: true,
        trigger: 'click',
        contentSelector: "$('#tooltip-hiddenfees-content').html()", /*get text of inner content of hidden div*/
        width: 400,
        fill: '#ffffcc',
        strokeWidth: 1,
        strokeStyle: '#ccc',
        spikeLength: 40,
        spikeGirth: 30,
        padding: 0,
        position:'right',
        cornerRadius: 2,
        cssStyles: {background: '#ffffcc'},
        shadow: true,
        shadowOffsetX: 5,
        shadowOffsetY: 5,
        shadowBlur: 8,
        shadowColor: 'rgba(0,0,0,.9)',
        shadowOverlap: false,
        noShadowOpts: {strokeStyle: '#999', strokeWidth: 2}
    });

    $('#tooltip-donotsell-content').hide();
    $('#tooltipdonotsell').bt({
        closeWhenOthersOpen: true,
        trigger: 'click',
        contentSelector: "$('#tooltip-donotsell-content').html()", /*get text of inner content of hidden div*/
        width: 380,
        fill: '#ffffcc',
        strokeWidth: 1,
        strokeStyle: '#ccc',
        spikeLength: 40,
        spikeGirth: 30,
        padding: 0,
        position:'right',
        cornerRadius: 2,
        cssStyles: {background: '#ffffcc'},
        shadow: true,
        shadowOffsetX: 5,
        shadowOffsetY: 5,
        shadowBlur: 8,
        shadowColor: 'rgba(0,0,0,.9)',
        shadowOverlap: false,
        noShadowOpts: {strokeStyle: '#999', strokeWidth: 2}
    });


    $("#tooltipht, #tooltippc, #tooltipts, #tooltipop").click(function(event){
        event.preventDefault();
        event.stopPropagation();
    });
});