var map = "cs";
var isDetail = false;
var eCROver = null;
var eEUOver = null;
var tOver;
var teuOver;
var ready2HideMap = false;
var ready2HideMapEU = false;

function highLightLocality(state, loc)
{
	if ( state == true )
	{
		_showCR();
		_showLoc(loc);
	}
	else
	{
		_hideLoc(loc);
	}
}

function highLightCR(state)
{
	// modra mapa
	if ( eCROver == null ) eCROver = document.getElementById("crOver");

	if ( isDetail && map == "cs" ) return false;
	
	if ( state == true )
	{
		ready2HideMap = false;
		_showCR();
	}
	else
	{
		ready2HideMap = true;
		tOver = window.setTimeout(_hideCR, 0);
	}
}
function _showCR() { if ( isDetail && map == "cs" ) return false; window.clearTimeout(tOver); _highLightH2(true); eCROver.style.display = "block"; }
function _hideCR() { if ( isDetail && map == "cs" ) return false; if ( ready2HideMap == false ) return; _highLightH2(false); eCROver.style.display = "none"; }
function _highLightH2(state) { if ( isDetail == true && map == "cs" ) return false; document.getElementById("h2").className = ( state == true ? "over" : "" ); }

