Click a team, it will display its details in the box below, by making an ‘Ajax’ request, i.e. by replacing just part of the document’s contents.
We loop through the links in #main, and attach functions as click events to them.
Each of these extracts the href of the link, and requests it in an ‘Ajax’ way, inserting the response into #detailsBox.
The syntax it uses for this is ssGrabFile("detailsBox",el.href).
This introduces ssGrabFile, our simple Ajax function.
We have similar functions we use when submitting forms using Ajax, namely ssPostFile and ssGetFile.