The document outlines the preprocessing of fMRI data using statistical parametric mapping (SPM8), emphasizing various steps such as slice timing correction, realignment, coregistration, normalization, and smoothing for both event-related and resting state fMRI analysis. It details the input and output files at each stage and the application of regression for nuisance parameters and functional connectivity analysis. Additionally, the document includes guidelines for performing group-wise analyses and specific GLM specifications in SPM.