function init(libraries)
{
	YAHOO.namespace("Yes");

	YAHOO.Yes.loader = new YAHOO.util.YUILoader(
	{
		base: '/framework/yui_2.8.0r4/build/',
		require: libraries,
		loadOptional: false,
		combine: false,
		filter: 'MIN',
		allowRollup: true,
		onSuccess: function()
		{
			YAHOO.Yes.loader.success = true;
			while(YAHOO.Yes.loader.onReady.length)
			{
				YAHOO.Yes.loader.onReady.shift()();
			}
		}
	});
	YAHOO.Yes.loader.success = false;
	YAHOO.Yes.loader.onReady = [];
	YAHOO.Yes.loader.onReady.push = function () {
		if (YAHOO.Yes.loader.success)
		{
			arguments[0]();
			return true;
		}
		else
			return Array.prototype.push.apply(this, arguments);
	}
	YAHOO.Yes.loader.insert();

	YAHOO.Yes.loader.onReady.push(function()
	{
		YAHOO.util.Event.onContentReady('menuIdioma', function ()
		{
			var menu = new YAHOO.widget.Menu("menuIdioma", {context: ['selectorIdioma', 'tl', 'bl', null, [0,0]]});
			menu.render();
			YAHOO.util.Event.addListener("selectorIdioma", "click", menu.show, null, menu);
		});

		YAHOO.util.Event.onContentReady('menuMoneda', function ()
		{
			var menu = new YAHOO.widget.Menu("menuMoneda", {context: ['selectorMoneda', 'tl', 'bl', null, [0,0]]});
			menu.render();
			YAHOO.util.Event.addListener("selectorMoneda", "click", menu.show, null, menu);
		});
	});
}
