Index: trunk/src/map/inc/nodemapWL.js
===================================================================
--- trunk/src/map/inc/nodemapWL.js	(revision 7824)
+++ trunk/src/map/inc/nodemapWL.js	(revision 7825)
@@ -3,6 +3,7 @@
 
 var map;
-var markerArray = new Array();
-var circleArray = new Array();
+var markerArray = [];
+var circleArray = [];
+var polygons_on_map_array = [];
 var xmlhttp;
 var targetDiv = "infotop";
@@ -10,5 +11,5 @@
 var overNode;
 var markerSelected = "";
-var polygons_on_map_array = new Array();
+
 
 
@@ -18,5 +19,5 @@
 	if (GBrowserIsCompatible()) {
 	//Adding the google map into the div called #mapcanvas
-	map = new GMap2(document.getElementById("mapcanvas"), {googleBarOptions : {style : "new",}});
+	map = new GMap2(document.getElementById("mapcanvas"), {googleBarOptions : {style : "new"}});
 	//Center the map on Leiden
 	map.setCenter(new GLatLng(52.162687, 4.493294), 11); // Vars should go to config
@@ -238,5 +239,8 @@
 function mapZoomed()
 {
-	markerSelected.setImage("../img/sleutelGroenSelected.png");
+	if(!markerSelected == "")
+	{
+		markerSelected.setImage("../img/sleutelGroenSelected.png");
+	}
 }
 
Index: trunk/src/map/index.php
===================================================================
--- trunk/src/map/index.php	(revision 7824)
+++ trunk/src/map/index.php	(revision 7825)
@@ -53,5 +53,5 @@
 	<div id="mapcanvas">
 		<!-- Create the map using the intitialize_map() function from nodemapWL.js -->
-		<script type="text/javascript">initialize_map();</script>
+		<script>initialize_map();</script>
 		<!--<script type="text/javascript">nodeAdd();</script>-->
 	</div>
