var strContentURL = '';

// catch all errors
function handleError() { return(true); }
window.onerror = handleError;

    // 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(strStartPage.length > 0)
            {
                strContentURL = strStartPage;
            }
            else if (typeof(Menu1) != "undefined" && typeof(Menu1[1]) != "undefined")
            {
                strContentURL = Menu1[1];
            }
            else if (typeof(JSGenericMenuItems) != "undefined" && typeof(JSGenericMenuItems[2]) != "undefined")
            {
                strContentURL = JSGenericMenuItems[2];
            }
            
        }
  }

document.writeln('<frameset cols="*,1008,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('    <frame src="leftFrame.htm" name="leftFrame" id="leftFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('    <frameset rows="163,*,23" frameborder="NO" border="0" framespacing="0">');
document.writeln('        <frame src="headerFrame_'+ displayMenu +'.htm" name="headerFrame" height="163px" width="1008px" id="headerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
/*document.writeln('        <frameset cols="246,519,243" frameborder="NO" border="0" framespacing="0">');
document.writeln('            <frameset rows="7,267,111,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('                <frame src="newsTopFrame.htm" name="newsTopFrame" id="newsTopFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                <frameset cols="45,178,23" frameborder="NO" border="0" framespacing="0">');
document.writeln('                    <frame src="leftNewsSpacerFrame.htm" name="leftNewsSpacerFrame" id="leftNewsSpacerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                    <frame src="newsFrame_'+ displayMenu +'.htm" name="newsFrame" id="newsFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                    <frame src="rightNewsSpacerFrame.htm" name="rightNewsSpacerFrame" id="rightNewsSpacerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                </frameset>');
document.writeln('                <frame src="leftBannerFrame.htm" name="leftBannerFrame" id="leftBannerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('		            <frame src="leftGrowingFrame.htm" name="leftGrowingFrame" id="leftGrowingFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('            </frameset>');
document.writeln('            <frameset rows="38,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('                <frame src="contentTopSpacerFrame.htm" name="contentTopSpacerFrame" id="contentTopSpacerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
*/
if (strContentURL.length == 0) {
document.writeln('            <FRAME SRC="content_' + displayMenu + '.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('            </frameset>');
document.writeln('            <frameset rows="135,112,138,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('                <frame src="rightTopBannerFrame.htm" name="rightTopBannerFrame" id="rightTopBannerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                <frameset cols="22,179,42" frameborder="NO" border="0" framespacing="0">');
document.writeln('                    <frame src="newsTwoLeftSpacerFrame.htm" name="newsTwoLeftSpacerFrame" id="newsTwoLeftSpacerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                    <frame src="newsTwoFrame_'+ displayMenu +'.htm" name="newsTwoFrame" id="newsTwoFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                    <frame src="newsTwoRightSpacerFrame.htm" name="newsTwoRightSpacerFrame" id="newsTwoRightSpacerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                </frameset>');
document.writeln('                <frame src="rightBottomBannerFrame.htm" name="rightBottomBannerFrame" id="rightBottomBannerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('    		        <frame src="rightGrowingFrame.htm" name="rightGrowingFrame" id="rightGrowingFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('            </frameset>');
document.writeln('        </frameset>');*/
/*document.writeln('        <frameset cols="*,519,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('            <frame src="bottomContentSpacerFrame.htm" name="bottomContentSpacerFrame" id="bottomContentSpacerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        </frameset>');*/
document.writeln('        <frame src="bottomFrame_'+ displayMenu +'.htm" name="bottomFrame" id="bottomFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('    </frameset>');
document.writeln('    <frame src="rightFrame.htm" name="rightFrame" id="rightFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('</frameset>');