function SimpleBlogArchive(param){
	BaseArchive.apply(this,arguments);
}
SimpleBlogArchive.prototype = new BaseArchive();
$extend(SimpleBlogArchive.prototype,{
	onGetArchive : function(text, xml){
		var posts = xml.getElementsByTagName('post');
		var l = posts.length;
		if(l==0) {
			this.count_items = Math.max(0, this.offset - this.limit);
			this.offset = -this.limit;
		}else{
			var i = -1;
			while(this.divObj.firstChild) this.divObj.removeChild(this.divObj.firstChild);//remove old nodes
			var table = document.createElement('table');
			var tbody = document.createElement('tbody');
			table.appendChild(tbody);
			while(++i<l){
				var id = posts[i].getElementsByTagName('id').item(0).firstChild.data;
				var active = (this.current_item_id != undefined && id == this.current_item_id);
				var r = document.createElement('tr');
				var c1 = document.createElement('td');
				c1.className = 'posttitle';
				if(active)c1.className +=' active';
				var a = document.createElement('a');
				a.href = this.blog_url+id+'?&offset='+this.offset+'&total='+this.count_items;
				var node = posts[i].getElementsByTagName('title').item(0).firstChild;
				var txt = node ? node.data : '\u00a0';
				if(active) txt = '>\u00a0\u00a0' + txt;
				a.appendChild(document.createTextNode(txt));
				c1.appendChild(a);
				r.appendChild(c1);

				c2 = document.createElement('td');
				c2.className = 'postdate';
				var node = posts[i].getElementsByTagName('date').item(0).firstChild;
				c2.appendChild(document.createTextNode(node ? node.data : '\u00a0'));
				r.appendChild(c2);
				tbody.appendChild(r);
			}
			this.divObj.appendChild(table);
		}
		this.enablePageButtons();
	}
});