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(JSGenericMenuItems) != "undefined" && typeof(JSGenericMenuItems[2]) != "undefined")
            {
                strContentURL = JSGenericMenuItems[2];
            }
            else if (typeof(Menu1) != "undefined" && typeof(Menu1[1]) != "undefined")
            {
                strContentURL = Menu1[1];
            }
            
        }
  }
  
var strFrameSrcNews = 'newsFrame_' + displayMenu + '.htm';
if(typeof(JSGenericMenuItems) != 'undefined' && JSGenericMenuItems.length > 0)
{
	strFrameSrcNews = JSGenericMenuItems[2];
}

document.writeln('<frameset cols="*,1008,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('    <frameset rows="185,*,180" frameborder="NO" border="0" framespacing="0">');
document.writeln('        <frame src="leftTopFrame.htm" name="leftTopFrame" id="leftTopFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        <frame src="leftMiddleFrame.htm" name="leftMiddleFrame" id="leftMiddleFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        <frame src="leftBottomFrame.htm" name="leftBottomFrame" id="leftBottomFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('    </frameset>');
document.writeln('    <frameset rows="103,189,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('        <frame src="menuFrame_'+ displayMenu +'.htm" name="menuFrame" id="menuFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        <frame src="bannerFrame.htm" name="bannerFrame" id="bannerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        <frameset cols="255,19,*,28" frameborder="NO" border="0" framespacing="0">');
document.writeln('            <frameset rows="5,*,7,96,16" 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="34,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('                    <frame src="newsLeftFrame.htm" name="newsLeftFrame" id="newsLeftFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                    <frame src="' + strFrameSrcNews + '" name="News" id="News" scrolling="auto" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                </frameset>');
document.writeln('                <frame src="newsPageTextSpacerFrame.htm" name="newsPageTextSpacerFrame" id="newsPageTextSpacerFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                <frameset cols="33,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('                    <frame src="pageTextLeftFrame.htm" name="pageTextLeftFrame" id="pageTextLeftFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                    <frame src="pageTextFrame_' + displayMenu + '.htm" name="pageTextFrame" id="pageTextFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                </frameset>');
document.writeln('                <frame src="pageTextBottomFrame.htm" name="pageTextBottomFrame" id="pageTextBottomFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('            </frameset>');
document.writeln('            <frameset rows="*,130" frameborder="NO" border="0" framespacing="0">');
document.writeln('                <frame src="spacerTopFrame.htm" name="spacerTopFrame" id="spacerTopFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                <frame src="spacerBottomFrame.htm" name="spacerBottomFrame" id="spacerBottomFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('            </frameset>');
document.writeln('            <frameset rows="*,16" frameborder="NO" border="0" framespacing="0">');
if(bIFrameProblemBrowser){
document.writeln('                <frame src="' + strContentURL + '" name="bodyFrame" id="bodyFrame" scrolling="auto" frameborder="0" noresize marginwidth="0" marginheight="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 src="bottomMenuFrame_'+ displayMenu +'.htm" name="bottomMenuFrame" id="bottomMenuFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('            </frameset>');
document.writeln('            <frameset rows="*,262" frameborder="NO" border="0" framespacing="0">');
document.writeln('                <frame src="rightInnerTopFrame.htm" name="rightInnerTopFrame" id="rightInnerTopFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('                <frame src="rightInnerBottomFrame.htm" name="rightInnerBottomFrame" id="rightInnerBottomFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('            </frameset>');
document.writeln('        </frameset>');
document.writeln('    </frameset>');
document.writeln('    <frameset rows="277,*,154" frameborder="NO" border="0" framespacing="0">');
document.writeln('        <frame src="rightTopFrame.htm" name="rightTopFrame" id="rightTopFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        <frame src="rightMiddleFrame.htm" name="rightMiddleFrame" id="rightMiddleFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        <frame src="rightBottomFrame.htm" name="rightBottomFrame" id="rightBottomFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('    </frameset>');
document.writeln('</frameset>');