function Feed(id, title, _link, items)
{
	this.id = id;
	this.title = title;
	this._link = _link;
	this.titleArray = new Array();
	this.linkTitleArray = new Array();
	this.linkArray = new Array();
	this.descriptionArray = new Array();
	this.pubDateArray = new Array();
	
	this.parseItems(items);
}

Feed.prototype.parseItems = function(items)
{
	//for(var i=0; i<items.length; i++)
	for(var i=0; i<7; i++)
	{
		var linkTitle = items[i].getElementsByTagName("title")[0].firstChild.nodeValue;
		var linkLink = items[i].getElementsByTagName("link")[0].firstChild.nodeValue;
		
		var title = "<li class=ef_boxlink><a href='"+linkLink+"' class='title' target='_blank'>" + linkTitle +"</a></li>";
		this.titleArray.push(title);
		this.linkTitleArray.push(linkTitle);
		
		var _link = items[i].getElementsByTagName("link")[0].firstChild.nodeValue;
		this.linkArray.push(_link);
		
		var description = items[i].getElementsByTagName("description")[0].firstChild.nodeValue;
		this.descriptionArray.push(description);
		
		var pubDate = items[i].getElementsByTagName("pubDate")[0].firstChild.nodeValue;
		this.pubDateArray.push(pubDate);
	}
}

Feed.prototype.GetTitle = function()
{
	return "<div id='title_"+ this.id +"'><span class=ef_blocktitle><a href='http://epiteszforum.hu'>epiteszforum.hu</a></span></div>";
}

Feed.prototype.GetAllTitles = function()
{
	return this.titleArray;
}

Feed.prototype.GetDetails = function(id)
{
	var ef_boxlink = this.linkArray[id];
	location.href = ef_boxlink;

}
