

window.addEvent('domready', function() {
		
	//We can use one Request object many times.
	var req = new Request.HTML({url:'index2.php?option=com_content&view=article&id=2%3Anewsflash-1&catid=3%3Anewsflash&Itemid=1', 
		onSuccess: function(html) {
			//Inject the new DOM elements into the results div.
			$('one').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('one').set('text', 'The request failed.');
		}
	});
	
	$('o1').addEvent('domready', function() {
		req.send();
	});
	
		var req2 = new Request.HTML({url:'index2.php?option=com_content&view=article&id=3%3Anewsflash-2&catid=3%3Anewsflash&Itemid=1', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('two').set('text', '');
			//Inject the new DOM elements into the results div.
			$('two').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('two').set('text', 'The request failed.');
		}
	});
	
	$('t').addEvent('domready', function() {
		req2.send();
	});
	
		var req3 = new Request.HTML({url:'index2.php?option=com_content&view=article&id=4%3Anewsflash-3&catid=3%3Anewsflash&Itemid=1', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('three').set('text', '');
			//Inject the new DOM elements into the results div.
			$('three').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('three').set('text', 'The request failed.');
		}
	});
	
	$('th').addEvent('domready', function() {
		req3.send();
	});
	
		var req4 = new Request.HTML({url:'index2.php?option=com_content&view=article&id=42%3Anewsflash-4&catid=3%3Anewsflash&Itemid=1', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('four').set('text', '');
			//Inject the new DOM elements into the results div.
			$('four').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('four').set('text', 'The request failed.');
		}
	});
	
	$('f').addEvent('domready', function() {
		req4.send();
	});
	
		var req5 = new Request.HTML({url:'index2.php?option=com_content&view=article&id=41%3Anewsflash-5&catid=3%3Anewsflash&Itemid=1', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('five').set('text', '');
			//Inject the new DOM elements into the results div.
			$('five').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('five').set('text', 'The request failed.');
		}
	});
	
	$('fi').addEvent('domready', function() {
		req5.send();
	});

});
