currentToolTip =null;
function loadTooltips(){
        $$('.tooltip').each(function(e1){
        		e1.removeClass('tooltip');
                addToolTip(e1, 'custom');
            });
        $$('.tooltipWide').each(function(e1){
           		e1.removeClass('tooltipWide');
                addToolTip(e1, 'custom-wide');
            });
}
window.addEvent('load',loadTooltips);

function addToolTip (name, css) {
	if (!$(name).tipEnabled){
	    var tip = new Tips($(name), {
		className: css,
		initialize:function() {
				$(name).tipEnabled = true;
				var duration = 500;				
				if(window.ie)
					duration = 0;
	            this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: duration, wait: false}).set(0);
		},
		onShow: function(toolTip) {
				currentToolTip = this;
	            this.fx.start(1);
		},
		onHide: function(toolTip) {
	            this.fx.start(0);
		}
	    });
    }
}
