/**
 * @author marc
 */

//when the dom is ready
window.addEvent('domready', function() {
	
	
	//store titles and text
	$$('a.tipz').each(function(element,index) {
		var content = element.get('title').split('::');
		element.store('tip:title', content[0]);
		element.store('tip:text', content[1]);
	});
	
	//create the tooltips
	var tipz = new Tips('.tipz',{
		className: 'tipz',
		fixed: false,
		onShow: function(tip) {
					tip.fade('in');
				},
  				onHide: function(tip) {
	  				tip.fade('out');
  				}

	});

});
