
window.onload = function ()
	{
		getViewportSize();
	}
	
window.onresize = function ()
	{
		getViewportSize();
	}	
	
// MICRO API
	function getObj(name)
	{
		if (document.getElementById)
		{
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
		}
		else if (document.all)
		{
		this.obj = document.all[name];
		this.style = document.all[name].style;
		}
		else if (document.layers)
		{
		this.obj = document.layers[name];
		this.style = document.layers[name];
		}
	}

// ------- BREEDTE BEPALEN ------- //
function getViewportSize()
{
var kolom;
var size = 0 // [0, 0];

kolom = new getObj('right');

if (typeof window.innerWidth != 'undefined')
{
	size = window.innerWidth
	kolom.style.width = size - 796 + "px";
}

else if (typeof document.documentElement != 'undefined'
	&& typeof document.documentElement.clientWidth !=
	'undefined' && document.documentElement.clientWidth != 0)
{
	size = document.documentElement.clientWidth
	kolom.style.width = size - 780 + "px";
}

else
{
	size = document.getElementsByTagName('body')[0].clientWidth
	kolom.style.width = size - 796 + "px";
}

// kolom.style.width = size - 781 + "px";

}
