/*!
 * 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(255,255,255);CurrentPreviewWindow=false;oldPreviewWindowWidth=oldPreviewWindowHeight=-1;colorPickerVisible=false;var query="";var plugins=new Array();var moreoptions=false;bPublishFromDirSelection=(interfaceControl.getThumbView().getSingleSelectedItemType()=="directory");for(var option in plugins){plugins[option]=""}function getDir(){var dir=new Array();dir[0]="showcase_dir";try{var e=oPreviewEntry;if(e.type=="directory"){dir[1]=decodeURIComponent(e.fullsrc)}else{dir[1]=getBasePathFromEntry(e)}}catch(e){dir[1]=encodeBrowsePath(interfaceControl.getBasePath())}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="showcase_presets";var fsiparser_presetpath=fsiparser_basepath+"config/showcase_presets";var opt=document.settings;function initit(){var publishingsettings="";if(typeof(interfaceControl.PublishData[build+"_PUBLISHING"])!="undefined"){publishingsettings=interfaceControl.PublishData[build+"_PUBLISHING"].value}initGlobal();initPluginButtons();document.getElementById("dirvalue").value=v[1];cfg=interfaceControl.getPublishingView().getPresetFile();if(cfg!=""&&cfg!="undefined"){qdata.cfg=cfg}else{qdata.cfg=""}fsiparser.loadDefaultFSI(fsiparser_basepath,"_default.xml");preUpdateInterface();RestoreParameterValues(build);setInitialDimensions();addEvent(window,"resize",resizePreview);addEvent(window,"unload",removeResizePreview);document.getElementById("options_width").value="800";document.getElementById("options_height").value="600";if(qdata.cfg!=""){loadSelectedConfig(qdata.cfg)}restorePublishingSettings(publishingsettings);toActive("1","false")};