// JavaScript Document
      var ge;
      google.load("earth", "1");
google.load("maps", "2");
      function init() {
         google.earth.createInstance('map3d', initCB, failureCB);
		  }

      function initCB(instance) {
         ge = instance;
         ge.getWindow().setVisibility(true);
		 ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);
		 ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true);

    // ge.getOptions().setScaleLegendVisibility(true);
// ge.getOptions().setScaleLegendVisibility(true);
ge.getOptions().setOverviewMapVisibility(true);
ge.getOptions().setStatusBarVisibility (true);

document.getElementById('installed-plugin-version').innerHTML=ge.getPluginVersion().toString();

      var link = ge.createLink('');
        var href = 'http://www.kscnet.ru/ivs/kvert/volcanoes/KML/volc_eng.kmz'
         link.setHref(href);

         var networkLink = ge.createNetworkLink('');
         networkLink.set(link, true, true); // Sets the link, refreshVisibility, and flyToView.

         ge.getFeatures().appendChild(networkLink);
		 ge.KmlLayerRoot().enableLayerById(link, true); 

      }

      function failureCB(errorCode) {
      }
	  
//      google.setOnLoadCallback(init);