	    /*
	     * Security Manager Callbacks
	     */

	    function onMHPublish(topic, data, publishContainer, subscribeContainer) {
	      /* Callback for publish requests. This example approves all publish requests. */
	      return true;
	    }
	    function onMHSubscribe(topic, container) {
	      /* Callback for subscribe requests. This example approves all subscribe requests. */
	      return true;
	    }
		    function onMHUnsubscribe(topic, container) {
		      /* Callback for unsubscribe requests. This example approves all subscribe requests. */
		      return true;
		    }
		function onMHSecurityAlert(source, alertType) {  /* Callback for security alerts */  }
		// Handle security alerts:
		 function client1SecurityAlertHandler(source, alertType) {
		  }
		function onHubMessage(topic, data) {
			  ajax_call(data);
		}

		function clientApp1HubClientConnect(hubClient, success, error ) {
		    if (success) {
		      /* Call hubClient1.publish(...) to publish messages  */
		      /* Call hubClient1.subscribe(...) to subscribe to message topics */
		      hubclient.subscribe('com.ko.gvw.shopsfinder.child', onHubMessage);
		    }
		  }

	/*
	* Create a Managed Hub instance
	*/

      var managedHub = new OpenAjax.hub.ManagedHub(
            {
              onPublish:       onMHPublish,
              onSubscribe:     onMHSubscribe,
              onUnsubscribe:   onMHUnsubscribe,
              onSecurityAlert: onMHSecurityAlert
            }
      );

    /* Application initializes in response to document load event */

    function loadEventHandler() {
       var mashupArea = document.getElementById("searchContainer");
      /*
       * Create an InlineHubClient and InlineContainer for client1
       */
      function onClientSecurityAlert(source, alertType) {  /* Handle client-side security alerts */  }
      function onClientConnect(container) {        /* Called when client connects */   }
      function onClientDisconnect(container) {     /* Called when client disconnects */ }
      /* Create an InlineContainer for this HubClient */
     window.container1 = new OpenAjax.hub.InlineContainer(managedHub , "client1",
        {
          Container: {
            onSecurityAlert: onClientSecurityAlert,
            onConnect:       onClientConnect,
            onDisconnect:    onClientDisconnect
          }
        }
      );
      var div1 = document.createElement( "div" );
      mashupArea.appendChild(div1);

      /*
       * Create an IframeContainer for client2
       */
      /*
       * NOTE: If we wish to completely isolate ClientApp2 from the manager
       * and from all other client applications, the uri parameter container2
       * must have a different subdomain from the main application and all other
       * client applications. In this case, the main application has a URL
       * http://mashup.foo.bar.com/something, and we set client2's URI to
       * c0.foo.bar.com
       */
	var div2 = document.createElement( "div" );
      	windowProtocol = location.protocol;
	windowHostName = location.host;
      mashupArea.appendChild(div2);
      var container2 = new OpenAjax.hub.IframeContainer(managedHub , "client2",
        {
          Container: {
            onSecurityAlert: onClientSecurityAlert,
            onConnect:       onClientConnect,
            onDisconnect:    onClientDisconnect
          },
          IframeContainer: {

            // DOM element that is parent of this container:
            parent:      div2,
            // Container's iframe will have these CSS styles:
            //iframeAttrs: { style: { border:"black solid 1px", display:"none" }},
	     iframeAttrs: { style: { border:"0", height:"0px", width: "0px"}},
            // Container's iframe loads the following URL:
           // uri: "http://subdomain.localhost:8090/widgets/hubclient1.html",
              uri : servletURL+"/shopsfinder/google_maps/dvw.html",
            // Tunnel URL required by IframeHubClient. This particular tunnel URL
            // is the one that corresponds to release/all/OpenAjaxManagedHub-all.js:
		tunnelURI:  windowProtocol+"//"+windowHostName+"/shared/html/tunnel_en_US.html"
          }
        }
      );
	/*
	 * Create a OpenAjax.hub.InlineHubClient
	 */
	hubclient = new OpenAjax.hub.InlineHubClient({
	HubClient: {
        onSecurityAlert: client1SecurityAlertHandler
	},
	InlineHubClient: {
		container: container1
	}});
	    // Connect to the ManagedHub
	   hubclient.connect(clientApp1HubClientConnect);
	}