This page definitely goes down as one of the hardest ever scripts to write :\