if(nexacro.OS=="iOS"&&(window.location.protocol=="file:"&&window.location.pathname.split('/').pop()=="Run.html")){nexacro.DeviceI.prototype.setup=function(){this._userCreatedObj={};this.curDevice=0;this.isphone=0;this._is_hybrid=true;this._protocolparameters={};var _a=navigator.userAgent.toString();if(nexacro.OS=="iOS"){this.curDevice=1;}if(this.curDevice==1){if(!this.bridge&&this.isHybrid()){this.bridge=document.createElement("IFRAME");this.bridge.setAttribute("height","0px");this.bridge.setAttribute("width","0px");this.bridge.setAttribute("frameborder","0");document.documentElement.appendChild(this.bridge);this.msgqueue=new Array();this.msgqueue.length=0;setInterval("nexacro.Device.execiOS()",20);}}};nexacro.DeviceI.prototype.execiOS=function(_a){if(this.msgqueue.length>0&&this.curDevice==1){this.msgqueue.reverse();this.bridge.src="nexacro://?"+encodeURI(this.msgqueue.pop());this.msgqueue.reverse();}};nexacro.DeviceI.prototype.exec=function(_a){if(this.isHybrid()==false){return;}this.msgqueue.push(_a);};nexacro._convertRealPath=function(_a){if(nexacro.Device.isHybrid()==undefined||!nexacro.Device.isHybrid()){return _a;}if(_a===undefined||_a===null){return "";}var _b=_a.substring(0,9);var _c="";if(_b.toLowerCase()=="%userapp%"){_c=_a.substring(9,_a.length);return nexacro.System.userapppath+_c;}else{return _a;}};nexacro._closeWindowHandle=function(_a){if(nexacro._getMainWindowHandle()==_a){nexacro._destroyManagerFrame(_a);nexacro.Device.exit();_a.open('','_self');}_a.close();};nexacro._isHybrid=function(){return nexacro.Device.isHybrid();};nexacro._convertDatasetSSVToBIN=function(_a){return _a;};nexacro._convertDatasetBINToSSV=function(_a){return _a;};nexacro._convertStreamSSVToBIN=function(_a){return _a;};nexacro._convertStreamBINToSSV=function(_a){return _a;};nexacro._setProtocolVar=function(_a,_b,_c){var _d=nexacro.Device._protocolparameters[_a];if(_d==undefined){nexacro.Device._protocolparameters[_a]={};_d=nexacro.Device._protocolparameters[_a];}_d[_b]=_c;return true;};nexacro._execBrowser=function(_a){this._id=nexacro.Device.makeID();if(_a==null||_a==undefined){return false;}var _b='{"url":"'+_a+'"}';var _c='{"id":'+this._id+', "div":"Browser", "method":"execBrowser", "params":'+_b+'}';nexacro.Device.exec(_c);return true;};nexacro._initDeviceAPI();}