function InitCityMap(map, showAtms)
{
	    var obj = GetEAtlasPointsCityMap(map, showAtms); //GetEAtlasAtmsCityMap(map);
	    obj.id = "citymap_iframe";
	    obj.setAttribute('frameBorder', '0');
	    
	    
	    var divmap = document.getElementById('CityMap');
		obj.height = "500px";
	    divmap.appendChild(obj);
	    Common.Class.add(divmap, 'eatlasdiv');
	    
	    var eatlasmap = document.getElementById('citymap_iframe');
	    Common.Class.add(eatlasmap, 'eatlas');
}

function InitFullMap( containerId )
{
    var obj = GetFullMap();
    obj.id = "fullmap_iframe";
    obj.setAttribute('frameBorder', '0');
    
    var divmap = document.getElementById(containerId);
	obj.height = "500px";
    divmap.appendChild(obj);
    Common.Class.add(divmap, 'eatlasdiv');
    
    var eatlasmap = document.getElementById('fullmap_iframe');
    Common.Class.add(eatlasmap, 'eatlas');
}
	           

var selected_iframe;
var selected_span;
var selected_breakline;
var selected_point;
var selected_content;
	    
function ToggleMap(pointid, mapname)
{
	var spanmap= document.getElementById('map_href' + pointid);
	var element = document.getElementById('div_map_href' + pointid);
	var breakline = document.getElementById('break_line' + pointid);
	var point = document.getElementById('div' + pointid);
	var content = document.getElementById('Content');

	if (selected_iframe)
		if(selected_iframe != element)
		{
			Common.Class.add(selected_iframe, 'non-visible');
			Common.Class.remove(selected_span, 'spantab');
			Common.Class.add(selected_breakline, 'non-visible');
			Common.Class.remove(selected_point, 'point-inc-zindex');
		    Common.Class.remove(selected_content, 'content-inc-zindex');
		}

	selected_iframe =  document.getElementById('div_map_href' + pointid);
	selected_span =  document.getElementById('map_href' + pointid);
	selected_breakline =  document.getElementById('break_line' + pointid);

	var testExistsFrame = document.getElementById('map_iframe' + pointid);

	if (!testExistsFrame)
	{
		var obj = GetEAtlasMap(1, mapname, pointid);
		obj.setAttribute('frameBorder', '0');
		obj.id = "map_iframe" + pointid; 

		element.appendChild(obj);
		Common.Class.add(element, 'non-visible');
		Common.Class.remove(spanmap, 'spantab');
		Common.Class.add(breakline, 'non-visible');     
	}

	if(Common.Class.match(element, 'non-visible'))
	{
		Common.Class.remove(element, 'non-visible');
		Common.Class.add(spanmap, 'spantab');
		Common.Class.remove(breakline, 'non-visible');
		Common.Class.add(point, 'point-inc-zindex');
		Common.Class.add(content, 'content-inc-zindex');

		var lr = document.getElementById('layout-right');
		Common.Class.add(lr, 'layout-right-dec-zindex');
	}
	else
	{
		Common.Class.add(element, 'non-visible');
		Common.Class.remove(spanmap, 'spantab');
		Common.Class.add(breakline, 'non-visible');
		Common.Class.remove(point, 'point-inc-zindex');
		Common.Class.remove(content, 'content-inc-zindex');
		
		var lr = document.getElementById('layout-right');
		Common.Class.remove(lr, 'layout-right-dec-zindex');
	} 
	
	selected_point = point;
	selected_content = content;                 
}