
var strContentURL = '';

// catch all errors
function handleError() { return(true); }
window.onerror = handleError;

if (top != self) 
{ 
  // page is framed, reload in top frame
  top.location.replace(self.location.href);
}
else
{ 
  // test on ?SHOW_URL parameter in URL
  if ((self.location.search.length > 0) && (self.location.search.indexOf('?SHOW_URL=') == 0))
  {
    // ?SHOW_URL parameter in URL
    // top.name = '';
    strContentURL = self.location.search.substring(10);
    
    // try to set cookie SHOW_URL & test if cookie SHOW_URL is set
    SetCookie(DEFAULT_SHOW_URL_COOKIE, strContentURL);
    if (GetCookie(DEFAULT_SHOW_URL_COOKIE) == strContentURL)
    {
      // cookies enabled: remove URL from querystring 
      strContentURL = '';
      top.location.replace(self.location.href.substring(0, self.location.href.indexOf('?SHOW_URL=')));
    }
    else
    {
      // cookies not enabled: use default page as parameter in querystring
    }
  }
  else
  { 
    // ?SHOW_URL parameter not in URL
    // try to read cookie
    var strCookie = GetCookie(DEFAULT_SHOW_URL_COOKIE);
    if (strCookie && (strCookie.length > 0))
    { 
      // cookie is set: remove URL from querystring
      strContentURL = '';
    }
    else
    {
      // cookie is not set: use default page as parameter in querystring
      if (startPage && startPage.length > 0)
      {
        strContentURL = startPage;
      }
    }
  }
}

document.writeln('<frameset rows="133,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('	<frameset cols="200,*" frameborder="NO" border="0" framespacing="0" rows="*">');
document.writeln('		<frame name="logoFrame" scrolling="NO" noresize src="logo.htm">');
document.writeln('		<frameset rows="*,33" frameborder="NO" border="0" framespacing="0" cols="*">');
document.writeln('			<frame name="headerFrame" scrolling="NO" noresize src="header_1.htm">');
document.writeln('			<frame name="scrollerFrame" scrolling="NO" noresize src="scroller.htm">');
document.writeln('		</frameset>');
document.writeln('	</frameset>');
document.writeln('	<frameset cols="169,*" frameborder="NO" border="0" framespacing="0" rows="*">');

if (displayMenu && displayMenu.length > 0) {
	document.writeln('		<frame SRC="menu_' + displayMenu + '.htm" NAME="menuFrame" ID="menuFrame" FRAMEBORDER="0" SCROLLING="AUTO" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0">');
} else {
	document.writeln('		<FRAME SRC="menu.htm" NAME="menuFrame" ID="menuFrame" FRAMEBORDER="0" SCROLLING="No" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0">');
}

document.writeln('		<frameset rows="*,72" frameborder="NO" border="0" framespacing="0" cols="*">');
document.writeln('			<frameset cols="*,131" frameborder="NO" border="0" framespacing="0" rows="*">');

if (bIFrameProblemBrowser) {
  document.writeln('				<FRAME SRC="' + strContentURL + '" NAME="bodyFrame" ID="bodyFrame" FRAMEBORDER="0" SCROLLING="Auto" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0">');
} else {
  if (strContentURL.length == 0) {
    document.writeln('				<FRAME SRC="content.htm" NAME="contentFrame" ID="contentFrame" FRAMEBORDER="0" SCROLLING="No" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0">');
  } else {
    document.writeln('				<FRAME SRC="content.htm?SHOW_URL=' + strContentURL + '" NAME="contentFrame" ID="contentFrame" FRAMEBORDER="0" SCROLLING="No" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0">');
  }
}

document.writeln('				<frame name="rightFrame" scrolling="NO" noresize src="right.htm">');
document.writeln('			</frameset>');
document.writeln('			<frame name="bottomFrame" scrolling="NO" noresize src="bottom.htm">');	
document.writeln('		</frameset>');
document.writeln('	</frameset>');
document.writeln('</frameset>');
document.writeln('<NOFRAMES>');
document.writeln('  <BODY BGCOLOR="#FFFFFF">');
document.writeln('  </BODY>');
document.writeln('</NOFRAMES>');
