var activeXSoftPhone={phoneObject:null,lastUrl:"",init:function(){this.phoneObject=document.getElementById("softPhoneObject")},deinit:function(){},getLastUrl:function(){return this.lastUrl},register:function(c,b){try{this.phoneObject.Register(c,b)}catch(a){}},unregister:function(){try{this.phoneObject.Unregister()}catch(a){}},call:function(a){this.phoneObject.Call(a)},answer:function(a){this.phoneObject.Answer(a)},cancel:function(a){this.phoneObject.Terminate(a)},refer:function(a,b){this.phoneObject.Refer(a,b)},dial:function(a,b){this.phoneObject.Dial(a,urlTo)},requestRegState:function(){this.phoneObject.GetRegState()},requestCallState:function(a){this.phoneObject.GetCallState(a)},enumCalls:function(){var a=this.phoneObject.EnumCalls();if(a==""){return new Array()}var b=a.split("|");return b},enumPlaybackDevices:function(){var a=this.phoneObject.GetPlaybackDevices();return a},enumCaptureDevices:function(){var a=this.phoneObject.GetCaptureDevices();return a},getVersion:function(){var a=this.phoneObject.GetVersion();return a},getCompInfo:function(){try{var a=this.phoneObject.GetCompInfo();return a}catch(b){return null}},prefetchLog:function(){},getLog:function(){try{var a=this.phoneObject.GetLog();return a}catch(b){return null}},latestVersion:function(){return latestCABVersion},isOutOfDate:function(){var b=this.phoneObject.GetVersion().split(".");var c=this.latestVersion().split(".");for(var a=0;a<4;a++){if(parseInt(c[a])>parseInt(b[a])){return true}}return false},updateLink:function(){return"/update_activex"},installFunction:function(){return null}};
