Index: modules/gmap/gmap.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gmap/gmap.js,v
retrieving revision 1.11
diff -u -r1.11 gmap.js
--- modules/gmap/gmap.js	17 Jun 2006 06:13:22 -0000	1.11
+++ modules/gmap/gmap.js	4 Jul 2006 16:42:29 -0000
@@ -41,7 +41,7 @@
 
 }
 
-function createGMarker(point, htmltext, marker, tooltip, towebsite) {
+function createGMarker(point, htmltext, marker, tooltip, towebsite, infotabs) {
   if (marker.length >0) {
     var re = /markers\/([a-zA-Z0-9]+)\//;
     var m = re.exec(marker);
@@ -60,13 +60,18 @@
     var returnMarker = new GMarker(point, {title: tooltip});
   }
   if (!towebsite) towebsite='';
-  // Show this htmltext  info window when it is clicked.
-  if (towebsite.length>0 && markerlink){
+  if (infotabs && infotabs.length > 0){
+    GEvent.addListener(returnMarker, 'click', function() {
+      returnMarker.openInfoWindowTabsHtml(infotabs);
+    });
+  }
+  else if (towebsite.length>0 && markerlink){
     GEvent.addListener(returnMarker, 'click', function() {
       open(towebsite,'_self');
     });
   }
   else if (htmltext.length>0) {
+    // Show this htmltext  info window when it is clicked.
     GEvent.addListener(returnMarker, 'click', function() {
       returnMarker.openInfoWindowHtml(htmltext);
     });
Index: modules/gmap/gmap.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gmap/gmap.module,v
retrieving revision 1.37
diff -u -r1.37 gmap.module
--- modules/gmap/gmap.module	30 Jun 2006 05:39:21 -0000	1.37
+++ modules/gmap/gmap.module	4 Jul 2006 16:48:46 -0000
@@ -353,8 +353,18 @@
         else {
           $link='';
         }
+        if (isset($item['infotabs'])) {
+          $outtext .="var infoTabs = [\n";
+          foreach ($item['infotabs'] as $itkey => $itvalue) {
+            $outtext .="new GInfoWindowTab('". $itkey ."', '". $itvalue ."'),\n";
+          }
+          $outtext .="];\n";
+        }
+        else {
+          $outtext .="var infoTabs = []\n";
+        }
         if (GMAP_CLUSTER) {
-          $outtext .='clusterer.AddMarker(createGMarker(new GLatLng('.$item['point'].'),\''.$mytext.'\',\''.$mymarker."','$tooltip','$link'));\n";
+          $outtext .='clusterer.AddMarker(createGMarker(new GLatLng('.$item['point'].'),\''.$mytext.'\',\''.$mymarker."','$tooltip','$link',infoTabs));\n";
           $clusterset=true;
         }
         else {
