pB var setup to avoid repeating long DOM elem refs again Removed end point from substr, not necessary Put 3 x themes into an array and test using indexOf instead Syntax spacing in a couple of areas