/**
 * loadFunctions.js v0.1 for jquery
 *
 * Contributors: Nuno Serrano http://www.naasoft.com
 *
 * Freely distributable under MIT-style license.
 */

(function($) {

//	$.fn.loadFunctions = function(options, func){
	$.fn.loadFunctions = function(func){
		
//		settings = jQuery.extend({
//			height: 0.5,
//			opacity: 0.5,
//			inline: false
//		}, options);

		if (func) {
			if (!$.func_tmp)
				$.func_tmp = new Array();
			$.func_tmp = $.merge($.func_tmp, [func]);
		} else {
			if ($.func_tmp) {
				$.each($.func_tmp, function(i, item) {
					item();
				});
			}
		}
		
		return this;
	}
	
})(jQuery);

