Index: trunk/src/map/inc/nodemapWL.js
===================================================================
--- trunk/src/map/inc/nodemapWL.js	(revision 7801)
+++ trunk/src/map/inc/nodemapWL.js	(revision 7802)
@@ -1,3 +1,4 @@
 //Declaring some variables we will be using
+var gmap_search_state = false;
 var map;
 var markerArray = new Array();
@@ -17,8 +18,8 @@
 	//Adding the google map into the div called #mapcanvas
 	map = new GMap2(document.getElementById("mapcanvas"), {googleBarOptions : {style : "new",}});
-	map.enableGoogleBar();
 	//Center the map on Leiden
 	map.setCenter(new GLatLng(52.162687, 4.493294), 11); // Vars should go to config
 	map.setUIToDefault();
+
  
 
@@ -307,11 +308,28 @@
 }
 
-function search()
-{
-
-}
-
-
-
-
-
+function toggleGoogleSearchMap()
+{
+	if(gmap_search_state)
+	{
+		gmap_search_state = false;
+	}
+	else
+	{
+		gmap_search_state = true;
+	}
+	
+	if(gmap_search_state)
+	{
+		map.enableGoogleBar();
+	}
+	
+	if(!gmap_search_state)
+	{
+		map.disableGoogleBar();
+	}
+}
+
+
+
+
+
