var stats = 'off';
function closemap(){
var tih = document.getElementById('tihtml');
tih.style.display = 'none';
zoomout(20);
stats = 'off';
}
function showmap() {
if (stats == 'off'){
stats = 'on';
var sid = document.getElementById('tkaart');	
sid.style.display = 'block';
var strs = document.getElementById('vkaart');
var ss = findPos(strs);
sid.style.top = ss[1]-300+'px';
sid.style.left = ss[0]+'px'; 
zoom(20);	
}
}
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	var arr = new Array(2);
	arr[0] = curleft;
	arr[1] = curtop;
	return arr;
}
var c=0;
var t;
function zoom(sec){
c=c+1;
var sid = document.getElementById('tkaart');	
var sw = Number(sid.style.width.replace(/px/,""));
if (c != sec){
sid.style.width=(sw+20)+'px';
}
var sh = Number(sid.style.height.replace(/px/,""));
sid.style.height=(sh+17)+'px';
if (sec == c){
sid.style.width=429+'px';
sid.style.height=347+'px';
clearTimeout(t);
c = 0;
var tih = document.getElementById('tihtml');
tih.style.display = 'block';
}
else {
t=setTimeout("zoom("+sec+")",70);	
}
}
var b = 0;
var xf;
function zoomout(sec){
b=b+1;
var sid = document.getElementById('tkaart');	
sid.style.width=(sid.style.width.replace(/px/,"")-20)+'px';
sid.style.height=(sid.style.height.replace(/px/,"")-15)+'px';
if (sec == b){
clearTimeout(xf);
b = 0;
closeall();
}
else {
xf=setTimeout("zoomout("+sec+")",70);	
}
}
function closeall(){
var sid = document.getElementById('tkaart');
sid.style.display = 'none';	
sid.style.width=1+'px';
sid.style.height=1+'px';	
}