function MoResize() 
{
    //-----------   detekce display area prohlížece ----------------
    var myWidth = 0, myHeight = 0;
    if (typeof (window.innerWidth) == 'number') 
    {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
        scHeight = window.offsetHeight;
    }
    else 
    if (document.documentElement
		&& (document.documentElement.clientWidth
		|| document.documentElement.clientHeight)) 
	{
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
        scHeight = document.documentElement.scrollHeight;
    }
    else 
    if (document.body&& (document.body.clientWidth || document.body.clientHeight)) 
    {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
        scHeight = document.body.scrollHeight;
    }
    //-----------   vypnutí standardních scrollbaru ------------
    //document.documentElement.style.overflow = "hidden";
    //-----------   nastavení bloku "content" ------------------
    contentElement = document.getElementById("boxcontent");
    if (contentElement != null) 
    {
        contentWidth = myWidth - 202;
        contentHeight = myHeight - 185;
        if (contentWidth > 0) {
            contentElement.style.width = contentWidth + "px";
        }
        if (contentHeight > 0) {
            contentElement.style.height = contentHeight + "px";
        }

        detailInfoWrapperElement = document.getElementById("DetailInfoWrapper");
        if (detailInfoWrapperElement != null) 
        {
            detailWidth = myWidth - 515;
            if (detailWidth > 0) {
                detailInfoWrapperElement.style.width = detailWidth + "px";
            }
        }


        mapContainer = document.getElementById("map_container");
        if (mapContainer != null) {
            if (mapContainer.className == "LargeMapContainer") {
                mapHeight = myHeight - 190;
                if (mapHeight > 670) {
                    mapHeight = 670;
                }
                mapContainer.style.height = mapHeight + "px";
                mapWidth = contentWidth - 27;
                if (mapWidth > 1050) {
                    mapWidth = 1050;
                } else if (mapWidth < 765) {
                    mapWidth = 765;
                }
                mapContainer.style.width = mapWidth + "px";
            }
        }
    }
    
}

function Resize() 
{
	//-----------   detekce display area prohlížece ----------------
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) 
	{ 
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		scHeight = window.offsetHeight;
	} 
	else if( document.documentElement 
		&& ( document.documentElement.clientWidth 
		|| document.documentElement.clientHeight ) ) 
	{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		scHeight = document.documentElement.scrollHeight;
	} 
	else if( document.body 
		 && ( document.body.clientWidth 
		 || document.body.clientHeight ) ) 
	{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
		scHeight = document.body.scrollHeight;
	}
	//-----------   vypnutí standardních scrollbaru ------------------
	document.documentElement.style.overflow = "hidden";
	//-----------   nastavení bloku "contentWrapper" ------------------
	contentWrapperElement = document.getElementById("contentWrapper");
	if (contentWrapperElement!=null) 
	{
		contentWrapperWidth = myWidth - 188;
		contentWrapperHeight = myHeight - 117;
		contentWrapperElement.style.width = contentWrapperWidth + "px";
		contentWrapperElement.style.height = contentWrapperHeight + "px";

		footerElement = document.getElementById("footerWrapper");
		if (footerElement != null) {
		    footerElement.style.width = contentWrapperWidth + 30 + "px";
		}
		//-----------   nastavení bloku "content" -------------------------
		contentWidthMinimum = 726;
		contentWidthCorrection = 36;
		contentHeightCorrection = 36;
		//alert(BrowserDetect.browser + " " + BrowserDetect.);
		if (BrowserDetect.browser == "Explorer") 
		{
		    if (BrowserDetect.version == "6") 
			{
			    contentWidthCorrection = 30;
			    contentHeightCorrection = 31;
			}
			if (BrowserDetect.version == "7" /*&& lock*/)
			{
			    contentWidthCorrection = 30;
			    contentHeightCorrection = 31;
			}
		}
		contentElement = document.getElementById("contentContainer");
		if (contentElement!=null)
		{
			if (contentWrapperElement.offsetWidth < contentWidthMinimum
			 || contentWrapperElement.offsetWidth < contentElement.scrollWidth + 16) 
			{
				contentWidth = contentWidthMinimum - contentWidthCorrection;
				contentHeightCorrection = contentHeightCorrection + 17;
				contentWidthCorrection = contentWidthCorrection + 17;
			} 
			else 
			{ 
			    contentWidth = (contentWrapperElement.offsetWidth - contentWidthCorrection);
			}
			if (contentWrapperElement.offsetHeight < contentElement.scrollHeight + contentHeightCorrection) 
			{
			    contentHeight = contentWrapperElement.offsetHeight - contentHeightCorrection;
				contentWidth = contentWidth - 17;
            } 
			else 
			{ 
			    contentHeight = contentWrapperElement.offsetHeight - contentHeightCorrection;
			}
			contentElement.style.width = contentWidth + "px";
			contentElement.style.height = contentHeight + "px";
			
		}
		
	}
	//-----------   nastavení bloku "menu" ----------------------------
	/*minMenuHeight = 200;
	menuElement = document.getElementById("menu");
	if (menuElement!=null)
	{
		menuHeight = myHeight - 87;
		if (menuHeight < minMenuHeight ) menuHeight = minMenuHeight;
		menuElement.style.height = menuHeight+"px";
	}*/
}
