def buildnavcell(prefix, dateString, mouseoverImg, mouseoutImg, name):
    """Build the HTML for a single navcell.

    prefix -- the string to tack on to the front of the anchor name
    dateString -- the date, as a string, to be used in the anchor name
    mouseoverImg -- name of the image to be displayed on mouseover
    mouseoutImg -- name of the image to be displayed on mouseout
    name -- name of this navcell
    """

    return """<a
href="timeline.html#%s%s"
target="timeline" 
onclick="onimgs('%s', '%s', '%s'); return true;"
onmouseover="chimgs('%s', '%s'); return true;"
onmouseout="chimgs('%s', '%s'); return true;"><img 

src="%s" alt="" width="25" height="20" border="0" name="%s" /></a>""" \
     % (prefix, dateString, name, mouseoverImg, mouseoutImg, name,
        mouseoverImg, name, mouseoutImg, mouseoutImg, name)