function initMap() {


	myMap = document.getElementById("poimap");	
	
	if (myMap) {		

		myMap.style.position="relative";
		
		var myPOI=false;
		for (var i=0;i<coordinates.length;i++) {

			myPOI=document.createElement("DIV");
			myPOI.style.position="absolute";
			myPOI.style.left=coordinates[i][1]-15+"px";			
			myPOI.style.top=coordinates[i][2]-18+"px";	
			myPOI.style.zIndex=actualZIndex;		
			if (coordinates[i].length>5) myPOI.className="POI "+coordinates[i][5];
			else myPOI.className="POI";
			if (coordinates[i].length>6) {
				if (coordinates[i].length>=8 && coordinates[i][7]!='0') {
					myPOI.innerHTML="<p><a href=\'index.php?id="+coordinates[i][7]+"'>"+coordinates[i][0]+"</a></p>";
				}
				else myPOI.innerHTML="<p><a href=\'"+myPoiMap.link+coordinates[i][4]+"&tx_shfrtkn[focus]="+coordinates[i][6]+"'>"+coordinates[i][0]+"</a></p>";
			}
			else myPOI.innerHTML="<p><a href=\'"+myPoiMap.link+coordinates[i][4]+"'>"+coordinates[i][0]+"</a></p>";
			myPOI.tooltiptext=coordinates[i][3];
			
			myPOI.onmouseover = function(ev) {
				if (!this.tooltip) {
					var tooltip=document.createElement("DIV");
					tooltip.className="tooltip";
					tooltip.innerHTML=this.tooltiptext;
					this.appendChild(tooltip);
					this.tooltip=tooltip;
					this.style.zIndex=actualZIndex++;
					
				};
			};
			
			myPOI.onmouseout = function(ev) {
				if (this.tooltip) {
					this.removeChild(this.tooltip);
					this.tooltip= null;
				}
			}
			
			myMap.appendChild(myPOI);
		};
				
	};

};
