function showNews(id){
	
	//	alert(id);
	
	if(id!='world' && id != 'latvia'){
		return;
	}

	ajax.exec(folder_root+'ajax/',{'type':'show_news','news_type':id,'language_id':language_id},'fillNews');
	$('#show_more_news_link').attr('href', folder_root+curr_language+'/novosti?type='+id);
	
}

function fillNews(xmlDoc){

	var art_id;
	var art_title;
	var html;
	
	html = '';
	//alert(xmlDoc);
	xmlDoc=this.responseXML.documentElement;

	var articles_count = xmlDoc.getElementsByTagName("news").item(0).childNodes.length;
	//alert(articles_count);
	for(var i=0; i<articles_count; i++){

		art_title = xmlDoc.getElementsByTagName("title")[i].childNodes[0].nodeValue;
		art_img = xmlDoc.getElementsByTagName("img")[i].childNodes[0].nodeValue;
		art_url = xmlDoc.getElementsByTagName("url")[i].childNodes[0].nodeValue;
		lang_url = xmlDoc.getElementsByTagName("lang_url")[i].childNodes[0].nodeValue;
		comm_count = xmlDoc.getElementsByTagName("comm_count")[i].childNodes[0].nodeValue;

		if (lang_url=='rus'){
		
			lang_url = lang_url+'/novosti?id=';

		}else if(lang_url=='eng'){
			
			lang_url = lang_url+'/news?id=';
		}

		html = html + "<div class=\"news_item\">";
		if(art_img !='none'){
			html = html + "<a href=\""+folder_root+lang_url+art_url+"\" style=\"font-weight:bold;font-size:12px;\" ><img style=\"float:left;margin-right:10px;\" width=\"58\" src=\"http://www.mixnews.lv"+art_img+"\"></a>";
		}
		html = html + "<div class=\"news_link_text\">";
		html = html + "<a class=\"news_link\" href=\""+folder_root+lang_url+art_url+"\" >"+art_title+"</a> ";
		html = html + "<a class=\"news_comm_link\" href=\""+folder_root+lang_url+art_url+"&comm=yes\" >("+comm_count+")</a>";
		html = html + "</div>";
		html = html + "<div style=\"clear:both;\"></div>";
		html = html + "</div>";
	}

	$('#news_articles').html(html);

	
}
