window.addEvent('domready', function() {
	// You can skip the following two lines of code. We need them to make sure demos
	// are runnable on MooTools demos web page.
	if (!window.demo_path) window.demo_path = '';
	var demo_path = window.demo_path;
	// --
		
	//We can use one Request object many times.
	var req = new Request({url:demo_path+'bnr.asp', 
		onSuccess: function(txt) {
			$('menuBar').set('html', txt);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFaiulre: function() {
			$('menuBar').set('text', 'The request failed.');
		}
	}).send();
	
	//$('makeRequest').addEvent('click', function() {
		//req.send();
	//});

});