var Tooltips = {
    contentName: 'tooltip-content',

    prefix: '-tooltip-content',

    params: {
        contentPosition: 'rightStatic',
        stayOnContent: true,
        offset: 1
    },

    init: function() {
        $('.' + this.contentName).each(function(){
            contentId = $(this).attr('id');
            targetId  = contentId.replace(Tooltips.prefix, '');
            target    = $('#' + targetId);

            // For empty external label we will use previous input
            if('' == target.text()) {
                target = target.prev('input');
            }

            // Add tooltip
            if (1 == target.length) {
                target.ezpz_tooltip($.extend(Tooltips.params, {'contentId': contentId}));
            }
        });
    }
};
