var ToggleNews =
{
	register : function(activeClass,inActiveClass)
	{
		this.activeElem = null;
		this.activeClass = activeClass;
		this.inActiveClass = inActiveClass;
	},
	
	action : function(id)
	{
		this.showElem = document.getElementById(id);
		
		if (this.activeElem != null)
			this.hide();
		
		if (this.activeElem != this.showElem)
		{
			this.show(this.showElem);
		}
	},
	
	hide : function()
	{
		this.activeElem.className = this.inActiveClass;
		this.activeElem = null;
	},
	
	show : function(id)
	{				
		this.showElem.className = this.activeClass;
		this.activeElem = this.showElem;
	}
};

