/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var init_tooltipz = function() {
	
	//store titles and text
	$$('a.dwm-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('.dwm-tipz',{
		className: 'tipz',
		fixed: true,
		hideDelay: 50,
		showDelay: 50
	});

	tipz.addEvents({
		'show': function(tip, el) {
			//tip.setStyles('display','');
			//alert('yup');
			//alert(tip.height);
			//tip.fade('in');
		},
		'hide': function(tip) {
			//tip.fade('out');
		}
	});

};
