var VerticalResize = {
	container: null,
	
	setContainer: function(id)
	{
		this.container = document.getElementById(id);
		this.setVSize();
	},
	
	getVSize: function()
	{
		var vSize = window.innerHeight - 105;
		if(this.container.offsetHeight > vSize)
		{
			var vSize = this.container.offsetHeight;
		}
		return vSize;
	},
	
	setVSize: function(size)
	{
		if(size)
		{
			this.container.style.height = size + "px";
		}
		else
		{
			this.container.style.height = this.getVSize() + "px";
		}
	}
}

window.onresize = function(){VerticalResize.setVSize();}
