its gotta be a loose/bad cable ... i would guess it would a harddrive cable either that or the power cable in the back of the comp (the one beside the power switch) ... not much else would cause a reboot
i suggest you shake the hell outta it and see if something falls off ... i take no responsibility for broken or damaged hardware lol