// JavaScript Document
function getNews(){
			$.getJSON(CONST_URL_NEWS,
			{"method":"getArticlesListToJSON",
				"records":7,
				"catalogName":"news",
				"time":new Date()},
				renderTableNews
				);
			}
			
	function renderTableNews(data){
			$.each(data, addOneTdNews);
		}
			
	function addOneTdNews(index,entry){
			var temp = (entry.createDate.split(" "))[0];
			temp = temp.split("-");
			var newsdate = temp[1]+"-"+temp[2];
			var title = entry.title;
			if(title.length>=19) title = title.substring(0,18)+"...";
			var nhtml = '<tr>';
			//nhtml += '<td width="20" height="21" class="left_kk" align="middle" valign="middle"><img src="../images/index/btn_ico.gif" width="5" height="5" align="absmiddle" /></td>';
			nhtml += '<td width="" height="23" align="left" valign="middle">'+ '<a href="about/aboutNews2.html?id='+entry.id+'" target="_blank">' + newsdate + ' ' + title + '</a></td>';
			nhtml += '</tr>';
			nhtml += '<tr>';

            nhtml += '</tr>';
			
			$('#news').append(nhtml);
			//alert(nhtml);
	}
			
	$(document).ready(getNews);
