jQuery(document).ready(function($){

    $('.loc').qtip({
      content: { 
        text: function(api){
          var thisid = $(this).attr('id');
          return $('#' + thisid + '_tip').html();
        }
      },
      position: {
        at: 'top center',
        my: 'bottom center'
      },
      hide: {
        fixed: true
      }
    });

});

