Restructure the code to create each template in a function.

Add a blue template function and move all the template dependent
code there. Modify the css to use 650px as width.