ColorToolTip = function() {
	var _question = '';
	var _toolTip = null;
	var _wasTip = false;

	this.init = function() {
		var elms = arguments;
		for (var i = 0, l = elms.length; i < l; i++) {
			_addListeners(elms[i]);
		}
	};

	this.setQuestion = function(pStr) {
		_question = '<b>' + pStr + '</b><br/>' || '';
	};

	this.setToolTip = function(pStr) {
		_toolTip = $('#' + pStr) || null;
	};

	var _addListeners = function(pElm) {
		var elm = $("#" + pElm);
		

		elm.hover(_mouseOver, _mouseOut);
		_toolTip.hover(_mouseOverTip, _mouseOutTip);
	};

	var _mouseOver = function(e) {
		var ctd = _question + $(this).html();
		var pos = $(this).offset();

		_toolTip.hide()
				.html(ctd)
				.css('left', (pos.left - 16) + 'px')
				.css('top', (pos.top) + 'px');
		if (!_wasTip) {
			_toolTip.fadeIn('slow');
		} else {
			_toolTip.show();
		}
		_wasTip = false;
	};

	var _mouseOut = function(e) {
		_toolTip.hide();
		_wasTip = false;
	};

	var _mouseOverTip = function(e) {
		_toolTip.show();
		_wasTip = true;
	};

	var _mouseOutTip = function(e) {
		_toolTip.hide();
	};
};
