{
ResponseWriter writer = context.getResponseWriter();
// IE6 does not support stretching by setting both top & bottom or left & right,
// so we have to use some ugly code.
TrinidadAgent agent = (TrinidadAgent)rc.getAgent();
boolean isIE6 = Agent.AGENT_IE.equals(agent.getAgentName()) &&
agent.getAgentMajorVersion() == 6;
if (isIE6)
{
// send down the JS that we need to stretch the components
XhtmlUtils.addLib(context, rc, IE6_SCRIPT.getScriptletKey());
}