jQuery.fn.tooltips = function( settings ) {
	
	settings = jQuery.extend({
		tooltipSelector: '.explanation',
		tooltipClass: 'tooltip'
	}, settings);
	
	var base = this;
	
	base.each( function() {
		var tips = $( this ).find( settings.tooltipSelector );
        tips.wrapInner( '<div />' );
		tips.wrap( '<div class="' + settings.tooltipClass + '" />' );
        tips.append( '<span />' );
		$( '.' + settings.tooltipClass ).mouseover( function() {
			$( this ).addClass( 'show' );
		});
		$( '.' + settings.tooltipClass ).mouseout( function() {
			$( this ).removeClass( 'show' );
		});
	});
	
};

