but another large part of it is mediated by hormones going to and from the rest of your body
http://en.wikipedia.org/wiki/Hypothalamus
http://en.wikipedia.org/wiki/Hypothalamus