  Multipartite Bell-type inequalities are derived for general systems. They
involve up to eight observables with arbitrary spectra on each site. These
inequalities are closely related to the algebras of quaternions and octonions.
