function process(a){showLoading();setTimeout(function(){a()},500)}function hideMe(){var a=new CSInterface;loadProgress();a.evalScript("progress()",function(a){1==a&&hideLoading()})}function loadProgress(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'progress.jsx")')}function openTL(){var a=new CSInterface;loadOpenTL();a.evalScript("open_tl()");hideMe()}
function loadOpenTL(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_open_toplayer.jsx")')}function newShape(a,b,c){var d=new CSInterface;LoadAddShape();d.evalScript('example_shapes("'+a+'", "'+b+'", "'+c+'")')}function LoadAddShape(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_addShape.jsx")')}
function map1(){var a=new CSInterface;mapMe();a.evalScript('start("left")');hideMe()}function map3(){var a=new CSInterface;mapMe();a.evalScript('start("right")');hideMe()}function map2(){var a=new CSInterface;mapMe();a.evalScript('start("frontal")');hideMe()}function mapMe(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_3dmap.jsx")')}
function addLay(){var a=new CSInterface;loadLayerTexture();a.evalScript("layer_texture_off()");loadAddDel();a.evalScript(" addlayer()");hideMe()}function delLay(){var a=new CSInterface;loadLayerTexture();a.evalScript("layer_texture_off()");loadAddDel();a.evalScript(" delLayer()");hideMe()}function loadAddDel(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_AddDelLayer.jsx")')}
function loadLayerTexture(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_add_layer_texture.jsx")')}function gl(){var a=new CSInterface;loadGl();a.evalScript(" gl()")}function loadGl(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_gl.jsx")')}function urlopen(){cep.util.openURLInDefaultBrowser("http://www.3d-map-generator.com")};