function process(method){showLoading();setTimeout(function(){method()},500)}function hideMe(){var csInterface= new CSInterface();loadProgress();csInterface["evalScript"]("progress()",myNumber);function myNumber(inValue){var ok=inValue;if(ok== 1){hideLoading()}}}function loadProgress(){var csInterface= new CSInterface();var fileName="progress.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}function uninstall(){var csInterface= new CSInterface();loadUninstall();csInterface["evalScript"]("uninstall()");hideMe()}function loadUninstall(){var csInterface= new CSInterface();var fileName="uninstall.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}function urlopen(){cep["util"]["openURLInDefaultBrowser"]("http://www.the-orange-box.com")}function go_rechts(){var csInterface= new CSInterface();var richtung="rechts";csInterface["evalScript"]("go(\""+ richtung+ "\")");hideMe()}function go_links(){var richtung="links";var csInterface= new CSInterface();csInterface["evalScript"]("go(\""+ richtung+ "\")");hideMe()}function go_frontal(){var richtung="frontal";var csInterface= new CSInterface();csInterface["evalScript"]("go(\""+ richtung+ "\")");hideMe()}function addDepth(){loadAddDel();var csInterface= new CSInterface();csInterface["evalScript"]("goAdd()");hideMe()}function delDepth(){loadAddDel();var csInterface= new CSInterface();csInterface["evalScript"]("goDel()");hideMe()}function loadAddDel(){var csInterface= new CSInterface();var fileName="add_del_depth.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}function mirror(){loadStyles();var csInterface= new CSInterface();csInterface["evalScript"]("hideShowMirror()");hideMe()}function shadow(){loadStyles();var csInterface= new CSInterface();csInterface["evalScript"]("hideShowShadow()");hideMe()}function addStyleBasic(){loadStyles();var csInterface= new CSInterface();var art="basic";csInterface["evalScript"]("styles(\""+ art+ "\")");hideMe()}function addStyleGlossy(){loadStyles();var csInterface= new CSInterface();var art="glossy";csInterface["evalScript"]("styles(\""+ art+ "\")");hideMe()}function addStyleColor(){loadStyles();var csInterface= new CSInterface();var art="color";csInterface["evalScript"]("styles(\""+ art+ "\")");hideMe()}function loadStyles(){var csInterface= new CSInterface();var fileName="isig_styles.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}function gl(){loadGl();var csInterface= new CSInterface();var art="png";csInterface["evalScript"]("gl()");hideMe()}function loadGl(){var csInterface= new CSInterface();var fileName="gl.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}function openF(){loadOpenClose();var csInterface= new CSInterface();csInterface["evalScript"]("openFace()");hideMe()}function closeF(){loadAddDel();var csInterface= new CSInterface();csInterface["evalScript"]("closeFace()");hideMe()}function loadOpenClose(){var csInterface= new CSInterface();var fileName="open_close_face.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}function savePNG(){loadSave();var csInterface= new CSInterface();var art="png";csInterface["evalScript"]("saveSet(\""+ art+ "\")");hideMe()}function saveJPG(){loadSave();var csInterface= new CSInterface();var art="jpg";csInterface["evalScript"]("saveSet(\""+ art+ "\")");hideMe()}function loadSave(){var csInterface= new CSInterface();var fileName="saveSet.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}function example(a){showLoading();setTimeout(function(){exampleGo(a)},500)}function exampleGo(a){var csInterface= new CSInterface();loadExample();var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/lib/iconLib/";csInterface["evalScript"]("start(\""+ extensionRoot+ "\", \""+ a+ "\")");hideMe()}function loadExample(){var csInterface= new CSInterface();var fileName="example.jsx";var extensionRoot=csInterface["getSystemPath"](SystemPath.EXTENSION)+ "/host/";csInterface["evalScript"]("$.evalFile(\""+ extensionRoot+ fileName+ "\")")}