$(document).ready(function()
	{
		// Set specific variable to represent all iframe tags.
		var iFrames = document.getElementsByTagName('iframe');

		// Resize heights.
		function iResize()
		{
			// Iterate through all iframes in the page.
			for (var i = 0, j = iFrames.length; i < j; i++)
			{
				// Set inline style to equal the body height of the iframed content.
				//iFrames[i].style.height = iFrames[i].contentWindow.document.body.offsetHeight - 250 + 'px';
				iFrames[i].style.height = document.getElementById('iforum').contentWindow.document.getElementById('whatsnew').offsetHeight + 'px';
			}
		}
		
		var sizeChanged = false;
		function iResize2()
		{
		    try {
		    document.getElementById('iforum').style.height = document.getElementById('iforum').contentWindow.document.body.offsetHeight + 0 + 'px';
		    } catch (e) {}
			//this.style.height = this.contentWindow.document.body.offsetHeight + 'px';
			sizeChanged = true;
		}
		
		function iResize2Check()
		{
			if (!sizeChanged)
		    {
				iResize2();
			}
		}

		// Check if browser is Safari or Opera.
		if (jQuery.noConflict().browser.safari || jQuery.noConflict().browser.opera)
		{
			// Start timer when loaded.
			jQuery.noConflict()('iframe').load(function()
				{
					setTimeout(iResize, 0);
				}
			);

			// Safari and Opera need a kick-start.
			for (var i = 0, j = iFrames.length; i < j; i++)
			{
				var iSource = iFrames[i].src;
				iFrames[i].src = '';
				iFrames[i].src = iSource;
			}
		}
		else
		{
			// For other good browsers.
			jQuery.noConflict()('iframe').load(function()
				{
					document.getElementById("iframe_forum").style.position = "relative";
					document.getElementById("iframe_forum").style.height = document.getElementById('iforum').contentWindow.document.getElementById('whatsnew').offsetHeight;
					document.getElementById("iforum").style.height = document.getElementById('iforum').contentWindow.document.getElementById('whatsnew').offsetHeight;
					iResize2();
				}
			);
			setTimeout(iResize2Check, 3000);
		}
	}
);