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 calcContentHeight()
{
	var windowHeight = getWindowHeight();
	if(document.getElementById('footer'))
	{
		var footerHeight = document.getElementById('footer').offsetHeight;
		document.getElementById('content').style.height = parseInt(windowHeight - footerHeight) + 'px';
	}
}

window.onload = function()
{
	// calcContentHeight();
}

window.onresize = function()
{
	// calcContentHeight();
}

function bigImage(imgurl, imgsize){
	var SGW = window.open(imgurl,'bigImage', imgsize)
}

