function showPic(whichpic)
{
    if (document.getElementById('placeholder'))
    {
       document.getElementById('placeholder').src = whichpic.href;
       return false;
    }

}



function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}

	return windowHeight;
}
function setFooter(type)
{


	if (document.getElementById)
	{
		var windowHeight = getWindowHeight();

		var main = document.getElementById('outer');
		var mainHeight  = main.offsetHeight;

		var content = document.getElementById('content');
		var contentHeight  = content.offsetHeight;

		var verschil = windowHeight - mainHeight;
		
		//alert('windowheiht:' +windowHeight);
		//alert('mainheight:' +mainHeight);
		//alert('verschil:' +verschil);
		
		if(mainHeight < windowHeight )
		{
			//alert('aanpassen!');
			
			main.style.height = (windowHeight) + 'px';
			//content.style.height = contentHeight+verschil+'px';
			content.style.height = windowHeight - 30+'px';
			
		}

		if(mainHeight > windowHeight && type == 'resize')
		{
			/* browser check?
			in geval van ie, pas de boel ook aan wanneer scherm kleiner gemaakt wordt
			*/

			if (typeof(window.innerHeight) != 'number')
			{
				var NewContentHeight = contentHeight + verschil;
				content.style.height = NewContentHeight+'px';
				main.style.height = (windowHeight) + 'px';
			}

		}



	}
}
window.onload = function() {
	setFooter("load");
}

window.onresize = function() {
	setFooter("resize");
}
