var lastAction = '';
function changeNewsCat(intIdCat) {
	AppObj.Ajax.updaterAjax('/modules/news/ajax_get_news.php?cat=' + intIdCat + '&caf=' + $V('blnCaf'),'div_news_content');
	AppObj.Ajax.updaterAjax('/modules/news/ajax_more_news.php?cat=' + intIdCat + '&caf=' + $V('blnCaf'),'div_more_news');
	lastAction = '/modules/news/ajax_get_news.php?cat=' + intIdCat + '&caf=' + $V('blnCaf');
}
function mostRead() {
	AppObj.Ajax.updaterAjax('/modules/news/ajax_most_read.php?cat=' + $V('tabs_news') + '&caf=' + $V('blnCaf'),'div_news_content');
	lastAction = '/modules/news/ajax_most_read.php?cat=' + $V('tabs_news');	
}
function mostComment() {
	AppObj.Ajax.updaterAjax('/modules/news/ajax_most_comment.php?cat=' + $V('tabs_news') + '&caf=' + $V('blnCaf'),'div_news_content');
	lastAction = '/modules/news/ajax_most_comment.php?cat=' + $V('tabs_news');	
}
function mostRated() {
	AppObj.Ajax.updaterAjax('/modules/news/ajax_most_voted.php?cat=' + $V('tabs_news') + '&caf=' + $V('blnCaf'),'div_news_content');
	lastAction = '/modules/news/ajax_most_voted.php?cat=' + $V('tabs_news');		
}
function getNews() {
	AppObj.Ajax.updaterAjax('/modules/news/ajax_get_news.php?cat=' + $V('tabs_news') + '&caf=' + $V('blnCaf'),'div_news_content');
	lastAction = '/modules/news/ajax_get_news.php?cat=' + $V('tabs_news');		
}
function goToNewsPage (intPage) {
	if (lastAction == '') {
		lastAction = '/modules/news/ajax_get_news.php?cat='  + $V('tabs_news') + '&caf=' + $V('blnCaf');		
	}
	AppObj.Ajax.updaterAjax(lastAction + '&page=' + intPage,'div_news_content');
	Effect.ScrollTo('box');
}
