var toolTipBG = new Image();
toolTipBG.src = 'assets/templates/ehive/_images/bubble2.png';

function initToolTips(elements) {
    if (elements == null) {
        elements = $$('.toolTips');
    }
    var Tips2 = new Tips(elements, {
        initialize:function(){
            this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
        },
        onShow: function(toolTip) {
            this.fx.start(1);
        },
        onHide: function(toolTip) {
            this.fx.start(0);
        },
        offsets: {'x': 25, 'y': -40}
    });
}

window.addEvent('domready', function() {
    initToolTips();
});
