 var news = {

	news:		false,

	init:		function(news) {
				this.news = news;
				this.show(1);
			},

	show:		function(n) {
				this.gobj("cn_date").innerHTML = this.news[n-1].d;
				this.gobj("cn_year").innerHTML = this.news[n-1].y;
				this.gobj("cn_body").innerHTML = this.news[n-1].b;
				this.gobj("cn_url").href = this.news[n-1].u;

				this.page_dis();
				this.gobj("page"+(n)).className = "page_sel";
			},

	page_dis:	function() {
				for (q=0; q<this.news.length; q++)
					this.gobj("page"+(q+1)).className = "page";
			},

	click:		function() {

			},

	gobj:		function(id) {
				return document.getElementById(id);
			}

 }
