var LAST_STABLE_VERSION="2.0.2.0";var LAST_STABLE_VERSION_URL="http://www.blomurbex.com/3d/api/v100/BlomURBEX3D-2.0.2.0_Setup.exe";var COMPATIBLE_VERSIONS=["2.0.2.0","2.0.1.0","2.0.0.0","1.2.1.0","1.2.0.0","1.1.0.0","1.0.0.0"];function CBlomURBEX3D(b,l,c,j){this.version=null;this.blomurbex=null;if(navigator.appName.indexOf("Explorer")!=-1&&window.ActiveXObject){for(var m=0;this.blomurbex==null&&m<COMPATIBLE_VERSIONS.length;m++){try{var h="ActiveXBlomURBEX3D.CBlomURBEX3DCtl."+COMPATIBLE_VERSIONS[m];var k=new ActiveXObject(h);delete k;var a='<object id="CBlomURBEX3DCtl" classid="CLSID:B7D3200A-C923-4ECC-A902-B9ABA7EED14B" width="100%" height="100%"><param name="token"          value="'+l+'"><param name="UrbexToken"     value="'+l+'">';if(arguments.length>=3){a+='<param name="EditionEnabled" value="'+(c?"true":"false")+'">'}if(arguments.length>=4){a+='<param name="IsLIDARMode" value="'+(j?"true":"false")+'">'}a+="</object>";b.innerHTML=a;this.version=COMPATIBLE_VERSIONS[m];this.blomurbex=document.getElementById("CBlomURBEX3DCtl");
this.blomurbex._NotifyIEContainer()}catch(g){}}}else{for(var m=0;this.blomurbex==null&&m<COMPATIBLE_VERSIONS.length;m++){var f="application/BlomURBEX3D-"+COMPATIBLE_VERSIONS[m]+"-plugin";for(var d=0;this.blomurbex==null&&d<navigator.mimeTypes.length;d++){if(navigator.mimeTypes[d].type.toUpperCase()==f.toUpperCase()){var a='<embed id="CBlomURBEX3DCtl" type="'+f+'" width="100%" height="100%" token="'+l+'"';if(arguments.length>=3){a+=' editionEnabled="'+(c?"true":"false")+'"'}if(arguments.length>=4){a+=' lidarMode="'+(j?"true":"false")+'"'}a+=' pluginspage="'+LAST_STABLE_VERSION_URL+'" ondragenter="return true" ondragover="return true" ondrop="doDropEvent(event)"></embed>';b.innerHTML=a;this.version=COMPATIBLE_VERSIONS[m];this.blomurbex=document.getElementById("CBlomURBEX3DCtl");this.blomurbex.doDropEvent=function(r){var q=r.dataTransfer;for(var p=0;p<q.mozItemCount;q++){var o=q.mozTypesAt(p);for(var n=0;n<o.length;n++){if(o[n]=="text/x-moz-url"){var e=q.mozGetDataAt(o[n],p);this.DropFile(e,r.clientX,r.clientY)
}}}}}}}}if(this.blomurbex==null){this.isLoaded=function(){return false}}else{this.isLoaded=function(){return true};this.getVersion=function(){return this.version};this.isLaunched=function(){return this.blomurbex.IsLaunched()};this.isSupported=function(e){return this.blomurbex.IsSupported(e)};this.getCamera=function(){function e(i){this.blomurbex=i;this.goToPoint=function(o,p,n,q){this.blomurbex.GoToPoint(o,p,n,q)};this.stop=function(){this.blomurbex.StopCamera()};this.lookAt=function(q,s,p,n,o,r){this.blomurbex.LookAt(q,s,p,n,o,r)};this.getEye=function(){var n=function(o){this.blomurbex=o;this.lat=function(){return this.blomurbex.GetEyeLat()};this.lon=function(){return this.blomurbex.GetEyeLon()};this.alt=function(){return this.blomurbex.GetEyeAlt()}};return new n(this.blomurbex)};this.getCenter=function(n){var o=function(p){this.blomurbex=p;this.lat=function(){return this.blomurbex.GetCenterLat()};this.lon=function(){return this.blomurbex.GetCenterLon()}};return new o(this.blomurbex)}}return new e(this.blomurbex)
};this.addUserObjectsRepository=function(e){this.blomurbex.AddUserObjectsRepository(e)};this.showUserObjectsLayer=function(i,e){this.blomurbex.SetUserObjectsLayerEnabled(i,e,true)};this.hideUserObjectsLayer=function(i,e){this.blomurbex.SetUserObjectsLayerEnabled(i,e,false)};this.addModelLayer=function(i,e){this.blomurbex.AddModelLayer(i,e)};this.removeModelLayer=function(e){this.blomurbex.RemoveModelLayer(e)};this.addDTMLayer=function(i,e){this.blomurbex.AddDTMLayer(i,e)};this.removeDTMLayer=function(e){this.blomurbex.RemoveDTMLayer(e)};this.addOrthoLayer=function(i,e){this.blomurbex.AddOrthoLayer(i,e)};this.removeOrthoLayer=function(e){this.blomurbex.RemoveOrthoLayer(e)};this.resetLayers=function(){this.blomurbex.ResetLayers()};this.reloadLayers=function(){this.blomurbex.ReloadLayers()};this.setMaxVisibleDistanceForModel=function(e){this.blomurbex.SetMaxVisibleDistanceForModel(e)};this.setMaxVisibleDistanceForTextures=function(i,e){this.blomurbex.SetMaxVisibleDistanceForTextures(i,e)};
this.setEarthMode=function(){this.blomurbex.SetEarthMode()};this.setLIDARMode=function(e){this.blomurbex.SetLIDARMode(e)};this.isEarthMode=function(){this.blomurbex.IsEarthMode};this.isLIDARMode=function(e){this.blomurbex.IsLIDARMode};this.setPredefinedLIDARColorGenerator=function(e){this.blomurbex.SetPredefinedLIDARColorGenerator(e)};this.getPredefinedLIDARColorGenerator=function(){return this.blomurbex.GetPredefinedLIDARColorGenerator()};this.setCustomizedLIDARColorGenerator=function(e){this.blomurbex.SetCustomizedLIDARColorGenerator(e)};this.getCustomizedLIDARColorGenerator=function(){return this.blomurbex.GetCustomizedLIDARColorGenerator()};this.dispose=function(){return this.blomurbex.Dispose()}}};
