text: $(document).ready(function(){
      var my_posts = $("[rel=tooltip]");
      for(i=0;i<my_posts.length;i++){
          the_post = $(my_posts[i]);
          if(the_post.hasClass('invert')){
              the_post.tooltip({ placement: 'left'});
              the_post.css("cursor","pointer");
          }else{
              the_post.tooltip({ placement: 'rigt'});
              the_post.css("cursor","pointer");
          }
      }
  });