Layout.prototype.datePage = function(page, year, month, day, force, dayList)
{
	if(this.viewMode == 'list' && (page != this.page || force))
		this.loadData({mode: 'list', page: page});

	if(this.viewMode == 'calendar' && (year != this.lastYear || month != this.lastMonth || day != this.lastDay || force))
		this.loadData({mode: 'calendar', year: year, month: month, day: day});

	if(dayList)
	{
		if(this.lastDayList)
			this.lastDayList.hide()
		dayList.show();
		this.lastDayList = dayList;
	}
}

Layout.prototype.showCat = function(category)
{
	if(getKeys(this.catFilters).length)
		if(confirm(language('showcat-confirm')))
			this.catFilters = {};
	this.catFilters[category] = true;
	this.loadData({updateFilters: true});
}

Layout.prototype.hideCat = function(category)
{
	this.catFilters[category] = false;
	this.loadData({updateFilters: true});
}