// TOOLTIPS:
document.observe('dom:loaded', function(){
	$$('div.ibutton').each(function(element) {
		var content = $(element.readAttribute('pointer')).down('div').innerHTML;
		//alert('tooltip found ' + element.readAttribute('pointer')  + ' with content: (' + content + ')');
    	
    	new Tip(element, content, {
    		title: 'Information',
    		closeButton: true,    // or true
		    duration: 0.3,         // duration of the effect, if used
		    delay: 0.2,            // seconds before tooltip appears
		    effect: 'appear',         // false, 'appear' or 'blind'
		    fixed: true,
		    offset: {x:20, y:20},
		    hideOn: false,
		    hideAfter: 20 
    	});
    	
  	});
});