That isn't array but Array, be careful!
Then, there is another error : now is null. You have to create a main function to initialize all the variables you use, like this :
var now ;
now = document.getElementById("I don't remember!") ;
window.onload = main ;
//then all other function, like prev and next