// show big image for departament in city page and hotel page
function zoneMapOn(){
	var h = arguments[0];
	if(arguments.length>1)
		var crtCase = arguments[1];
	objSmall = document.getElementById('smallMap');
	Y = findPosY(objSmall)+h;
	obj = document.getElementById('zoneMap');
	obj.style.display='block';
	obj.style.visibility='visible';
	
	PosX = findPosX(objSmall);
	if(crtCase != '' & crtCase != 'undefined' & crtCase == 'acces'){
		if(navigator.userAgent.indexOf('Opera') != -1)
			PosY = 163;
		else{
			PosY = Y-(obj.height/2);
			PosX += 170;
		}
	}else
		PosY = Y-(obj.height);
		
	obj.style.top = PosY+'px';
	obj.style.left = PosX+'px';
}
// hide big image for departament in city page and hotel page
function zoneMapOff(){
	obj = document.getElementById('zoneMap');
	obj.style.display='none';
	obj.style.visibility='hidden';
}

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}