function getObject(id)
{
	if (document.getElementById)
	{
		this.obj = document.getElementById(id);
		this.style = document.getElementById(id).style;
	}
	else if (document.all)
	{
		this.obj = document.all[id];
		this.style = document.all[id].style;
	}
	else if (document.layers)
	{
		this.obj = document.layers[id];
		this.style = document.layers[id];
	}
}

function SetHeight(id, height)
{
	var x = new getObject(id);
	x.style.height = height;
}

function CorrectHeight(contentTableId, menuDivId, yOffset)
{
	var ua 	= navigator.userAgent.toLowerCase();
	var platform_isMac  = ua.indexOf('mac') != -1;
	var platform_isWin  = ua.indexOf('win') != -1;
	var is_browser_opera  = ua.indexOf("opera")!=-1 && parseFloat( ua.substring( ua.indexOf('opera ') + 7 ) );
	var is_browser_safari  =  ua.indexOf("safari")!=-1;
	var hoogte_browser = 0;
	
	if(!document.layers)
	{
		var object = new getObject(contentTableId);
		var bodyHeight = object.obj.scrollHeight + yOffset;
		
		if (is_browser_safari) 
		{
			browserHeight = self.screen.availHeight;
		}
		else
		{
			browserHeight = document.body.clientHeight;
		}
		if (bodyHeight < browserHeight)
		{				
			var bodyHeight = '100%';
		}
		else
		{
			if(platform_isWin)
			{
				bodyHeight = bodyHeight+'px';
			}
			else
			{
				bodyHeight;
			}
		}
	}
	else
	{
		bodyHeight = innerHeight;
	}	
	SetHeight(menuDivId, bodyHeight);
}			
