"use strict";var ObjectInfo=function(t){this.infoDialog=null,this.name=t,this.caption=this.name.toUpperCase(),this.snapshotImageFilename=Preferences.Gui.getLocationSnapshotFilepath(this.name)},ObjectInfos=[];ObjectInfo.initObjectInfo=function(t){var e=new ContentObject(t.getDialogWrapper());t.init(e)},ObjectInfo.createObjectInfo=function(t){ObjectInfos[t]=new ObjectInfo(t);var e=new WindowDialog("touristInfo_"+t,null,null,null,"touristInfo window-scroll window-width tourist-info",!1,null,Preferences.Filepaths.infoDialogs+t.toLowerCase().replace("__","_")+".html");return this.initObjectInfo(e),ObjectInfos[t].infoDialog=e,ObjectInfos[t]},ObjectInfo.openDialog=function(t){var e=ObjectInfos[t];e.infoDialog.openDialog()},ObjectInfo.prototype.getName=function(){return this.name},ObjectInfo.prototype.getCaption=function(){return this.caption},ObjectInfo.prototype.getSnapshotImageFilename=function(){return this.snapshotImageFilename},ObjectInfo.prototype.setAsCurrentViewpoint=function(){var t=Preferences.Viewpoint[this.getName().toUpperCase()];Util.isInitialized(t)&&t.setAsCurrentViewpoint()},ObjectInfo.get=function(t){return ObjectInfo.objectInfos[t]};