Please follow
http://energy.gov/articles/how-do-holiday-lights-work
.