/**
 * jQuery.reves
 *
 * @version 0.1.0
 */

var allScripts = {
	'debug' : false,
	'number' : false,
	'window' : false,
	'string' : false
};

jQuery.allLoaded = function (callback) {
	var interval = setInterval(function() {

		var loaded = true;
		for (var i in allScripts) {
			if (!allScripts[i]) {
				loaded = false;
				break;
			}
		}

		if (loaded) {
			clearInterval(interval);
			callback();
		}
	}, 200);
};

$.getScript('/wp-content/themes/udsma/inc/js/jquery/reves/jquery.debug.js', function(){
	allScripts.debug = true;
});

$.getScript('/wp-content/themes/udsma/inc/js/jquery/reves/jquery.number.js', function(){
	allScripts.number = true;
});

$.getScript('/wp-content/themes/udsma/inc/js/jquery/reves/jquery.window.js', function(){
	allScripts.window = true;
});

$.getScript('/wp-content/themes/udsma/inc/js/jquery/reves/jquery.string.js', function(){
	allScripts.string = true;
});

$.getScript('/wp-content/themes/udsma/inc/js/jquery/reves/jquery.form.js', function(){
	allScripts.form = true;
});