function centerChanged() {
		//xmlGet("/map/themes","&hejho=bo",themesReceived);
}

function themesReceived() {
}

function addThemeIcon(cat,x,y,no) {
	var coord = new KrakMap.Coordinate(x,y,i);
	
	var poiDom = document.createElement('img');
	poiDom.src = '/graphics/kort/map-tema-'+cat+'-ikon.gif';
	poiDom.id = 'sport_'+no;
	poiDom.onmouseover = new Function("showInfo("+x+","+y+","+no+")");
	poiDom.onmouseout = hideInfo;  
	var poi = new KrakMap.Poi(poiDom,coord,'theme_'+cat,17,17);
	tileMap.addPoi(poi);
}

function showInfo(x, y, i){
	try { tileMap.removePoi('info'); } catch(e) {}
	var coord = new KrakMap.Coordinate(x+30,y-30);
	var newdiv = document.createElement('div');
	newdiv.id = 'info';
	newdiv.innerHTML = '<div id="info" name="info" style="position:relative;z-index:2000;border : 2px solid #000000;"><table class="pointInfo" cellpadding="3" cellspacing="0" border="0"><tr><th class="pointInfo">'+themeTitle[i]+'</th></tr><tr class="pointInfo"><td class="pointInfo">'+themeText[i]+'</td></tr></table></div>';
	var poi = new KrakMap.Poi(newdiv,coord,'info_layer',20,20);
	tileMap.addPoi(poi);
}

function hideInfo(){
	try { tileMap.removePoi('info'); } catch(e) {}
}
