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 efx_edges(){var a=new CSInterface;loadEfx();a.evalScript("edges()");hideMe()}function efx_gravel1(){var a=new CSInterface;loadEfx();a.evalScript("gravel1()");hideMe()}
function efx_gravel2(){var a=new CSInterface;loadEfx();a.evalScript("gravel2()");hideMe()}function efx_spume(){var a=new CSInterface;loadEfx();a.evalScript("spume()");hideMe()}function loadEfx(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_styles_efx.jsx")')}function efx_brushes(a,b,c){showLoading();var d=new CSInterface;loadEfx();setTimeout(function(){d.evalScript('efx_brushes("'+a+'", "'+b+'", "'+c+'")');hideMe()},500)}
function layerTexture1(){var a=new CSInterface;loadLayerTexture();a.evalScript('layer_texture("i3dmgGeo_lss_01_bump", "i3dmgGeo_gf1_lssefx", "i3dmgGeo_alt_lssb")');hideMe()}function layerTexture2(){var a=new CSInterface;loadLayerTexture();a.evalScript('layer_texture("i3dmgGeo_lss_02_bump", "i3dmgGeo_gf2_lssefx", "i3dmgGeo_alt_lssb")');hideMe()}
function layerTexture3(){var a=new CSInterface;loadLayerTexture();a.evalScript('layer_texture("i3dmgGeo_lss_03_bump", "i3dmgGeo_gf3_lssefx", "i3dmgGeo_cl_lssb")');hideMe()}function layerTexture4(){var a=new CSInterface;loadLayerTexture();a.evalScript('layer_texture("i3dmgGeo_lss_04_bump", "i3dmgGeo_gf4_lssefx", "i3dmgGeo_alt_lssb")');hideMe()}function layerTextureDel(){var a=new CSInterface;loadLayerTexture();a.evalScript("layer_texture_off()");hideMe()}
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 customColor(){var a=new CSInterface;loadCustomColor();a.evalScript("x()");hideMe()}
function presetColor(a,b,c){var d=new CSInterface;loadCustomColor();d.evalScript('layerColorPresets("'+a+'", "'+b+'", "'+c+'")')}function loadCustomColor(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_custom_layer_color.jsx")')}function bg01(){var a=new CSInterface;loadBackgrounds();a.evalScript("bg1()");hideMe()}function bg02(){var a=new CSInterface;loadBackgrounds();a.evalScript("bg2()");hideMe()}
function bg03(){var a=new CSInterface;loadBackgrounds();a.evalScript("bg3()");hideMe()}function bg04(){var a=new CSInterface;loadBackgrounds();a.evalScript("bg4()");hideMe()}function bg05(){var a=new CSInterface;loadBackgrounds();a.evalScript("bg5()");hideMe()}function bgstyles(a){showLoading();var b=new CSInterface;loadBackgrounds();setTimeout(function(){b.evalScript('bgStyles("'+a+'")');hideMe()},500)}
function loadBackgrounds(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/host/";a.evalScript('$.evalFile("'+b+'i3dmg_geo_backgrounds.jsx")')}function urlopen(){cep.util.openURLInDefaultBrowser("http://www.3d-map-generator.com")};