
var News = Class.create();
News.prototype = {
	
	initialize : function(addresses,nodes){

		this.addresses = addresses;
		this.nodes = nodes;
		this.i = 0;
		
		for(;this.i < addresses.length;this.i++){
			var loader = new net.ContentLoader(addresses[this.i],this.update.bind(this),nodes[this.i]);
		}
	},
	
	update : function(res,node){
		
		node.innerHTML = "hi";
		node.innerHTML = res.responseText.replace(new RegExp("\n", "g"),"<br />");
	}
}
