Code:
var back = document.getElementById("background");
Code:
<a href="#" id="1"...
based on the code provided, you don't have an element with the id [i]background[/b].
i don't know exactly how this is supposed to work but i'm assuming there's probably a simpler way to do this.