/*!
 * FSI Server Interface
 * http://www.fsi-viewer.com
 *
 * Copyright (C) 2000-2009 NeptuneLabs GmbH - All rights reserved.
 *
 * Version: 1.0.1
 */
;if(!fsiparser){fsiparser=new fsiParser(fsirooturl)}if(fsiparser.init){fsiparser.init()}else{interfaceControl.showPublishMessage("Error","FSI Parser initialisation error")}CurrentPreviewWindow=false;oldPreviewWindowWidth=oldPreviewWindowHeight=-1;colorPickerVisible=false;var query="";var plugins=new Array();var moreoptions=false;for(var option in plugins){plugins[option]=""}function getDir(){var dir=new Array();dir[0]="ImagePath";dir[1]=decodeURIComponent(getPublishImageEntry().fullsrc);if(interfaceControl.isBasePath3DDirectories()){dir[1]=decodeURIComponent(interfaceControl.getBasePath3D())}else{if(interfaceControl.isBasePath3DImages()){try{dir[1]=decodeURIComponent(interfaceControl.getBasePath3D())}catch(e){dir[1]=decodeURIComponent(interfaceControl.getThumbView().getFirstSelectedThumb().fullsrc)}}}return dir}v=getDir();function scrollTextArea(from,to){from.onscroll=function(evt){to.scrollTop=this.scrollTop}}var FPXSrcValue="ImagePath=";var currentColor=Colors.ColorFromRGB(255,255,255);var fsiparser;var fsiparser_basepath=fsirooturl;var relSectionPath="viewer_presets";var pre=getConfigurationPath(configurationname);var fsiparser_presetpath=fsiparser_basepath+"config/viewer_presets";var opt=document.settings;function initit(){var publishingsettings="";if(typeof(interfaceControl.PublishData[build+"_PUBLISHING"])!="undefined"){publishingsettings=interfaceControl.PublishData[build+"_PUBLISHING"].value}initGlobal();v=getDir();initPluginButtons();setDirImageValue(v[1]);cfg=interfaceControl.getPublishingView().getPresetFile();if(cfg!=""&&typeof cfg!="undefined"){qdata.cfg=cfg}else{qdata.cfg=""}fsiparser.loadDefaultFSI(fsiparser_basepath,"_default.xml");var loadfsifile;preUpdateInterface();RestoreParameterValues(build);setInitialDimensions();fsiparser.getPublishOptions();addEvent(window,"resize",resizePreview);addEvent(window,"unload",removeResizePreview);if(qdata.cfg!=""){loadSelectedConfig(qdata.cfg)}restorePublishingSettings(publishingsettings);toActive("1","false");if(interfaceControl.isBasePath3D()){document.getElementById("effects_quality").value="98";setColorScheme("opt")}document.settings.keepRatio.checked=true;changeDimensionOnRatio();document.settings.keepRatio.checked=false};