﻿$(function() {
    //Firefox doesn't honor the disabled tag, force it.
    $('a[disabled]').attr('href', 'javascript:void(0);').click(function(e) {
        e.preventDefault();
        return false;
    });

    $('*[disabled][title]:not(.feature-disabled)').qtip({
        content: {
            text: false
        },
        show: {
            delay: 0
        },
        style: {
            border: {
                width: 5,
                radius: 10
            },
            padding: 10,
            textAlign: 'left',
            tip: true,
            name: 'cream'
        }
    });

    $('.feature-disabled').qtip({
        content: {
            text: 'Your current service contract does not include this feature. If you would like this feature enabled, please contact TJC at 636-282-7300 and we will be happy to assist you.'
        },
        show: {
            delay: 0
        },
        style: {
            border: {
                width: 5,
                radius: 10,
                color: 'red'
            },
            padding: 10,
            textAlign: 'left',
            tip: true,
            name: 'cream'
        }
    });
});
