function spm_SVMCrossVal(varargin)

defineGlobals();

global SVMCROSSVAL_SPMDIR;
global SVMCROSSVAL_SPMVERSION;
global SVMCROSSVAL_TOOLBOXPATH;
global SVMCROSSVAL_DEBUG;
% SPMDIR = 'D:\SPM\spm5human'
SVMCROSSVAL_SPMDIR = 'D:\SPM\spm2';
SVMCROSSVAL_SPMVERSION = 'SPM2';
SVMCROSSVAL_TOOLBOXPATH = fullfile('C:\Dokumente und Einstellungen\Christoph\Eigene Dateien\MATLAB\spmtoolbox\SVMCrossVal\','');
% SVMCROSSVAL_TOOLBOXPATH = fullfile(SVMCROSSVAL_SPMDIR,'toolbox');

switch nargin
    case 0
        SVMCROSSVAL_DEBUG = 0;
        ui_main();
    case 1
        SVMCROSSVAL_DEBUG = varargin(1);
        ui_main();
otherwise
error('spm_SVMCrossVal:main','wrong nargin');
end
end