//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]);
    if (content[1].search(/;;/) > 0) {
      var lis = content[1].split(';;');
      var content = '<ul>';
     for(i=0;i<lis.length;i++){
            if (lis[i].length > 0) content += '<li>' + lis[i] + '</li>';
      } 
		  content += '</ul>';
		  element.store('tip:text', content);
    } else {
      element.store('tip:text', content[1]);
    }
	});
	
	//create the tooltips
	var tipz = new Tips('.tipz',{
		className: 'tipz',
		fixed: true,
		hideDelay: 50,
		showDelay: 50,
		offsets: {'x': -268, 'y': 20}
	});
	
	//customize
			tipz.addEvents({
				'show': function(tip) {
					tip.fade('in');
				},
				'hide': function(tip) {
					tip.fade('out');
				}
			});
	
});



//when the dom is ready
window.addEvent('domready', function() {
	
	
	//store titles and text
	$$('div.tipzz').each(function(element,index) {
		var content = element.getElement('div').get('html');
      element.store('tip:text', content);
	});
	
	//create the tooltips
	var tipz = new Tips('.tipz',{
		className: 'tipz',
		fixed: true,
		hideDelay: 50,
		showDelay: 50,
		offsets: {'x': -268, 'y': 20}
	});
	
	//customize
			tipz.addEvents({
				'show': function(tip) {
					tip.fade('in');
				},
				'hide': function(tip) {
					tip.fade('out');
				}
			});
	
});

