function doResize ()
{
	var sMap = document.getElementById (mapName);

	sMap.style.width = 50 + "px";
	sMap.style.height = 50 + "px";

	var sMInfo = document.getElementById ("mapinfo");
	var sPInfo = document.getElementById ("picinfo");
	var sPanPic = document.getElementById ("panpic");
	var sMDesc = document.getElementById ("mapdesc");
	var sTopMsg = document.getElementById ("topmsg");
	var sTopAd = document.getElementById ("topadvert");

	var uComment = document.getElementById ("ucomment");
	var mc = document.getElementById ("content");

	if (sMInfo != null)
	{
		sMInfo.style.width = 50 + "px";
	}

	if (sPInfo != null)
	{
		sPInfo.style.width = 50 + "px";
	}

	if (sPanPic != null)
	{
		sPanPic.style.width = "50px";
		sMDesc.style.width = "50px";
	}

	if (uComment != null)
	{
		uComment.style.width = "50px";
	}

	if (mc.innerWidth)
	{
		w = mc.innerWidth;
		h = mc.innerHeight;
	}
	else
	if (document.documentElement && document.documentElement.clientWidth)
	{
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	}

	if (mapName == "mapfp")
	{
		h -= 150;
		w -= 350;
	}

	if (minHeight > 0 && h < minHeight) h = minHeight;
	if (maxHeight > 0 && h > maxHeight) h = maxHeight;
	if (minWidth > 0 && w < minWidth) w = minWidth;

	if (maxdestwidth > 0 && w > maxdestwidth) w = maxdestwidth;

	sMap.style.width = w + "px";

	if (sTopMsg != null)
	{
		sTopMsg.style.width = (w - 6) + "px";
	}

	if (sTopAd != null)
	{
		sTopAd.style.width = (w - 6) + "px";
	}

	if (sMInfo != null)
	{
		sMInfo.style.width = (w - 6) + "px";
	}

	if (sPInfo != null)
	{
		sPInfo.style.width = (w - 6) + "px";
	}

	if (sPanPic != null)
	{
		sMap.style.height = minHeight + "px";
		sPanPic.style.width = w + "px";
		sMDesc.style.width = w + "px";
	}
	else
	{
		sMap.style.height = h + "px";
	}

	if (uComment != null)
	{
		uComment.style.width = (w - 150) + "px";
	}
}

