/*!
 * 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")}var currentColor=Colors.ColorFromRGB(64,128,128);CurrentPreviewWindow=false;oldPreviewWindowWidth=oldPreviewWindowHeight=-1;colorPickerVisible=false;var query="";var plugins=new Array();var moreoptions=false;var bPublishFromDirSelection;if(interfaceControl.isBasePath3DDirectories()){bPublishFromDirSelection=true}else{bPublishFromDirSelection=(interfaceControl.getThumbView().getSingleSelectedItemType()=="directory")}for(var option in plugins){plugins[option]=""}function getDir(){var dir=new Array();dir[0]="images3durl";try{var e=getFirstImage();if(e){dir[1]=getBasePathFromEntry(e)}else{dir[1]=interfaceControl.getBasePath(oPreviewEntry)}}catch(e){dir[1]=interfaceControl.getBasePath()}var check=interfaceControl.isBasePath3D();if(typeof(check)!="null"&&check){dir[1]=decodeURIComponent(interfaceControl.getBasePath3D())}return dir}v=getDir();function scrollTextArea(from,to){from.onscroll=function(evt){to.scrollTop=this.scrollTop}}var currentColor=Colors.ColorFromRGB(255,255,255);var fsiparser;var fsiparser_basepath=fsirooturl;var relSectionPath="viewer3d_presets";var fsiparser_presetpath=fsiparser_basepath+"config/viewer3d_presets";var opt=document.settings;function initit(){var publishingsettings="";if(typeof(interfaceControl.PublishData[build+"_PUBLISHING"])!="undefined"){publishingsettings=interfaceControl.PublishData[build+"_PUBLISHING"].value}initGlobal();initPluginButtons();v=getDir();setDirImageValue(decodeURIComponent(v[1]));cfg=interfaceControl.getPublishingView().getPresetFile();if(cfg!=""&&typeof cfg!="undefined"){qdata.cfg=cfg}else{qdata.cfg=""}fsiparser.loadDefaultFSI(fsiparser_basepath,"_default.xml");if(qdata.cfg!=""){loadSelectedConfig(qdata.cfg)}preUpdateInterface();RestoreParameterValues(build);setInitialDimensions();addEvent(window,"resize",resizePreview);addEvent(window,"unload",removeResizePreview);document.getElementById("effects_quality").value="98";setColorScheme("opt");restorePublishingSettings(publishingsettings);toActive("1","false");document.settings.keepRatio.checked=true;changeDimensionOnRatio();document.settings.keepRatio.checked=false;restorePublishingSettings(publishingsettings)};