var ToolTips = {
	setupToolTips : function() {
		var tipimgs = $$('.tooltip');
		
		if (tipimgs.length > 0) {
			tipimgs.each(function(tip) {
				
				var content = tip.get('title').split('::');
				tip.store('tip:title', content[0]);
				tip.store('tip:text', content[1]);
			});
	
	
			var toolTips = new Tips(tipimgs, {
				className: 'tooltip'
			});
			toolTips.addEvents({
				'show': function(tip) {
					tip.fade('in');
				},
				'hide': function(tip) {
					tip.fade('out');
				}
			});
		}
	}
}

window.addEvent('domready', ToolTips.setupToolTips);

