Oops, the functions.php error has nothing to do with this, but the unexplained '}' is definitely confusing things.