function Article(lbl, lbl_class, bgcol, dt_class, hd_class, ref_class, relPath){
	this.dt_class = dt_class;
	this.hd_class = hd_class;
	this.ref_class = ref_class;
	this.relPath = relPath;
	this.dt = new Array();
	this.hd = new Array();
	this.ref = new Array();
	this.ref_hd = new Array();
	this.addArticle = addArticle;
	this.writeArticles = writeArticles;
	if (!window.articles) window.articles = new Array();
	this.lbl = lbl;
	this.lbl_class = lbl_class;
	this.bgcol = bgcol;
	window.articles[this.lbl] = this;
	window.articles[window.articles.length] = this;
}

function addArticle(dt, hd, ref, ref_hd) {
	this.dt[this.dt.length] = dt;
	this.hd[this.hd.length] = hd;
	this.ref[this.ref.length] = ref;
	this.ref_hd[this.ref_hd.length] = ref_hd;
}

function writeArticles(container){
	for (var i=0; i<window.articles.length; i++){
		var art = window.articles[i];

		for (var j=0; j<art.dt.length; j++){	
			document.write('<tr><td><img src="');
			document.write(art.relPath);
			document.write('images/spacer.gif" width="10" height="10"></td>');
			document.write('<td><img src="');
			document.write(art.relPath);
			document.write('images/spacer.gif" width="10" height="10"></td>');
			document.write('<td><img src="');
			document.write(art.relPath);
			document.write('images/spacer.gif" width="10" height="10"></td></tr>');
			document.write('<tr><td>&nbsp;</td><td class="');
			document.write(art.dt_class);
			document.write('">');
			document.write(art.dt[j]);
			document.write('</td><td>&nbsp;</td></tr>');
			document.write('<tr><td>&nbsp;</td><td class="');
			document.write(art.hd_class);
			document.write('">');
			document.write(art.hd[j]);
			document.write('</td><td>&nbsp;</td></tr>');
			document.write('<tr><td>&nbsp;</td><td class="');
			document.write(art.ref_class);
			document.write('"><a href="');
			document.write(art.relPath);
			document.write(art.ref[j]);
			document.write('" class="');
			document.write(art.ref_class);
			document.write('">');
			document.write(art.ref_hd[j]);
			document.write('</a></td><td>&nbsp;</td></tr>');
		}
	}
}