if (top.frames.length > 0)
{
	top.location.href = self.location;
}

window.onresize = resizeDetailbox;

function resizeDetailbox()
{
	if (!window.opera)
	{
		var ie4 = (document.all) ? true : false;
		var ie7 = (window.XMLHttpRequest) ? true : false;
		var ns4 = (document.layers) ? true : false;
		var ns6 = (document.getElementById && !document.all) ? true : false;
		var xoffset = ((ie4) && !(ie7)) ? 320 : 340; /* 320 for ie<7, sets scrollbar inside !!! */
		var yoffset = ((ie4) && !(ie7)) ? 132 : 162; /* 132 for ie<7, sets scrollbar inside !!! */
		var ytop = 130;
	
		if (ie4)
		{
			x = document.body.clientWidth;
			y = document.body.clientHeight;
		}
		else
		{
			x = window.innerWidth;
			y = window.innerHeight;
		}
		if (ns4)
		{
			varBackgroundright = document.backgroundright;
			varLineright = document.lineright;
			varDetailbox = document.detailbox;
		}
		else
		{
			varBackgroundright = document.getElementById("backgroundright").style;
			varLineright = document.getElementById("lineright").style;
			varDetailbox = document.getElementById("detailbox").style;
		}
		if (varBackgroundright != null)
		{
			varBackgroundright.height = (y - ytop) + "px";
		}
		if (varLineright != null)
		{
			varLineright.height = (y - ytop) + "px";
		}
		if (varDetailbox != null)
		{
			if (x > xoffset)
			{
				varDetailbox.width = (x - xoffset) + "px";
			}
			if (y > yoffset)
			{
				varDetailbox.height = (y - yoffset) + "px";
			}
		}
	}
}
