	var News = function() {
		this.items = 0;
		this.limit = 4;
		this.current = 0;
		
		this.init = function(size) {		
			this.items = size;
			this.current = 0;
			this.redraw();
		}
	
		this.redraw = function() {
			for(i=0; i<this.items; i++) {
				var newsEntry = document.getElementById('news'+i);
				if(newsEntry) {
					newsEntry.style.display = 'none';
				}
			}
			for(i=this.current;i<(this.current+this.limit);i++) {
				var newsEntry = document.getElementById('news'+i);
				if(newsEntry) {
					newsEntry.style.display = 'list-item';
				}			
			}
		}
		
		this.down = function() {
			this.current++;
			if(this.current > (this.items-this.limit)) {
				this.current = this.items-this.limit;				
			}
			this.redraw();
		}
		
		this.up = function() {
			this.current--;
			if(this.current <= 0) {
				this.current = 0;
			}
			this.redraw();
		}		
	}

