function tooltip(element, text, title) {

    if(title) {

        var content_options = { title: { text: title }, text: text }    

    } else {

        var content_options = { text: text }   

    }

    $('#'+element).qtip({

        show: { delay: 0 },

        style: { 

            border: { width: 5, radius: 5, color: '#C5DCEC' }, 

            name: 'light',

            tip: { corner: 'leftTop', size: { x: 20, y: 8 } } 

        }, 

        position: { corner: { target: 'rightMiddle', tooltip: 'leftTop' } },

        content: content_options

    });

}

//multiple lisintg mod
 $(document).ready(function () {
               $('.toggle-button').toggle(
                       function() { // handlerEven
                               $(this).attr('src', './template/default/images/hide_all_locs.png');
                               $(this).parent().siblings('.toggleable').slideToggle('slow');
                       },
                       function() { // handlerOdd
                               $(this).attr('src', './template/default/images/show_all_locs.png');
                               $(this).parent().siblings('.toggleable').slideToggle('slow');
                       }
               );
});

