var map = "cs";
var isDetail = false;
var eCROver = null;
var eSROver = null;
var eEUOver = null;
var tOver;
var tsrOver;
var teuOver;
var ready2HideMap = false;
var ready2HideMapSR = 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" : "" ); }

/* sr */
function highLightLocalitySR(state, loc)
{
	if ( state == true )
	{
		_showSR();
		_showLoc(loc);
	}
	else
	{
		_hideLoc(loc);
	}
}
function highLightSR(state)
{
	// modra mapa
	if ( eSROver == null ) eSROver = document.getElementById("srOver");

	if ( isDetail && map == "sk" ) return false;

	if ( state == true )
	{
		ready2HideMapSR = false;
		_showSR();
	}
	else
	{
		ready2HideMapSR = true;
		tsrOver = window.setTimeout(_hideSR, 0);
	}
}
function _showSR() { if ( isDetail && map == "sk" ) return false; window.clearTimeout(tsrOver); _highLightH2SR(true); eSROver.style.display = "block"; }
function _hideSR() { if ( isDetail && map == "sk" ) return false; if ( ready2HideMapSR == false ) return; _highLightH2SR(false); eSROver.style.display = "none"; }
function _highLightH2SR(state) { if ( isDetail == true && map == "sk" ) return false; document.getElementById("h2sr").className = ( state == true ? "over" : "" ); }


