var LAST_STABLE_VERSION="1.2.0.0";var LAST_STABLE_VERSION_URL="http://www.blomurbex.com/3d/api/v100/BlomURBEX3D-1.2.0.0_Setup.exe";var COMPATIBLE_VERSIONS=["1.2.0.0","1.1.0.0","1.0.0.0"];function CBlomURBEX3D(a,j,b){this.version=null;this.blomurbex=null;if(arguments.length==2){b=true}if(navigator.appName.indexOf("Explorer")!=-1&&window.ActiveXObject){for(var k=0;this.blomurbex==null&&k<COMPATIBLE_VERSIONS.length;k++){try{var g="ActiveXBlomURBEX3D.CBlomURBEX3DCtl."+COMPATIBLE_VERSIONS[k];var h=new ActiveXObject(g);delete h;a.innerHTML='<object id="CBlomURBEX3DCtl" classid="CLSID:B7D3200A-C923-4ECC-A902-B9ABA7EED14B" width="100%" height="100%"><param name="token"          value="'+j+'"><param name="UrbexToken"     value="'+j+'"><param name="EditionEnabled" value="'+(b?"true":"false")+'"></object>';this.version=COMPATIBLE_VERSIONS[k];this.blomurbex=document.getElementById("CBlomURBEX3DCtl");this.blomurbex._NotifyIEContainer()}catch(d){}}}else{for(var k=0;this.blomurbex==null&&k<COMPATIBLE_VERSIONS.length;
k++){var f="application/BlomURBEX3D-"+COMPATIBLE_VERSIONS[k]+"-plugin";for(var c=0;this.blomurbex==null&&c<navigator.mimeTypes.length;c++){if(navigator.mimeTypes[c].type.toUpperCase()==f.toUpperCase()){a.innerHTML='<embed id="CBlomURBEX3DCtl" type="'+f+'" width="100%" height="100%" token="'+j+'" editionEnabled="'+(b?"true":"false")+'" pluginspage="'+LAST_STABLE_VERSION_URL+'" ondragenter="return true" ondragover="return true" ondrop="doDropEvent(event)"></embed>';this.version=COMPATIBLE_VERSIONS[k];this.blomurbex=document.getElementById("CBlomURBEX3DCtl");this.blomurbex.doDropEvent=function(p){var o=p.dataTransfer;for(var n=0;n<o.mozItemCount;o++){var m=o.mozTypesAt(n);for(var l=0;l<m.length;l++){if(m[l]=="text/x-moz-url"){var e=o.mozGetDataAt(m[l],n);this.DropFile(e,p.clientX,p.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(m,n,l,o){this.blomurbex.GoToPoint(m,n,l,o)};this.stop=function(){this.blomurbex.StopCamera()};this.lookAt=function(o,q,n,l,m,p){this.blomurbex.LookAt(o,q,n,l,m,p)};this.getEye=function(){var l=function(m){this.blomurbex=m;this.lat=function(){return this.blomurbex.GetEyeLat()};this.lon=function(){return this.blomurbex.GetEyeLon()};this.alt=function(){return this.blomurbex.GetEyeAlt()}};return new l(this.blomurbex)};this.getCenter=function(l){var m=function(n){this.blomurbex=n;this.lat=function(){return this.blomurbex.GetCenterLat()};this.lon=function(){return this.blomurbex.GetCenterLon()}};return new m(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)}}};