public SPITutMainDocument(ItsNatHttpServletRequest request, ItsNatHttpServletResponse response)
{
this.itsNatDoc = (ItsNatHTMLDocument)request.getItsNatDocument();
HTMLDocument doc = itsNatDoc.getHTMLDocument();
this.titleElem = (HTMLTitleElement)doc.getElementById("titleId");
this.title = titleElem.getText(); // Initial value
menuElemMap.put("overview",doc.getElementById("menuOpOverviewId"));
menuElemMap.put("detail",doc.getElementById("menuOpDetailId"));
// More menu options here...
itsNatDoc.addUserEventListener(null,"setState", this);
this.contentParentElem = doc.getElementById("contentParentId");
this.googleAnalyticsElem = doc.getElementById("googleAnalyticsId");
this.googleAnalyticsIFrameURL = googleAnalyticsElem.getAttribute("src"); // Initial value
HttpServletRequest servReq = request.getHttpServletRequest();
String stateName = servReq.getParameter("_escaped_fragment_"); // Google bot, has priority, its value is based on the hash fragment
if (stateName != null)