$(document).ready(function() {
    $("ul.alliances-hordes li a").qtip({
        style: {
        padding: 10,
         textAlign: "center",
         tip: true,
         color: "white",
         background: "black",
        border: {
          width: 1,
          radius: 2,
          color: "black"
        }
 }
});

	$("ul.classes li a").qtip({
        style: {
        padding: 10,
         textAlign: "center",
         tip: true,
         color: "white",
         background: "black",
        border: {
          width: 1,
          radius: 2,
          color: "black"
        }
 }
});
    $("ul.races li a").qtip({
        style: {
        padding: 10,
         textAlign: "center",
         tip: true,
         color: "white",
         background: "black",
        border: {
          width: 1,
          radius: 2,
          color: "black"
        }
    }
});
    $(".item-link").qtip({
         position: {
                target: "mouse",
                        corner: {
                                tooltip: "bottomRight"
                        },
                        adjust: {
                                screen: true
                        }
        },
        style: {
               padding: 0,
               border: {
                 width: 1,
                 radius: 2,
                 color: "#d3d3d3"
               }
         },
            api: {
             onRender:
                 function() {
                     var self = this;
                     var doc = document.getElementById("tooltip_" + String(self.elements.target.attr("id")));

                     self.updateContent(document.getElementById("tooltip_" + self.elements.target.attr("id")).innerHTML);
                 }
            }
         });
});



