function HotNews(value, title, annotation, newsDate, link) {
	this.value = value;
	this.title = title;
	this.date = newsDate;
	this.link = link;
	this.annotation = annotation;
	return this;
}

HotNews.prototype = {
	getUrl: function() {
		return this.link + "?news_id=" + this.value;
	},
	getNewsTitle: function() {
		var oTx = document.createTextNode(this.title);
		var oA = document.createElement('A');
		oA.href = this.getUrl();
		oA.appendChild(oTx);
//		oA.innerHTML = this.title;
		var oB = document.createElement('B');
		oB.appendChild(oA);
		var oP = document.createElement('P');
		oP.appendChild(oB);
		return oP;
	},
	getNewAnnotation: function() {
		var oP = document.createElement('P');
		if (this.annotation != null) {
			var oA = document.createElement('A');
			oA.href = this.getUrl();
			oA.innerHTML = this.annotation;
			oP.appendChild(oA);
		}
		return oP;
	},
	getNewDate: function() {
		var oP = document.createElement('P');
		oP.align = 'right';
		oP.innerHTML = this.date;
		return oP;
	}
};

