window.onload = function() {
		var paras = document.getElementById('content').getElementsByTagName('p');
		if(paras.length) {
			paras[0].className = paras[0].className + ' intro';
		}
	};

//when the dom is ready
window.addEvent('domready', function() {
	
	
	//store titles and text
	$$('a.tips').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('.tips',{
		className: 'tips',
		fixed: false,
		hideDelay: 50,
		showDelay: 50,
	});
	
	//customize
	
	tipz.addEvents({
		'show': function(tip) {
			tip.fade('in');
		},
		'hide': function(tip) {
			tip.fade('out');
		}
	});
	
	
});
