String.prototype.trim = function () { return this.replace(/^\s*/, "").replace(/\s*$/, "");}

function resizeWindow()
{
	var contentWindow = document.getElementById('InnerContent')||document.getElementById('Content');
	var img = document.getElementById('InteriorImage');
	var windowHeight;

	if(contentWindow && img)
	{
		if(document.defaultView)
		{
			windowHeight = document.defaultView.getComputedStyle(contentWindow, null).getPropertyValue("height");
		}
		else
		{
			windowHeight = contentWindow.currentStyle.height
		}

		windowHeight = parseInt(windowHeight.substring(0, windowHeight.length - 2));
		if(contentWindow.scrollHeight > windowHeight)
		{
			img.style.paddingRight = "7px";
		}
	}
}